|
|
Go to the documentation of this file.
13 #ifndef L1_TRACK_TRIGGER_STUB_ASSOCIATION_FORMAT_H
14 #define L1_TRACK_TRIGGER_STUB_ASSOCIATION_FORMAT_H
52 std::map<edm::Ptr<TrackingParticle>, std::vector<edm::Ref<edmNew::DetSetVector<TTStub<T> >,
TTStub<T> > > >
83 std::map<edm::Ptr<TrackingParticle>, std::vector<edm::Ref<edmNew::DetSetVector<TTStub<T> >,
TTStub<T> > > >
101 stubToTrackingParticleMap.clear();
102 trackingParticleToStubVectorMap.clear();
104 theClusterAssociationMap = *aRefProd;
108 template <
typename T>
112 template <
typename T>
115 if (stubToTrackingParticleMap.find(aStub) != stubToTrackingParticleMap.end()) {
116 return stubToTrackingParticleMap.find(aStub)->second;
124 template <
typename T>
127 if (trackingParticleToStubVectorMap.find(aTrackingParticle) != trackingParticleToStubVectorMap.end()) {
128 return trackingParticleToStubVectorMap.find(aTrackingParticle)->second;
131 std::vector<edm::Ref<edmNew::DetSetVector<TTStub<T> >,
TTStub<T> > > tempVector;
137 template <
typename T>
140 if ((this->findTrackingParticlePtr(aStub)).isNull())
146 template <
typename T>
149 if (this->isGenuine(aStub))
152 if (this->isUnknown(aStub))
158 template <
typename T>
164 if (theClusterAssociationMap.isNull()) {
168 if (theClusterAssociationMap->isUnknown(aStub->clusterRef(0)) &&
169 theClusterAssociationMap->isUnknown(aStub->clusterRef(1)))
bool isGenuine(edm::Ref< edmNew::DetSetVector< TTStub< T > >, TTStub< T > > aStub) const
MC Truth methods.
NOTE: this is needed even if it seems not.
std::vector< edm::Ref< edmNew::DetSetVector< TTStub< T > >, TTStub< T > > > findTTStubRefs(edm::Ptr< TrackingParticle > aTrackingParticle) const
~TTStubAssociationMap()
Destructor.
edm::Ptr< TrackingParticle > findTrackingParticlePtr(edm::Ref< edmNew::DetSetVector< TTStub< T > >, TTStub< T > > aStub) const
Operations.
std::map< edm::Ref< edmNew::DetSetVector< TTStub< T > >, TTStub< T > >, edm::Ptr< TrackingParticle > > stubToTrackingParticleMap
Data members.
NOTE: this is needed even if it seems not.
Class to store the L1 Track Trigger stubs.
std::map< edm::Ptr< TrackingParticle >, std::vector< edm::Ref< edmNew::DetSetVector< TTStub< T > >, TTStub< T > > > > trackingParticleToStubVectorMap
void setTTStubToTrackingParticleMap(std::map< edm::Ref< edmNew::DetSetVector< TTStub< T > >, TTStub< T > >, edm::Ptr< TrackingParticle > > aMap)
bool isCombinatoric(edm::Ref< edmNew::DetSetVector< TTStub< T > >, TTStub< T > > aStub) const
void setTrackingParticleToTTStubsMap(std::map< edm::Ptr< TrackingParticle >, std::vector< edm::Ref< edmNew::DetSetVector< TTStub< T > >, TTStub< T > > > > aMap)
edm::RefProd< TTClusterAssociationMap< T > > theClusterAssociationMap
bool isUnknown(edm::Ref< edmNew::DetSetVector< TTStub< T > >, TTStub< T > > aStub) const
std::map< edm::Ptr< TrackingParticle >, std::vector< edm::Ref< edmNew::DetSetVector< TTStub< T > >, TTStub< T > > > > getTrackingParticleToTTStubsMap() const
std::map< edm::Ref< edmNew::DetSetVector< TTStub< T > >, TTStub< T > >, edm::Ptr< TrackingParticle > > getTTStubToTrackingParticleMap() const
Maps.
TTStubAssociationMap()
Constructors.
void setTTClusterAssociationMap(edm::RefProd< TTClusterAssociationMap< T > > aCluAssoMap)