BmnRoot
Loading...
Searching...
No Matches
UEvent Class Reference

#include <UEvent.h>

Inheritance diagram for UEvent:
[legend]
Collaboration diagram for UEvent:
[legend]

Public Member Functions

 UEvent ()
 
 UEvent (const UEvent &right)
 
UEvent operator= (const UEvent &right)
 
virtual ~UEvent ()
 
void Print (Option_t *option="")
 
Int_t GetEventNr () const
 
Double_t GetB () const
 
Double_t GetPhi () const
 
Int_t GetNes () const
 
Int_t GetStepNr () const
 
Double_t GetStepT () const
 
Int_t GetNpa () const
 
TClonesArray * GetParticleList () const
 
void GetComment (TString &comment) const
 
UParticleGetParticle (Int_t index) const
 
void SetParameters (Int_t eventNr, Double_t b, Double_t phi, Int_t nes, Int_t stepNr, Double_t stepT, const char *comment="")
 
void SetEventNr (Int_t eventNr)
 
void SetB (Double_t b)
 
void SetPhi (Double_t phi)
 
void SetNes (Int_t nes)
 
void SetStepNr (Int_t stepNr)
 
void SetStepT (Double_t stepT)
 
void SetComment (const char *comment)
 
void AddParticle (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)
 
void AddParticle (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)
 
void AddParticle (const UParticle &particle)
 
void Clear ()
 
void Clear (Option_t *otp)
 
void RemoveAt (Int_t i)
 
 UEvent ()
 
 UEvent (const UEvent &right)
 
UEvent operator= (const UEvent &right)
 
virtual ~UEvent ()
 
void Print (Option_t *option="")
 
Int_t GetEventNr () const
 
Double_t GetB () const
 
Double_t GetPhi () const
 
Int_t GetNes () const
 
Int_t GetStepNr () const
 
Double_t GetStepT () const
 
Int_t GetNpa () const
 
TClonesArray * GetParticleList () const
 
void GetComment (TString &comment) const
 
UParticleGetParticle (Int_t index) const
 
void SetParameters (Int_t eventNr, Double_t b, Double_t phi, Int_t nes, Int_t stepNr, Double_t stepT, const char *comment="")
 
void SetEventNr (Int_t eventNr)
 
void SetB (Double_t b)
 
void SetPhi (Double_t phi)
 
void SetNes (Int_t nes)
 
void SetStepNr (Int_t stepNr)
 
void SetStepT (Double_t stepT)
 
void SetComment (const char *comment)
 
void AddParticle (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)
 
void AddParticle (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)
 
void AddParticle (const UParticle &particle)
 
void Clear ()
 
void Clear (Option_t *otp)
 
void RemoveAt (Int_t i)
 

Detailed Description

unigen event

Definition at line 20 of file UEvent.h.

Constructor & Destructor Documentation

◆ UEvent() [1/4]

UEvent::UEvent ( )

default constructor

Definition at line 21 of file UEvent.cxx.

◆ UEvent() [2/4]

UEvent::UEvent ( const UEvent right)

copy constructor

Parameters
rightobject to copy

Definition at line 38 of file UEvent.cxx.

References i.

◆ ~UEvent() [1/2]

UEvent::~UEvent ( )
virtual

Definition at line 61 of file UEvent.cxx.

References Clear().

◆ UEvent() [3/4]

UEvent::UEvent ( )

default constructor

◆ UEvent() [4/4]

UEvent::UEvent ( const UEvent right)

copy constructor

Parameters
rightobject to copy

◆ ~UEvent() [2/2]

virtual UEvent::~UEvent ( )
virtual

Member Function Documentation

◆ AddParticle() [1/6]

void UEvent::AddParticle ( const UParticle particle)
Parameters
particleparticle to add

Definition at line 152 of file UEvent.cxx.

◆ AddParticle() [2/6]

void UEvent::AddParticle ( const UParticle particle)
Parameters
particleparticle to add

◆ AddParticle() [3/6]

void UEvent::AddParticle ( 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 
)

add particle

Parameters
indexparticle position
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 117 of file UEvent.cxx.

◆ AddParticle() [4/6]

void UEvent::AddParticle ( 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 
)

add particle

Parameters
indexparticle position
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

◆ AddParticle() [5/6]

