ndmspc  0.20250128.0
HepTrack.h
1 #ifndef HepTrack_H
2 #define HepTrack_H
3 
4 #include <TObject.h>
5 namespace Ndmspc {
6 namespace Hep {
7 
14 
15 class Track : public TObject {
16 
17  public:
18  Track();
19  virtual ~Track();
20 
44 
67 
68  Double_t GetPx() const { return fPx; }
69  Double_t GetPy() const { return fPy; }
70  Double_t GetPz() const { return fPz; }
71  Short_t GetCharge() const { return fCharge; }
72  Double_t GetTPCSignal() const { return fTPCSignal; }
73  Double_t GetPIDNsigma(Int_t i) const { return fPIDNsigma[i]; }
74  Bool_t IsPrimary() const { return fIsPrimary; }
75  Double_t GetP() const;
76 
77  void SetPx(Double_t px) { fPx = px; }
78  void SetPy(Double_t py) { fPy = py; }
79  void SetPz(Double_t pz) { fPz = pz; }
80  void SetP(Double_t * p);
81  void SetTPCSignal(Double_t s) { fTPCSignal = s; }
82  void SetCharge(Short_t ch) { fCharge = ch; }
83  void SetPIDNsigma(Int_t i, Double_t s);
84  void SetPrimary(Bool_t isPrimary) { fIsPrimary = isPrimary; }
85 
86  virtual void Print(Option_t * option = "") const;
87  virtual void Clear(Option_t * option = "");
88 
89  void BuildRandom();
90 
91  private:
92  Double_t fPx;
93  Double_t fPy;
94  Double_t fPz;
95  Short_t fCharge;
96  Bool_t fIsPrimary;
97  Double_t fTPCSignal;
98  Double_t fPIDNsigma[5];
99 
100  // TODO
102  Track(const Track &);
103  Track & operator=(const Track &);
104 
106  ClassDef(Track, 1);
108 };
109 } // namespace Hep
110 } // namespace Ndmspc
111 #endif /* HepTrack_H */
Track object.
Definition: HepTrack.h:15
virtual void Print(Option_t *option="") const
Definition: HepTrack.cxx:50
virtual void Clear(Option_t *option="")
Definition: HepTrack.cxx:59
Short_t fCharge
Charge.
Definition: HepTrack.h:95
Double_t fPz
Momentum z.
Definition: HepTrack.h:94
void SetP(Double_t *p)
Definition: HepTrack.cxx:77
void SetCharge(Short_t ch)
Definition: HepTrack.h:82
Double_t GetPy() const
Momentum y component.
Definition: HepTrack.h:69
virtual ~Track()
Definition: HepTrack.cxx:25
Bool_t IsPrimary() const
Is track primary.
Definition: HepTrack.h:74
void SetPrimary(Bool_t isPrimary)
Definition: HepTrack.h:84
void SetTPCSignal(Double_t s)
Definition: HepTrack.h:81
void SetPz(Double_t pz)
Definition: HepTrack.h:79
Double_t fPIDNsigma[5]
PID N Sigma.
Definition: HepTrack.h:98
Track(const Track &)
Copy constructor.
Double_t GetP() const
Get momentum value for current track.
Definition: HepTrack.cxx:87
void SetPy(Double_t py)
Definition: HepTrack.h:78
Track & operator=(const Track &)
not implemented
Bool_t fIsPrimary
Flag if track was defined as primary.
Definition: HepTrack.h:96
void SetPx(Double_t px)
!
Definition: HepTrack.h:77
Double_t GetPx() const
Momentum x component.
Definition: HepTrack.h:68
Double_t GetPIDNsigma(Int_t i) const
NSigma of PID type.
Definition: HepTrack.h:73
Double_t fPx
Momentum x.
Definition: HepTrack.h:92
Double_t GetPz() const
Momentum z component.
Definition: HepTrack.h:70
Double_t fTPCSignal
TPC signal.
Definition: HepTrack.h:97
Double_t fPy
Momentum y.
Definition: HepTrack.h:93
Double_t GetTPCSignal() const
TPC signal of track.
Definition: HepTrack.h:72
void SetPIDNsigma(Int_t i, Double_t s)
Definition: HepTrack.cxx:95
Short_t GetCharge() const
Charge of track.
Definition: HepTrack.h:71