18 #ifndef L1_TRACK_TRIGGER_STUB_ASSOCIATION_FORMAT_H
19 #define L1_TRACK_TRIGGER_STUB_ASSOCIATION_FORMAT_H
46 using MapTPToVecStub = std::map<TrackingParticlePtr, std::vector<TTStubRefT<T>>>;
121 template <
typename T>
123 template <
typename T>
128 template <
typename T>
134 template <
typename T>
138 template <
typename T>
140 if (stubToTrackingParticleMap_.find(aStub) != stubToTrackingParticleMap_.end()) {
141 return stubToTrackingParticleMap_.find(aStub)->second;
143 return nullTrackingParticlePtr_;
147 template <
typename T>
149 if (trackingParticleToStubVectorMap_.find(aTrackingParticle) != trackingParticleToStubVectorMap_.end()) {
150 return trackingParticleToStubVectorMap_.find(aTrackingParticle)->second;
152 return nullVecStubRef_;
157 template <
typename T>
160 if ((this->findTrackingParticlePtr(aStub)).isNull())
166 template <
typename T>
169 if (this->isGenuine(aStub))
172 if (this->isUnknown(aStub))
178 template <
typename T>
183 if (theClusterAssociationMap_.isNull()) {
187 if (theClusterAssociationMap_->isUnknown(aStub->clusterRef(0)) &&
188 theClusterAssociationMap_->isUnknown(aStub->clusterRef(1)))
TTStubAssociationMap()
Constructors.
MapTPToVecStub< T > trackingParticleToStubVectorMap_
std::map< TTStubRefT< T >, TrackingParticlePtr > MapStubToTP
NOTE: this is needed even if it seems not.
const MapTPToVecStub< T > & getTrackingParticleToTTStubsMap() const
const TrackingParticlePtr & findTrackingParticlePtr(TTStubRefT< T > aStub) const
Operations.
std::map< TrackingParticlePtr, std::vector< TTStubRefT< T >>> MapTPToVecStub
void setTTClusterAssociationMap(edm::RefProd< TTClusterAssociationMap< T >> aCluAssoMap)
Set cluster <-> truth association object.
Stores association of Truth Particles (TP) to L1 Track-Trigger Clusters.
edm::RefProd< TTClusterAssociationMap< T > > theClusterAssociationMap_
bool isUnknown(TTStubRefT< T > aStub) const
static const std::vector< TTStubRefT< T > > nullVecStubRef_
~TTStubAssociationMap()
Destructor.
bool isGenuine(TTStubRefT< T > aStub) const
MC truth.
void setTrackingParticleToTTStubsMap(const MapTPToVecStub< T > &aMap)
static const TrackingParticlePtr nullTrackingParticlePtr_
Close class.
const std::vector< TTStubRefT< T > > & findTTStubRefs(TrackingParticlePtr aTrackingParticle) const
MapStubToTP< T > stubToTrackingParticleMap_
Data members.
void setTTStubToTrackingParticleMap(const MapStubToTP< T > &aMap)
const MapStubToTP< T > & getTTStubToTrackingParticleMap() const
Get/set stub <-> truth association maps.
bool isCombinatoric(TTStubRefT< T > aStub) const
Stores association of Truth Particles (TP) to L1 Track-Trigger Stubs.