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_
const TrackingParticlePtr & findTrackingParticlePtr(TTStubRefT< T > aStub) const
Operations.
std::map< TTStubRefT< T >, TrackingParticlePtr > MapStubToTP
NOTE: this is needed even if it seems not.
bool isCombinatoric(TTStubRefT< T > aStub) const
bool isUnknown(TTStubRefT< T > aStub) const
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_
static const std::vector< TTStubRefT< T > > nullVecStubRef_
const std::vector< TTStubRefT< T > > & findTTStubRefs(TrackingParticlePtr aTrackingParticle) const
~TTStubAssociationMap()
Destructor.
void setTrackingParticleToTTStubsMap(const MapTPToVecStub< T > &aMap)
static const TrackingParticlePtr nullTrackingParticlePtr_
Close class.
MapStubToTP< T > stubToTrackingParticleMap_
Data members.
void setTTStubToTrackingParticleMap(const MapStubToTP< T > &aMap)
bool isGenuine(TTStubRefT< T > aStub) const
MC truth.
const MapStubToTP< T > & getTTStubToTrackingParticleMap() const
Get/set stub <-> truth association maps.
const MapTPToVecStub< T > & getTrackingParticleToTTStubsMap() const
Stores association of Truth Particles (TP) to L1 Track-Trigger Stubs.