ATLAS Offline Software
Public Types | Public Member Functions | Protected Attributes | Friends | List of all members
InDet::InDetPRDtoTrackMapToolGangedPixels::PRDtoTrackMap Class Reference
Inheritance diagram for InDet::InDetPRDtoTrackMapToolGangedPixels::PRDtoTrackMap:
Collaboration diagram for InDet::InDetPRDtoTrackMapToolGangedPixels::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
 
 PRDtoTrackMap (const SG::ReadHandleKey< PixelGangedClusterAmbiguities > &key)
 
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

SG::ReadHandle< PixelGangedClusterAmbiguitiesm_gangedAmbis
 
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 InDetPRDtoTrackMapToolGangedPixels
 

Detailed Description

Definition at line 64 of file InDetPRDtoTrackMapToolGangedPixels.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.

Constructor & Destructor Documentation

◆ PRDtoTrackMap()

InDet::InDetPRDtoTrackMapToolGangedPixels::PRDtoTrackMap::PRDtoTrackMap ( const SG::ReadHandleKey< PixelGangedClusterAmbiguities > &  key)

Definition at line 228 of file InDetPRDtoTrackMapToolGangedPixels.cxx.

229 {
230  if (!key.key().empty()) {
232  }
233 }

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& InDet::InDetPRDtoTrackMapToolGangedPixels::PRDtoTrackMap::getType ( ) const
inlineoverridevirtual

Reimplemented from Trk::PRDtoTrackMap.

Definition at line 68 of file InDetPRDtoTrackMapToolGangedPixels.h.

68 {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

◆ InDetPRDtoTrackMapToolGangedPixels

Definition at line 66 of file InDetPRDtoTrackMapToolGangedPixels.h.

Member Data Documentation

◆ m_gangedAmbis

SG::ReadHandle<PixelGangedClusterAmbiguities> InDet::InDetPRDtoTrackMapToolGangedPixels::PRDtoTrackMap::m_gangedAmbis
protected

Definition at line 73 of file InDetPRDtoTrackMapToolGangedPixels.h.

◆ 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 files:
Trk::PRDtoTrackMap::PRDtoTrackMap
PRDtoTrackMap()=default
SG::makeHandle
SG::ReadCondHandle< T > makeHandle(const SG::ReadCondHandleKey< T > &key, const EventContext &ctx=Gaudi::Hive::currentContext())
Definition: ReadCondHandle.h:270
InDet::InDetPRDtoTrackMapToolGangedPixels::PRDtoTrackMap::m_gangedAmbis
SG::ReadHandle< PixelGangedClusterAmbiguities > m_gangedAmbis
Definition: InDetPRDtoTrackMapToolGangedPixels.h:73
mapkey::key
key
Definition: TElectronEfficiencyCorrectionTool.cxx:37