FairRoot
|
#include <FairParticleGenerator.h>
Public Member Functions | |
FairParticleGenerator () | |
FairParticleGenerator (Int_t pdgid, Int_t mult, Double32_t px, Double32_t py, Double32_t pz, Double32_t vx=0., Double32_t vy=0., Double32_t vz=0.) | |
virtual | ~FairParticleGenerator () |
void | SetMomentum (Double32_t px, Double32_t py, Double32_t pz) |
virtual Bool_t | ReadEvent (FairPrimaryGenerator *primGen) |
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 () |
virtual FairGenerator * | CloneGenerator () const |
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 31 of file FairParticleGenerator.h.
FairParticleGenerator::FairParticleGenerator | ( | ) |
Default constructor.
Definition at line 17 of file FairParticleGenerator.cxx.
FairParticleGenerator::FairParticleGenerator | ( | Int_t | pdgid, |
Int_t | mult, | ||
Double32_t | px, | ||
Double32_t | py, | ||
Double32_t | pz, | ||
Double32_t | vx = 0. , |
||
Double32_t | vy = 0. , |
||
Double32_t | vz = 0. |
||
) |
Constructor with PDG-ID, multiplicity and momentum (optionally vertex)
pdgid | Particle type (PDG encoding) |
mult | Multiplicity |
px,py,pz | Momentum components [GeV] |
vx,vy,vz | Vertex coordinates [cm], Default (0,0,0) |
Definition at line 26 of file FairParticleGenerator.cxx.
|
inlinevirtual |
Destructor
Definition at line 54 of file FairParticleGenerator.h.
|
virtual |
Creates an event with given type and multiplicity.
primGen | pointer to the FairPrimaryGenerator |
Implements FairGenerator.
Definition at line 51 of file FairParticleGenerator.cxx.
void FairParticleGenerator::SetMomentum | ( | Double32_t | px, |
Double32_t | py, | ||
Double32_t | pz | ||
) |
Modifiers
Definition at line 44 of file FairParticleGenerator.cxx.