FairRoot
|
#include <FairBaseMCGenerator.h>
Public Types | |
enum | eVertexSmear { kBox, kGauss, kExp } |
Public Member Functions | |
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 Bool_t | ReadEvent (FairPrimaryGenerator *primGen)=0 |
virtual FairGenerator * | CloneGenerator () const |
Protected Member Functions | |
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 | |
Double_t | fX |
Double_t | fY |
Double_t | fZ |
abstract class for generators that use "macro input" to generate partcles
Definition at line 17 of file FairBaseMCGenerator.h.
Enumerator | |
---|---|
kBox | |
kGauss | |
kExp |
Definition at line 20 of file FairBaseMCGenerator.h.
FairBaseMCGenerator::FairBaseMCGenerator | ( | ) |
Definition at line 17 of file FairBaseMCGenerator.cxx.
|
virtual |
Definition at line 51 of file FairBaseMCGenerator.cxx.
|
protecteddefault |
|
protectedvirtual |
generate event parameters like current event
Definition at line 71 of file FairBaseMCGenerator.cxx.
|
inlineprotected |
Definition at line 57 of file FairBaseMCGenerator.h.
|
inlineprotected |
Definition at line 58 of file FairBaseMCGenerator.h.
|
inlineprotected |
Definition at line 56 of file FairBaseMCGenerator.h.
|
inlineprotected |
Definition at line 63 of file FairBaseMCGenerator.h.
|
inlineprotected |
Definition at line 66 of file FairBaseMCGenerator.h.
|
inlineprotected |
Definition at line 64 of file FairBaseMCGenerator.h.
|
inlineprotected |
Definition at line 67 of file FairBaseMCGenerator.h.
|
inlineprotected |
Definition at line 65 of file FairBaseMCGenerator.h.
|
inlineprotected |
Definition at line 68 of file FairBaseMCGenerator.h.
|
virtual |
Initialize the generator if needed
Reimplemented from FairGenerator.
Reimplemented in FairBoxGenerator, and FairYPtGenerator.
Definition at line 56 of file FairBaseMCGenerator.cxx.
|
protecteddefault |
|
inline |
set number of particles per event
mult |
Definition at line 49 of file FairBaseMCGenerator.h.
void FairBaseMCGenerator::SetPDGType | ( | Int_t | pdg | ) |
set PDG code of generated particles
pdg |
Definition at line 69 of file FairBaseMCGenerator.cxx.
void FairBaseMCGenerator::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 |
||
) |
set vertex position and algorithm of vertex generation
vx,vy,vz | Vertex coordinates [cm] |
evx,evy,evz | Vertex dispersion [cm] |
sm | distribution of vertex, gaussian or box |
Definition at line 34 of file FairBaseMCGenerator.cxx.
|
protected |
Definition at line 69 of file FairBaseMCGenerator.h.
|
protected |
Definition at line 69 of file FairBaseMCGenerator.h.
|
protected |
Definition at line 69 of file FairBaseMCGenerator.h.