BmnRoot 26.10.0-210-gc52d34b0
Software framework of the BM@N experiment
Loading...
Searching...
No Matches
UParticle Class Reference

unigen particle More...

#include <UParticle.h>

Inheritance diagram for UParticle:
Collaboration diagram for UParticle:

Public Member Functions

 UParticle ()
 default constructor
 UParticle (Int_t index, Int_t pdg, Int_t status, Int_t parent, Int_t parentDecay, Int_t mate, Int_t decay, Int_t child[2], Double_t px, Double_t py, Double_t pz, Double_t e, Double_t x, Double_t y, Double_t z, Double_t t, Double_t weight)
 constructor
 UParticle (Int_t index, Int_t pdg, Int_t status, Int_t parent, Int_t parentDecay, Int_t mate, Int_t decay, Int_t child[2], TLorentzVector mom, TLorentzVector pos, Double_t weight)
 constructor
 UParticle (const UParticle &right)
 copy constructor
 UParticle (const TParticle &right)
 copy ctor
virtual ~UParticle ()
const UParticle & operator= (const UParticle &right)
 operator =
const UParticle & operator= (const TParticle &right)
 copy TParticle into this particle
const Bool_t operator== (const UParticle &right) const
 comare tracks
void Print (Option_t *option="")
 print info about this particle
Int_t GetIndex () const
Int_t GetPdg () const
Int_t GetStatus () const
Int_t GetParent () const
Int_t GetParentDecay () const
Int_t GetMate () const
Int_t GetDecay () const
Int_t GetFirstChild () const
Int_t GetLastChild () const
Double_t Px () const
Double_t Py () const
Double_t Pz () const
Double_t E () const
TLorentzVector GetMomentum () const
void Momentum (TLorentzVector &mom) const
Double_t X () const
Double_t Y () const
Double_t Z () const
Double_t T () const
TLorentzVector GetPosition () const
void Position (TLorentzVector &pos) const
Double_t GetWeight () const
void SetIndex (Int_t index)
void SetPdg (Int_t pdg)
void SetStatus (Int_t status)
void SetParent (Int_t parent)
void SetParentDecay (Int_t parentDecay)
void SetMate (Int_t mate)
void SetDecay (Int_t decay)
void SetChild (Int_t child[2])
void SetFirstChild (Int_t child)
void SetLastChild (Int_t child)
void SetPx (Double_t px)
void SetPy (Double_t py)
void SetPz (Double_t pz)
void SetE (Double_t e)
void SetMomentum (Double_t px, Double_t py, Double_t pz, Double_t e)
 set momentum
void SetMomentum (TLorentzVector mom)
 set momentum
void SetX (Double_t x)
void SetY (Double_t y)
void SetZ (Double_t z)
void SetT (Double_t t)
void SetPosition (Double_t x, Double_t y, Double_t z, Double_t t)
 set freezout position
void SetPosition (TLorentzVector pos)
 set postition
void SetWeight (Double_t weight)
Public Member Functions inherited from TObject
 TObject ()
 TObject (const TObject &object)
