CGEM BOSS 6.6.5.g
BESIII Offline Software System
Loading...
Searching...
No Matches
DstMdcDedx Class Reference

#include <DstMdcDedx.h>

+ Inheritance diagram for DstMdcDedx:

Public Member Functions

 DstMdcDedx ()
 
virtual ~DstMdcDedx ()
 
virtual const CLID & clID () const
 
int trackId () const
 
int particleId () const
 
pid_dedx particleType () const
 
int status () const
 
int truncAlg () const
 
double chi (int i) const
 
double chiE () const
 
double chiMu () const
 
double chiPi () const
 
double chiK () const
 
double chiP () const
 
int numGoodHits () const
 
int numTotalHits () const
 
double probPH () const
 
double normPH () const
 
double errorPH () const
 
double twentyPH () const
 
void setTrackId (int trackId)
 
void setParticleId (int particleId)
 
void setStatus (int status)
 
void setTruncAlg (int trunc_alg)
 
void setChi (double *chi)
 
void setNumGoodHits (int numGoodHits)
 
void setNumTotalHits (int numTotalHits)
 
void setProbPH (double probPH)
 
void setNormPH (double normPH)
 
void setErrorPH (double errorPH)
 
void setTwentyPH (double twentyPH)
 

Static Public Member Functions

static const CLID & classID ()
 

Protected Attributes

int m_trackId
 
int m_particleId
 
int m_status
 
int m_trunc_alg
 
double m_chi [5]
 
int m_numGoodHits
 
int m_numTotalHits
 
double m_probPH
 
double m_normPH
 
double m_errorPH
 
double m_twentyPH
 

Detailed Description

Definition at line 11 of file DstMdcDedx.h.

Constructor & Destructor Documentation

◆ DstMdcDedx()

DstMdcDedx::DstMdcDedx ( )
inline

Definition at line 15 of file DstMdcDedx.h.

15{}

◆ ~DstMdcDedx()

virtual DstMdcDedx::~DstMdcDedx ( )
inlinevirtual

Definition at line 16 of file DstMdcDedx.h.

16{}

Member Function Documentation

◆ chi()

double DstMdcDedx::chi ( int  i) const
inline

Definition at line 58 of file DstMdcDedx.h.

58{ return m_chi[i]; }
double m_chi[5]
Definition: DstMdcDedx.h:92

Referenced by DQA_Dedx::execute(), DedxPID::particleIDCalculation(), and setChi().

◆ chiE()

◆ chiK()

◆ chiMu()

◆ chiP()

◆ chiPi()

◆ classID()

static const CLID & DstMdcDedx::classID ( )
inlinestatic

Definition at line 19 of file DstMdcDedx.h.

19{ return CLID_DstMdcDedx; }
const CLID & CLID_DstMdcDedx
Definition: EventModel.cxx:289

Referenced by clID().

◆ clID()

virtual const CLID & DstMdcDedx::clID ( ) const
inlinevirtual

Reimplemented in RecMdcDedx.

Definition at line 18 of file DstMdcDedx.h.

18{ return DstMdcDedx::classID(); }
static const CLID & classID()
Definition: DstMdcDedx.h:19

◆ errorPH()

double DstMdcDedx::errorPH ( ) const
inline

Definition at line 68 of file DstMdcDedx.h.

68{ return m_errorPH; }
double m_errorPH
Definition: DstMdcDedx.h:98

Referenced by setErrorPH().

◆ normPH()

◆ numGoodHits()

◆ numTotalHits()

◆ particleId()

int DstMdcDedx::particleId ( ) const
inline

Definition at line 33 of file DstMdcDedx.h.

33{ return m_particleId; } // will converge to particleType() later
int m_particleId
Definition: DstMdcDedx.h:89

Referenced by particleType(), and setParticleId().

◆ particleType()

pid_dedx DstMdcDedx::particleType ( ) const
inline

Definition at line 34 of file DstMdcDedx.h.

34 {
35 switch(particleId()){
36 case 0:
37 return electron;
38 break;
39 case 1:
40 return muon;
41 break;
42 case 2:
43 return kaon;
44 break;
45 case 3:
46 return pion;
47 break;
48 case 4:
49 return proton;
50 break;
51 default:
52 std::cerr << "the particleType receive an incorrect input!" << std::endl;
53 exit(1);
54 }
55 }
@ electron
Definition: DstMdcDedx.h:9
@ pion
Definition: DstMdcDedx.h:9
@ kaon
Definition: DstMdcDedx.h:9
@ muon
Definition: DstMdcDedx.h:9
@ proton
Definition: DstMdcDedx.h:9
int particleId() const
Definition: DstMdcDedx.h:33

◆ probPH()

◆ setChi()

void DstMdcDedx::setChi ( double *  chi)
inline

