Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
EmbRecoMatchContainerv1 Class Reference

#include <coresoftware/blob/master/simulation/g4simulation/g4tracking/EmbRecoMatchContainerv1.h>

+ Inheritance diagram for EmbRecoMatchContainerv1:
+ Collaboration diagram for EmbRecoMatchContainerv1:

Classes

struct  CompShortToPair
 

Public Member Functions

void Reset () override
 reset method
 
unsigned short nMatches () const override
 add a match set
 
unsigned short nTruthUnmatched () const override
 
std::vector< unsigned short > & ids_TruthUnmatched () override
 
std::vector< unsigned short > ids_TruthMatched () const override
 
std::vector< unsigned short > ids_RecoMatched () const override
 
std::map< unsigned short,
unsigned short > & 
map_nRecoPerTruth () override
 
std::map< unsigned short,
unsigned short > & 
map_nTruthPerReco () override
 
ConstRange getMatchedRange () const override
 
VectorgetMatches () override
 
void addMatch (EmbRecoMatch *match) override
 
bool hasTruthMatch (unsigned short idEmb) override
 
bool hasRecoMatch (unsigned short idReco) override
 
EmbRecoMatchgetMatchTruth (unsigned short idEmb, unsigned short offset=0) override
 
EmbRecoMatchgetMatchReco (unsigned short idEmb, unsigned short offset=0) override
 
void identify (std::ostream &os=std::cout) const override
 
void sort () override
 
void checkfill_idsTruthUnmatched (unsigned short) override
 

Private Attributes

Vector m_data
 
std::vector< std::pair
< unsigned short, unsigned
short > > 
m_RecoToTruth
 
std::vector< unsigned short > m_idsTruthUnmatched
 
Map_nMatches m_nRecoPerTruth
 
Map_nMatches m_nTruthPerReco
 

Additional Inherited Members

- Public Types inherited from EmbRecoMatchContainer
using Vector = std::vector< EmbRecoMatch * >
 
using ConstIterator = Vector::const_iterator
 
using ConstRange = std::pair< ConstIterator, ConstIterator >
 
using Map_nMatches = std::map< unsigned short, unsigned short >
 
- Protected Member Functions inherited from EmbRecoMatchContainer
 EmbRecoMatchContainer ()=default
 

Detailed Description

Definition at line 9 of file EmbRecoMatchContainerv1.h.

View newest version in sPHENIX GitHub at line 9 of file EmbRecoMatchContainerv1.h

Member Function Documentation

void EmbRecoMatchContainerv1::addMatch ( EmbRecoMatch match)
overridevirtual

Reimplemented from EmbRecoMatchContainer.

Definition at line 18 of file EmbRecoMatchContainerv1.cc.

View newest version in sPHENIX GitHub at line 18 of file EmbRecoMatchContainerv1.cc

References EmbRecoMatch::idRecoTrack(), EmbRecoMatch::idTruthTrack(), m_data, m_nRecoPerTruth, m_nTruthPerReco, and m_RecoToTruth.

+ Here is the call graph for this function:

void EmbRecoMatchContainerv1::checkfill_idsTruthUnmatched ( unsigned short  id_true)
overridevirtual

Reimplemented from EmbRecoMatchContainer.

Definition at line 37 of file EmbRecoMatchContainerv1.cc.

View newest version in sPHENIX GitHub at line 37 of file EmbRecoMatchContainerv1.cc

References m_idsTruthUnmatched, and m_nRecoPerTruth.

ConstRange EmbRecoMatchContainerv1::getMatchedRange ( ) const
inlineoverridevirtual

Reimplemented from EmbRecoMatchContainer.

Definition at line 24 of file EmbRecoMatchContainerv1.h.

View newest version in sPHENIX GitHub at line 24 of file EmbRecoMatchContainerv1.h

References m_data.

Vector& EmbRecoMatchContainerv1::getMatches ( )
inlineoverridevirtual

Reimplemented from EmbRecoMatchContainer.

Definition at line 25 of file EmbRecoMatchContainerv1.h.

View newest version in sPHENIX GitHub at line 25 of file EmbRecoMatchContainerv1.h

