ndhep  0.1.1
 All Classes Functions Variables Pages
NDHep::Track Class Reference

Track object. More...

#include <Track.hh>

Inheritance diagram for NDHep::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 14 of file Track.hh.

Constructor & Destructor Documentation

NDHep::Track::Track ( )

A constructor

Definition at line 13 of file Track.cc.

References fPIDNsigma.

NDHep::Track::~Track ( )
virtual

A destructor

Definition at line 28 of file Track.cc.

Member Function Documentation

void NDHep::Track::BuildRandom ( )

Building random event

Definition at line 35 of file Track.cc.

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

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

Reseting track to default values

Definition at line 63 of file Track.cc.

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

Int_t NDHep::Track::GetCharge ( ) const
inline

Charge of track.

Returns
charge !

Definition at line 71 of file Track.hh.

References fCharge.

Double_t NDHep::Track::GetP ( ) const

Get momentum value for current track.

Returns value of total momentum for current track

Definition at line 92 of file Track.cc.

References fPx, fPy, and fPz.

Int_t NDHep::Track::GetPIDNsigma ( Int_t  i) const
inline

NSigma of PID type.

Returns
pidNsigma !

Definition at line 73 of file Track.hh.

References fPIDNsigma.

Double_t NDHep::Track::GetPx ( ) const
inline

Momentum x component.

Returns
Px component !

Definition at line 68 of file Track.hh.

References fPx.

Double_t NDHep::Track::GetPy ( ) const
inline

Momentum y component.

Returns
Py component !

Definition at line 69 of file Track.hh.

References fPy.

Double_t NDHep::Track::GetPz ( ) const
inline

Momentum z component.

Returns
Pz component !

Definition at line 70 of file Track.hh.

References fPz.

Int_t NDHep::Track::GetTPCSignal ( ) const
inline

TPC signal of track.

Returns
tpcSignal !

Definition at line 72 of file Track.hh.

References fTPCSignal.

Bool_t NDHep::Track::IsPrimary ( ) const
inline

Is track primary.

Returns
primary !

Definition at line 74 of file Track.hh.

References fIsPrimary.

void NDHep::Track::Print ( Option_t *  option = "") const
virtual

Printing track info

Definition at line 53 of file Track.cc.

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

Referenced by NDHep::Event::Print().

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

Definition at line 82 of file Track.hh.

References fCharge.

void NDHep::Track::SetP ( Double_t *  p)

Sets all components of momentum

Definition at line 82 of file Track.cc.

References fPx, fPy, and fPz.

void NDHep::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 101 of file Track.cc.

References fPIDNsigma.

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

Definition at line 84 of file Track.hh.

References fIsPrimary.

void NDHep::Track::SetPx ( Double_t  px)
inline

!

Parameters
pxMomentum x component Sets x component of momentum !

Definition at line 77 of file Track.hh.

References fPx.

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

Definition at line 78 of file Track.hh.

References fPy.

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

Definition at line 79 of file Track.hh.

References fPz.

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

Definition at line 81 of file Track.hh.

References fTPCSignal.


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