NOTE: this is needed even if it seems not. More...
#include <TTTrackAssociationMap.h>
Private Attributes | |
edm::RefProd< TTStubAssociationMap< T > > | theStubAssociationMap |
std::map< edm::Ptr< TrackingParticle >, std::vector< edm::Ptr< TTTrack< T > > > > | trackingParticleToTrackVectorMap |
std::map< edm::Ptr< TTTrack< T > >, edm::Ptr< TrackingParticle > > | trackToTrackingParticleMap |
Data members. More... | |
NOTE: this is needed even if it seems not.
Class to store the MC truth of L1 Track Trigger tracks.
After moving from SimDataFormats to DataFormats, the template structure of the class was maintained in order to accomodate any types other than PixelDigis in case there is such a need in the future.
Definition at line 34 of file TTTrackAssociationMap.h.
TTTrackAssociationMap< T >::TTTrackAssociationMap | ( | ) |
Constructors.
Close class.
Implementation of methods
Here, in the header file, the methods which do not depend on the specific type <T> that can fit the template. Other methods, with type-specific features, are implemented in the source file.Default Constructor NOTE: to be used with setSomething(...) methods
Set default data members
Definition at line 87 of file TTTrackAssociationMap.h.
References TTTrackAssociationMap< T >::trackingParticleToTrackVectorMap, and TTTrackAssociationMap< T >::trackToTrackingParticleMap.
TTTrackAssociationMap< T >::~TTTrackAssociationMap | ( | ) |
Destructor.
Definition at line 96 of file TTTrackAssociationMap.h.
References TTTrackAssociationMap< T >::findTrackingParticlePtr(), TTTrackAssociationMap< T >::findTTTrackPtrs(), TTTrackAssociationMap< T >::isCombinatoric(), TTTrackAssociationMap< T >::isGenuine(), TTTrackAssociationMap< T >::isLooselyGenuine(), and TTTrackAssociationMap< T >::isUnknown().
edm::Ptr< TrackingParticle > TTTrackAssociationMap< Ref_Phase2TrackerDigi_ >::findTrackingParticlePtr | ( | edm::Ptr< TTTrack< Ref_Phase2TrackerDigi_ > > | aTrack | ) | const |
Implementation of methods.
Here, in the header file, the methods which do not depend on the specific type <T> that can fit the template. Other methods, with type-specific features, are implemented in the source file.Operations
Default: return NULL
Definition at line 13 of file TTTrackAssociationMap.cc.
References groupFilesInBlocks::temp.
edm::Ptr< TrackingParticle > TTTrackAssociationMap< T >::findTrackingParticlePtr | ( | edm::Ptr< TTTrack< T > > | aTrack | ) | const |
Operations.
Referenced by TTTrackAssociationMap< T >::setTTStubAssociationMap(), and TTTrackAssociationMap< T >::~TTTrackAssociationMap().
edm::Ptr< TrackingParticle > TTTrackAssociationMap< Ref_Phase2TrackerDigi_ >::findTrackingParticlePtr | ( | edm::Ptr< TTTrack< Ref_Phase2TrackerDigi_ > > | aTrack | ) | const |
Operations.
std::vector< edm::Ptr< TTTrack< Ref_Phase2TrackerDigi_ > > > TTTrackAssociationMap< Ref_Phase2TrackerDigi_ >::findTTTrackPtrs | ( | edm::Ptr< TrackingParticle > | aTrackingParticle | ) | const |
Default: return empty vector
Definition at line 26 of file TTTrackAssociationMap.cc.
std::vector< edm::Ptr< TTTrack< T > > > TTTrackAssociationMap< T >::findTTTrackPtrs | ( | edm::Ptr< TrackingParticle > | aTrackingParticle | ) | const |
std::vector< edm::Ptr< TTTrack< Ref_Phase2TrackerDigi_ > > > TTTrackAssociationMap< Ref_Phase2TrackerDigi_ >::findTTTrackPtrs | ( | edm::Ptr< TrackingParticle > | aTrackingParticle | ) | const |
|
inline |
Definition at line 49 of file TTTrackAssociationMap.h.
References TTTrackAssociationMap< T >::trackingParticleToTrackVectorMap.
|
inline |
Maps.
Data members: getABC( ... ) Helper methods: findABC( ... )
Definition at line 47 of file TTTrackAssociationMap.h.
References TTTrackAssociationMap< T >::trackToTrackingParticleMap.
bool TTTrackAssociationMap< T >::isCombinatoric | ( | edm::Ptr< TTTrack< T > > | aTrack | ) | const |
bool TTTrackAssociationMap< Ref_Phase2TrackerDigi_ >::isCombinatoric | ( | edm::Ptr< TTTrack< Ref_Phase2TrackerDigi_ > > | aTrack | ) | const |
Defined by exclusion
Definition at line 79 of file TTTrackAssociationMap.cc.
bool TTTrackAssociationMap< Ref_Phase2TrackerDigi_ >::isCombinatoric | ( | edm::Ptr< TTTrack< Ref_Phase2TrackerDigi_ > > | aTrack | ) | const |
bool TTTrackAssociationMap< Ref_Phase2TrackerDigi_ >::isGenuine | ( | edm::Ptr< TTTrack< Ref_Phase2TrackerDigi_ > > | aTrack | ) | const |
MC truth.
Check if there is a TrackingParticle
Get all the stubs from this TrackingParticle
We want that all the stubs of the track are included in the container of all the stubs produced by this particular TrackingParticle which we already know is one of the TrackingParticles that released hits in this track we are evaluating right now
Definition at line 52 of file TTTrackAssociationMap.cc.
References spr::find().
bool TTTrackAssociationMap< T >::isGenuine | ( | edm::Ptr< TTTrack< T > > | aTrack | ) | const |
MC Truth methods.
Referenced by TTTrackAssociationMap< T >::setTTStubAssociationMap(), and TTTrackAssociationMap< T >::~TTTrackAssociationMap().
bool TTTrackAssociationMap< Ref_Phase2TrackerDigi_ >::isGenuine | ( | edm::Ptr< TTTrack< Ref_Phase2TrackerDigi_ > > | aTrack | ) | const |
MC truth.
bool TTTrackAssociationMap< Ref_Phase2TrackerDigi_ >::isLooselyGenuine | ( | edm::Ptr< TTTrack< Ref_Phase2TrackerDigi_ > > | aTrack | ) | const |
MC truth.
Check if there is a TrackingParticle
Definition at line 41 of file TTTrackAssociationMap.cc.
bool TTTrackAssociationMap< T >::isLooselyGenuine | ( | edm::Ptr< TTTrack< T > > | aTrack | ) | const |
bool TTTrackAssociationMap< Ref_Phase2TrackerDigi_ >::isLooselyGenuine | ( | edm::Ptr< TTTrack< Ref_Phase2TrackerDigi_ > > | aTrack | ) | const |
MC truth.
bool TTTrackAssociationMap< T >::isUnknown | ( | edm::Ptr< TTTrack< T > > | aTrack | ) | const |
bool TTTrackAssociationMap< Ref_Phase2TrackerDigi_ >::isUnknown | ( | edm::Ptr< TTTrack< Ref_Phase2TrackerDigi_ > > | aTrack | ) | const |
UNKNOWN means that more than 2 stubs are unknown
Definition at line 92 of file TTTrackAssociationMap.cc.
References mps_fire::i.
bool TTTrackAssociationMap< Ref_Phase2TrackerDigi_ >::isUnknown | ( | edm::Ptr< TTTrack< Ref_Phase2TrackerDigi_ > > | aTrack | ) | const |
|
inline |
Definition at line 54 of file TTTrackAssociationMap.h.
References TTTrackAssociationMap< T >::trackingParticleToTrackVectorMap.
|
inline |
Definition at line 56 of file TTTrackAssociationMap.h.
References TTTrackAssociationMap< T >::findTrackingParticlePtr(), TTTrackAssociationMap< T >::findTTTrackPtrs(), TTTrackAssociationMap< T >::isCombinatoric(), TTTrackAssociationMap< T >::isGenuine(), TTTrackAssociationMap< T >::isLooselyGenuine(), TTTrackAssociationMap< T >::isUnknown(), and TTTrackAssociationMap< T >::theStubAssociationMap.
|
inline |
Definition at line 52 of file TTTrackAssociationMap.h.
References TTTrackAssociationMap< T >::trackToTrackingParticleMap.
|
private |
Definition at line 73 of file TTTrackAssociationMap.h.
Referenced by TTTrackAssociationMap< T >::setTTStubAssociationMap().
|
private |
Definition at line 72 of file TTTrackAssociationMap.h.
Referenced by TTTrackAssociationMap< T >::getTrackingParticleToTTTracksMap(), TTTrackAssociationMap< T >::setTrackingParticleToTTTracksMap(), and TTTrackAssociationMap< T >::TTTrackAssociationMap().
|
private |
Data members.
Definition at line 71 of file TTTrackAssociationMap.h.
Referenced by TTTrackAssociationMap< T >::getTTTrackToTrackingParticleMap(), TTTrackAssociationMap< T >::setTTTrackToTrackingParticleMap(), and TTTrackAssociationMap< T >::TTTrackAssociationMap().