PandaRoot
PndDrcBarPoint.h
Go to the documentation of this file.
1 // -------------------------------------------------------------------------
2 // ----- PndDrcBarPoint header file -----
3 // ----- Created 09/04/08 by E. Fioravanti and A. Cecchi -----
4 // -------------------------------------------------------------------------
5 
9 #ifndef PNDDRCBARPOINT_H
10 #define PNDDRCBARPOINT_H
11 
12 #include "TObject.h"
13 #include "TVector3.h"
14 #include "FairMCPoint.h"
15 
16 class PndDrcBarPoint : public FairMCPoint {
17 
18  public:
21 
23  PndDrcBarPoint(Int_t trackID, Int_t detID, TVector3 pos, TVector3 mom, Double_t tof, Double_t length, Int_t pdgCode, Double_t thetaC, Int_t nBar, Int_t eventID, Double_t mass);
24 
26  // PndDrcBarPoint(const PndDrcBarPoint& point) { *this = point; }; // Not needed
27 
29  virtual ~PndDrcBarPoint();
30 
32  Int_t GetPdgCode() const { return fPdgCode; };
33  Double_t GetThetaC() const { return fThetaC; };
34  Int_t GetBarId() const { return fBarN % 10; };
35  Int_t GetBoxId() const { return fBarN / 10; };
36  Double_t GetMass() const { return fMass; };
37  Int_t GetTrackStatus() const { return fTrackStatus; };
38 
40  void SetPdgCode(Int_t id) { fPdgCode = id; };
41  void SetThetaC(Double_t theta) { fThetaC = theta; };
42  void SetBarN(Int_t bar) { fBarN = bar; };
44 
46  // virtual void Print(const Option_t* opt = 0) const = 0;
47  virtual void Print(const Option_t *opt) const;
48 
49  protected:
50  Int_t fPdgCode; // PDG code
51  Double_t fThetaC; // Cherenkov Angle
52  Int_t fBarN; // Bar id number
53  Double_t fMass; // Mass
54  Int_t fTrackStatus;
55 
56  ClassDef(PndDrcBarPoint, 3)
57 };
58 
59 #endif
Double_t fThetaC
Int_t GetBoxId() const
Int_t GetTrackStatus() const
Int_t GetPdgCode() const
virtual ~PndDrcBarPoint()
Int_t GetBarId() const
void SetBarN(Int_t bar)
void SetThetaC(Double_t theta)
void SetTrackStatus(Int_t status)
void SetPdgCode(Int_t id)
virtual void Print(const Option_t *opt) const
Double_t GetMass() const
int status[10]
Definition: f_Init.h:24
Double_t GetThetaC() const