ndmspc 0.20250304.0
Loading...
Searching...
No Matches
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.
 
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.
 
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.

Member Data Documentation

◆ fCharge

Short_t Ndmspc::Hep::Track::fCharge
private

Charge.

Definition at line 95 of file HepTrack.h.

Referenced by BuildRandom(), Clear(), GetCharge(), Print(), and SetCharge().

◆ fIsPrimary

Bool_t Ndmspc::Hep::Track::fIsPrimary
private

Flag if track was defined as primary.

Definition at line 96 of file HepTrack.h.

Referenced by BuildRandom(), Clear(), IsPrimary(), Print(), and SetPrimary().

◆ fPIDNsigma

Double_t Ndmspc::Hep::Track::fPIDNsigma[5]
private

PID N Sigma.

Definition at line 98 of file HepTrack.h.

Referenced by Clear(), GetPIDNsigma(), SetPIDNsigma(), and Track().

◆ fPx

Double_t Ndmspc::Hep::Track::fPx
private

Momentum x.

Definition at line 92 of file HepTrack.h.

Referenced by BuildRandom(), Clear(), GetP(), GetPx(), Print(), SetP(), and SetPx().

◆ fPy

Double_t Ndmspc::Hep::Track::fPy
private

Momentum y.

Definition at line 93 of file HepTrack.h.

Referenced by BuildRandom(), Clear(), GetP(), GetPy(), Print(), SetP(), and SetPy().

◆ fPz

Double_t Ndmspc::Hep::Track::fPz
private

Momentum z.

Definition at line 94 of file HepTrack.h.

Referenced by BuildRandom(), Clear(), GetP(), GetPz(), Print(), SetP(), and SetPz().

◆ fTPCSignal

Double_t Ndmspc::Hep::Track::fTPCSignal
private

TPC signal.

Definition at line 97 of file HepTrack.h.

Referenced by Clear(), GetTPCSignal(), and SetTPCSignal().


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