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

#include <FairParticleGenerator.h>

Inheritance diagram for FairParticleGenerator:
FairBaseMCGenerator FairGenerator

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 FairGeneratorCloneGenerator () 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
 
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 31 of file FairParticleGenerator.h.

Constructor & Destructor Documentation

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)

Parameters
pdgidParticle type (PDG encoding)
multMultiplicity
px,py,pzMomentum components [GeV]
vx,vy,vzVertex coordinates [cm], Default (0,0,0)

Definition at line 26 of file FairParticleGenerator.cxx.

virtual FairParticleGenerator::~FairParticleGenerator ( )
inlinevirtual

Destructor

Definition at line 54 of file FairParticleGenerator.h.

Member Function Documentation

Bool_t FairParticleGenerator::ReadEvent ( FairPrimaryGenerator primGen)
virtual

Creates an event with given type and multiplicity.

Parameters
primGenpointer 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.


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