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 {
36  public:
39 
42 
45 
47  std::map< edm::Ptr< TTTrack< T > >, edm::Ptr< TrackingParticle > > getTTTrackToTrackingParticleMap() const
48  { return trackToTrackingParticleMap; }
49  std::map< edm::Ptr< TrackingParticle >, std::vector< edm::Ptr< TTTrack< T > > > > getTrackingParticleToTTTracksMap() const
51 
53  { trackToTrackingParticleMap = aMap; }
57  { theStubAssociationMap = aStubAssoMap; }
58 
61  std::vector< edm::Ptr< TTTrack< T > > > findTTTrackPtrs( edm::Ptr< TrackingParticle > aTrackingParticle ) const;
62 
64  bool isGenuine( edm::Ptr< TTTrack< T > > aTrack ) const;
65  bool isLooselyGenuine( edm::Ptr< TTTrack< T > > aTrack ) const;
66  bool isCombinatoric( edm::Ptr< TTTrack< T > > aTrack ) const;
67  bool isUnknown( edm::Ptr< TTTrack< T > > aTrack ) const;
68 
69  private:
71  std::map< edm::Ptr< TTTrack< T > >, edm::Ptr< TrackingParticle > > trackToTrackingParticleMap;
72  std::map< edm::Ptr< TrackingParticle >, std::vector< edm::Ptr< TTTrack< T > > > > trackingParticleToTrackVectorMap;
74 
75 };
76 
84 template< typename T >
88 {
92 }
93 
95 template< typename T >
97 
99 template< >
101 
102 template< >
103 std::vector< edm::Ptr< TTTrack< Ref_Phase2TrackerDigi_ > > > TTTrackAssociationMap< Ref_Phase2TrackerDigi_ >::findTTTrackPtrs( edm::Ptr< TrackingParticle > aTrackingParticle ) const;
104 
106 template< >
108 
110 template< >
112 
113 
114 template< >
116 
117 template< >
119 
120 #endif
121 
bool isCombinatoric(edm::Ptr< TTTrack< T > > aTrack) const
void setTTTrackToTrackingParticleMap(std::map< edm::Ptr< TTTrack< T > >, edm::Ptr< TrackingParticle > > aMap)
std::vector< edm::Ptr< TTTrack< T > > > findTTTrackPtrs(edm::Ptr< TrackingParticle > aTrackingParticle) const
edm::RefProd< TTStubAssociationMap< T > > theStubAssociationMap
NOTE: this is needed even if it seems not.
std::map< edm::Ptr< TTTrack< T > >, edm::Ptr< TrackingParticle > > trackToTrackingParticleMap
Data members.
~TTTrackAssociationMap()
Destructor.
void setTTStubAssociationMap(edm::RefProd< TTStubAssociationMap< T > > aStubAssoMap)
std::map< edm::Ptr< TrackingParticle >, std::vector< edm::Ptr< TTTrack< T > > > > trackingParticleToTrackVectorMap
void setTrackingParticleToTTTracksMap(std::map< edm::Ptr< TrackingParticle >, std::vector< edm::Ptr< TTTrack< T > > > > aMap)
bool isGenuine(edm::Ptr< TTTrack< T > > aTrack) const
MC Truth methods.
std::map< edm::Ptr< TTTrack< T > >, edm::Ptr< TrackingParticle > > getTTTrackToTrackingParticleMap() const
Maps.
TTTrackAssociationMap()
Constructors.
edm::Ptr< TrackingParticle > findTrackingParticlePtr(edm::Ptr< TTTrack< T > > aTrack) const
Operations.
Class to store the L1 Track Trigger tracks.
Definition: TTTrack.h:23
bool isUnknown(edm::Ptr< TTTrack< T > > aTrack) const
NOTE: this is needed even if it seems not.
std::map< edm::Ptr< TrackingParticle >, std::vector< edm::Ptr< TTTrack< T > > > > getTrackingParticleToTTTracksMap() const
bool isLooselyGenuine(edm::Ptr< TTTrack< T > > aTrack) const