CGEM BOSS 6.6.5.g
BESIII Offline Software System
Loading...
Searching...
No Matches
TRecCgemHit.h
Go to the documentation of this file.
1#ifndef RootEventData_TRecCgemHit_H
2#define RootEventData_TRecCgemHit_H 1
3
4#include "TObject.h"
5#include <vector>
6
7using namespace std;
8
9class TRecCgemHit : public TObject {
10
11public:
12
14
15 ~TRecCgemHit ();
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 getChisqAdd(void) const { return m_pChisq; }
23 const Int_t getStat(void) const { return m_stat; }
24/* const UInt_t getCgemIdMSB() const { return m_cgemidMSB; } */
25/* const UInt_t getCgemIdLSB() const { return m_cgemidLSB; } */
26 const UInt_t getCgemId() const { return m_cgemid; }
27 const Double_t getTdc(void) const { return m_tdc; }
28 const Double_t getAdc(void) const { return m_adc; }
29 const Double_t getDoca(void) const { return m_doca; }
30 const Double_t getEntra(void) const { return m_entra; }
31 const Double_t getZhit(void) const { return m_zhit; }
32 const Double_t getFltLen(void) const { return m_fltLen; }
33
34 //modifiers
35 void setIsGrouped(Bool_t isGrouped) { m_isGrouped = isGrouped;}
36 void setId(Int_t id) { m_id = id; }
37 void setTrkId(Int_t trkid) { m_trkid = trkid; }
38 void setChisqAdd(Double_t pChisq) { m_pChisq = pChisq; }
39 void setStat(Int_t stat) { m_stat = stat; }
40/* void setCgemIdMSB( UInt_t cgemid ) { m_cgemidMSB = cgemid; } */
41/* void setCgemIdLSB( UInt_t cgemid ) { m_cgemidLSB = cgemid; } */
42 void setCgemId( UInt_t cgemid ) { m_cgemid = cgemid; }
43 void setTdc(Double_t tdc) { m_tdc = tdc; }
44 void setAdc(Double_t adc) { m_adc = adc; }
45 void setDoca(Double_t doca) { m_doca = doca; }
46 void setEntra(Double_t entra) { m_entra = entra; }
47 void setZhit(Double_t zhit) { m_zhit = zhit; }
48 void setFltLen(Double_t fltLen) { m_fltLen = fltLen; }
49 void setTRecCgemHit(const TRecCgemHit *cgemhit){
50 m_isGrouped = cgemhit->isGrouped();
51 m_id = cgemhit->getId();
52 m_trkid = cgemhit->getTrkId();
53 m_pChisq = cgemhit->getChisqAdd();
54 m_stat = cgemhit->getStat();
55/* m_cgemidLSB = cgemhit->getCgemIdLSB(); */
56/* m_cgemidMSB = cgemhit->getCgemIdMSB(); */
57 m_cgemid = cgemhit->getCgemId();
58 m_tdc = cgemhit->getTdc();
59 m_adc = cgemhit->getAdc();
60 m_doca = cgemhit->getDoca();
61 m_entra = cgemhit->getEntra();
62 m_zhit = cgemhit->getZhit();
63 m_fltLen = cgemhit->getFltLen();
64 }
65
66 private:
67 Bool_t m_isGrouped;
68 Int_t m_id;
69 Int_t m_trkid; // id of track containing this hit,if this hit
70 // belongs to no track, set as -1;
71 Double_t m_pChisq; //contribution to chisquare
72 Int_t m_stat; // status flag
73/* UInt_t m_cgemidMSB; // CGEM identifier */
74/* UInt_t m_cgemidLSB; // CGEM identifier */
75 UInt_t m_cgemid; // CGEM identifier
76 Double_t m_tdc; // corrected TDC
77 Double_t m_adc; //corrected ADC
78 Double_t m_doca; // distance of closesest approach for helix in the pixel
79 Double_t m_entra; // entrance angle in azimuth
80 Double_t m_zhit; // z coordinate of the hit
81 Double_t m_fltLen; // flight length of this hit
82
83 ClassDef(TRecCgemHit,3)
84};
85
86#endif
const Double_t getChisqAdd(void) const
Definition: TRecCgemHit.h:22
const Double_t getEntra(void) const
Definition: TRecCgemHit.h:30
void setChisqAdd(Double_t pChisq)
Definition: TRecCgemHit.h:38
const Double_t getZhit(void) const
Definition: TRecCgemHit.h:31
const Int_t getId(void) const
Definition: TRecCgemHit.h:20
void setZhit(Double_t zhit)
Definition: TRecCgemHit.h:47
void setTdc(Double_t tdc)
Definition: TRecCgemHit.h:43
const Int_t getStat(void) const
Definition: TRecCgemHit.h:23
void setTRecCgemHit(const TRecCgemHit *cgemhit)
Definition: TRecCgemHit.h:49
void setCgemId(UInt_t cgemid)
Definition: TRecCgemHit.h:42
const Bool_t isGrouped(void) const
Definition: TRecCgemHit.h:18
const Double_t getAdc(void) const
Definition: TRecCgemHit.h:28
const Double_t getDoca(void) const
Definition: TRecCgemHit.h:29
void setFltLen(Double_t fltLen)
Definition: TRecCgemHit.h:48
const UInt_t getCgemId() const
Definition: TRecCgemHit.h:26
const Double_t getFltLen(void) const
Definition: TRecCgemHit.h:32
const Int_t getTrkId(void) const
Definition: TRecCgemHit.h:21
void setEntra(Double_t entra)
Definition: TRecCgemHit.h:46
void setDoca(Double_t doca)
Definition: TRecCgemHit.h:45
void setIsGrouped(Bool_t isGrouped)
Definition: TRecCgemHit.h:35
void setStat(Int_t stat)
Definition: TRecCgemHit.h:39
void setTrkId(Int_t trkid)
Definition: TRecCgemHit.h:37
const Double_t getTdc(void) const
Definition: TRecCgemHit.h:27
void setId(Int_t id)
Definition: TRecCgemHit.h:36
void setAdc(Double_t adc)
Definition: TRecCgemHit.h:44