virtual ~TObject ()
void AbstractMethod (const char *method) const
virtual void AppendPad (Option_t *option="")
virtual void Browse (TBrowser *b)
ULong_t CheckedHash ()
virtual const char * ClassName () const
virtual void Clear (Option_t *="")
virtual TObject * Clone (const char *newname="") const
virtual Int_t Compare (const TObject *obj) const
virtual void Copy (TObject &object) const
virtual void Delete (Option_t *option="")
virtual Int_t DistancetoPrimitive (Int_t px, Int_t py)
virtual void Draw (Option_t *option="")
virtual void DrawClass () const
virtual TObject * DrawClone (Option_t *option="") const
virtual void Dump () const
virtual void Error (const char *method, const char *msgfmt,...) const
virtual void Execute (const char *method, const char *params, Int_t *error=nullptr)
virtual void Execute (TMethod *method, TObjArray *params, Int_t *error=nullptr)
virtual void ExecuteEvent (Int_t event, Int_t px, Int_t py)
virtual void Fatal (const char *method, const char *msgfmt,...) const
virtual TObject * FindObject (const char *name) const
virtual TObject * FindObject (const TObject *obj) const
virtual Option_t * GetDrawOption () const
virtual const char * GetIconName () const
virtual const char * GetName () const
virtual char * GetObjectInfo (Int_t px, Int_t py) const
virtual Option_t * GetOption () const
virtual const char * GetTitle () const
virtual UInt_t GetUniqueID () const
virtual Bool_t HandleTimer (TTimer *timer)
virtual ULong_t Hash () const
Bool_t HasInconsistentHash () const
virtual void Info (const char *method, const char *msgfmt,...) const
virtual Bool_t InheritsFrom (const char *classname) const
virtual Bool_t InheritsFrom (const TClass *cl) const
virtual void Inspect () const
void InvertBit (UInt_t f)
virtual TClass * IsA () const
Bool_t IsDestructed () const
virtual Bool_t IsEqual (const TObject *obj) const
virtual Bool_t IsFolder () const
R__ALWAYS_INLINE Bool_t IsOnHeap () const
virtual Bool_t IsSortable () const
R__ALWAYS_INLINE Bool_t IsZombie () const
virtual void ls (Option_t *option="") const
void MayNotUse (const char *method) const
virtual Bool_t Notify ()
void Obsolete (const char *method, const char *asOfVers, const char *removedFromVers) const
void operator delete (void *ptr)
void operator delete (void *ptr, void *vp)
void operator delete[] (void *ptr)
void operator delete[] (void *ptr, void *vp)
void * operator new (size_t sz)
void * operator new (size_t sz, void *vp)
void * operator new[] (size_t sz)
void * operator new[] (size_t sz, void *vp)
TObject & operator= (const TObject &rhs)
virtual void Paint (Option_t *option="")
virtual void Pop ()
virtual void Print (Option_t *option="") const
virtual Int_t Read (const char *name)
virtual void RecursiveRemove (TObject *obj)
void ResetBit (UInt_t f)
virtual void SaveAs (const char *filename="", Option_t *option="") const
virtual void SavePrimitive (std::ostream &out, Option_t *option="")
void SetBit (UInt_t f)
void SetBit (UInt_t f, Bool_t set)
virtual void SetDrawOption (Option_t *option="")
virtual void SetUniqueID (UInt_t uid)
virtual void Streamer (TBuffer &)
void StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b)
virtual void SysError (const char *method, const char *msgfmt,...) const
R__ALWAYS_INLINE Bool_t TestBit (UInt_t f) const
Int_t TestBits (UInt_t f) const
virtual void UseCurrentStyle ()
virtual void Warning (const char *method, const char *msgfmt,...) const
virtual Int_t Write (const char *name=nullptr, Int_t option=0, Int_t bufsize=0)
virtual Int_t Write (const char *name=nullptr, Int_t option=0, Int_t bufsize=0) const

Private Attributes

Int_t fIndex
Int_t fPdg
Int_t fStatus
Int_t fParent
Int_t fParentDecay
Int_t fMate
Int_t fDecay
Int_t fChild [2]
Double32_t fPx
Double32_t fPy
Double32_t fPz
Double32_t fE
Double32_t fX
Double32_t fY
Double32_t fZ
Double32_t fT
Double32_t fWeight

Additional Inherited Members

Public Types inherited from TObject
enum  EDeprecatedStatusBits
enum  EStatusBits
Static Public Member Functions inherited from TObject
static TClass * Class ()
static const char * Class_Name ()
static constexpr Version_t Class_Version ()
static const char * DeclFileName ()
static Longptr_t GetDtorOnly ()
static Bool_t GetObjectStat ()
static void SetDtorOnly (void *obj)
static void SetObjectStat (Bool_t stat)
Public Attributes inherited from TObject
 kIsOnHeap
 kNotDeleted
 kZombie
 kInconsistent
 kBitMask
 kSingleKey
 kOverwrite
 kWriteDelete
 kObjInCanvas
 kCanDelete
 kMustCleanup
 kIsReferenced
 kHasUUID
 kCannotPick
 kNoContextMenu
 kInvalidObject
