ATLAS Offline Software
Public Types | Public Member Functions | Protected Attributes | Friends | List of all members
Trk::PRDtoTrackMapTool::PRDtoTrackMap Class Reference

#include <PRDtoTrackMapTool.h>

Inheritance diagram for Trk::PRDtoTrackMapTool::PRDtoTrackMap:
Collaboration diagram for Trk::PRDtoTrackMapTool::PRDtoTrackMap:

Public Types

using TrackPrepRawDataMap = std::unordered_map< const Track *, std::vector< const PrepRawData * >, std::hash< const Track * >, std::equal_to< const Track * >, SG::ArenaPoolSTLAllocator< std::pair< const Track *const, std::vector< const PrepRawData * > >> >
 
using PrepRawDataTrackMap = std::unordered_multimap< const PrepRawData *, const Track *, std::hash< const PrepRawData * >, std::equal_to< const PrepRawData * >, SG::ArenaPoolSTLAllocator< std::pair< const PrepRawData *const, const Track * > > >
 
using PrepRawDataTrackMapRange = std::pair< PrepRawDataTrackMap::iterator, PrepRawDataTrackMap::iterator >
 
using ConstPrepRawDataTrackMapRange = std::pair< PrepRawDataTrackMap::const_iterator, PrepRawDataTrackMap::const_iterator >
 

Public Member Functions

const std::type_info & getType () const override
 
bool isUsed (const PrepRawData &prd) const
 does this PRD belong to at least one track? More...
 
bool isShared (const PrepRawData &prd) const
 does this PRD belong to more than one track? More...
 
PrepRawDataTrackMapRange onTracks (const PrepRawData &prd)
 get the Tracks associated with this PrepRawData. More...
 
ConstPrepRawDataTrackMapRange onTracks (const PrepRawData &prd) const
 get the Tracks associated with this PrepRawData. More...
 
std::vector< const Trk::PrepRawData * > getPrdsOnTrack (const Track &track) const
 returns a vector of PRDs belonging to the passed track. More...
 
void clear ()
 
void reserve (size_t nTracks, size_t nRawData)
 

Protected Attributes

PrepRawDataTrackMap m_prepRawDataTrackMap
 holds the tracks associated with each PRD (i.e. More...
 
TrackPrepRawDataMap m_trackPrepRawDataMap
 holds the PRDs associated with each Track (i.e. More...
 

Friends

class PRDtoTrackMapTool
 

Detailed Description

Definition at line 55 of file PRDtoTrackMapTool.h.

Member Typedef Documentation

◆ ConstPrepRawDataTrackMapRange

using Trk::PRDtoTrackMap::ConstPrepRawDataTrackMapRange = std::pair<PrepRawDataTrackMap::const_iterator, PrepRawDataTrackMap::const_iterator>
inherited

Definition at line 42 of file PRDtoTrackMap.h.

◆ PrepRawDataTrackMap

using Trk::PRDtoTrackMap::PrepRawDataTrackMap = std::unordered_multimap< const PrepRawData*, const Track*, std::hash<const PrepRawData*>, std::equal_to<const PrepRawData*>, SG::ArenaPoolSTLAllocator< std::pair<const PrepRawData* const, const Track*> > >
inherited

Definition at line 29 of file PRDtoTrackMap.h.

◆ PrepRawDataTrackMapRange

using Trk::PRDtoTrackMap::PrepRawDataTrackMapRange = std::pair<PrepRawDataTrackMap::iterator, PrepRawDataTrackMap::iterator>
inherited

Definition at line 39 of file PRDtoTrackMap.h.

◆ TrackPrepRawDataMap

using Trk::PRDtoTrackMap::TrackPrepRawDataMap = std::unordered_map<const Track*, std::vector<const PrepRawData*>, std::hash<const Track*>, std::equal_to<const Track*>, SG::ArenaPoolSTLAllocator<std::pair< const Track* const, std::vector<const PrepRawData*> >> >
inherited

Definition at line 19 of file PRDtoTrackMap.h.

Member Function Documentation

◆ clear()

void Trk::PRDtoTrackMap::clear ( )
inherited

◆ getPrdsOnTrack()

std::vector<const Trk::PrepRawData*> Trk::PRDtoTrackMap::getPrdsOnTrack ( const Track track) const
inherited

returns a vector of PRDs belonging to the passed track.

◆ getType()

const std::type_info& Trk::PRDtoTrackMapTool::PRDtoTrackMap::getType ( ) const
inlineoverridevirtual

Reimplemented from Trk::PRDtoTrackMap.

Definition at line 59 of file PRDtoTrackMapTool.h.

59 {return typeid(PRDtoTrackMap); }

◆ isShared()

bool Trk::PRDtoTrackMap::isShared ( const PrepRawData prd) const
inherited

does this PRD belong to more than one track?

Parameters
prdthe PrepRawData in question
Returns
true if 'prd' exists on more than one track

◆ isUsed()

bool Trk::PRDtoTrackMap::isUsed ( const PrepRawData prd) const
inherited

does this PRD belong to at least one track?

Parameters
prdthe PrepRawData in question
Returns
true if 'prd' exists in at least one track

◆ onTracks() [1/2]

PrepRawDataTrackMapRange Trk::PRDtoTrackMap::onTracks ( const PrepRawData prd)
inherited

get the Tracks associated with this PrepRawData.

◆ onTracks() [2/2]

ConstPrepRawDataTrackMapRange Trk::PRDtoTrackMap::onTracks ( const PrepRawData prd) const
inherited

get the Tracks associated with this PrepRawData.

◆ reserve()

void Trk::PRDtoTrackMap::reserve ( size_t  nTracks,
size_t  nRawData 
)
inherited

Friends And Related Function Documentation

◆ PRDtoTrackMapTool

friend class PRDtoTrackMapTool
friend

Definition at line 57 of file PRDtoTrackMapTool.h.

Member Data Documentation

◆ m_prepRawDataTrackMap

PrepRawDataTrackMap Trk::PRDtoTrackMap::m_prepRawDataTrackMap
protectedinherited

holds the tracks associated with each PRD (i.e.

the PRD* is the key)

Definition at line 82 of file PRDtoTrackMap.h.

◆ m_trackPrepRawDataMap

TrackPrepRawDataMap Trk::PRDtoTrackMap::m_trackPrepRawDataMap
protectedinherited

holds the PRDs associated with each Track (i.e.

the Track* is the key)

Definition at line 85 of file PRDtoTrackMap.h.


The documentation for this class was generated from the following file:
Trk::PRDtoTrackMap::PRDtoTrackMap
PRDtoTrackMap()=default