22#ifndef TRIGINDETTRACK_TRUTH_H
23#define TRIGINDETTRACK_TRUTH_H
83 const std::vector< std::pair<unsigned int, unsigned int> >&
getFamilyTree()
const;
macros to associate a CLID to a type
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
a link optimized in size for a GenParticle in a McEventCollection
const HepMcParticleLink * bestSiMatch() const
returns best match according to the number of hits
unsigned int nrCommonSiHits(unsigned int i) const
returns number of common hits from true particle i and TrigInDetTrack
std::vector< std::pair< unsigned int, unsigned int > > m_family_tree
bool daughtersInChain(unsigned int) const
given index of a GenParticle which matches the track returns true if it has stable a daughter which a...
unsigned int nrCommonTRTHits(unsigned int i) const
returns number of common hits from true particle i and TrigInDetTrack
int m_best_TRT_match_hits
int motherIndexInChain(unsigned int) const
given index of a GenParticle which matches the track returns index of its mother,...
friend class TrigInDetTrackTruthCnv_p1_test
unsigned int nrCommonHits(unsigned int i) const
returns number of common hits from true particle i and TrigInDetTrack
int updateFamilyTree()
accessor to fill family tree: for each HepMcParticleLink in the internal vector of HepMC::GenParticle...
unsigned int nrCommonHitsBestSi() const
returns total number of common hits from best match true particle and TrigInDetTrack
const HepMcParticleLink * bestTRTMatch() const
returns best match according to the number of hits
unsigned int nrCommonHitsBestTRT() const
returns total number of common hits from best match true particle and TrigInDetTrack
const std::vector< std::pair< unsigned int, unsigned int > > & getFamilyTree() const
returns copy of family tree "map"
unsigned int nrMatches() const
returns number of matching particles
bool motherInChain(unsigned int) const
given index of a GenParticle which matches the track returns true if its mother also matches the trac...
std::vector< TrigIDHitStats > m_nr_common_hits
friend class TrigInDetTrackTruthCnv_p1
std::vector< unsigned int > daughterIndicesInChain(unsigned int) const
given index of a GenParticle which matches the track returns vector with indices of its daughters,...
int addMatch(HepMcParticleLink p_tru_part, TrigIDHitStats hits)
accessor to fill object: returns index of new entry in vectors
virtual ~TrigInDetTrackTruth()
TrigInDetTrackTruth()
Constructors: POOL needs default constructor.
const HepMcParticleLink * truthMatch(unsigned int i) const
returns matching true particle number i
TrigInDetTrackTruth(const HepMcParticleLink &p_tru_part, TrigIDHitStats hits)
initialized constructor: easier way to construct an instance if there is just one true particle assoc...
const HepMcParticleLink * bestMatch() const
returns best match according to the number of hits
std::vector< HepMcParticleLink > m_true_part_vec