BOSS 7.0.4
BESIII Offline Software System
Loading...
Searching...
No Matches
Event/RootEventData/RootEventData-00-03-80/RootEventData/TRecMdcHit.h
Go to the documentation of this file.
1#ifndef RootEventData_TRecMdcHit_H
2#define RootEventData_TRecMdcHit_H 1
3
4#include "TObject.h"
5#include <vector>
6
7using namespace std;
8
9class TRecMdcHit : public TObject {
10
11public:
12
14
15 ~TRecMdcHit ();
16
17 // is this hit grouped to any track?
18 const Bool_t isGrouped(void) const { return m_isGrouped; }
19 //extractors
20 const Int_t getId(void) const { return m_id; }
21 const Int_t getTrkId(void) const { return m_trkid; }
22 const Double_t getDriftDistLeft(void) const { return m_ddl; }
23 const Double_t getDriftDistRight(void) const { return m_ddr ; }
24 const Double_t getErrDriftDistLeft(void) const { return m_erddl; }
25 const Double_t getErrDriftDistRight(void) const { return m_erddr; }
26 const Double_t getChisqAdd(void) const { return m_pChisq; }
27 const Int_t getFlagLR(void) const { return m_lr; }
28 const Int_t getStat(void) const { return m_stat; }
29 const UInt_t getMdcId() const { return m_mdcid; }
30 const Double_t getTdc(void) const { return m_tdc; }
31 const Double_t getAdc(void) const { return m_adc; }
32 const Double_t getDriftT(void) const { return m_driftT; }
33 const Double_t getDoca(void) const { return m_doca; }
34 const Double_t getEntra(void) const { return m_entra; }
35 const Double_t getZhit(void) const { return m_zhit; }
36 const Double_t getFltLen(void) const { return m_fltLen; }
37
38 //modifiers
39 void setIsGrouped(Bool_t isGrouped) { m_isGrouped = isGrouped;}
40 void setId(Int_t id) { m_id = id; }
41 void setTrkId(Int_t trkid) { m_trkid = trkid; }
42 void setDriftDistLeft(Double_t ddl) { m_ddl = ddl; }
43 void setDriftDistRight(Double_t ddr) { m_ddr = ddr ; }
44 void setErrDriftDistLeft(Double_t erddl) { m_erddl = erddl; }
45 void setErrDriftDistRight(Double_t erddr) { m_erddr = erddr; }
46 void setChisqAdd(Double_t pChisq) { m_pChisq = pChisq; }
47 void setFlagLR(Int_t lr) { m_lr = lr; }
48 void setStat(Int_t stat) { m_stat = stat; }
49 void setMdcId( UInt_t mdcid ) { m_mdcid = mdcid; }
50 void setTdc(Double_t tdc) { m_tdc = tdc; }
51 void setAdc(Double_t adc) { m_adc = adc; }
52 void setDriftT(Double_t driftT) { m_driftT = driftT; }
53 void setDoca(Double_t doca) { m_doca = doca; }
54 void setEntra(Double_t entra) { m_entra = entra; }
55 void setZhit(Double_t zhit) { m_zhit = zhit; }
56 void setFltLen(Double_t fltLen) { m_fltLen = fltLen; }
57 void setTRecMdcHit(const TRecMdcHit *mdchit){
58 m_isGrouped = mdchit->isGrouped();
59 m_id = mdchit->getId();
60 m_trkid = mdchit->getTrkId();
61 m_ddl = mdchit->getDriftDistLeft();
62 m_ddr = mdchit->getDriftDistRight();
63 m_erddl = mdchit->getErrDriftDistLeft();
64 m_erddr = mdchit->getErrDriftDistRight();
65 m_pChisq = mdchit->getChisqAdd();
66 m_lr = mdchit->getFlagLR();
67 m_stat = mdchit->getStat();
68 m_mdcid = mdchit->getMdcId();
69 m_tdc = mdchit->getTdc();
70 m_adc = mdchit->getAdc();
71 m_driftT = mdchit->getDriftT();
72 m_doca = mdchit->getDoca();
73 m_entra = mdchit->getEntra();
74 m_zhit = mdchit->getZhit();
75 m_fltLen = mdchit->getFltLen();
76 }
77
78 private:
79 Bool_t m_isGrouped;
80 Int_t m_id;
81 Int_t m_trkid; // id of track containing this hit,if this hit
82 // belongs to no track, set as -1;
83 Double_t m_ddl; // drift distance left
84 Double_t m_ddr; // drift distance right
85 Double_t m_erddl; // error of drift distance left
86 Double_t m_erddr; // error of drift distance right
87 Double_t m_pChisq; //contribution to chisquare
88 Int_t m_lr; //flag indicating left or right 0:left 1:right 2:ambig
89 Int_t m_stat; // status flag
90 UInt_t m_mdcid; // MDC identifier
91 Double_t m_tdc; // corrected TDC
92 Double_t m_adc; //corrected ADC
93 Double_t m_driftT; // drift time
94 Double_t m_doca; // distance of closesest approach for helix in the cell
95 Double_t m_entra; // entrance angle in azimuth
96 Double_t m_zhit; // z coordinate of the hit
97 Double_t m_fltLen; // flight length of this hit
98
99 ClassDef(TRecMdcHit,3)
100};
101
102#endif