FairRoot
|
#include <FairIonGenerator.h>
Public Member Functions | |
FairIonGenerator () | |
FairIonGenerator (const Char_t *ionName, Int_t mult, Double_t px, Double_t py, Double_t pz, Double_t vx=0, Double_t vy=0, Double_t vz=0) | |
FairIonGenerator (Int_t z, Int_t a, Int_t q, Int_t mult, Double_t px, Double_t py, Double_t pz, Double_t vx=0, Double_t vy=0, Double_t vz=0) | |
virtual | ~FairIonGenerator () |
void | SetCharge (Int_t charge) |
void | SetExcitationEnergy (Double_t eExc) |
void | SetMass (Double_t mass) |
virtual Bool_t | ReadEvent (FairPrimaryGenerator *primGen) |
virtual FairGenerator * | CloneGenerator () const |
Public Member Functions inherited from FairBaseMCGenerator | |
FairBaseMCGenerator () | |
void | SetPDGType (Int_t pdg) |
void | SetVertex (Double_t vx, Double_t vy, Double_t vz, Double_t evx=0, Double_t evy=0, Double_t evz=0, eVertexSmear sm=kBox) |
void | SetMultiplicity (Int_t mult) |
virtual Bool_t | Init () |
virtual | ~FairBaseMCGenerator () |
Public Member Functions inherited from FairGenerator | |
FairGenerator () | |
FairGenerator (const char *name, const char *title="FAIR Generator") | |
virtual | ~FairGenerator () |
Additional Inherited Members | |
Public Types inherited from FairBaseMCGenerator | |
enum | eVertexSmear { kBox, kGauss, kExp } |
Protected Member Functions inherited from FairBaseMCGenerator | |
FairBaseMCGenerator (const FairBaseMCGenerator &other)=default | |
FairBaseMCGenerator & | operator= (const FairBaseMCGenerator &rhs)=default |
Int_t | GetPDGType () const |
Int_t | GetMultiplicity () const |
Double_t | GetPDGMass () const |
virtual void | GenerateEventParameters () |
Double_t | GetVxAv () const |
Double_t | GetVyAv () const |
Double_t | GetVzAv () const |
Double_t | GetVxRms () const |
Double_t | GetVyRms () const |
Double_t | GetVzRms () const |
Protected Member Functions inherited from FairGenerator | |
FairGenerator (const FairGenerator &) | |
FairGenerator & | operator= (const FairGenerator &) |
ClassDef (FairGenerator, 1) | |
Protected Attributes inherited from FairBaseMCGenerator | |
Double_t | fX |
Double_t | fY |
Double_t | fZ |
Definition at line 27 of file FairIonGenerator.h.
FairIonGenerator::FairIonGenerator | ( | ) |
Default constructor
Definition at line 28 of file FairIonGenerator.cxx.
FairIonGenerator::FairIonGenerator | ( | const Char_t * | ionName, |
Int_t | mult, | ||
Double_t | px, | ||
Double_t | py, | ||
Double_t | pz, | ||
Double_t | vx = 0 , |
||
Double_t | vy = 0 , |
||
Double_t | vz = 0 |
||
) |
Constructor with ion name For the generation of ions with pre-defined FairIon By default, the excitation energy is zero. This can be changed with the respective modifiers.
ionName | Ion name |
mult | Number of ions per event |
px,py,pz | Momentum components [GeV] per nucleon! |
vx,vy,vz | Vertex coordinates [cm] |
Definition at line 39 of file FairIonGenerator.cxx.
FairIonGenerator::FairIonGenerator | ( | Int_t | z, |
Int_t | a, | ||
Int_t | q, | ||
Int_t | mult, | ||
Double_t | px, | ||
Double_t | py, | ||
Double_t | pz, | ||
Double_t | vx = 0 , |
||
Double_t | vy = 0 , |
||
Double_t | vz = 0 |
||
) |
Default constructor For the generation of ions with atomic number z and mass number a. By default, the mass equals a times the proton mass and the excitation energy is zero. This can be changed with the respective modifiers.
z | Atomic number |
a | Atomic mass |
q | Electric charge [e] |
mult | Number of ions per event |
px,py,pz | Momentum components [GeV] per nucleon! |
vx,vy,vz | Vertex coordinates [cm] |
Definition at line 81 of file FairIonGenerator.cxx.
|
virtual |
Destructor
Definition at line 139 of file FairIonGenerator.cxx.
|
virtual |
Clone this object (used in MT mode only)
Reimplemented from FairGenerator.
Definition at line 172 of file FairIonGenerator.cxx.
|
virtual |
Method ReadEvent Generates <mult> of the specified ions and hands hem to the FairPrimaryGenerator.
Implements FairGenerator.
Definition at line 148 of file FairIonGenerator.cxx.
|
inline |
Modifiers
Definition at line 78 of file FairIonGenerator.h.
void FairIonGenerator::SetExcitationEnergy | ( | Double_t | eExc | ) |
Definition at line 144 of file FairIonGenerator.cxx.
void FairIonGenerator::SetMass | ( | Double_t | mass | ) |
Definition at line 146 of file FairIonGenerator.cxx.