FairRoot/PandaRoot
PndDrcPDHit.h
Go to the documentation of this file.
1 // -------------------------------------------------------------------------
2 // ----- PndDrcPDHit header file -----
3 // ----- Created 11/10/06 by Annalisa Cecchi -----
4 // ----- -----
5 // -------------------------------------------------------------------------
6 
7 
8 #ifndef PNDDRCPDHIT_H
9 #define PNDDRCPDHIT_H
10 
11 #include "FairHit.h"
12 
13 class PndDrcPDHit : public FairHit {
14 
15 public:
16 
18  PndDrcPDHit();
19 
20  PndDrcPDHit(Int_t detID,
21  Int_t sensorId,
22  TVector3& pos,
23  TVector3& dpos,
24  Double_t time,
25  Double_t timeThreshold,
26  Int_t index);
27 
28 
30  //PndDrcPDHit(const PndDrcPDHit& hit) { *this = hit; }; // not needed
31 
33  virtual ~PndDrcPDHit();
34 
36  virtual void Print(const Option_t* opt ="") const;
37 
40  void SetBarID(Int_t BarID);
41  void SetBoxID(Int_t BoxID);
42  void SetTrackID(Int_t TrackID);
43  void SetTrackIniVertex(TVector3 TrackIniVertex);
44  void SetMotherID(Int_t MrID);
45  void SetPdgCode(Int_t Pdg);
46  void SetTrackMom(TVector3 TrackMom);
47  void SetMotherIDPho(Int_t MrIDPho);
48  void SetTimeAtBar(Double_t TimeAtBar);
49  void SetEvtTim(Double_t EvtTim);
50  void SetEventTim(Double_t EventTim);
51  void SetPileUp(Double_t pileup);
52  void SetEventNo(Int_t EventNo);
53 
55  virtual Double_t GetTime() {return fTime;}
57  virtual Int_t GetRefIndex() {return fRefIndex;}
58  TVector3 GetPosition() const { return TVector3(fX, fY, fZ); }
59  Int_t GetSensorId() {return fSensorId;}
60  Int_t GetBarID() const { return fBarID; }
61  Int_t GetBoxID() const { return fBoxID; }
62  Int_t GetTrackID() const { return fTrackID; }
63  TVector3 GetTrackIniVertex() { return fTrackIniVertex; }
64  Int_t GetMotherID() const { return fMrID; }
65  Int_t GetPdgCode() const { return fPdg; }
66  TVector3 GetTrackMom() { return fTrackMom; }
67  Int_t GetMotherIDPho() const { return fMrIDPho; }
68  Double_t GetTimeAtBar() const { return fTimeAtBar; }
69  Double_t GetEvtTim() const { return fEvtTim; }
70  Double_t GetEventTim() const { return fEventTim; }
71  Double_t GetPileUp() const { return fPileUp; }
72  Int_t GetEventNo() const { return fEventNo; }
73 
74  protected:
75 
76  Int_t fSensorId;
78  Int_t fBarID;
79  Int_t fBoxID;
80  Int_t fTrackID;
81  TVector3 fTrackIniVertex;
82  Int_t fMrID;
83  Int_t fMrIDPho;
84  Int_t fPdg;
85  TVector3 fTrackMom;
90  Int_t fEventNo;
91 
92  ClassDef(PndDrcPDHit,1)
93 };
94 
95 #endif //PNDDRCPDHIT_H
Int_t fTrackID
Definition: PndDrcPDHit.h:80
Int_t GetMotherIDPho() const
Definition: PndDrcPDHit.h:67
TVector3 pos
void SetTimeAtBar(Double_t TimeAtBar)
Definition: PndDrcPDHit.cxx:75
Int_t GetBoxID() const
Definition: PndDrcPDHit.h:61
Int_t fPdg
Definition: PndDrcPDHit.h:84
TVector3 fTrackIniVertex
Definition: PndDrcPDHit.h:81
Double_t fTimeThreshold
Definition: PndDrcPDHit.h:77
Int_t GetPdgCode() const
Definition: PndDrcPDHit.h:65
Int_t GetSensorId()
Definition: PndDrcPDHit.h:59
Double_t fTime
Definition: PndDrcPDHit.h:77
Int_t fEventNo
Definition: PndDrcPDHit.h:90
Double_t fX
Definition: PndCaloDraw.cxx:34
Double_t GetEvtTim() const
Definition: PndDrcPDHit.h:69
void SetPileUp(Double_t pileup)
Definition: PndDrcPDHit.cxx:84
TVector3 GetTrackIniVertex()
Definition: PndDrcPDHit.h:63
TVector3 GetTrackMom()
Definition: PndDrcPDHit.h:66
Int_t GetMotherID() const
Definition: PndDrcPDHit.h:64
Double_t GetPileUp() const
Definition: PndDrcPDHit.h:71
Int_t GetTrackID() const
Definition: PndDrcPDHit.h:62
Double_t fPileUp
Definition: PndDrcPDHit.h:89
Int_t fSensorId
Definition: PndDrcPDHit.h:76
Double_t fZ
Definition: PndCaloDraw.cxx:34
void SetBoxID(Int_t BoxID)
Definition: PndDrcPDHit.cxx:54
void SetEvtTim(Double_t EvtTim)
Definition: PndDrcPDHit.cxx:78
void SetEventNo(Int_t EventNo)
Definition: PndDrcPDHit.cxx:87
Int_t fMrID
Definition: PndDrcPDHit.h:82
virtual Double_t GetTime()
Definition: PndDrcPDHit.h:55
virtual Double_t GetTimeThreshold()
Definition: PndDrcPDHit.h:56
void SetTrackID(Int_t TrackID)
Definition: PndDrcPDHit.cxx:57
virtual Int_t GetRefIndex()
Definition: PndDrcPDHit.h:57
Double_t fEventTim
Definition: PndDrcPDHit.h:88
void SetMotherIDPho(Int_t MrIDPho)
Definition: PndDrcPDHit.cxx:72
Double_t
void SetTrackIniVertex(TVector3 TrackIniVertex)
Definition: PndDrcPDHit.cxx:60
Int_t GetEventNo() const
Definition: PndDrcPDHit.h:72
void SetEventTim(Double_t EventTim)
Definition: PndDrcPDHit.cxx:81
Double_t GetEventTim() const
Definition: PndDrcPDHit.h:70
TVector3 GetPosition() const
Definition: PndDrcPDHit.h:58
void SetMotherID(Int_t MrID)
Definition: PndDrcPDHit.cxx:63
void SetBarID(Int_t BarID)
Definition: PndDrcPDHit.cxx:51
Double_t fEvtTim
Definition: PndDrcPDHit.h:87
Int_t GetBarID() const
Definition: PndDrcPDHit.h:60
Double_t fY
Definition: PndCaloDraw.cxx:34
Double_t fTimeAtBar
Definition: PndDrcPDHit.h:86
virtual void Print(const Option_t *opt="") const
Definition: PndDrcPDHit.cxx:46
Int_t fBoxID
Definition: PndDrcPDHit.h:79
virtual ~PndDrcPDHit()
Definition: PndDrcPDHit.cxx:41
Int_t fMrIDPho
Definition: PndDrcPDHit.h:83
TVector3 fTrackMom
Definition: PndDrcPDHit.h:85
void SetTrackMom(TVector3 TrackMom)
Definition: PndDrcPDHit.cxx:69
Int_t fBarID
Definition: PndDrcPDHit.h:78
Double_t GetTimeAtBar() const
Definition: PndDrcPDHit.h:68
void SetPdgCode(Int_t Pdg)
Definition: PndDrcPDHit.cxx:66