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

#include <PRDtoTrackMap.h>

Inheritance diagram for Trk::PRDtoTrackMap:
Collaboration diagram for Trk::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

 PRDtoTrackMap ()=default
 
virtual ~PRDtoTrackMap ()=default
 
 PRDtoTrackMap (const PRDtoTrackMap &a)=default
 
 PRDtoTrackMap (PRDtoTrackMap &&a) noexcept=default
 
PRDtoTrackMapoperator= (const PRDtoTrackMap &a)=default
 
PRDtoTrackMapoperator= (PRDtoTrackMap &&a) noexcept=default
 
virtual const std::type_info & getType () const
 
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...
 

Detailed Description

Definition at line 16 of file PRDtoTrackMap.h.

Member Typedef Documentation

◆ ConstPrepRawDataTrackMapRange

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

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*> > >

Definition at line 29 of file PRDtoTrackMap.h.

◆ PrepRawDataTrackMapRange

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

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*> >> >

Definition at line 19 of file PRDtoTrackMap.h.

Constructor & Destructor Documentation

◆ PRDtoTrackMap() [1/3]

Trk::PRDtoTrackMap::PRDtoTrackMap ( )
default

◆ ~PRDtoTrackMap()

virtual Trk::PRDtoTrackMap::~PRDtoTrackMap ( )
virtualdefault

◆ PRDtoTrackMap() [2/3]

Trk::PRDtoTrackMap::PRDtoTrackMap ( const PRDtoTrackMap a)
default

◆ PRDtoTrackMap() [3/3]

Trk::PRDtoTrackMap::PRDtoTrackMap ( PRDtoTrackMap &&  a)
defaultnoexcept

Member Function Documentation

◆ clear()

void Trk::PRDtoTrackMap::clear ( )

◆ getPrdsOnTrack()

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

returns a vector of PRDs belonging to the passed track.

◆ getType()

virtual const std::type_info& Trk::PRDtoTrackMap::getType ( ) const
virtual

◆ isShared()

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

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

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)

get the Tracks associated with this PrepRawData.

◆ onTracks() [2/2]

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

get the Tracks associated with this PrepRawData.

◆ operator=() [1/2]

PRDtoTrackMap& Trk::PRDtoTrackMap::operator= ( const PRDtoTrackMap a)
default

◆ operator=() [2/2]

PRDtoTrackMap& Trk::PRDtoTrackMap::operator= ( PRDtoTrackMap &&  a)
defaultnoexcept

◆ reserve()

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

Member Data Documentation

◆ m_prepRawDataTrackMap

PrepRawDataTrackMap Trk::PRDtoTrackMap::m_prepRawDataTrackMap
protected

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
protected

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: