CMS 3D CMS Logo

TTTrackAssociationMap.h
Go to the documentation of this file.
1 
13 #ifndef L1_TRACK_TRIGGER_TRACK_ASSOCIATION_FORMAT_H
14 #define L1_TRACK_TRIGGER_TRACK_ASSOCIATION_FORMAT_H
15 
32 
33 template <typename T>
35 public:
38 
41 
44 
46  std::map<edm::Ptr<TTTrack<T> >, edm::Ptr<TrackingParticle> > getTTTrackToTrackingParticleMap() const {
48  }
49  std::map<edm::Ptr<TrackingParticle>, std::vector<edm::Ptr<TTTrack<T> > > > getTrackingParticleToTTTracksMap() const {
51  }
52 
55  }
57  std::map<edm::Ptr<TrackingParticle>, std::vector<edm::Ptr<TTTrack<T> > > > aMap) {
59  }
61  theStubAssociationMap = aStubAssoMap;
62  }
63 
66  std::vector<edm::Ptr<TTTrack<T> > > findTTTrackPtrs(edm::Ptr<TrackingParticle> aTrackingParticle) const;
67 
69  bool isGenuine(edm::Ptr<TTTrack<T> > aTrack) const;
70  bool isLooselyGenuine(edm::Ptr<TTTrack<T> > aTrack) const;
71  bool isCombinatoric(edm::Ptr<TTTrack<T> > aTrack) const;
72  bool isUnknown(edm::Ptr<TTTrack<T> > aTrack) const;
73 
74  void setAllowOneFalse2SStub(bool allowFalse2SStub);
76 
77 private:
79  std::map<edm::Ptr<TTTrack<T> >, edm::Ptr<TrackingParticle> > trackToTrackingParticleMap;
80  std::map<edm::Ptr<TrackingParticle>, std::vector<edm::Ptr<TTTrack<T> > > > trackingParticleToTrackVectorMap;
82 
84 
85 };
86 
94 template <typename T>
99  trackToTrackingParticleMap.clear();
100  trackingParticleToTrackVectorMap.clear();
101 }
102 
104 template <typename T>
106 
108 template <>
111 
112 template <>
113 std::vector<edm::Ptr<TTTrack<Ref_Phase2TrackerDigi_> > > TTTrackAssociationMap<Ref_Phase2TrackerDigi_>::findTTTrackPtrs(
114  edm::Ptr<TrackingParticle> aTrackingParticle) const;
115 
117 template <>
120 
122 template <>
124 
125 template <>
128 
129 template <>
131 
132 #endif
edm::RefProd
Definition: EDProductfwd.h:25
TTTrackAssociationMap::~TTTrackAssociationMap
~TTTrackAssociationMap()
Destructor.
Definition: TTTrackAssociationMap.h:105
TTTrackAssociationMap::trackToTrackingParticleMap
std::map< edm::Ptr< TTTrack< T > >, edm::Ptr< TrackingParticle > > trackToTrackingParticleMap
Data members.
Definition: TTTrackAssociationMap.h:79
TTTypes.h
TTTrackAssociationMap::trackingParticleToTrackVectorMap
std::map< edm::Ptr< TrackingParticle >, std::vector< edm::Ptr< TTTrack< T > > > > trackingParticleToTrackVectorMap
Definition: TTTrackAssociationMap.h:80
TTTrackAssociationMap::isLooselyGenuine
bool isLooselyGenuine(edm::Ptr< TTTrack< T > > aTrack) const
TTTrack
Class to store the L1 Track Trigger tracks.
Definition: TTTrack.h:26
TTTrackAssociationMap::AllowOneFalse2SStub
bool AllowOneFalse2SStub
Definition: TTTrackAssociationMap.h:83
TTTrackAssociationMap::getAllowOneFalse2SStub
bool getAllowOneFalse2SStub()
TTTrackAssociationMap::findTrackingParticlePtr
edm::Ptr< TrackingParticle > findTrackingParticlePtr(edm::Ptr< TTTrack< T > > aTrack) const
Operations.
TTStubAssociationMap
NOTE: this is needed even if it seems not.
Definition: TTStubAssociationMap.h:36
TTTrackAssociationMap::isUnknown
bool isUnknown(edm::Ptr< TTTrack< T > > aTrack) const
TTTrackAssociationMap::findTTTrackPtrs
std::vector< edm::Ptr< TTTrack< T > > > findTTTrackPtrs(edm::Ptr< TrackingParticle > aTrackingParticle) const
TTTrackAssociationMap::setTTStubAssociationMap
void setTTStubAssociationMap(edm::RefProd< TTStubAssociationMap< T > > aStubAssoMap)
Definition: TTTrackAssociationMap.h:60
TTTrackAssociationMap
NOTE: this is needed even if it seems not.
Definition: TTTrackAssociationMap.h:34
TTTrackAssociationMap::isGenuine
bool isGenuine(edm::Ptr< TTTrack< T > > aTrack) const
MC Truth methods.
TTTrackAssociationMap::isCombinatoric
bool isCombinatoric(edm::Ptr< TTTrack< T > > aTrack) const
Phase2TrackerDigi.h
TTTrackAssociationMap::TTTrackAssociationMap
TTTrackAssociationMap()
Constructors.
Definition: TTTrackAssociationMap.h:97
TTTrackAssociationMap::setTTTrackToTrackingParticleMap
void setTTTrackToTrackingParticleMap(std::map< edm::Ptr< TTTrack< T > >, edm::Ptr< TrackingParticle > > aMap)
Definition: TTTrackAssociationMap.h:53
Ptr.h
TTStubAssociationMap.h
MeasurementPoint.h
DetSetVector.h
edm::Ptr< TrackingParticle >
TrackingParticle.h
Ref.h
DetId.h
TTTrackAssociationMap::theStubAssociationMap
edm::RefProd< TTStubAssociationMap< T > > theStubAssociationMap
Definition: TTTrackAssociationMap.h:81
DetSet.h
genParticles_cff.map
map
Definition: genParticles_cff.py:11
SimTrack.h
TTTrackAssociationMap::getTTTrackToTrackingParticleMap
std::map< edm::Ptr< TTTrack< T > >, edm::Ptr< TrackingParticle > > getTTTrackToTrackingParticleMap() const
Maps.
Definition: TTTrackAssociationMap.h:46
TTTrackAssociationMap::setAllowOneFalse2SStub
void setAllowOneFalse2SStub(bool allowFalse2SStub)
GlobalPoint.h
TTTrackAssociationMap::setTrackingParticleToTTTracksMap
void setTrackingParticleToTTTracksMap(std::map< edm::Ptr< TrackingParticle >, std::vector< edm::Ptr< TTTrack< T > > > > aMap)
Definition: TTTrackAssociationMap.h:56
SimTrackContainer.h
DetSetVectorNew.h
TTTrackAssociationMap::getTrackingParticleToTTTracksMap
std::map< edm::Ptr< TrackingParticle >, std::vector< edm::Ptr< TTTrack< T > > > > getTrackingParticleToTTTracksMap() const
Definition: TTTrackAssociationMap.h:49
EncodedEventId.h