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

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

+ Inheritance diagram for EmbRecoMatchv1:
+ Collaboration diagram for EmbRecoMatchv1:

Public Member Functions

 ~EmbRecoMatchv1 () override=default
 
unsigned short idTruthTrack () const override
 
unsigned short nClustersTruth () const override
 
unsigned short nMatches () const override
 
unsigned short idRecoTrack (unsigned short i=0) const override
 
unsigned short idTpcTrackSeed (unsigned short i=0) const override
 
unsigned short idSvtxTrackSeed (unsigned short i=0) const override
 
unsigned short nClustersReco (unsigned short i=0) const override
 
unsigned short nClustersMatched (unsigned short i=0) const override
 
 EmbRecoMatchv1 (unsigned short id_truth=USHRT_MAX, unsigned short id_reco=USHRT_MAX, unsigned short nclustruth=USHRT_MAX, unsigned short nclusreco=USHRT_MAX, unsigned short nclusmatched=USHRT_MAX, unsigned short id_tpctrackseed=USHRT_MAX, unsigned short id_svtxtrackseed=USHRT_MAX)
 
unsigned short add_match (unsigned short id_reco=USHRT_MAX, unsigned short nclusreco=USHRT_MAX, unsigned short nclusmatched=USHRT_MAX, unsigned short id_tpctrackseed=USHRT_MAX, unsigned short id_svtxtrackseed=USHRT_MAX)
 
void identify (std::ostream &os=std::cout) const override
 
- Public Member Functions inherited from EmbRecoMatch
 EmbRecoMatch ()
 
 ~EmbRecoMatch () override=default
 
virtual float nRatioMatched () const
 
- Public Member Functions inherited from PHObject
 PHObject ()
 ctor
 
 ~PHObject () override
 dtor
 
virtual PHObjectCloneMe () const
 Virtual copy constructor.
 
virtual PHObjectclone () const final
 
PHObjectClone (const char *newname="") const final
 
void Copy (TObject &object) const final
 
virtual void Reset ()
 Clear Event.
 
virtual int isValid () const
 isValid returns non zero if object contains vailid data
 
virtual int Integrate () const
 
virtual int Integrate (PHObject *)
 
virtual void CopyFrom (const PHObject *obj)
 

Public Attributes

 m_nClustersTruth { nclustruth }
 
 m_nMatches { 1 }
 
 m_matches
 

Private Attributes

unsigned short m_idTruthTrack {USHRT_MAX}
 
unsigned short m_nClustersTruth {USHRT_MAX}
 
unsigned short m_nMatches {USHRT_MAX}
 
std::vector< std::array
< unsigned short, 5 > > 
m_matches
 

Static Private Attributes

static constexpr int MATCH_idReco = 0
 
static constexpr int MATCH_idTpcSeed = 1
 
static constexpr int MATCH_idSvtxSeed = 2
 
static constexpr int MATCH_nClustersReco = 3
 
static constexpr int MATCH_nClustersMatched = 4
 

Detailed Description

Definition at line 12 of file EmbRecoMatchv1.h.

View newest version in sPHENIX GitHub at line 12 of file EmbRecoMatchv1.h

Constructor & Destructor Documentation

EmbRecoMatchv1::~EmbRecoMatchv1 ( )
overridedefault
EmbRecoMatchv1::EmbRecoMatchv1 ( unsigned short  id_truth = USHRT_MAX,
unsigned short  id_reco = USHRT_MAX,
unsigned short  nclustruth = USHRT_MAX,
unsigned short  nclusreco = USHRT_MAX,
unsigned short  nclusmatched = USHRT_MAX,
unsigned short  id_tpctrackseed = USHRT_MAX,
unsigned short  id_svtxtrackseed = USHRT_MAX 
)
inline

Definition at line 40 of file EmbRecoMatchv1.h.

View newest version in sPHENIX GitHub at line 40 of file EmbRecoMatchv1.h

Member Function Documentation

unsigned short EmbRecoMatchv1::add_match ( unsigned short  id_reco = USHRT_MAX,
unsigned short  nclusreco = USHRT_MAX,
unsigned short  nclusmatched = USHRT_MAX,
unsigned short  id_tpctrackseed = USHRT_MAX,
unsigned short  id_svtxtrackseed = USHRT_MAX 
)

Definition at line 9 of file EmbRecoMatchv1.cc.

View newest version in sPHENIX GitHub at line 9 of file EmbRecoMatchv1.cc

References m_matches, and m_nMatches.

void EmbRecoMatchv1::identify ( std::ostream &  os = std::cout) const
inlineoverridevirtual

identify Function from PHObject

Parameters
osOutput Stream

Reimplemented from PHObject.

Definition at line 74 of file EmbRecoMatchv1.h.

View newest version in sPHENIX GitHub at line 74 of file EmbRecoMatchv1.h

References os.

unsigned short EmbRecoMatchv1::idRecoTrack ( unsigned short  i = 0) const
inlineoverridevirtual

Reimplemented from EmbRecoMatch.

Definition at line 30 of file EmbRecoMatchv1.h.

View newest version in sPHENIX GitHub at line 30 of file EmbRecoMatchv1.h

References i, m_matches, and MATCH_idReco.

unsigned short EmbRecoMatchv1::idSvtxTrackSeed ( unsigned short  i = 0) const
inlineoverridevirtual

Reimplemented from EmbRecoMatch.

