FairRoot
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
FairIonGenerator Class Reference

#include <FairIonGenerator.h>

Inheritance diagram for FairIonGenerator:
FairBaseMCGenerator FairGenerator

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 FairGeneratorCloneGenerator () 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
 
FairBaseMCGeneratoroperator= (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 &)
 
FairGeneratoroperator= (const FairGenerator &)
 
 ClassDef (FairGenerator, 1)
 
- Protected Attributes inherited from FairBaseMCGenerator
Double_t fX
 
Double_t fY
 
Double_t fZ
 

Detailed Description

Definition at line 27 of file FairIonGenerator.h.

Constructor & Destructor Documentation

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.

Parameters
ionNameIon name
multNumber of ions per event
px,py,pzMomentum components [GeV] per nucleon!
vx,vy,vzVertex 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.

Parameters
zAtomic number
aAtomic mass
qElectric charge [e]
multNumber of ions per event
px,py,pzMomentum components [GeV] per nucleon!
vx,vy,vzVertex coordinates [cm]

Definition at line 81 of file FairIonGenerator.cxx.

FairIonGenerator::~FairIonGenerator ( )
virtual

Destructor

Definition at line 139 of file FairIonGenerator.cxx.

Member Function Documentation

FairGenerator * FairIonGenerator::CloneGenerator ( ) const
virtual

Clone this object (used in MT mode only)

Reimplemented from FairGenerator.

Definition at line 172 of file FairIonGenerator.cxx.

Bool_t FairIonGenerator::ReadEvent ( FairPrimaryGenerator primGen)
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.

void FairIonGenerator::SetCharge ( Int_t  charge)
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.


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