ndmspc 0.20250304.0
|
#include <HepTrack.h>
Public Member Functions | |
Track () | |
virtual | ~Track () |
Double_t | GetPx () const |
Momentum x component. | |
Double_t | GetPy () const |
Momentum y component. | |
Double_t | GetPz () const |
Momentum z component. | |
Short_t | GetCharge () const |
Charge of track. | |
Double_t | GetTPCSignal () const |
TPC signal of track. | |
Double_t | GetPIDNsigma (Int_t i) const |
NSigma of PID type. | |
Bool_t | IsPrimary () const |
Is track primary. | |
Double_t | GetP () const |
Get momentum value for current track. | |
void | SetPx (Double_t px) |
! | |
void | SetPy (Double_t py) |
void | SetPz (Double_t pz) |
void | SetP (Double_t *p) |
void | SetTPCSignal (Double_t s) |
void | SetCharge (Short_t ch) |
void | SetPIDNsigma (Int_t i, Double_t s) |
void | SetPrimary (Bool_t isPrimary) |
virtual void | Print (Option_t *option="") const |
virtual void | Clear (Option_t *option="") |
void | BuildRandom () |
Private Member Functions | |
Track (const Track &) | |
Copy constructor. | |
Track & | operator= (const Track &) |
not implemented | |
Private Attributes | |
Double_t | fPx |
Momentum x. | |
Double_t | fPy |
Momentum y. | |
Double_t | fPz |
Momentum z. | |
Short_t | fCharge |
Charge. | |
Bool_t | fIsPrimary |
Flag if track was defined as primary. | |
Double_t | fTPCSignal |
TPC signal. | |
Double_t | fPIDNsigma [5] |
PID N Sigma. | |
Track object.
Definition at line 15 of file HepTrack.h.
Ndmspc::Hep::Track::Track | ( | ) |
|
virtual |
A destructor
Definition at line 25 of file HepTrack.cxx.
void Ndmspc::Hep::Track::BuildRandom | ( | ) |
Building random event
Definition at line 32 of file HepTrack.cxx.
References fCharge, fIsPrimary, fPx, fPy, and fPz.
|
virtual |
Reseting track to default values
Definition at line 59 of file HepTrack.cxx.
References fCharge, fIsPrimary, fPIDNsigma, fPx, fPy, fPz, and fTPCSignal.
|
inline |
Double_t Ndmspc::Hep::Track::GetP | ( | ) | const |
Get momentum value for current track.
Returns value of total momentum for current track
Definition at line 87 of file HepTrack.cxx.
|
inline |
NSigma of PID type.
Definition at line 73 of file HepTrack.h.
References fPIDNsigma.
|
inline |
Momentum x component.
Definition at line 68 of file HepTrack.h.
References fPx.
|
inline |
Momentum y component.
Definition at line 69 of file HepTrack.h.
References fPy.
|
inline |
Momentum z component.
Definition at line 70 of file HepTrack.h.
References fPz.
|
inline |
TPC signal of track.
Definition at line 72 of file HepTrack.h.
References fTPCSignal.
|
inline |
|
virtual |
Printing track info
Definition at line 50 of file HepTrack.cxx.
References fCharge, fIsPrimary, fPx, fPy, and fPz.
Referenced by Ndmspc::Hep::Event::Print().
|
inline |
void Ndmspc::Hep::Track::SetP | ( | Double_t * | p | ) |
Sets all components of momentum
Definition at line 77 of file HepTrack.cxx.
void Ndmspc::Hep::Track::SetPIDNsigma | ( | Int_t | i, |
Double_t | s ) |
i | particle type |
s | nSigma value Sets PID nSigma value ! |
Sets all components of nsigma (kElectron kMuon kPion kKaon kProton)
Definition at line 95 of file HepTrack.cxx.
References fPIDNsigma.
|
inline |
isPrimary | is track primary Sets if track is primary |
Definition at line 84 of file HepTrack.h.
References fIsPrimary.
|
inline |
!
px | Momentum x component Sets x component of momentum ! |
Definition at line 77 of file HepTrack.h.
References fPx.
|
inline |
py | Momentum y component Sets y component of momentum ! |
Definition at line 78 of file HepTrack.h.
References fPy.
|
inline |
pz | Momentum z component Sets z component of momentum ! |
Definition at line 79 of file HepTrack.h.
References fPz.
|
inline |
s | TPC signal Sets TPC signal ! |
Definition at line 81 of file HepTrack.h.
References fTPCSignal.
|
private |
Charge.
Definition at line 95 of file HepTrack.h.
Referenced by BuildRandom(), Clear(), GetCharge(), Print(), and SetCharge().
|
private |
Flag if track was defined as primary.
Definition at line 96 of file HepTrack.h.
Referenced by BuildRandom(), Clear(), IsPrimary(), Print(), and SetPrimary().
|
private |
PID N Sigma.
Definition at line 98 of file HepTrack.h.
Referenced by Clear(), GetPIDNsigma(), SetPIDNsigma(), and Track().
|
private |
Momentum x.
Definition at line 92 of file HepTrack.h.
Referenced by BuildRandom(), Clear(), GetP(), GetPx(), Print(), SetP(), and SetPx().
|
private |
Momentum y.
Definition at line 93 of file HepTrack.h.
Referenced by BuildRandom(), Clear(), GetP(), GetPy(), Print(), SetP(), and SetPy().
|
private |
Momentum z.
Definition at line 94 of file HepTrack.h.
Referenced by BuildRandom(), Clear(), GetP(), GetPz(), Print(), SetP(), and SetPz().
|
private |
TPC signal.
Definition at line 97 of file HepTrack.h.
Referenced by Clear(), GetTPCSignal(), and SetTPCSignal().