ndmspc  0.20250128.0
Ndmspc::Hep::Track Class Reference

Track object. More...

#include <HepTrack.h>

Inheritance diagram for Ndmspc::Hep::Track:

Public Member Functions

 Track ()
 
virtual ~Track ()
 
Double_t GetPx () const
 Momentum x component. More...
 
Double_t GetPy () const
 Momentum y component. More...
 
Double_t GetPz () const
 Momentum z component. More...
 
Short_t GetCharge () const
 Charge of track. More...
 
Double_t GetTPCSignal () const
 TPC signal of track. More...
 
Double_t GetPIDNsigma (Int_t i) const
 NSigma of PID type. More...
 
Bool_t IsPrimary () const
 Is track primary. More...
 
Double_t GetP () const
 Get momentum value for current track. More...
 
void SetPx (Double_t px)
 ! More...
 
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.
 
Trackoperator= (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.
 

Detailed Description

Track object.

Author
Martin Vala mvala.nosp@m.@cer.nosp@m.n.ch

Definition at line 15 of file HepTrack.h.

Constructor & Destructor Documentation

◆ Track()

Ndmspc::Hep::Track::Track ( )

A constructor

Definition at line 13 of file HepTrack.cxx.

References fPIDNsigma.

◆ ~Track()

Ndmspc::Hep::Track::~Track ( )
virtual

A destructor

Definition at line 25 of file HepTrack.cxx.

Member Function Documentation

◆ BuildRandom()

void Ndmspc::Hep::Track::BuildRandom ( )

Building random event

Definition at line 32 of file HepTrack.cxx.

References fCharge, fIsPrimary, fPx, fPy, and fPz.

◆ Clear()

void Ndmspc::Hep::Track::Clear ( Option_t *  option = "")
virtual

Reseting track to default values

Definition at line 59 of file HepTrack.cxx.

References fCharge, fIsPrimary, fPIDNsigma, fPx, fPy, fPz, and fTPCSignal.

◆ GetCharge()

Int_t Ndmspc::Hep::Track::GetCharge ( ) const
inline

Charge of track.

Returns
charge !

Definition at line 71 of file HepTrack.h.

References fCharge.

◆ GetP()

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.

References fPx, fPy, and fPz.

◆ GetPIDNsigma()

Int_t Ndmspc::Hep::Track::GetPIDNsigma ( Int_t  i) const
inline

NSigma of PID type.

Returns
pidNsigma !

Definition at line 73 of file HepTrack.h.

References fPIDNsigma.

◆ GetPx()

Double_t Ndmspc::Hep::Track::GetPx ( ) const
inline

Momentum x component.

Returns
Px component !

Definition at line 68 of file HepTrack.h.

References fPx.

◆ GetPy()

Double_t Ndmspc::Hep::Track::GetPy ( ) const
inline

Momentum y component.

Returns
Py component !

Definition at line 69 of file HepTrack.h.

References fPy.

◆ GetPz()

Double_t Ndmspc::Hep::Track::GetPz ( ) const
inline

Momentum z component.

Returns
Pz component !

Definition at line 70 of file HepTrack.h.

References fPz.

◆ GetTPCSignal()

Int_t Ndmspc::Hep::Track::GetTPCSignal ( ) const
inline

TPC signal of track.

Returns
tpcSignal !

Definition at line 72 of file HepTrack.h.

References fTPCSignal.

◆ IsPrimary()

Bool_t Ndmspc::Hep::Track::IsPrimary ( ) const
inline

Is track primary.

Returns
primary !

Definition at line 74 of file HepTrack.h.

References fIsPrimary.

◆ Print()

void Ndmspc::Hep::Track::Print ( Option_t *  option = "") const
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().

◆ SetCharge()

void Ndmspc::Hep::Track::SetCharge ( Short_t  ch)
inline
Parameters
chCharge Sets charge !

Definition at line 82 of file HepTrack.h.

References fCharge.

◆ SetP()

void Ndmspc::Hep::Track::SetP ( Double_t *  p)

Sets all components of momentum

Definition at line 77 of file HepTrack.cxx.

References fPx, fPy, and fPz.

◆ SetPIDNsigma()

void Ndmspc::Hep::Track::SetPIDNsigma ( Int_t  i,
Double_t  s 
)
Parameters
iparticle type
snSigma 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.

◆ SetPrimary()

void Ndmspc::Hep::Track::SetPrimary ( Bool_t  isPrimary)
inline
Parameters
isPrimaryis track primary Sets if track is primary

Definition at line 84 of file HepTrack.h.

References fIsPrimary.

◆ SetPx()

void Ndmspc::Hep::Track::SetPx ( Double_t  px)
inline

!

Parameters
pxMomentum x component Sets x component of momentum !

Definition at line 77 of file HepTrack.h.

References fPx.

◆ SetPy()

void Ndmspc::Hep::Track::SetPy ( Double_t  py)
inline
Parameters
pyMomentum y component Sets y component of momentum !

Definition at line 78 of file HepTrack.h.

References fPy.

◆ SetPz()

void Ndmspc::Hep::Track::SetPz ( Double_t  pz)
inline
Parameters
pzMomentum z component Sets z component of momentum !

Definition at line 79 of file HepTrack.h.

References fPz.

◆ SetTPCSignal()

void Ndmspc::Hep::Track::SetTPCSignal ( Double_t  s)
inline
Parameters
sTPC signal Sets TPC signal !

Definition at line 81 of file HepTrack.h.

References fTPCSignal.


The documentation for this class was generated from the following files: