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 #ifndef PNDDRCPDHIT_H
8 #define PNDDRCPDHIT_H
9 
10 #include "FairHit.h"
11 
12 class PndDrcPDHit : public FairHit {
13 
14  public:
16  PndDrcPDHit();
17 
18  PndDrcPDHit(Int_t detID, Int_t sensorId, TVector3 &pos, TVector3 &dpos, Double_t time, Double_t timeThreshold, Int_t index);
19 
21  // PndDrcPDHit(const PndDrcPDHit& hit) { *this = hit; }; // not needed
22 
24  virtual ~PndDrcPDHit();
25 
27  virtual void Print(const Option_t *opt = "") const;
28 
31  void SetBarID(Int_t BarID);
32  void SetBoxID(Int_t BoxID);
33  void SetTrackID(Int_t TrackID);
34  void SetTrackIniVertex(TVector3 TrackIniVertex);
35  void SetMotherID(Int_t MrID);
36  void SetPdgCode(Int_t Pdg);
37  void SetTrackMom(TVector3 TrackMom);
38  void SetMotherIDPho(Int_t MrIDPho);
39  void SetTimeAtBar(Double_t TimeAtBar);
40  void SetEvtTim(Double_t EvtTim);
41  void SetEventTim(Double_t EventTim);
42  void SetPileUp(Double_t pileup);
43  void SetEventNo(Int_t EventNo);
44 
46  virtual Double_t GetTime() { return fTime; }
47  virtual Double_t GetTimeThreshold() { return fTimeThreshold; }
48  virtual Int_t GetRefIndex() { return fRefIndex; }
49  TVector3 GetPosition() const { return TVector3(fX, fY, fZ); }
50  Int_t GetSensorId() { return fSensorId; }
51  Int_t GetBarID() const { return fBarID; }
52  Int_t GetBoxID() const { return fBoxID; }
53  Int_t GetTrackID() const { return fTrackID; }
54  TVector3 GetTrackIniVertex() { return fTrackIniVertex; }
55  Int_t GetMotherID() const { return fMrID; }
56  Int_t GetPdgCode() const { return fPdg; }
57  TVector3 GetTrackMom() { return fTrackMom; }
58  Int_t GetMotherIDPho() const { return fMrIDPho; }
59  Double_t GetTimeAtBar() const { return fTimeAtBar; }
60  Double_t GetEvtTim() const { return fEvtTim; }
61  Double_t GetEventTim() const { return fEventTim; }
62  Double_t GetPileUp() const { return fPileUp; }
63  Int_t GetEventNo() const { return fEventNo; }
64 
65  protected:
66  Int_t fSensorId;
67  Double_t fTime, fTimeThreshold;
68  Int_t fBarID;
69  Int_t fBoxID;
70  Int_t fTrackID;
71  TVector3 fTrackIniVertex;
72  Int_t fMrID;
73  Int_t fMrIDPho;
74  Int_t fPdg;
75  TVector3 fTrackMom;
76  Double_t fTimeAtBar;
77  Double_t fEvtTim;
78  Double_t fEventTim;
79  Double_t fPileUp;
80  Int_t fEventNo;
81 
82  ClassDef(PndDrcPDHit, 1)
83 };
84 
85 #endif // PNDDRCPDHIT_H
Int_t fTrackID
Definition: PndDrcPDHit.h:70
void SetTimeAtBar(Double_t TimeAtBar)
Int_t fPdg
Definition: PndDrcPDHit.h:74
TVector3 fTrackIniVertex
Definition: PndDrcPDHit.h:71
Double_t fTimeThreshold
Definition: PndDrcPDHit.h:67
Int_t GetSensorId()
Definition: PndDrcPDHit.h:50
Double_t fTime
Definition: PndDrcPDHit.h:67
Int_t fEventNo
Definition: PndDrcPDHit.h:80
virtual void Print(const Option_t *opt="") const
void SetPileUp(Double_t pileup)
TVector3 GetTrackIniVertex()
Definition: PndDrcPDHit.h:54
TVector3 GetTrackMom()
Definition: PndDrcPDHit.h:57
Int_t GetBoxID() const
Definition: PndDrcPDHit.h:52
Double_t fPileUp
Definition: PndDrcPDHit.h:79
Int_t fSensorId
Definition: PndDrcPDHit.h:66
void SetBoxID(Int_t BoxID)
Int_t GetMotherID() const
Definition: PndDrcPDHit.h:55
void SetEvtTim(Double_t EvtTim)
void SetEventNo(Int_t EventNo)
Int_t fMrID
Definition: PndDrcPDHit.h:72
virtual Double_t GetTime()
Definition: PndDrcPDHit.h:46
virtual Double_t GetTimeThreshold()
Definition: PndDrcPDHit.h:47
void SetTrackID(Int_t TrackID)
virtual ~PndDrcPDHit()
virtual Int_t GetRefIndex()
Definition: PndDrcPDHit.h:48
Double_t fEventTim
Definition: PndDrcPDHit.h:78
Int_t GetBarID() const
Definition: PndDrcPDHit.h:51
void SetMotherIDPho(Int_t MrIDPho)
void SetTrackIniVertex(TVector3 TrackIniVertex)
void SetEventTim(Double_t EventTim)
Int_t GetEventNo() const
Definition: PndDrcPDHit.h:63
void SetMotherID(Int_t MrID)
void SetBarID(Int_t BarID)
Double_t fEvtTim
Definition: PndDrcPDHit.h:77
Int_t GetMotherIDPho() const
Definition: PndDrcPDHit.h:58
Double_t GetPileUp() const
Definition: PndDrcPDHit.h:62
Double_t GetEvtTim() const
Definition: PndDrcPDHit.h:60
Int_t GetPdgCode() const
Definition: PndDrcPDHit.h:56
Double_t fTimeAtBar
Definition: PndDrcPDHit.h:76
Double_t GetEventTim() const
Definition: PndDrcPDHit.h:61
Double_t GetTimeAtBar() const
Definition: PndDrcPDHit.h:59
TVector3 GetPosition() const
Definition: PndDrcPDHit.h:49
Int_t fBoxID
Definition: PndDrcPDHit.h:69
Int_t GetTrackID() const
Definition: PndDrcPDHit.h:53
Int_t fMrIDPho
Definition: PndDrcPDHit.h:73
TVector3 fTrackMom
Definition: PndDrcPDHit.h:75
void SetTrackMom(TVector3 TrackMom)
Int_t fBarID
Definition: PndDrcPDHit.h:68
void SetPdgCode(Int_t Pdg)