Protected Member Functions inherited from TObject
virtual void DoError (int level, const char *location, const char *fmt, va_list va) const
void MakeZombie ()
Static Protected Member Functions inherited from TObject
static void SavePrimitiveConstructor (std::ostream &out, TClass *cl, const char *variable_name, const char *constructor_agrs="", Bool_t empty_line=kTRUE)
static void SavePrimitiveDraw (std::ostream &out, const char *variable_name, Option_t *option=nullptr)
static TString SavePrimitiveVector (std::ostream &out, const char *prefix, Int_t len, Double_t *arr, Bool_t empty_line=kFALSE)
Protected Attributes inherited from TObject
 kOnlyPrepStep

Detailed Description

Definition at line 13 of file UParticle.h.

Constructor & Destructor Documentation

◆ UParticle() [1/5]

UParticle::UParticle ( )

Definition at line 16 of file UParticle.cxx.

References fChild, fDecay, fE, fIndex, fMate, fParent, fParentDecay, fPdg, fPx, fPy, fPz, fStatus, fT, fWeight, fX, fY, and fZ.

Referenced by UParticle(), operator=(), operator=(), and operator==().

Here is the caller graph for this function:

◆ UParticle() [2/5]

UParticle::UParticle ( Int_t index,
Int_t pdg,
Int_t status,
Int_t parent,
Int_t parentDecay,
Int_t mate,
Int_t decay,
Int_t child[2],
Double_t px,
Double_t py,
Double_t pz,
Double_t e,
Double_t x,
Double_t y,
Double_t z,
Double_t t,
Double_t weight )
Parameters
indexparticle index
pdgpid of track
statusparticle status
parentparent index
parentDecayparent decay index
mateindex of last collision partner
decaydecay index (-1 if not decayed)
childindex of first and last child
pxpx momentum
pypy momentum
pzpz momentum
eenergy
xfreezout -x
yfreezout -y
zfreezout - z
tfreezout - t
weightparticle weight

Definition at line 28 of file UParticle.cxx.

References fChild, fDecay, fE, fIndex, fMate, fParent, fParentDecay, fPdg, fPx, fPy, fPz, fStatus, fT, fWeight, fX, fY, fZ, x, y, and z.

◆ UParticle() [3/5]

UParticle::UParticle ( Int_t index,
Int_t pdg,
Int_t status,
Int_t parent,
Int_t parentDecay,
Int_t mate,
Int_t decay,
Int_t child[2],
TLorentzVector mom,
TLorentzVector pos,
Double_t weight )
Parameters
indexparticle index
pdgpid of track
statusparticle status
parentparent index
parentDecayparent decay index
mateindex of last collision partner
decaydecay index (-1 if not decayed)
childindex of first and last child
momparticle momentum
posparticle freezout postion
weightparticle weight

Definition at line 69 of file UParticle.cxx.

References TLorentzVector::E(), fChild, fDecay, fE, fIndex, fMate, fParent, fParentDecay, fPdg, fPx, fPy, fPz, fStatus, fT, fWeight, fX, fY, fZ, TLorentzVector::Px(), TLorentzVector::Py(), TLorentzVector::Pz(), TLorentzVector::T(), TLorentzVector::X(), TLorentzVector::Y(), and TLorentzVector::Z().

Here is the call graph for this function:

◆ UParticle() [4/5]

UParticle::UParticle ( const UParticle & right)
Parameters
rightuparticle to copy

Definition at line 104 of file UParticle.cxx.

References UParticle().

Here is the call graph for this function:

◆ UParticle() [5/5]

