NOTE: this is needed even if it seems not. More...
#include <TTTrackAssociationMap.h>
Private Attributes | |
bool | AllowOneFalse2SStub |
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 97 of file TTTrackAssociationMap.h.
References TTTrackAssociationMap< T >::trackingParticleToTrackVectorMap, and TTTrackAssociationMap< T >::trackToTrackingParticleMap.
TTTrackAssociationMap< T >::~TTTrackAssociationMap | ( | ) |
Destructor.
Definition at line 105 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 12 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 24 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 |
bool TTTrackAssociationMap< T >::getAllowOneFalse2SStub | ( | ) |
Referenced by TTTrackAssociationMap< T >::setTTStubAssociationMap().
bool TTTrackAssociationMap< Ref_Phase2TrackerDigi_ >::getAllowOneFalse2SStub | ( | ) |
Definition at line 117 of file TTTrackAssociationMap.cc.
|
inline |
Definition at line 49 of file TTTrackAssociationMap.h.
References TTTrackAssociationMap< T >::trackingParticleToTrackVectorMap.
|
inline |
Maps.
Data members: getABC( ... ) Helper methods: findABC( ... )
Definition at line 46 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 81 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 Now modifying to allow one and only one false 2S stub in the track idr 06/19
Definition at line 49 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 38 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 94 of file TTTrackAssociationMap.cc.
References mps_fire::i.
bool TTTrackAssociationMap< Ref_Phase2TrackerDigi_ >::isUnknown | ( | edm::Ptr< TTTrack< Ref_Phase2TrackerDigi_ > > | aTrack | ) | const |
void TTTrackAssociationMap< T >::setAllowOneFalse2SStub | ( | bool | allowFalse2SStub | ) |
Referenced by TTTrackAssociationMap< T >::setTTStubAssociationMap().
void TTTrackAssociationMap< Ref_Phase2TrackerDigi_ >::setAllowOneFalse2SStub | ( | bool | allowFalse2SStub | ) |
Definition at line 112 of file TTTrackAssociationMap.cc.
|
inline |
Definition at line 56 of file TTTrackAssociationMap.h.
References TTTrackAssociationMap< T >::trackingParticleToTrackVectorMap.
|
inline |
Definition at line 60 of file TTTrackAssociationMap.h.
References TTTrackAssociationMap< T >::findTrackingParticlePtr(), TTTrackAssociationMap< T >::findTTTrackPtrs(), TTTrackAssociationMap< T >::getAllowOneFalse2SStub(), TTTrackAssociationMap< T >::isCombinatoric(), TTTrackAssociationMap< T >::isGenuine(), TTTrackAssociationMap< T >::isLooselyGenuine(), TTTrackAssociationMap< T >::isUnknown(), TTTrackAssociationMap< T >::setAllowOneFalse2SStub(), and TTTrackAssociationMap< T >::theStubAssociationMap.
|
inline |
Definition at line 53 of file TTTrackAssociationMap.h.
References TTTrackAssociationMap< T >::trackToTrackingParticleMap.
|
private |
Definition at line 83 of file TTTrackAssociationMap.h.
|
private |
Definition at line 81 of file TTTrackAssociationMap.h.
Referenced by TTTrackAssociationMap< T >::setTTStubAssociationMap().
|
private |
Definition at line 80 of file TTTrackAssociationMap.h.
Referenced by TTTrackAssociationMap< T >::getTrackingParticleToTTTracksMap(), TTTrackAssociationMap< T >::setTrackingParticleToTTTracksMap(), and TTTrackAssociationMap< T >::TTTrackAssociationMap().
|
private |
Data members.
Definition at line 79 of file TTTrackAssociationMap.h.
Referenced by TTTrackAssociationMap< T >::getTTTrackToTrackingParticleMap(), TTTrackAssociationMap< T >::setTTTrackToTrackingParticleMap(), and TTTrackAssociationMap< T >::TTTrackAssociationMap().