References m_data.

EmbRecoMatch * EmbRecoMatchContainerv1::getMatchReco ( unsigned short  idEmb,
unsigned short  offset = 0 
)
overridevirtual

Reimplemented from EmbRecoMatchContainer.

Definition at line 76 of file EmbRecoMatchContainerv1.cc.

View newest version in sPHENIX GitHub at line 76 of file EmbRecoMatchContainerv1.cc

References getMatchTruth(), m_RecoToTruth, and offset.

+ Here is the call graph for this function:

EmbRecoMatch * EmbRecoMatchContainerv1::getMatchTruth ( unsigned short  idEmb,
unsigned short  offset = 0 
)
overridevirtual

Reimplemented from EmbRecoMatchContainer.

Definition at line 64 of file EmbRecoMatchContainerv1.cc.

View newest version in sPHENIX GitHub at line 64 of file EmbRecoMatchContainerv1.cc

References m_data, and offset.

Referenced by getMatchReco().

+ Here is the caller graph for this function:

bool EmbRecoMatchContainerv1::hasRecoMatch ( unsigned short  idReco)
overridevirtual

Reimplemented from EmbRecoMatchContainer.

Definition at line 91 of file EmbRecoMatchContainerv1.cc.

View newest version in sPHENIX GitHub at line 91 of file EmbRecoMatchContainerv1.cc

References m_RecoToTruth.

bool EmbRecoMatchContainerv1::hasTruthMatch ( unsigned short  idEmb)
overridevirtual

Reimplemented from EmbRecoMatchContainer.

Definition at line 87 of file EmbRecoMatchContainerv1.cc.

View newest version in sPHENIX GitHub at line 87 of file EmbRecoMatchContainerv1.cc

References m_data.

void EmbRecoMatchContainerv1::identify ( std::ostream &  os = std::cout) const
overridevirtual

identify Function from PHObject

Parameters
osOutput Stream

Reimplemented from EmbRecoMatchContainer.

Definition at line 95 of file EmbRecoMatchContainerv1.cc.

View newest version in sPHENIX GitHub at line 95 of file EmbRecoMatchContainerv1.cc

References Acts::UnitConstants::m, m_data, m_idsTruthUnmatched, n, nMatches(), and nTruthUnmatched().

+ Here is the call graph for this function:

std::vector< unsigned short > EmbRecoMatchContainerv1::ids_RecoMatched ( ) const
overridevirtual

Reimplemented from EmbRecoMatchContainer.

Definition at line 58 of file EmbRecoMatchContainerv1.cc.

View newest version in sPHENIX GitHub at line 58 of file EmbRecoMatchContainerv1.cc

References m_RecoToTruth, and vec.

std::vector< unsigned short > EmbRecoMatchContainerv1::ids_TruthMatched ( ) const
overridevirtual

Reimplemented from EmbRecoMatchContainer.

Definition at line 52 of file EmbRecoMatchContainerv1.cc.

View newest version in sPHENIX GitHub at line 52 of file EmbRecoMatchContainerv1.cc

References train_ambiguity_solver::id, m_data, and vec.

std::vector<unsigned short>& EmbRecoMatchContainerv1::ids_TruthUnmatched ( )
inlineoverridevirtual

Reimplemented from EmbRecoMatchContainer.

Definition at line 17 of file EmbRecoMatchContainerv1.h.

View newest version in sPHENIX GitHub at line 17 of file EmbRecoMatchContainerv1.h

References m_idsTruthUnmatched.

std::map<unsigned short, unsigned short>& EmbRecoMatchContainerv1::map_nRecoPerTruth ( )
inlineoverridevirtual

Reimplemented from EmbRecoMatchContainer.

Definition at line 21 of file EmbRecoMatchContainerv1.h.

View newest version in sPHENIX GitHub at line 21 of file EmbRecoMatchContainerv1.h

References m_nRecoPerTruth.

std::map<unsigned short, unsigned short>& EmbRecoMatchContainerv1::map_nTruthPerReco ( )
inlineoverridevirtual

