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