void UEvent::AddParticle ( 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 position
pdgpid of track
statustrack status
parentparent index
parentDecayparent decay index
mateindex of last collision partner
decaydecay index (-1 if not decayed)
childindex of first and last child
mommomentum
posfreezout coordinates as
weight

Definition at line 135 of file UEvent.cxx.

◆ AddParticle() [6/6]

void UEvent::AddParticle ( 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 position
pdgpid of track
statustrack status
parentparent index
parentDecayparent decay index
mateindex of last collision partner
decaydecay index (-1 if not decayed)
childindex of first and last child
mommomentum
posfreezout coordinates as
weight

◆ Clear() [1/4]

void UEvent::Clear ( )

clear this

Definition at line 197 of file UEvent.cxx.

Referenced by ~UEvent().

◆ Clear() [2/4]

void UEvent::Clear ( )

clear this

◆ Clear() [3/4]

void UEvent::Clear ( Option_t *  otp)
inline

clear this

Parameters
otpclear option

Definition at line 237 of file UEvent.h.

References Clear().

Referenced by Clear().

◆ Clear() [4/4]

void UEvent::Clear ( Option_t *  otp)
inline

clear this

Parameters
otpclear option

Definition at line 237 of file UEvent.h.

References Clear().

Referenced by Clear().

◆ GetB() [1/2]

Double_t UEvent::GetB ( ) const
inline
Returns
impact paramter

Definition at line 89 of file UEvent.h.

Referenced by MpdUnigenGenerator::ReadEvent().

◆ GetB() [2/2]

Double_t UEvent::GetB ( ) const
inline
Returns
impact paramter

Definition at line 89 of file UEvent.h.

◆ GetComment() [1/2]

void UEvent::GetComment ( TString &  comment) const
inline
Parameters
commentcomment

Definition at line 124 of file UEvent.h.

◆ GetComment() [2/2]

void UEvent::GetComment ( TString &  comment) const
inline
Parameters
commentcomment

Definition at line 124 of file UEvent.h.

◆ GetEventNr() [1/2]

Int_t UEvent::GetEventNr ( ) const
inline
Returns
event number

Definition at line 84 of file UEvent.h.

Referenced by MpdUnigenGenerator::ReadEvent().

◆ GetEventNr() [2/2]

Int_t UEvent::GetEventNr ( ) const
inline
Returns
event number

Definition at line 84 of file UEvent.h.

◆ GetNes() [1/2]

Int_t UEvent::GetNes ( ) const
inline
Returns
number of event steps

Definition at line 99 of file UEvent.h.

◆ GetNes() [2/2]

Int_t UEvent::GetNes ( ) const
inline
Returns
number of event steps

Definition at line 99 of file UEvent.h.

◆ GetNpa() [1/2]

Int_t UEvent::GetNpa ( ) const
inline
Returns
number of tracks

Definition at line 114 of file UEvent.h.

Referenced by MpdUnigenGenerator::ReadEvent(), and MpdUnigenGenerator::RegisterIons().

◆ GetNpa() [2/2]

Int_t UEvent::GetNpa ( ) const
inline
Returns
number of tracks

Definition at line 114 of file UEvent.h.

◆ GetParticle() [1/2]

UParticle * UEvent::GetParticle ( Int_t  index) const
Parameters
indexparticle posistion
Returns
particle at given position

Definition at line 100 of file UEvent.cxx.

Referenced by MpdUnigenGenerator::ReadEvent(), and MpdUnigenGenerator::RegisterIons().

◆ GetParticle() [2/2]

UParticle * UEvent::GetParticle ( Int_t  index) const
Parameters
indexparticle posistion
Returns
particle at given position

◆ GetParticleList() [1/2]

TClonesArray * UEvent::GetParticleList ( ) const
inline
Returns
list of particles

Definition at line 119 of file UEvent.h.

◆ GetParticleList() [2/2]

TClonesArray * UEvent::GetParticleList ( ) const
inline
Returns
list of particles

Definition at line 119 of file UEvent.h.

◆ GetPhi() [1/2]

Double_t UEvent::GetPhi ( ) const
inline
Returns
reaction plane angle

Definition at line 94 of file UEvent.h.

Referenced by MpdUnigenGenerator::ReadEvent().

◆ GetPhi() [2/2]

Double_t UEvent::GetPhi ( ) const
inline
Returns
reaction plane angle

Definition at line 94 of file UEvent.h.

◆ GetStepNr() [1/2]

Int_t UEvent::GetStepNr ( ) const
inline
Returns
event step number

Definition at line 104 of file UEvent.h.

◆ GetStepNr() [2/2]

Int_t UEvent::GetStepNr ( ) const
inline
Returns
event step number

Definition at line 104 of file UEvent.h.

◆ GetStepT() [1/2]

Double_t UEvent::GetStepT ( ) const
inline
Returns
event step time

Definition at line 109 of file UEvent.h.

◆ GetStepT() [2/2]

Double_t UEvent::GetStepT ( ) const
inline
Returns
event step time

Definition at line 109 of file UEvent.h.

◆ operator=() [1/2]

UEvent UEvent::operator= ( const UEvent right)

assignement operator

Definition at line 159 of file UEvent.cxx.

References i.

◆ operator=() [2/2]

UEvent UEvent::operator= ( const UEvent right)

assignement operator

◆ Print() [1/2]

void UEvent::Print ( Option_t *  option = "")

print info about event

Parameters
optionif "all" then particles are also printed

Definition at line 72 of file UEvent.cxx.

References UParticle::Print().

◆ Print() [2/2]

void UEvent::Print ( Option_t *  option = "")

print info about event

Parameters
optionif "all" then particles are also printed

◆ RemoveAt() [1/2]

void UEvent::RemoveAt ( Int_t  i)

remove particle

Parameters
iparticle position

Definition at line 208 of file UEvent.cxx.

References i.

◆ RemoveAt() [2/2]

void UEvent::RemoveAt ( Int_t  i)

remove particle

Parameters
iparticle position

◆ SetB() [1/2]

void UEvent::SetB ( Double_t  b)
inline
Parameters
bimpact parameter

Definition at line 152 of file UEvent.h.

◆ SetB() [2/2]

void UEvent::SetB ( Double_t  b)
inline
Parameters
bimpact parameter

Definition at line 152 of file UEvent.h.

◆ SetComment() [1/2]

void UEvent::SetComment ( const char *  comment)
inline
Parameters
commentcomment

Definition at line 177 of file UEvent.h.

◆ SetComment() [2/2]

void UEvent::SetComment ( const char *  comment)
inline
Parameters
commentcomment

Definition at line 177 of file UEvent.h.

◆ SetEventNr() [1/2]

void UEvent::SetEventNr ( Int_t  eventNr)
inline
Parameters
eventNrevent nubmer

Definition at line 147 of file UEvent.h.

◆ SetEventNr() [2/2]

void UEvent::SetEventNr ( Int_t  eventNr)
inline
Parameters
eventNrevent nubmer

Definition at line 147 of file UEvent.h.

◆ SetNes() [1/2]

void UEvent::SetNes ( Int_t  nes)
inline
Parameters
nesnumber of steps

Definition at line 162 of file UEvent.h.

◆ SetNes() [2/2]

void UEvent::SetNes ( Int_t  nes)
inline
Parameters
nesnumber of steps

Definition at line 162 of file UEvent.h.

◆ SetParameters() [1/2]

void UEvent::SetParameters ( Int_t  eventNr,
Double_t  b,
Double_t  phi,
Int_t  nes,
Int_t  stepNr,
Double_t  stepT,
const char *  comment = "" 
)

set event parameters

Parameters
eventNrevent number
bimpact parameter
phireaction plane nagle
nesnumber of steps
stepNrstep number
stepTstep time
commentcomment

Definition at line 182 of file UEvent.cxx.

◆ SetParameters() [2/2]

void UEvent::SetParameters ( Int_t  eventNr,
Double_t  b,
Double_t  phi,
Int_t  nes,
Int_t  stepNr,
Double_t  stepT,
const char *  comment = "" 
)

set event parameters

Parameters
eventNrevent number
bimpact parameter
phireaction plane nagle
nesnumber of steps
stepNrstep number
stepTstep time
commentcomment

◆ SetPhi() [1/2]

void UEvent::SetPhi ( Double_t  phi)
inline
Parameters
phireaction plane angle

Definition at line 157 of file UEvent.h.

◆ SetPhi() [2/2]

void UEvent::SetPhi ( Double_t  phi)
inline
Parameters
phireaction plane angle

Definition at line 157 of file UEvent.h.

◆ SetStepNr() [1/2]

void UEvent::SetStepNr ( Int_t  stepNr)
inline
Parameters
stepNrstep number

Definition at line 167 of file UEvent.h.

◆ SetStepNr() [2/2]

void UEvent::SetStepNr ( Int_t  stepNr)
inline
Parameters
stepNrstep number

Definition at line 167 of file UEvent.h.

◆ SetStepT() [1/2]

void UEvent::SetStepT ( Double_t  stepT)
inline
Parameters
stepTstep time

Definition at line 172 of file UEvent.h.

◆ SetStepT() [2/2]

void UEvent::SetStepT ( Double_t  stepT)
inline
Parameters
stepTstep time

Definition at line 172 of file UEvent.h.


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