CbmRoot
UEvent Class Reference

#include <UEvent.h>

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

Public Member Functions

 UEvent ()
 
 UEvent (const UEvent &right)
 
UEventoperator= (const UEvent &right)
 
virtual ~UEvent ()
 
void Print (Option_t *option="") const
 
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 (Option_t *="")
 
void RemoveAt (Int_t i)
 
 ClassDef (UEvent, 2)
 

Private Attributes

Int_t fEventNr
 
Double_t fB
 
Double_t fPhi
 
Int_t fNes
 
Int_t fStepNr
 
Double_t fStepT
 
Int_t fNpa
 
TString fComment
 
TClonesArray * fParticles
 

Detailed Description

Definition at line 12 of file UEvent.h.

Constructor & Destructor Documentation

◆ UEvent() [1/2]

UEvent::UEvent ( )

Definition at line 20 of file UEvent.cxx.

◆ UEvent() [2/2]

UEvent::UEvent ( const UEvent right)

Definition at line 35 of file UEvent.cxx.

References fNpa, fParticles, and i.

◆ ~UEvent()

UEvent::~UEvent ( )
virtual

Definition at line 56 of file UEvent.cxx.

References Clear(), and fParticles.

Member Function Documentation

◆ AddParticle() [1/3]

void UEvent::AddParticle ( const UParticle particle)

Definition at line 173 of file UEvent.cxx.

References fNpa.

◆ AddParticle() [2/3]

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 
)

Definition at line 103 of file UEvent.cxx.

References fNpa, x, and y.

Referenced by NicaGeneratorWriteUnigen::AddParticle(), and NicaUnigenEventInterface::CopyAndCompress().

◆ AddParticle() [3/3]

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 
)

Definition at line 144 of file UEvent.cxx.

References fNpa, and pos.

◆ ClassDef()

UEvent::ClassDef ( UEvent  ,
 
)

◆ Clear()

void UEvent::Clear ( Option_t *  = "")

◆ GetB()

◆ GetComment()

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

Definition at line 39 of file UEvent.h.

References fComment.

Referenced by NicaUnigenEventInterface::CopyAndCompress().

◆ GetEventNr()

Int_t UEvent::GetEventNr ( ) const
inline

Definition at line 31 of file UEvent.h.

References fEventNr.

Referenced by NicaGeneratorReadUnigen::ReadEvent(), and CbmUnigenGenerator::ReadEvent().

◆ GetNes()

Int_t UEvent::GetNes ( ) const
inline

Definition at line 34 of file UEvent.h.

References fNes.

Referenced by NicaUnigenEventInterface::CopyAndCompress(), and NicaGeneratorReadUnigen::ReadEvent().

◆ GetNpa()

◆ GetParticle()

◆ GetParticleList()

TClonesArray* UEvent::GetParticleList ( ) const
inline

Definition at line 38 of file UEvent.h.

References fParticles.

Referenced by NicaUnigenEventInterface::CopyAndCompress().

◆ GetPhi()

◆ GetStepNr()

Int_t UEvent::GetStepNr ( ) const
inline

Definition at line 35 of file UEvent.h.

References fStepNr.

Referenced by NicaUnigenEventInterface::CopyAndCompress(), and NicaGeneratorReadUnigen::ReadEvent().

◆ GetStepT()

Double_t UEvent::GetStepT ( ) const
inline

Definition at line 36 of file UEvent.h.

References fStepT.

Referenced by NicaUnigenEventInterface::CopyAndCompress().

◆ operator=()

UEvent & UEvent::operator= ( const UEvent right)

Definition at line 179 of file UEvent.cxx.

References fB, fComment, fEventNr, fNes, fNpa, fParticles, fPhi, fStepNr, fStepT, and i.

◆ Print()

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

Definition at line 65 of file UEvent.cxx.

References fB, fComment, fEventNr, fNes, fNpa, fParticles, fPhi, fStepNr, fStepT, and UParticle::Print().

◆ RemoveAt()

void UEvent::RemoveAt ( Int_t  i)

Definition at line 230 of file UEvent.cxx.

References fParticles, and i.

Referenced by NicaUnigenEventInterface::Compress().

◆ SetB()

void UEvent::SetB ( Double_t  b)
inline

◆ SetComment()

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

Definition at line 54 of file UEvent.h.

References fComment.

Referenced by NicaUnigenEventInterface::CopyAndCompress().

◆ SetEventNr()

void UEvent::SetEventNr ( Int_t  eventNr)
inline

Definition at line 48 of file UEvent.h.

References fEventNr.

Referenced by NicaGeneratorWriteUnigen::AddEvent().

◆ SetNes()

void UEvent::SetNes ( Int_t  nes)
inline

Definition at line 51 of file UEvent.h.

References fNes.

Referenced by NicaGeneratorWriteUnigen::AddEvent(), and NicaUnigenEventInterface::CopyAndCompress().

◆ SetParameters()

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

Definition at line 201 of file UEvent.cxx.

References fB, fComment, fEventNr, fNes, fPhi, fStepNr, and fStepT.

◆ SetPhi()

void UEvent::SetPhi ( Double_t  phi)
inline

◆ SetStepNr()

void UEvent::SetStepNr ( Int_t  stepNr)
inline

Definition at line 52 of file UEvent.h.

References fStepNr.

Referenced by NicaGeneratorWriteUnigen::AddEvent(), and NicaUnigenEventInterface::CopyAndCompress().

◆ SetStepT()

void UEvent::SetStepT ( Double_t  stepT)
inline

Definition at line 53 of file UEvent.h.

References fStepT.

Referenced by NicaGeneratorWriteUnigen::AddEvent(), and NicaUnigenEventInterface::CopyAndCompress().

Member Data Documentation

◆ fB

Double_t UEvent::fB
private

Definition at line 16 of file UEvent.h.

Referenced by GetB(), operator=(), Print(), SetB(), and SetParameters().

◆ fComment

TString UEvent::fComment
private

Definition at line 22 of file UEvent.h.

Referenced by GetComment(), operator=(), Print(), SetComment(), and SetParameters().

◆ fEventNr

Int_t UEvent::fEventNr
private

Definition at line 15 of file UEvent.h.

Referenced by GetEventNr(), operator=(), Print(), SetEventNr(), and SetParameters().

◆ fNes

Int_t UEvent::fNes
private

Definition at line 18 of file UEvent.h.

Referenced by GetNes(), operator=(), Print(), SetNes(), and SetParameters().

◆ fNpa

Int_t UEvent::fNpa
private

Definition at line 21 of file UEvent.h.

Referenced by AddParticle(), Clear(), GetNpa(), GetParticle(), operator=(), Print(), and UEvent().

◆ fParticles

TClonesArray* UEvent::fParticles
private

Definition at line 23 of file UEvent.h.

Referenced by Clear(), GetParticle(), GetParticleList(), operator=(), Print(), RemoveAt(), UEvent(), and ~UEvent().

◆ fPhi

Double_t UEvent::fPhi
private

Definition at line 17 of file UEvent.h.

Referenced by GetPhi(), operator=(), Print(), SetParameters(), and SetPhi().

◆ fStepNr

Int_t UEvent::fStepNr
private

Definition at line 19 of file UEvent.h.

Referenced by GetStepNr(), operator=(), Print(), SetParameters(), and SetStepNr().

◆ fStepT

Double_t UEvent::fStepT
private

Definition at line 20 of file UEvent.h.

Referenced by GetStepT(), operator=(), Print(), SetParameters(), and SetStepT().


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