Definition at line 77 of file DstMdcDedx.h.

77 {
78 for(int i =0; i<5 ; i++) m_chi[i]= chi[i];
79 }
double chi(int i) const
Definition: DstMdcDedx.h:58

Referenced by MdcDedxRecon::execute(), MdcDedxCnv::TObjectToDataObject(), and RecMdcDedxCnv::TObjectToDataObject().

◆ setErrorPH()

void DstMdcDedx::setErrorPH ( double  errorPH)
inline

Definition at line 85 of file DstMdcDedx.h.

85{ m_errorPH = errorPH; }
double errorPH() const
Definition: DstMdcDedx.h:68

Referenced by MdcDedxCnv::TObjectToDataObject(), and RecMdcDedxCnv::TObjectToDataObject().

◆ setNormPH()

void DstMdcDedx::setNormPH ( double  normPH)
inline

◆ setNumGoodHits()

void DstMdcDedx::setNumGoodHits ( int  numGoodHits)
inline

◆ setNumTotalHits()

void DstMdcDedx::setNumTotalHits ( int  numTotalHits)
inline

◆ setParticleId()

void DstMdcDedx::setParticleId ( int  particleId)
inline

◆ setProbPH()

void DstMdcDedx::setProbPH ( double  probPH)
inline

◆ setStatus()

void DstMdcDedx::setStatus ( int  status)
inline

◆ setTrackId()

void DstMdcDedx::setTrackId ( int  trackId)
inline

◆ setTruncAlg()

void DstMdcDedx::setTruncAlg ( int  trunc_alg)
inline

◆ setTwentyPH()

void DstMdcDedx::setTwentyPH ( double  twentyPH)
inline

Definition at line 86 of file DstMdcDedx.h.

double m_twentyPH
Definition: DstMdcDedx.h:99
double twentyPH() const
Definition: DstMdcDedx.h:69

Referenced by MdcDedxCnv::TObjectToDataObject(), and RecMdcDedxCnv::TObjectToDataObject().

◆ status()

int DstMdcDedx::status ( ) const
inline

Definition at line 56 of file DstMdcDedx.h.

56{ return m_status; }

Referenced by setStatus().

◆ trackId()

int DstMdcDedx::trackId ( ) const
inline

Definition at line 32 of file DstMdcDedx.h.

32{return m_trackId ;}

Referenced by setTrackId().

◆ truncAlg()

int DstMdcDedx::truncAlg ( ) const
inline

Definition at line 57 of file DstMdcDedx.h.

57{ return m_trunc_alg; }

◆ twentyPH()

double DstMdcDedx::twentyPH ( ) const
inline

Definition at line 69 of file DstMdcDedx.h.

69{ return m_twentyPH; }

Referenced by setTwentyPH().

Member Data Documentation

◆ m_chi

double DstMdcDedx::m_chi[5]
protected

Definition at line 92 of file DstMdcDedx.h.

Referenced by chi(), chiE(), chiK(), chiMu(), chiP(), chiPi(), and setChi().

◆ m_errorPH

double DstMdcDedx::m_errorPH
protected

Definition at line 98 of file DstMdcDedx.h.

Referenced by errorPH(), and setErrorPH().

◆ m_normPH

double DstMdcDedx::m_normPH
protected

Definition at line 97 of file DstMdcDedx.h.

Referenced by normPH(), and setNormPH().

◆ m_numGoodHits

int DstMdcDedx::m_numGoodHits
protected

Definition at line 94 of file DstMdcDedx.h.

Referenced by numGoodHits(), and setNumGoodHits().

◆ m_numTotalHits

int DstMdcDedx::m_numTotalHits
protected

Definition at line 95 of file DstMdcDedx.h.

Referenced by numTotalHits(), and setNumTotalHits().

◆ m_particleId

int DstMdcDedx::m_particleId
protected

Definition at line 89 of file DstMdcDedx.h.

Referenced by particleId(), and setParticleId().

◆ m_probPH

double DstMdcDedx::m_probPH
protected

Definition at line 96 of file DstMdcDedx.h.

Referenced by probPH(), and setProbPH().

◆ m_status

int DstMdcDedx::m_status
protected

Definition at line 90 of file DstMdcDedx.h.

Referenced by setStatus(), and status().

◆ m_trackId

int DstMdcDedx::m_trackId
protected

Definition at line 88 of file DstMdcDedx.h.

Referenced by setTrackId(), and trackId().

◆ m_trunc_alg

int DstMdcDedx::m_trunc_alg
protected

Definition at line 91 of file DstMdcDedx.h.

Referenced by setTruncAlg(), and truncAlg().

◆ m_twentyPH

double DstMdcDedx::m_twentyPH
protected

Definition at line 99 of file DstMdcDedx.h.

Referenced by setTwentyPH(), and twentyPH().


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