PandaRoot
PndFtofHit.h
Go to the documentation of this file.
1 // -------------------------------------------------------------------------
2 // ----- Forward tof header file -----
3 // ----- Created 01.04.09 by A. Sanchez -----
4 // -------------------------------------------------------------------------
5 
13 #ifndef PNDFTOFHIT_H
14 #define PNDFTOFHIT_H
15 
16 #include "TVector3.h"
17 #include "TString.h"
18 #include "FairHit.h"
19 
20 class PndFtofHit : public FairHit {
21 
22  public:
24  PndFtofHit();
25 
35  PndFtofHit(Int_t trackID, Int_t detID, TString detName, Double_t time, Double_t dt, TVector3 &pos, TVector3 &dpos, Int_t index, Double_t charge);
36 
37  // PndFtofHit(PndFtofHit& c);
39  virtual ~PndFtofHit();
40 
43  void SetTrackID(Int_t id) { fTrackID = id; };
44  void SetDetName(TString name) { fDetName = name; };
45  void SetCharge(Double_t charge) { fCharge = charge; };
46  void SetTime(Double_t time) { ftime = time; };
47  // void SetNPixelHits(Int_t pixel){fNPixelHits = pixel;};
48 
49  TString GetDetName() const { return fDetName; }
50  Int_t GetTrackID() { return fTrackID; };
51  Double_t GetCharge() { return fCharge; };
52  Double_t GetTime() { return ftime; };
53  Double_t GetDt() { return fdt; };
54  // Int_t GetNPixelHits() const { return fNPixelHits; }
55  TVector3 GetPosition() const { return TVector3(fX, fY, fZ); }
56 
58  virtual void Print(const Option_t *opt = nullptr) const;
59 
60  public:
61  TString fDetName; // Detector name
62  Int_t fTrackID;
63  Double_t fCharge, ftime, fdt;
64  // Int_t fNPixelHits;
65  ClassDef(PndFtofHit, 6);
66 };
67 
68 #endif
void SetTrackID(Int_t id)
Definition: PndFtofHit.h:43
Double_t GetTime()
Definition: PndFtofHit.h:52
Int_t GetTrackID()
Definition: PndFtofHit.h:50
virtual ~PndFtofHit()
void SetTime(Double_t time)
Definition: PndFtofHit.h:46
void SetDetName(TString name)
Definition: PndFtofHit.h:44
Double_t fCharge
Definition: PndFtofHit.h:63
Int_t fTrackID
Definition: PndFtofHit.h:62
ClassDef(PndFtofHit, 6)
Double_t fdt
Definition: PndFtofHit.h:63
TString GetDetName() const
Definition: PndFtofHit.h:49
Double_t GetDt()
Definition: PndFtofHit.h:53
Double_t ftime
Definition: PndFtofHit.h:63
void SetCharge(Double_t charge)
Definition: PndFtofHit.h:45
Double_t GetCharge()
Definition: PndFtofHit.h:51
TVector3 GetPosition() const
Definition: PndFtofHit.h:55
TString fDetName
Definition: PndFtofHit.h:61
virtual void Print(const Option_t *opt=nullptr) const