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