CGEM BOSS 6.6.5.f
BESIII Offline Software System
Loading...
Searching...
No Matches
Event/DstEvent/DstEvent-00-05-06/DstEvent/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"
5#include "EventModel/EventModel.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
Definition: EventModel.cxx:317
ObjectVector< DstCgemDedx > DstCgemDedxCol
const CLID & CLID_DstCgemDedx
Definition: EventModel.cxx:317