FairRoot/PandaRoot
PndRichBarPoint.h
Go to the documentation of this file.
1 // -------------------------------------------------------------------------
2 // ----- PndRichBarPoint header file -----
3 // ----- Created 09/04/08 by E. Fioravanti and A. Cecchi -----
4 // -------------------------------------------------------------------------
5 
6 
10 #ifndef PNDRICHBARPOINT_H
11 #define PNDRICHBARPOINT_H
12 
13 #include "TObject.h"
14 #include "TVector3.h"
15 #include "FairMCPoint.h"
16 
17 class PndRichBarPoint : public FairMCPoint
18 {
19 
20  public:
21 
24 
25 
27  PndRichBarPoint(Int_t trackID, Int_t detID, TVector3 pos, TVector3 mom,
28  Double_t tof, Double_t length, Int_t pdgCode,
29  Double_t thetaC, Int_t eventID, Double_t mass);
30 
31  PndRichBarPoint(Int_t trackID, Int_t detID, TVector3 pos, TVector3 mom,
32  Double_t tof, Double_t length, Int_t pdgCode,
33  Double_t thetaC, Int_t eventID, Double_t mass,
34  TVector3 pos0, TVector3 mom0);
35 
36  PndRichBarPoint(TVector3 pos, TVector3 dir, Double_t time);
37 
38 
40  // PndRichBarPoint(const PndRichBarPoint& point) { *this = point; }; // Not needed
41 
42 
44  virtual ~PndRichBarPoint();
45 
46 
48  Int_t GetPdgCode() const { return fPdgCode;};
49  Double_t GetThetaC() const { return fThetaC; };
50  Double_t GetMass() const { return fMass;};
51  Int_t GetTrackStatus() const { return fTrackStatus;};
52  //TVector3 GetPosition() const { return TVector3(fX,fY,fZ);};
53  //TVector3 GetMomentum() const { return TVector3(fPx,fPy,fPz);};
54  TVector3 GetPosition0() const { return fTrackPos0;};
55  TVector3 GetMomentum0() const { return fTrackMom0;};
56  Double_t GetTime0() const { return fTime;};
57  TVector3 GetAxisX() const { return fAxisX;};
58  TVector3 GetAxisY() const { return fAxisY;};
59  TVector3 GetAxisZ() const { return fAxisZ;};
60 
61 
63  void SetPdgCode(Int_t id) { fPdgCode = id; };
66 
67  void SetPosition0( TVector3 pos ) { fTrackPos0 = pos; };
68  void SetMomentum0( TVector3 dir );
69 
70 
72  // virtual void Print(const Option_t* opt = 0) const = 0;
73  virtual void Print(const Option_t* opt) const ;
74 
75 
76  protected:
77 
78  Int_t fPdgCode; // PDG code
79  Double_t fThetaC; // Cherenkov Angle
80  Double_t fMass; // Mass
81  Int_t fTrackStatus;
82  TVector3 fTrackPos0;
83  TVector3 fTrackMom0;
85  TVector3 fAxisX;
86  TVector3 fAxisY;
87  TVector3 fAxisZ;
88 
89  ClassDef(PndRichBarPoint,3)
90 
91 };
92 
93 #endif
TVector3 pos
Int_t GetTrackStatus() const
Double_t mom
Definition: plot_dirc.C:14
Double_t GetMass() const
void SetThetaC(Double_t theta)
TVector3 GetAxisZ() const
Double_t
virtual void Print(const Option_t *opt) const
void SetMomentum0(TVector3 dir)
TVector3 GetMomentum0() const
Double_t GetThetaC() const
TVector3 GetAxisX() const
TVector3 GetPosition0() const
Int_t GetPdgCode() const
void SetPosition0(TVector3 pos)
void SetPdgCode(Int_t id)
Double_t GetTime0() const
virtual ~PndRichBarPoint()
void SetTrackStatus(Int_t status)
Double_t thetaC
Definition: plot_dirc.C:16
TVector3 GetAxisY() const
int status[10]
Definition: f_Init.h:28