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... | |
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 83 of file TTClusterAssociationMap.h.
References TTClusterAssociationMap< T >::clusterToTrackingParticleVectorMap, 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 260 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 109 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 96 of file TTClusterAssociationMap.h.
References TTClusterAssociationMap< T >::trackingParticleToClusterVectorMap.
Referenced by TTClusterAssociationMap< T >::setTrackingParticleToTTClustersMap().
|
inline |
Definition at line 48 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 216 of file TTClusterAssociationMap.h.
References TTClusterAssociationMap< T >::findTrackingParticlePtrs(), edm::Ptr< T >::get(), edm::Ptr< T >::isNull(), 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 | 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
Store the pointers (addresses) of the TrackingParticle to be able to count how many different there are
Count how many different TrackingParticle there are
GENUINE means no NULLs and only one good TP
Definition at line 135 of file TTClusterAssociationMap.h.
References TTClusterAssociationMap< T >::findTrackingParticlePtrs(), edm::Ptr< T >::get(), edm::Ptr< T >::isNull(), and tier0::unique().
Referenced by TTClusterAssociationMap< T >::findTrackingParticlePtr(), 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 178 of file TTClusterAssociationMap.h.
References TTClusterAssociationMap< T >::findTrackingParticlePtrs(), edm::Ptr< T >::get(), edm::Ptr< T >::isNull(), and tier0::unique().
Referenced by TTStubAssociationMap< T >::isUnknown(), and TTClusterAssociationMap< T >::setTrackingParticleToTTClustersMap().
|
inline |
Definition at line 53 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 51 of file TTClusterAssociationMap.h.
References TTClusterAssociationMap< T >::clusterToTrackingParticleVectorMap.
|
private |
Data members.
Definition at line 68 of file TTClusterAssociationMap.h.
Referenced by TTClusterAssociationMap< T >::findTrackingParticlePtrs(), TTClusterAssociationMap< T >::getTTClusterToTrackingParticlesMap(), TTClusterAssociationMap< T >::setTTClusterToTrackingParticlesMap(), and TTClusterAssociationMap< T >::TTClusterAssociationMap().
|
private |
Definition at line 69 of file TTClusterAssociationMap.h.
Referenced by TTClusterAssociationMap< T >::findTTClusterRefs(), TTClusterAssociationMap< T >::getTrackingParticleToTTClustersMap(), TTClusterAssociationMap< T >::setTrackingParticleToTTClustersMap(), and TTClusterAssociationMap< T >::TTClusterAssociationMap().