NOTE: this is needed even if it seems not. More...
#include <TTClusterAssociationMap.h>
Private Attributes | |
std::map< edm::Ref< edmNew::DetSetVector< TTCluster< T > >, TTCluster< T > >, std::vector< edm::Ptr< TrackingParticle > > > | clusterToTrackingParticleVectorMap |
Data members. More... | |
int | nclus |
std::map< edm::Ptr< TrackingParticle >, std::vector< edm::Ref< edmNew::DetSetVector< TTCluster< T > >, TTCluster< T > > > > | trackingParticleToClusterVectorMap |
NOTE: this is needed even if it seems not.
Class to store the MC truth of L1 Track Trigger clusters.
After moving from SimDataFormats to DataFormats, the template structure of the class was maintained in order to accomodate any types other than PixelDigis in case there is such a need in the future.
Definition at line 33 of file TTClusterAssociationMap.h.
TTClusterAssociationMap< T >::TTClusterAssociationMap | ( | ) |
Constructors.
Close class.
Implementation of methods
Here, in the header file, the methods which do not depend on the specific type <T> that can fit the template. Other methods, with type-specific features, are implemented in the source file.Default Constructor NOTE: to be used with setSomething(...) methods
Set default data members
Definition at line 98 of file TTClusterAssociationMap.h.
References TTClusterAssociationMap< T >::clusterToTrackingParticleVectorMap, TTClusterAssociationMap< T >::nclus, and TTClusterAssociationMap< T >::trackingParticleToClusterVectorMap.
TTClusterAssociationMap< T >::~TTClusterAssociationMap | ( | ) |
edm::Ptr< TrackingParticle > TTClusterAssociationMap< T >::findTrackingParticlePtr | ( | edm::Ref< edmNew::DetSetVector< TTCluster< T > >, TTCluster< T > > | aCluster | ) | const |
Definition at line 299 of file TTClusterAssociationMap.h.
References TTClusterAssociationMap< T >::findTrackingParticlePtrs(), TTClusterAssociationMap< T >::isGenuine(), and groupFilesInBlocks::temp.
Referenced by TTClusterAssociationMap< T >::setTrackingParticleToTTClustersMap().
std::vector< edm::Ptr< TrackingParticle > > TTClusterAssociationMap< T >::findTrackingParticlePtrs | ( | edm::Ref< edmNew::DetSetVector< TTCluster< T > >, TTCluster< T > > | aCluster | ) | const |
Operations.
Definition at line 123 of file TTClusterAssociationMap.h.
References TTClusterAssociationMap< T >::clusterToTrackingParticleVectorMap.
Referenced by TTClusterAssociationMap< T >::findTrackingParticlePtr(), TTClusterAssociationMap< T >::isCombinatoric(), TTClusterAssociationMap< T >::isGenuine(), TTClusterAssociationMap< T >::isUnknown(), and TTClusterAssociationMap< T >::setTrackingParticleToTTClustersMap().
std::vector< edm::Ref< edmNew::DetSetVector< TTCluster< T > >, TTCluster< T > > > TTClusterAssociationMap< T >::findTTClusterRefs | ( | edm::Ptr< TrackingParticle > | aTrackingParticle | ) | const |
Operations.
Definition at line 112 of file TTClusterAssociationMap.h.
References TTClusterAssociationMap< T >::trackingParticleToClusterVectorMap.
Referenced by TTClusterAssociationMap< T >::setTrackingParticleToTTClustersMap().
|
inline |
Definition at line 50 of file TTClusterAssociationMap.h.
References TTClusterAssociationMap< T >::trackingParticleToClusterVectorMap.
|
inline |
Maps.
Data members: getABC( ... ) Helper methods: findABC( ... )
Definition at line 46 of file TTClusterAssociationMap.h.
References TTClusterAssociationMap< T >::clusterToTrackingParticleVectorMap.
bool TTClusterAssociationMap< T >::isCombinatoric | ( | edm::Ref< edmNew::DetSetVector< TTCluster< T > >, TTCluster< T > > | aCluster | ) | const |
Get the TrackingParticles
If the vector is empty, then the cluster is UNKNOWN
If we are here, it means there are some TrackingParticles
Loop over the TrackingParticles
Get the TrackingParticle
Count the NULL TrackingParticles
Store the pointers (addresses) of the TrackingParticle to be able to count how many different there are
Count how many different TrackingParticle there are
COMBINATORIC means no NULLs and more than one good TP OR, in alternative, only one good TP but non-zero NULLS
Definition at line 250 of file TTClusterAssociationMap.h.
References TTClusterAssociationMap< T >::findTrackingParticlePtrs(), edm::Ptr< T >::get(), TTClusterAssociationMap< T >::isGenuine(), edm::Ptr< T >::isNull(), TTClusterAssociationMap< T >::isUnknown(), and tier0::unique().
Referenced by TTClusterAssociationMap< T >::setTrackingParticleToTTClustersMap().
bool TTClusterAssociationMap< T >::isGenuine | ( | edm::Ref< edmNew::DetSetVector< TTCluster< T > >, TTCluster< T > > | aCluster | ) | const |
MC Truth methods.
MC truth Table to define Genuine, Combinatoric and Unknown
N = number of NULL TP pointers D = number of GOOD TP pointers different from each other
>0 | U | C | CNEW SV 060617
>0 | U | G | G | C
Get the TrackingParticles
If the vector is empty, then the cluster is UNKNOWN
If we are here, it means there are some TrackingParticles
Loop over the TrackingParticles
Get the TrackingParticle
Count the NULL TrackingParticles
Get the TrackingParticle
Count the NULL TrackingParticles
Store the pointers (addresses) of the TrackingParticle to be able to count how many different there are
Count how many different TrackingParticle there are
Definition at line 157 of file TTClusterAssociationMap.h.
References TTClusterAssociationMap< T >::findTrackingParticlePtrs(), edm::Ptr< T >::get(), edm::Ptr< T >::isNull(), TrackingParticle::p4(), and tier0::unique().
Referenced by TTClusterAssociationMap< T >::findTrackingParticlePtr(), TTClusterAssociationMap< T >::isCombinatoric(), and TTClusterAssociationMap< T >::setTrackingParticleToTTClustersMap().
bool TTClusterAssociationMap< T >::isUnknown | ( | edm::Ref< edmNew::DetSetVector< TTCluster< T > >, TTCluster< T > > | aCluster | ) | const |
Get the TrackingParticles
If the vector is empty, then the cluster is UNKNOWN
If we are here, it means there are some TrackingParticles
Loop over the TrackingParticles
Get the TrackingParticle
Count the non-NULL TrackingParticles
Store the pointers (addresses) of the TrackingParticle to be able to count how many different there are
Count how many different TrackingParticle there are
UNKNOWN means no good TP is found
Definition at line 215 of file TTClusterAssociationMap.h.
References TTClusterAssociationMap< T >::findTrackingParticlePtrs(), edm::Ptr< T >::get(), edm::Ptr< T >::isNull(), and tier0::unique().
Referenced by TTClusterAssociationMap< T >::isCombinatoric(), TTStubAssociationMap< T >::isUnknown(), and TTClusterAssociationMap< T >::setTrackingParticleToTTClustersMap().
|
inline |
Definition at line 58 of file TTClusterAssociationMap.h.
References TTClusterAssociationMap< T >::findTrackingParticlePtr(), TTClusterAssociationMap< T >::findTrackingParticlePtrs(), TTClusterAssociationMap< T >::findTTClusterRefs(), TTClusterAssociationMap< T >::isCombinatoric(), TTClusterAssociationMap< T >::isGenuine(), TTClusterAssociationMap< T >::isUnknown(), and TTClusterAssociationMap< T >::trackingParticleToClusterVectorMap.
|
inline |
Definition at line 54 of file TTClusterAssociationMap.h.
References TTClusterAssociationMap< T >::clusterToTrackingParticleVectorMap.
|
private |
Data members.
Definition at line 80 of file TTClusterAssociationMap.h.
Referenced by TTClusterAssociationMap< T >::findTrackingParticlePtrs(), TTClusterAssociationMap< T >::getTTClusterToTrackingParticlesMap(), TTClusterAssociationMap< T >::setTTClusterToTrackingParticlesMap(), and TTClusterAssociationMap< T >::TTClusterAssociationMap().
|
private |
Definition at line 84 of file TTClusterAssociationMap.h.
Referenced by TTClusterAssociationMap< T >::TTClusterAssociationMap().
|
private |
Definition at line 82 of file TTClusterAssociationMap.h.
Referenced by TTClusterAssociationMap< T >::findTTClusterRefs(), TTClusterAssociationMap< T >::getTrackingParticleToTTClustersMap(), TTClusterAssociationMap< T >::setTrackingParticleToTTClustersMap(), and TTClusterAssociationMap< T >::TTClusterAssociationMap().