UParticle::UParticle ( const TParticle & right)
Parameters
rightTParticle to copy

Definition at line 112 of file UParticle.cxx.

◆ ~UParticle()

UParticle::~UParticle ( )
virtual

Definition at line 120 of file UParticle.cxx.

Member Function Documentation

◆ E()

Double_t UParticle::E ( ) const
inline
Returns
energy

Definition at line 200 of file UParticle.h.

References fE.

◆ GetDecay()

Int_t UParticle::GetDecay ( ) const
inline
Returns
decay index (-1 if not decayed)

Definition at line 170 of file UParticle.h.

References fDecay.

◆ GetFirstChild()

Int_t UParticle::GetFirstChild ( ) const
inline
Returns
first child index

Definition at line 175 of file UParticle.h.

References fChild.

◆ GetIndex()

Int_t UParticle::GetIndex ( ) const
inline
Returns
particle index

Definition at line 140 of file UParticle.h.

References fIndex.

◆ GetLastChild()

Int_t UParticle::GetLastChild ( ) const
inline
Returns
last child index

Definition at line 180 of file UParticle.h.

References fChild.

◆ GetMate()

Int_t UParticle::GetMate ( ) const
inline
Returns
index of last collision partner

Definition at line 165 of file UParticle.h.

References fMate.

◆ GetMomentum()

TLorentzVector UParticle::GetMomentum ( ) const
inline
Returns
track momentum

Definition at line 205 of file UParticle.h.

References fE, fPx, fPy, and fPz.

◆ GetParent()

Int_t UParticle::GetParent ( ) const
inline
Returns
particle's parent index

Definition at line 155 of file UParticle.h.

References fParent.

◆ GetParentDecay()

Int_t UParticle::GetParentDecay ( ) const
inline
Returns
particle's parent decay index

Definition at line 160 of file UParticle.h.

References fParentDecay.

◆ GetPdg()

Int_t UParticle::GetPdg ( ) const
inline
Returns
particle pid

Definition at line 145 of file UParticle.h.

References fPdg.

Referenced by MpdUnigenGenerator::RegisterIons().

Here is the caller graph for this function:

◆ GetPosition()

TLorentzVector UParticle::GetPosition ( ) const
inline
Returns
freezout position

Definition at line 235 of file UParticle.h.

References fT, fX, fY, and fZ.

◆ GetStatus()

Int_t UParticle::GetStatus ( ) const
inline
Returns
particle status

Definition at line 150 of file UParticle.h.

References fStatus.

◆ GetWeight()

Double_t UParticle::GetWeight ( ) const
inline
Returns
particle weight

Definition at line 245 of file UParticle.h.

References fWeight.

◆ Momentum()

void UParticle::Momentum ( TLorentzVector & mom) const
inline
Parameters
mommomentum to fill

Definition at line 210 of file UParticle.h.

References fE, fPx, fPy, fPz, and TLorentzVector::SetPxPyPzE().

Here is the call graph for this function:

◆ operator=() [1/2]

const UParticle & UParticle::operator= ( const TParticle & right)
Parameters
rightTParticle to copy
Returns
copy of TParticle in Unigen format

Definition at line 153 of file UParticle.cxx.

References UParticle(), TParticle::Energy(), fChild, fDecay, fE, fIndex, fMate, fParent, fParentDecay, fPdg, fPx, fPy, fPz, fStatus, fT, fWeight, fX, fY, fZ, TParticle::GetFirstDaughter(), TParticle::GetFirstMother(), TParticle::GetLastDaughter(), TParticle::GetPdgCode(), TParticle::GetStatusCode(), TParticle::GetWeight(), TParticle::Px(), TParticle::Py(), TParticle::Pz(), TParticle::T(), TParticle::Vx(), TParticle::Vy(), and TParticle::Vz().

Here is the call graph for this function:

◆ operator=() [2/2]

const UParticle & UParticle::operator= ( const UParticle & right)
Parameters
rightparticle
Returns
this overwriten particle

