BOSS 7.1.1
BESIII Offline Software System
Loading...
Searching...
No Matches
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 Bool_t isGrouped(void) const { return m_isGrouped; }
19 //extractors
20 Int_t getId(void) const { return m_id; }
21 Int_t getTrkId(void) const { return m_trkid; }
22 Double_t getDriftDistLeft(void) const { return m_ddl; }
23 Double_t getDriftDistRight(void) const { return m_ddr ; }
24 Double_t getErrDriftDistLeft(void) const { return m_erddl; }
25 Double_t getErrDriftDistRight(void) const { return m_erddr; }
26 Double_t getChisqAdd(void) const { return m_pChisq; }
27 Int_t getFlagLR(void) const { return m_lr; }
28 Int_t getStat(void) const { return m_stat; }
29 UInt_t getMdcId() const { return m_mdcid; }
30 Double_t getTdc(void) const { return m_tdc; }
31 Double_t getAdc(void) const { return m_adc; }
32 Double_t getDriftT(void) const { return m_driftT; }
33 Double_t getDoca(void) const { return m_doca; }
34 Double_t getEntra(void) const { return m_entra; }
35 Double_t getZhit(void) const { return m_zhit; }
36 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
Double_t getDriftDistRight(void) const
Definition TRecMdcHit.h:23
Int_t getFlagLR(void) const
Definition TRecMdcHit.h:27
void setFltLen(Double_t fltLen)
Definition TRecMdcHit.h:56
Bool_t isGrouped(void) const
Definition TRecMdcHit.h:18
void setIsGrouped(Bool_t isGrouped)
Definition TRecMdcHit.h:39
Double_t getEntra(void) const
Definition TRecMdcHit.h:34
void setErrDriftDistLeft(Double_t erddl)
Definition TRecMdcHit.h:44
void setTRecMdcHit(const TRecMdcHit *mdchit)
Definition TRecMdcHit.h:57
UInt_t getMdcId() const
Definition TRecMdcHit.h:29
void setDriftDistLeft(Double_t ddl)
Definition TRecMdcHit.h:42
Double_t getZhit(void) const
Definition TRecMdcHit.h:35
void setDriftDistRight(Double_t ddr)
Definition TRecMdcHit.h:43
Double_t getChisqAdd(void) const
Definition TRecMdcHit.h:26
Int_t getStat(void) const
Definition TRecMdcHit.h:28
Double_t getErrDriftDistRight(void) const
Definition TRecMdcHit.h:25
Int_t getTrkId(void) const
Definition TRecMdcHit.h:21
void setTdc(Double_t tdc)
Definition TRecMdcHit.h:50
void setAdc(Double_t adc)
Definition TRecMdcHit.h:51
void setStat(Int_t stat)
Definition TRecMdcHit.h:48
void setTrkId(Int_t trkid)
Definition TRecMdcHit.h:41
Double_t getTdc(void) const
Definition TRecMdcHit.h:30
Double_t getFltLen(void) const
Definition TRecMdcHit.h:36
Double_t getDoca(void) const
Definition TRecMdcHit.h:33
void setDriftT(Double_t driftT)
Definition TRecMdcHit.h:52
Double_t getErrDriftDistLeft(void) const
Definition TRecMdcHit.h:24
Double_t getDriftT(void) const
Definition TRecMdcHit.h:32
void setErrDriftDistRight(Double_t erddr)
Definition TRecMdcHit.h:45
void setZhit(Double_t zhit)
Definition TRecMdcHit.h:55
void setDoca(Double_t doca)
Definition TRecMdcHit.h:53
void setEntra(Double_t entra)
Definition TRecMdcHit.h:54
void setFlagLR(Int_t lr)
Definition TRecMdcHit.h:47
void setId(Int_t id)
Definition TRecMdcHit.h:40
Int_t getId(void) const
Definition TRecMdcHit.h:20
void setChisqAdd(Double_t pChisq)
Definition TRecMdcHit.h:46
void setMdcId(UInt_t mdcid)
Definition TRecMdcHit.h:49
Double_t getAdc(void) const
Definition TRecMdcHit.h:31
Double_t getDriftDistLeft(void) const
Definition TRecMdcHit.h:22