FairRoot/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 
6 
10 #ifndef PNDDRCBARPOINT_H
11 #define PNDDRCBARPOINT_H
12 
13 #include "TObject.h"
14 #include "TVector3.h"
15 #include "FairMCPoint.h"
16 
17 class PndDrcBarPoint : public FairMCPoint
18 {
19 
20  public:
21 
24 
25 
27  PndDrcBarPoint(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 nBar, Int_t eventID, Double_t mass);
30 
31 
33  // PndDrcBarPoint(const PndDrcBarPoint& point) { *this = point; }; // Not needed
34 
35 
37  virtual ~PndDrcBarPoint();
38 
39 
41  Int_t GetPdgCode() const { return fPdgCode;};
42  Double_t GetThetaC() const { return fThetaC; };
43  Int_t GetBarId() const { return fBarN%10;};
44  Int_t GetBoxId() const { return fBarN/10;};
45  Double_t GetMass() const { return fMass;};
46  Int_t GetTrackStatus() const { return fTrackStatus;};
47 
48 
50  void SetPdgCode(Int_t id) { fPdgCode = id; };
52  void SetBarN(Int_t bar) { fBarN = bar; };
54 
55 
57  // virtual void Print(const Option_t* opt = 0) const = 0;
58  virtual void Print(const Option_t* opt) const ;
59 
60 
61  protected:
62 
63  Int_t fPdgCode; // PDG code
64  Double_t fThetaC; // Cherenkov Angle
65  Int_t fBarN; // Bar id number
66  Double_t fMass; // Mass
67  Int_t fTrackStatus;
68 
69  ClassDef(PndDrcBarPoint,3)
70 
71 };
72 
73 #endif
TVector3 pos
virtual ~PndDrcBarPoint()
Double_t GetMass() const
Int_t GetPdgCode() const
Double_t fThetaC
Int_t GetTrackStatus() const
Int_t GetBarId() const
Double_t mom
Definition: plot_dirc.C:14
virtual void Print(const Option_t *opt) const
void SetBarN(Int_t bar)
Double_t GetThetaC() const
Int_t GetBoxId() const
Double_t
void SetThetaC(Double_t theta)
void SetTrackStatus(Int_t status)
void SetPdgCode(Int_t id)
Double_t thetaC
Definition: plot_dirc.C:16
int status[10]
Definition: f_Init.h:28