Definition at line 127 of file UParticle.cxx.

References UParticle(), fChild, fDecay, fE, fIndex, fMate, fParent, fParentDecay, fPdg, fPx, fPy, fPz, fStatus, fT, fWeight, fX, fY, and fZ.

Here is the call graph for this function:

◆ operator==()

const Bool_t UParticle::operator== ( const UParticle & right) const
Parameters
righttrack to compare
Returns
true if particles are the same, false otherwise

Definition at line 179 of file UParticle.cxx.

References UParticle(), TMath::Abs(), fChild, fDecay, fE, fIndex, fMate, fParent, fParentDecay, fPdg, fPx, fPy, fPz, fStatus, fT, fWeight, fX, fY, and fZ.

Here is the call graph for this function:

◆ Position()

void UParticle::Position ( TLorentzVector & pos) const
inline
Parameters
posposition to fill by this track position coord.

Definition at line 240 of file UParticle.h.

References fT, fX, fY, fZ, and TLorentzVector::SetXYZT().

Here is the call graph for this function:

◆ Print()

void UParticle::Print ( Option_t * option = "")
Parameters
optionnot used

Definition at line 202 of file UParticle.cxx.

References fChild, fDecay, fE, fIndex, fMate, fParent, fParentDecay, fPdg, fPx, fPy, fPz, fStatus, fT, fWeight, fX, fY, and fZ.

Referenced by UEvent::Print().

Here is the caller graph for this function:

◆ Px()

Double_t UParticle::Px ( ) const
inline
Returns
px

Definition at line 185 of file UParticle.h.

References fPx.

◆ Py()

Double_t UParticle::Py ( ) const
inline
Returns
py

Definition at line 190 of file UParticle.h.

References fPy.

◆ Pz()

Double_t UParticle::Pz ( ) const
inline
Returns
pz

Definition at line 195 of file UParticle.h.

References fPz.

◆ SetChild()

void UParticle::SetChild ( Int_t child[2])
inline
Parameters
childindex of first and last child

Definition at line 285 of file UParticle.h.

References fChild.

◆ SetDecay()

void UParticle::SetDecay ( Int_t decay)
inline
Parameters
decaydecay code (-1 if no decayed)

Definition at line 280 of file UParticle.h.

References fDecay.

◆ SetE()

void UParticle::SetE ( Double_t e)
inline
Parameters
eenergy

Definition at line 319 of file UParticle.h.

References fE.

◆ SetFirstChild()

void UParticle::SetFirstChild ( Int_t child)
inline
Parameters
childfirst child index

Definition at line 294 of file UParticle.h.

References fChild.

◆ SetIndex()

void UParticle::SetIndex ( Int_t index)
inline
Parameters
indexindex

Definition at line 250 of file UParticle.h.

References fIndex.

◆ SetLastChild()

void UParticle::SetLastChild ( Int_t child)
inline
Parameters
childlast child index

Definition at line 299 of file UParticle.h.

References fChild.

◆ SetMate()

void UParticle::SetMate ( Int_t mate)
inline
Parameters
mateindex of last collision partner

Definition at line 275 of file UParticle.h.

References fMate.

◆ SetMomentum() [1/2]

void UParticle::SetMomentum ( Double_t px,
Double_t py,
Double_t pz,
Double_t e )
inline
Parameters
pxpx
pypy
pzpz
eenergy

Definition at line 327 of file UParticle.h.

References fE, fPx, fPy, and fPz.

◆ SetMomentum() [2/2]

void UParticle::SetMomentum ( TLorentzVector mom)
inline
Parameters
mommomentum

Definition at line 338 of file UParticle.h.

References TLorentzVector::E(), fE, fPx, fPy, fPz, TLorentzVector::Px(), TLorentzVector::Py(), and TLorentzVector::Pz().

Here is the call graph for this function:

◆ SetParent()

void UParticle::SetParent ( Int_t parent)
inline
Parameters
parentparent index

