Hall-D Software  alpha
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
dirc_tree/DrcHit.h
Go to the documentation of this file.
1 // -----------------------------------------
2 // DrcHit.h
3 // created on: 07.04.2017
4 // initial author: r.dzhygadlo at gsi.de
5 // -----------------------------------------
6 
7 #ifndef DrcHit_h
8 #define DrcHit_h 1
9 
10 #include <vector>
11 
12 #include "TObject.h"
13 #include "TVector3.h"
14 
15 class DrcHit : public TObject {
16 
17 public:
18 
19  //Constructor
20  DrcHit();
21 
22  ~DrcHit(){};
23 
24  // Accessors
25  Int_t GetType() { return fType; }
26  Int_t GetNreflections() { return fNreflections; }
27  Long64_t GetPathId() { return fPathId; }
28  // TVector3 GetMomentum() { return fMomentum; }
29  Double_t GetEnergy() { return fEnergy; }
30  TVector3 GetPosition() { return fPosition; }
31  Double_t GetCherenkovMC() { return fCherenkovMC;}
32 
33  Int_t GetPmtId() { return fPmtId; }
34  Int_t GetPixelId() { return fPixelId; }
35  Int_t GetChannel() { return fChannel;}
36  Double_t GetLeadTime() { return fLeadTime; }
37  Double_t GetTotTime() { return fTotTime; }
38 
39  // Mutators
40  void SetType(Int_t val) { fType = val; }
41  void SetNreflections(Int_t val) { fNreflections = val; }
42  void SetPathId(Long64_t val) { fPathId = val; }
43  // void SetMomentum(TVector3 val) { fMomentum = val; }
44  void SetEnergy(Double_t val) { fEnergy = val; }
45  void SetPosition(TVector3 val) { fPosition = val; }
46  void SetCherenkovMC(Double_t val) { fCherenkovMC = val; }
47 
48  void SetPmtId(Int_t val) { fPmtId = val; }
49  void SetPixelId(Int_t val) { fPixelId = val; }
50  void SetChannel(Int_t val) { fChannel=val; }
51  void SetLeadTime(Double_t val) { fLeadTime=val; }
52  void SetTotTime(Double_t val) { fTotTime=val; }
53 
54 protected:
55 
56  Int_t fType;
58  Long64_t fPathId;
59  // TVector3 fMomentum;
60  Double_t fEnergy;
61  TVector3 fPosition;
62  Double_t fCherenkovMC;
63 
64  Int_t fPmtId;
65  Int_t fPixelId;
66  Int_t fChannel;
67  Double_t fLeadTime;
68  Double_t fTotTime;
69 
70  ClassDef(DrcHit,3)
71 };
72 
73 #endif
74 
75 // #if defined(__ROOTCLING__)
76 // #pragma link C++ class DrcHit+;
77 // #endif
Int_t fType
void SetPixelId(Int_t val)
void SetCherenkovMC(Double_t val)
Int_t fNreflections
Int_t GetChannel()
void SetEnergy(Double_t val)
TVector3 GetPosition()
void SetLeadTime(Double_t val)
Long64_t fPathId
Double_t fEnergy
void SetPmtId(Int_t val)
Double_t fTotTime
Double_t fCherenkovMC
void SetNreflections(Int_t val)
Double_t fLeadTime
Long64_t GetPathId()
Double_t GetLeadTime()
Double_t GetEnergy()
void SetChannel(Int_t val)
Int_t fPmtId
void SetPosition(TVector3 val)
TVector3 fPosition
Double_t GetCherenkovMC()
Int_t fChannel
Double_t GetTotTime()
void SetPathId(Long64_t val)
void SetType(Int_t val)
Int_t GetPixelId()
Int_t GetPmtId()
void SetTotTime(Double_t val)
Int_t fPixelId
Int_t GetType()
Int_t GetNreflections()