Reimplemented from EmbRecoMatchContainer.

Definition at line 22 of file EmbRecoMatchContainerv1.h.

View newest version in sPHENIX GitHub at line 22 of file EmbRecoMatchContainerv1.h

References m_nTruthPerReco.

unsigned short EmbRecoMatchContainerv1::nMatches ( ) const
inlineoverridevirtual

add a match set

Reimplemented from EmbRecoMatchContainer.

Definition at line 15 of file EmbRecoMatchContainerv1.h.

View newest version in sPHENIX GitHub at line 15 of file EmbRecoMatchContainerv1.h

References m_data.

Referenced by identify().

+ Here is the caller graph for this function:

unsigned short EmbRecoMatchContainerv1::nTruthUnmatched ( ) const
inlineoverridevirtual

Reimplemented from EmbRecoMatchContainer.

Definition at line 16 of file EmbRecoMatchContainerv1.h.

View newest version in sPHENIX GitHub at line 16 of file EmbRecoMatchContainerv1.h

References m_idsTruthUnmatched.

Referenced by identify().

+ Here is the caller graph for this function:

void EmbRecoMatchContainerv1::Reset ( )
overridevirtual

reset method

Reimplemented from EmbRecoMatchContainer.

Definition at line 43 of file EmbRecoMatchContainerv1.cc.

View newest version in sPHENIX GitHub at line 43 of file EmbRecoMatchContainerv1.cc

References Acts::UnitConstants::m, m_data, m_idsTruthUnmatched, m_nRecoPerTruth, m_nTruthPerReco, and m_RecoToTruth.

void EmbRecoMatchContainerv1::sort ( )
overridevirtual

Reimplemented from EmbRecoMatchContainer.

Definition at line 12 of file EmbRecoMatchContainerv1.cc.

View newest version in sPHENIX GitHub at line 12 of file EmbRecoMatchContainerv1.cc

References m_data, m_idsTruthUnmatched, m_RecoToTruth, and Acts::Experimental::detail::BlueprintHelper::sort().

+ Here is the call graph for this function:

Member Data Documentation

Vector EmbRecoMatchContainerv1::m_data
private

Definition at line 47 of file EmbRecoMatchContainerv1.h.

View newest version in sPHENIX GitHub at line 47 of file EmbRecoMatchContainerv1.h

Referenced by addMatch(), getMatchedRange(), getMatches(), getMatchTruth(), hasTruthMatch(), identify(), ids_TruthMatched(), nMatches(), Reset(), and sort().

std::vector<unsigned short> EmbRecoMatchContainerv1::m_idsTruthUnmatched
private

Definition at line 49 of file EmbRecoMatchContainerv1.h.

View newest version in sPHENIX GitHub at line 49 of file EmbRecoMatchContainerv1.h

Referenced by checkfill_idsTruthUnmatched(), identify(), ids_TruthUnmatched(), nTruthUnmatched(), Reset(), and sort().

Map_nMatches EmbRecoMatchContainerv1::m_nRecoPerTruth
private

Definition at line 50 of file EmbRecoMatchContainerv1.h.

View newest version in sPHENIX GitHub at line 50 of file EmbRecoMatchContainerv1.h

Referenced by addMatch(), checkfill_idsTruthUnmatched(), map_nRecoPerTruth(), and Reset().

Map_nMatches EmbRecoMatchContainerv1::m_nTruthPerReco
private

Definition at line 51 of file EmbRecoMatchContainerv1.h.

View newest version in sPHENIX GitHub at line 51 of file EmbRecoMatchContainerv1.h

Referenced by addMatch(), map_nTruthPerReco(), and Reset().

std::vector<std::pair<unsigned short, unsigned short> > EmbRecoMatchContainerv1::m_RecoToTruth
private

Definition at line 48 of file EmbRecoMatchContainerv1.h.

View newest version in sPHENIX GitHub at line 48 of file EmbRecoMatchContainerv1.h

Referenced by addMatch(), getMatchReco(), hasRecoMatch(), ids_RecoMatched(), Reset(), and sort().


The documentation for this class was generated from the following files: