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.
TTClusterAssociationMap< T >::~TTClusterAssociationMap | ( | ) |
edm::Ptr< TrackingParticle > TTClusterAssociationMap< T >::findTrackingParticlePtr | ( | edm::Ref< edmNew::DetSetVector< TTCluster< T > >, TTCluster< T > > | aCluster | ) | const |
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.
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.
|
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 edm::Ptr< T >::get(), edm::Ptr< T >::isNull(), and tier0::unique().
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 NEW 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 edm::Ptr< T >::get(), edm::Ptr< T >::isNull(), TrackingParticle::p4(), cmsswSequenceInfo::tp, and tier0::unique().
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 edm::Ptr< T >::get(), edm::Ptr< T >::isNull(), and tier0::unique().
|
inline |
Definition at line 58 of file TTClusterAssociationMap.h.
References 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 >::getTTClusterToTrackingParticlesMap(), and TTClusterAssociationMap< T >::setTTClusterToTrackingParticlesMap().
|
private |
Definition at line 84 of file TTClusterAssociationMap.h.
|
private |
Definition at line 82 of file TTClusterAssociationMap.h.
Referenced by TTClusterAssociationMap< T >::getTrackingParticleToTTClustersMap(), and TTClusterAssociationMap< T >::setTrackingParticleToTTClustersMap().