Go to the documentation of this file.
6 #ifndef CBMUNIGENGENERATOR
7 #define CBMUNIGENGENERATOR
10 #include "FairGenerator.h"
21 class FairPrimaryGenerator;
87 virtual Bool_t
ReadEvent(FairPrimaryGenerator* primGen);
119 void AddPrimary(FairPrimaryGenerator* primGen,
121 const TVector3& momentum);
186 void ProcessIon(FairPrimaryGenerator* primGen,
188 const TVector3& momentum);
void ProcessIon(FairPrimaryGenerator *primGen, Int_t pdgCode, const TVector3 &momentum)
Treat a composite particle (ion)
Int_t GetIonLambdas(Int_t pdgCode) const
Number of Lambdas in an ion.
Double_t fBetaCM
CM velocity in the lab frame.
void AddPrimary(FairPrimaryGenerator *primGen, Int_t pdgCode, const TVector3 &momentum)
Add a primary particle to the event generator.
UEvent * fEvent
Current input event.
Bool_t Init()
Initialisation.
std::map< TString, FairIon * > fIonMap
Map from ion name to FairIon.
TFile * fFile
Input ROOT file.
Generates input to transport simulation from files in Unigen format.
Int_t fNofEvents
Number of processed events.
@ kStandard
Rotate events to zero event plane (default)
CbmUnigenGenerator & operator=(const CbmUnigenGenerator &)=delete
Assignment operator forbidden.
@ kRotateFixed
Rotate events around z by a fixed angle.
virtual Bool_t ReadEvent(FairPrimaryGenerator *primGen)
Read one event from the input file.
Int_t fNofPrimaries
Number of primaries registered in current event.
TString fFileName
Input file name.
static const Int_t kPdgMass
Decomposition of ion PDG code.
@ kReuseEvents
Reuse events if more are requested than present.
Int_t RegisterIons()
Register ions to the simulation.
static const Int_t kPdgLambda
Decomposition of ion PDG code.
EMode fMode
Rotation mode.
Double_t fPhi
Event plane rotation angle.
@ kNoRotation
No event rotation.
Double_t fGammaCM
Gamma factor of CM in lab frame.
Bool_t GetNextEntry()
Get next entry from input tree.
TTree * fTree
Input ROOT tree.
CbmUnigenGenerator(const CbmUnigenGenerator &)=delete
Copy constructor forbidden.
CbmUnigenGenerator(const char *fileName="", EMode mode=kStandard)
Default constructor.
static const Int_t kPdgCharge
Decomposition of ion PDG code.
Int_t fCurrentEntry
Current entry number.
void CloseInput()
Close the input file.
Bool_t fIsInit
Flag whether generator is initialised.
virtual ~CbmUnigenGenerator()
Destructor.
Int_t GetIonCharge(Int_t pdgCode) const
Charge number of an ion.
Int_t GetIonMass(Int_t pdgCode) const
Mass number of an ion.
ClassDef(CbmUnigenGenerator, 4)