13 Track::Track() : TObject(), fPx(0.0), fPy(0.0), fPz(0.0), fCharge(0), fIsPrimary(0), fTPCSignal(0)
20 for (Int_t i = 0; i < 5; ++i) {
39 gRandom->Rannor(px, py);
42 fPz = TMath::Sqrt(px * px + py * py);
44 fIsPrimary = (gRandom->Integer(2) > 0) ? kTRUE : kFALSE;
47 fCharge = (gRandom->Integer(2) > 0) ? 1 : -1;
72 for (Int_t i = 0; i < 5; ++i) {
92 return TMath::Sqrt(TMath::Power(
fPx, 2) + TMath::Power(
fPy, 2) + TMath::Power(
fPz, 2));
virtual void Print(Option_t *option="") const
virtual void Clear(Option_t *option="")
Double_t fPIDNsigma[5]
PID N Sigma.
Double_t GetP() const
Get momentum value for current track.
Bool_t fIsPrimary
Flag if track was defined as primary.
Double_t fTPCSignal
TPC signal.
void SetPIDNsigma(Int_t i, Double_t s)