Definition at line 265 of file UParticle.h.

References fParent.

◆ SetParentDecay()

void UParticle::SetParentDecay ( Int_t parentDecay)
inline
Parameters
parentDecayparent decay index

Definition at line 270 of file UParticle.h.

References fParentDecay.

◆ SetPdg()

void UParticle::SetPdg ( Int_t pdg)
inline
Parameters
pdgpid code

Definition at line 255 of file UParticle.h.

References fPdg.

◆ SetPosition() [1/2]

void UParticle::SetPosition ( Double_t x,
Double_t y,
Double_t z,
Double_t t )
inline
Parameters
xX
yY
zZ
tT

Definition at line 372 of file UParticle.h.

References fT, fX, fY, fZ, x, y, and z.

◆ SetPosition() [2/2]

void UParticle::SetPosition ( TLorentzVector pos)
inline
Parameters
posnew position

Definition at line 383 of file UParticle.h.

References fT, fX, fY, fZ, TLorentzVector::T(), TLorentzVector::X(), TLorentzVector::Y(), and TLorentzVector::Z().

Here is the call graph for this function:

◆ SetPx()

void UParticle::SetPx ( Double_t px)
inline
Parameters
pxpx momentum

Definition at line 304 of file UParticle.h.

References fPx.

◆ SetPy()

void UParticle::SetPy ( Double_t py)
inline
Parameters
pypy momentum

Definition at line 309 of file UParticle.h.

References fPy.

◆ SetPz()

void UParticle::SetPz ( Double_t pz)
inline
Parameters
pzpz momentum

Definition at line 314 of file UParticle.h.

References fPz.

◆ SetStatus()

void UParticle::SetStatus ( Int_t status)
inline
Parameters
statusstatus

Definition at line 260 of file UParticle.h.

References fStatus.

◆ SetT()

void UParticle::SetT ( Double_t t)
inline
Parameters
tfreezout-T

Definition at line 364 of file UParticle.h.

References fT.

◆ SetWeight()

void UParticle::SetWeight ( Double_t weight)
inline
Parameters
weightweight

Definition at line 394 of file UParticle.h.

References fWeight.

◆ SetX()

void UParticle::SetX ( Double_t x)
inline
Parameters
xfreezout-X

Definition at line 349 of file UParticle.h.

References fX, and x.

◆ SetY()

void UParticle::SetY ( Double_t y)
inline
Parameters
yfreezout-Y

Definition at line 354 of file UParticle.h.

References fY, and y.

◆ SetZ()

void UParticle::SetZ ( Double_t z)
inline
Parameters
zfreezout-Z

Definition at line 359 of file UParticle.h.

References fZ, and z.

◆ T()

Double_t UParticle::T ( ) const
inline
Returns
freezout-T

Definition at line 230 of file UParticle.h.

References fT.

◆ X()

Double_t UParticle::X ( ) const
inline
Returns
freezout-X

Definition at line 215 of file UParticle.h.

References fX.

◆ Y()

Double_t UParticle::Y ( ) const
inline
Returns
freezout-Y

Definition at line 220 of file UParticle.h.

References fY.

◆ Z()

Double_t UParticle::Z ( ) const
inline
Returns
freezout-Z

Definition at line 225 of file UParticle.h.

References fZ.

Member Data Documentation

◆ fChild

◆ fDecay

Int_t UParticle::fDecay
private

◆ fE

◆ fIndex

Int_t UParticle::fIndex
private

◆ fMate

Int_t UParticle::fMate
private

◆ fParent

Int_t UParticle::fParent
private

◆ fParentDecay

Int_t UParticle::fParentDecay
private

◆ fPdg

Int_t UParticle::fPdg
private

◆ fPx

◆ fPy

◆ fPz

◆ fStatus

Int_t UParticle::fStatus
private

◆ fT

◆ fWeight

Double32_t UParticle::fWeight
private

◆ fX

◆ fY

◆ fZ


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