CGEM BOSS 6.6.5.i
BESIII Offline Software System
Loading...
Searching...
No Matches
DstCgemDedx.h
Go to the documentation of this file.
1#ifndef DST_DSTCGEMDEDX_H
2#define DST_DSTCGEMDEDX_H
3#include "GaudiKernel/ObjectVector.h"
4#include "GaudiKernel/ContainedObject.h"
6
7using namespace EventModel;
8extern const CLID &CLID_DstCgemDedx;
9
10class DstCgemDedx : virtual public ContainedObject {
11public:
12
13// ctor and dector
15 virtual ~DstCgemDedx() {}
16
17 virtual const CLID& clID() const { return DstCgemDedx::classID(); }
18 static const CLID& classID() { return CLID_DstCgemDedx; }
19
20// extractors
21 //int getTrackId() const {return m_trackId ;}
22 //int getParticleId() const { return m_particleId; }
23 //int getStatus() const { return m_status; }
24 //int geTruncAlg() const { return m_trunc_alg; }
25 //double getNumChidedx(int i) const { return m_numChidedx[i]; }
26 //int getNumGoodHits() const { return m_numGoodHits; }
27 //int getNumTotalHits() const { return m_numTotalHits; }
28 //double getProbPH() const { return m_probPH; }
29 //double getNormPH() const { return m_normPH; }
30// extractors
31 int trackId() const {return m_trackId ;}
32 int particleId() const { return m_particleId; }
33 int status() const { return m_status; }
34 int truncAlg() const { return m_trunc_alg; }
35 double chi(int i) const { return m_chi[i]; }
36 double chiE() const { return m_chi[0]; }
37 double chiMu() const { return m_chi[1]; }
38 double chiPi() const { return m_chi[2]; }
39 double chiK() const { return m_chi[3]; }
40 double chiP() const { return m_chi[4]; }
41 int numGoodHits() const { return m_numGoodHits; }
42 int numTotalHits() const { return m_numTotalHits; }
43 double probPH() const { return m_probPH; }
44 double normPH() const { return m_normPH; }
45 double errorPH() const { return m_errorPH; }
46 double twentyPH() const { return m_twentyPH; }
47
48// modifiers
52 void setTruncAlg(int trunc_alg) { m_trunc_alg = trunc_alg; }
53
54 void setChi( double* chi) {
55 for(int i =0; i<5 ; i++) m_chi[i]= chi[i];
56 }
57
60 void setProbPH(double probPH) { m_probPH = probPH; }
61 void setNormPH(double normPH) { m_normPH = normPH; }
62 void setErrorPH(double errorPH) { m_errorPH = errorPH; }
64 protected:
65 int m_trackId ; //Track ID Add 2005-10-18
66 int m_particleId; //Particle ID from De/Dx
67 int m_status; //Status
68 int m_trunc_alg; //truncate method
69 double m_chi[5]; //Number of Chi_dEdx for different particles
70 //0: e 1: mu 2: pi 3: K 4:p
71 int m_numGoodHits; //No. of good de/dx hits(exclude overflow)
72 int m_numTotalHits; //No. of good de/dx hits(include overflow)
73 double m_probPH; //Most probable pulse height from truncated mean
74 double m_normPH; //normalized pulse height
75 double m_errorPH; //resolution of truncated mean
76 double m_twentyPH; //de/dx value of bitrunction rate equal to 20%
77};
78
79typedef ObjectVector<DstCgemDedx> DstCgemDedxCol;
80
81#endif //DST_DEDX_H
82
const CLID & CLID_DstCgemDedx
ObjectVector< DstCgemDedx > DstCgemDedxCol
Definition DstCgemDedx.h:79
void setNumTotalHits(int numTotalHits)
Definition DstCgemDedx.h:59
double chiP() const
Definition DstCgemDedx.h:40
int m_numGoodHits
Definition DstCgemDedx.h:71
int numTotalHits() const
Definition DstCgemDedx.h:42
void setChi(double *chi)
Definition DstCgemDedx.h:54
double chiPi() const
Definition DstCgemDedx.h:38
void setProbPH(double probPH)
Definition DstCgemDedx.h:60
double chiK() const
Definition DstCgemDedx.h:39
int trackId() const
Definition DstCgemDedx.h:31
double chi(int i) const
Definition DstCgemDedx.h:35
int m_numTotalHits
Definition DstCgemDedx.h:72
virtual ~DstCgemDedx()
Definition DstCgemDedx.h:15
double errorPH() const
Definition DstCgemDedx.h:45
void setErrorPH(double errorPH)
Definition DstCgemDedx.h:62
void setNormPH(double normPH)
Definition DstCgemDedx.h:61
void setParticleId(int particleId)
Definition DstCgemDedx.h:50
void setTwentyPH(double twentyPH)
Definition DstCgemDedx.h:63
void setTrackId(int trackId)
Definition DstCgemDedx.h:49
double chiMu() const
Definition DstCgemDedx.h:37
void setNumGoodHits(int numGoodHits)
Definition DstCgemDedx.h:58
void setStatus(int status)
Definition DstCgemDedx.h:51
double probPH() const
Definition DstCgemDedx.h:43
double twentyPH() const
Definition DstCgemDedx.h:46
virtual const CLID & clID() const
Definition DstCgemDedx.h:17
int truncAlg() const
Definition DstCgemDedx.h:34
double m_probPH
Definition DstCgemDedx.h:73
double chiE() const
Definition DstCgemDedx.h:36
int status() const
Definition DstCgemDedx.h:33
static const CLID & classID()
Definition DstCgemDedx.h:18
double m_chi[5]
Definition DstCgemDedx.h:69
int numGoodHits() const
Definition DstCgemDedx.h:41
double m_errorPH
Definition DstCgemDedx.h:75
double normPH() const
Definition DstCgemDedx.h:44
void setTruncAlg(int trunc_alg)
Definition DstCgemDedx.h:52
int particleId() const
Definition DstCgemDedx.h:32
double m_normPH
Definition DstCgemDedx.h:74
double m_twentyPH
Definition DstCgemDedx.h:76