BOSS 7.1.2
BESIII Offline Software System
Loading...
Searching...
No Matches
TMcHitTof.h
Go to the documentation of this file.
1#ifndef DigiRootData_TMcHitTof_H
2#define DigiRootData_TMcHitTof_H 1
3
4#include "TObject.h"
5#include "TString.h"
6#include "TVector3.h"
7
8class TMcHitTof: public TObject {
9
10public:
11
13
14 ~TMcHitTof ();
15
16
17 void SetTrackIndex(Int_t trackIndex) { m_trackIndex = trackIndex; };
18 void SetG4Index(Int_t index) {m_g4Index = index;}
19 void SetPartId(Int_t partId) {m_partId = partId;}
20 void SetScinNb(Int_t scinNb) { m_scinNb = scinNb; }
21 void SetEdep(Double_t edep) { m_edep = edep; }
22 void SetStepL(Double_t stepL) { m_stepL = stepL;}
23 void SetTrackL(Double_t length) { m_trackL = length; }
24 void SetPos(TVector3 pos) { m_pos = pos; }
25 void SetTime(Double_t time) { m_time=time;}
26 void SetDeltaT(Double_t deltaT) { m_deltaT = deltaT;}
27 void SetPDirection(TVector3 pDirection) { m_pDirection = pDirection; }
28 void SetMomentum(TVector3 momentum) { m_momentum = momentum; }
29 void SetCharge(Int_t charge) {m_charge = charge;}
30
31 Int_t GetTrackIndex() const { return m_trackIndex; }
32 Int_t GetG4Index() const {return m_g4Index;}
33 Int_t GetPartId() const { return m_partId; }
34 Int_t GetScinNb() const { return m_scinNb; }
35 Double_t GetEdep() const{ return m_edep; }
36 Double_t GetStepL() const { return m_stepL; }
37 Double_t GetTrackL() const {return m_trackL; }
38 TVector3 GetPos() const { return m_pos; }
39 Double_t GetTime() const { return m_time;}
40 Double_t GetDeltaT() const {return m_deltaT;}
41 TVector3 GetPDirection() const {return m_pDirection;}
42 TVector3 GetMomentum() const {return m_momentum;}
43 Int_t GetCharge() const {return m_charge; }
44
45private:
46 //static Int_t s_count;
47
48 Int_t m_trackIndex;
49 Int_t m_g4Index;
50 Int_t m_partId;
51 Int_t m_scinNb;
52 Double_t m_edep;
53 Double_t m_stepL;
54 Double_t m_trackL;
55 TVector3 m_pos;
56 Double_t m_time;
57 Double_t m_deltaT;
58 TVector3 m_pDirection;
59 TVector3 m_momentum;
60 Int_t m_charge;
61
62
63 ClassDef(TMcHitTof,1)
64};
65
66#endif
**********INTEGER nmxhep !maximum number of particles DOUBLE PRECISION vhep INTEGER jdahep COMMON hepevt $ !serial number $ !number of particles $ !status code $ !particle ident KF $ !parent particles $ !childreen particles $ !four momentum
Double_t time
Int_t GetG4Index() const
Definition TMcHitTof.h:32
void SetStepL(Double_t stepL)
Definition TMcHitTof.h:22
void SetTime(Double_t time)
Definition TMcHitTof.h:25
Int_t GetTrackIndex() const
Definition TMcHitTof.h:31
void SetTrackIndex(Int_t trackIndex)
Definition TMcHitTof.h:17
Double_t GetEdep() const
Definition TMcHitTof.h:35
void SetG4Index(Int_t index)
Definition TMcHitTof.h:18
TVector3 GetPDirection() const
Definition TMcHitTof.h:41
TVector3 GetMomentum() const
Definition TMcHitTof.h:42
Int_t GetPartId() const
Definition TMcHitTof.h:33
Double_t GetStepL() const
Definition TMcHitTof.h:36
void SetPos(TVector3 pos)
Definition TMcHitTof.h:24
void SetMomentum(TVector3 momentum)
Definition TMcHitTof.h:28
void SetDeltaT(Double_t deltaT)
Definition TMcHitTof.h:26
void SetEdep(Double_t edep)
Definition TMcHitTof.h:21
void SetPartId(Int_t partId)
Definition TMcHitTof.h:19
Double_t GetTrackL() const
Definition TMcHitTof.h:37
void SetPDirection(TVector3 pDirection)
Definition TMcHitTof.h:27
void SetCharge(Int_t charge)
Definition TMcHitTof.h:29
void SetTrackL(Double_t length)
Definition TMcHitTof.h:23
Double_t GetDeltaT() const
Definition TMcHitTof.h:40
Int_t GetScinNb() const
Definition TMcHitTof.h:34
Double_t GetTime() const
Definition TMcHitTof.h:39
void SetScinNb(Int_t scinNb)
Definition TMcHitTof.h:20
Int_t GetCharge() const
Definition TMcHitTof.h:43
TVector3 GetPos() const
Definition TMcHitTof.h:38
float charge