FairRoot/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 
6 
14 #ifndef PNDFTOFHIT_H
15 #define PNDFTOFHIT_H
16 
17 
18 #include "TVector3.h"
19 #include "TString.h"
20 #include "FairHit.h"
21 
22 
23 class PndFtofHit : public FairHit
24 {
25 
26  public:
27 
29  PndFtofHit();
30 
31 
41  PndFtofHit(Int_t trackID, Int_t detID, TString detName,Double_t time,Double_t dt,
42  TVector3& pos,TVector3& dpos,Int_t index, Double_t charge);
43 
44  //PndFtofHit(PndFtofHit& c);
46  virtual ~PndFtofHit();
47 
48 
51  void SetTrackID(Int_t id){fTrackID = id;};
53  void SetCharge(Double_t charge){fCharge = charge;};
54  void SetTime(Double_t time){ftime = time;};
55  //void SetNPixelHits(Int_t pixel){fNPixelHits = pixel;};
56 
57  TString GetDetName()const { return fDetName; }
58  Int_t GetTrackID(){return fTrackID;};
60  Double_t GetTime(){return ftime;};
61  Double_t GetDt(){return fdt;};
62  //Int_t GetNPixelHits() const { return fNPixelHits; }
63  TVector3 GetPosition() const { return TVector3(fX, fY, fZ); }
64 
65 
67  virtual void Print(const Option_t* opt = 0) const;
68 
69 
70  public:
71 
72  TString fDetName; // Detector name
73  Int_t fTrackID;
75  //Int_t fNPixelHits;
77 
78 };
79 
80 #endif
void SetTrackID(Int_t id)
Definition: PndFtofHit.h:51
Double_t GetTime()
Definition: PndFtofHit.h:60
TVector3 pos
Int_t GetTrackID()
Definition: PndFtofHit.h:58
void SetTime(Double_t time)
Definition: PndFtofHit.h:54
void SetDetName(TString name)
Definition: PndFtofHit.h:52
Double_t fCharge
Definition: PndFtofHit.h:74
Double_t fX
Definition: PndCaloDraw.cxx:34
Int_t fTrackID
Definition: PndFtofHit.h:73
ClassDef(PndFtofHit, 6)
Double_t fdt
Definition: PndFtofHit.h:74
Double_t fZ
Definition: PndCaloDraw.cxx:34
Double_t
TVector3 GetPosition() const
Definition: PndFtofHit.h:63
virtual ~PndFtofHit()
Definition: PndFtofHit.cxx:38
virtual void Print(const Option_t *opt=0) const
Definition: PndFtofHit.cxx:44
TString name
Double_t fY
Definition: PndCaloDraw.cxx:34
Double_t GetDt()
Definition: PndFtofHit.h:61
Double_t ftime
Definition: PndFtofHit.h:74
void SetCharge(Double_t charge)
Definition: PndFtofHit.h:53
Double_t GetCharge()
Definition: PndFtofHit.h:59
TString GetDetName() const
Definition: PndFtofHit.h:57
TString fDetName
Definition: PndFtofHit.h:72