PandaRoot
PndDrcPDPoint.h
Go to the documentation of this file.
1 // -------------------------------------------------------------------------
2 // ----- PndDrcPDPoint header file -----
3 // ----- Created 09/04/08 by E. Fioravanti and A. Cecchi -----
4 // -------------------------------------------------------------------------
5 
9 #ifndef PNDDRCPDPOINT_H
10 #define PNDDRCPDPOINT_H
11 
12 #include "TObject.h"
13 #include "TVector3.h"
14 #include "FairMCPoint.h"
15 
16 class PndDrcPDPoint : public FairMCPoint {
17 
18  public:
20  PndDrcPDPoint();
21 
32  PndDrcPDPoint(Int_t trackID, Int_t detID, Int_t mcpId, Int_t barPintId, TVector3 pos, TVector3 mom, TVector3 momAtEV, Double_t timeAtEV, Double_t tof, Double_t length,
33  Int_t pdgCode, Int_t eventID);
34 
36  // PndDrcPDPoint(const PndDrcPDPoint& point) { *this = point; }; // not needed
37 
39  virtual ~PndDrcPDPoint();
40 
42  Int_t GetPdgCode() const { return fPdgCode; };
43  TVector3 GetMomAtEV() const { return fmomAtEV; };
44  Double_t GetTimeAtEV() const { return ftimeAtEV; };
45  Int_t GetDetectorID() const { return fDetectorID; };
46  Int_t GetBarPointID() const { return fBarPointId; };
47  Int_t GetMcpId() const { return fMcpId; };
48 
50  void SetPdgCode(Int_t id) { fPdgCode = id; };
51 
53  // virtual void Print(const Option_t* opt = 0) const = 0;
54  virtual void Print(const Option_t *opt) const;
55 
56  protected:
57  Int_t fPdgCode;
58  Int_t fMcpId;
59  Int_t fBarPointId;
60  TVector3 fmomAtEV;
61  Double_t ftimeAtEV;
62 
63  ClassDef(PndDrcPDPoint, 3)
64 };
65 
66 #endif
TVector3 fmomAtEV
Definition: PndDrcPDPoint.h:60
Double_t ftimeAtEV
Definition: PndDrcPDPoint.h:61
Int_t GetMcpId() const
Definition: PndDrcPDPoint.h:47
void SetPdgCode(Int_t id)
Definition: PndDrcPDPoint.h:50
virtual void Print(const Option_t *opt) const
TVector3 GetMomAtEV() const
Definition: PndDrcPDPoint.h:43
Double_t GetTimeAtEV() const
Definition: PndDrcPDPoint.h:44
Int_t GetDetectorID() const
Definition: PndDrcPDPoint.h:45
Int_t GetPdgCode() const
Definition: PndDrcPDPoint.h:42
Int_t GetBarPointID() const
Definition: PndDrcPDPoint.h:46
virtual ~PndDrcPDPoint()