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 
9 #ifndef PNDRICHBARPOINT_H
10 #define PNDRICHBARPOINT_H
11 
12 #include "TObject.h"
13 #include "TVector3.h"
14 #include "FairMCPoint.h"
15 
16 class PndRichBarPoint : public FairMCPoint {
17 
18  public:
21 
23  PndRichBarPoint(Int_t trackID, Int_t detID, TVector3 pos, TVector3 mom, Double_t tof, Double_t length, Int_t pdgCode, Double_t thetaC, Int_t eventID, Double_t mass);
24 
25  PndRichBarPoint(Int_t trackID, Int_t detID, TVector3 pos, TVector3 mom, Double_t tof, Double_t length, Int_t pdgCode, Double_t thetaC, Int_t eventID, Double_t mass,
26  TVector3 pos0, TVector3 mom0);
27 
28  PndRichBarPoint(TVector3 pos, TVector3 dir, Double_t time);
29 
31  // PndRichBarPoint(const PndRichBarPoint& point) { *this = point; }; // Not needed
32 
34  virtual ~PndRichBarPoint();
35 
37  Int_t GetPdgCode() const { return fPdgCode; };
38  Double_t GetThetaC() const { return fThetaC; };
39  Double_t GetMass() const { return fMass; };
40  Int_t GetTrackStatus() const { return fTrackStatus; };
41  // TVector3 GetPosition() const { return TVector3(fX,fY,fZ);};
42  // TVector3 GetMomentum() const { return TVector3(fPx,fPy,fPz);};
43  TVector3 GetPosition0() const { return fTrackPos0; };
44  TVector3 GetMomentum0() const { return fTrackMom0; };
45  Double_t GetTime0() const { return fTime; };
46  TVector3 GetAxisX() const { return fAxisX; };
47  TVector3 GetAxisY() const { return fAxisY; };
48  TVector3 GetAxisZ() const { return fAxisZ; };
49 
51  void SetPdgCode(Int_t id) { fPdgCode = id; };
52  void SetThetaC(Double_t theta) { fThetaC = theta; };
54 
55  void SetPosition0(TVector3 pos) { fTrackPos0 = pos; };
56  void SetMomentum0(TVector3 dir);
57 
59  // virtual void Print(const Option_t* opt = 0) const = 0;
60  virtual void Print(const Option_t *opt) const;
61 
62  protected:
63  Int_t fPdgCode; // PDG code
64  Double_t fThetaC; // Cherenkov Angle
65  Double_t fMass; // Mass
66  Int_t fTrackStatus;
67  TVector3 fTrackPos0;
68  TVector3 fTrackMom0;
69  Double_t fTime0;
70  TVector3 fAxisX;
71  TVector3 fAxisY;
72  TVector3 fAxisZ;
73 
74  ClassDef(PndRichBarPoint, 3)
75 };
76 
77 #endif
TVector3 GetPosition0() const
Double_t GetMass() const
TVector3 GetMomentum0() const
Int_t GetTrackStatus() const
Double_t GetTime0() const
virtual ~PndRichBarPoint()
void SetThetaC(Double_t theta)
Int_t GetPdgCode() const
Double_t GetThetaC() const
void SetMomentum0(TVector3 dir)
TVector3 GetAxisX() const
void SetPosition0(TVector3 pos)
void SetPdgCode(Int_t id)
TVector3 GetAxisZ() const
virtual void Print(const Option_t *opt) const
void SetTrackStatus(Int_t status)
TVector3 GetAxisY() const
int status[10]
Definition: f_Init.h:24