Definition at line 32 of file EmbRecoMatchv1.h.

View newest version in sPHENIX GitHub at line 32 of file EmbRecoMatchv1.h

References i, m_matches, and MATCH_idSvtxSeed.

unsigned short EmbRecoMatchv1::idTpcTrackSeed ( unsigned short  i = 0) const
inlineoverridevirtual

Reimplemented from EmbRecoMatch.

Definition at line 31 of file EmbRecoMatchv1.h.

View newest version in sPHENIX GitHub at line 31 of file EmbRecoMatchv1.h

References i, m_matches, and MATCH_idTpcSeed.

unsigned short EmbRecoMatchv1::idTruthTrack ( ) const
inlineoverridevirtual

Reimplemented from EmbRecoMatch.

Definition at line 17 of file EmbRecoMatchv1.h.

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

References m_idTruthTrack.

unsigned short EmbRecoMatchv1::nClustersMatched ( unsigned short  i = 0) const
inlineoverridevirtual

Reimplemented from EmbRecoMatch.

Definition at line 35 of file EmbRecoMatchv1.h.

View newest version in sPHENIX GitHub at line 35 of file EmbRecoMatchv1.h

References i, m_matches, and MATCH_nClustersMatched.

unsigned short EmbRecoMatchv1::nClustersReco ( unsigned short  i = 0) const
inlineoverridevirtual

Reimplemented from EmbRecoMatch.

Definition at line 34 of file EmbRecoMatchv1.h.

View newest version in sPHENIX GitHub at line 34 of file EmbRecoMatchv1.h

References i, m_matches, and MATCH_nClustersReco.

unsigned short EmbRecoMatchv1::nClustersTruth ( ) const
inlineoverridevirtual

Reimplemented from EmbRecoMatch.

Definition at line 18 of file EmbRecoMatchv1.h.

View newest version in sPHENIX GitHub at line 18 of file EmbRecoMatchv1.h

References m_nClustersTruth.

unsigned short EmbRecoMatchv1::nMatches ( ) const
inlineoverridevirtual

Reimplemented from EmbRecoMatch.

Definition at line 19 of file EmbRecoMatchv1.h.

View newest version in sPHENIX GitHub at line 19 of file EmbRecoMatchv1.h

References m_nMatches.

Member Data Documentation

unsigned short EmbRecoMatchv1::m_idTruthTrack {USHRT_MAX}
private

Definition at line 65 of file EmbRecoMatchv1.h.

View newest version in sPHENIX GitHub at line 65 of file EmbRecoMatchv1.h

Referenced by idTruthTrack().

EmbRecoMatchv1::m_matches
Initial value:
{{ id_reco, id_tpctrackseed, id_svtxtrackseed, nclusreco, nclusmatched }}
{}

Definition at line 52 of file EmbRecoMatchv1.h.

View newest version in sPHENIX GitHub at line 52 of file EmbRecoMatchv1.h

Referenced by add_match(), idRecoTrack(), idSvtxTrackSeed(), idTpcTrackSeed(), nClustersMatched(), and nClustersReco().

std::vector<std::array<unsigned short, 5> > EmbRecoMatchv1::m_matches
private

Definition at line 69 of file EmbRecoMatchv1.h.

View newest version in sPHENIX GitHub at line 69 of file EmbRecoMatchv1.h

EmbRecoMatchv1::m_nClustersTruth { nclustruth }

Definition at line 50 of file EmbRecoMatchv1.h.

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

Referenced by nClustersTruth().

unsigned short EmbRecoMatchv1::m_nClustersTruth {USHRT_MAX}
private

Definition at line 66 of file EmbRecoMatchv1.h.

View newest version in sPHENIX GitHub at line 66 of file EmbRecoMatchv1.h

EmbRecoMatchv1::m_nMatches { 1 }

Definition at line 51 of file EmbRecoMatchv1.h.

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

Referenced by add_match(), and nMatches().

unsigned short EmbRecoMatchv1::m_nMatches {USHRT_MAX}
private

Definition at line 67 of file EmbRecoMatchv1.h.

View newest version in sPHENIX GitHub at line 67 of file EmbRecoMatchv1.h

constexpr int EmbRecoMatchv1::MATCH_idReco = 0
staticprivate

Definition at line 23 of file EmbRecoMatchv1.h.

View newest version in sPHENIX GitHub at line 23 of file EmbRecoMatchv1.h

Referenced by idRecoTrack().

constexpr int EmbRecoMatchv1::MATCH_idSvtxSeed = 2
staticprivate

Definition at line 25 of file EmbRecoMatchv1.h.

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

Referenced by idSvtxTrackSeed().

constexpr int EmbRecoMatchv1::MATCH_idTpcSeed = 1
staticprivate

Definition at line 24 of file EmbRecoMatchv1.h.

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

Referenced by idTpcTrackSeed().

constexpr int EmbRecoMatchv1::MATCH_nClustersMatched = 4
staticprivate

Definition at line 27 of file EmbRecoMatchv1.h.

View newest version in sPHENIX GitHub at line 27 of file EmbRecoMatchv1.h

Referenced by nClustersMatched().

constexpr int EmbRecoMatchv1::MATCH_nClustersReco = 3
staticprivate

Definition at line 26 of file EmbRecoMatchv1.h.

View newest version in sPHENIX GitHub at line 26 of file EmbRecoMatchv1.h

Referenced by nClustersReco().


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