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

#include <FairBoxGenerator.h>

Inheritance diagram for FairBoxGenerator:
FairBaseMCGenerator FairGenerator

Public Member Functions

 FairBoxGenerator ()
 
 FairBoxGenerator (Int_t pdgid, Int_t mult=1)
 
virtual ~FairBoxGenerator ()
 
void SetPRange (Double32_t pmin=0, Double32_t pmax=10)
 
void SetPtRange (Double32_t ptmin=0, Double32_t ptmax=10)
 
void SetEkinRange (Double32_t kmin=0, Double32_t kmax=10)
 
void SetPhiRange (Double32_t phimin=0, Double32_t phimax=360)
 
void SetEtaRange (Double32_t etamin=-5, Double32_t etamax=7)
 
void SetYRange (Double32_t ymin=-5, Double32_t ymax=7)
 
void SetThetaRange (Double32_t thetamin=0, Double32_t thetamax=90)
 
void SetCosTheta ()
 
void SetXYZ (Double32_t x=0, Double32_t y=0, Double32_t z=0)
 
void SetBoxXYZ (Double32_t x1=0, Double32_t y1=0, Double32_t x2=0, Double32_t y2=0, Double32_t z=0)
 
void SetDebug (Bool_t)
 
Bool_t Init ()
 
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 ~FairBaseMCGenerator ()
 
- Public Member Functions inherited from FairGenerator
 FairGenerator ()
 
 FairGenerator (const char *name, const char *title="FAIR Generator")
 
virtual ~FairGenerator ()
 

Protected Member Functions

 FairBoxGenerator (const FairBoxGenerator &)=default
 
FairBoxGeneratoroperator= (const FairBoxGenerator &)=default
 
- 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)
 

Additional Inherited Members

- Public Types inherited from FairBaseMCGenerator
enum  eVertexSmear { kBox, kGauss, kExp }
 
- Protected Attributes inherited from FairBaseMCGenerator
Double_t fX
 
Double_t fY
 
Double_t fZ
 

Detailed Description

Definition at line 44 of file FairBoxGenerator.h.

Constructor & Destructor Documentation

FairBoxGenerator::FairBoxGenerator ( )

Default constructor.

Definition at line 42 of file FairBoxGenerator.cxx.

FairBoxGenerator::FairBoxGenerator ( Int_t  pdgid,
Int_t  mult = 1 
)

Constructor with PDG-ID, multiplicity

Parameters
pdgidParticle type (PDG encoding)
multMultiplicity (default is 1)

Definition at line 69 of file FairBoxGenerator.cxx.

virtual FairBoxGenerator::~FairBoxGenerator ( )
inlinevirtual

Destructor

Definition at line 57 of file FairBoxGenerator.h.

FairBoxGenerator::FairBoxGenerator ( const FairBoxGenerator )
protecteddefault

Copy constructor.

Member Function Documentation

FairGenerator * FairBoxGenerator::CloneGenerator ( ) const
virtual

Clone this object (used in MT mode only)

Reimplemented from FairGenerator.

Definition at line 207 of file FairBoxGenerator.cxx.

Bool_t FairBoxGenerator::Init ( )
virtual

Initializer

Reimplemented from FairBaseMCGenerator.

Definition at line 114 of file FairBoxGenerator.cxx.

FairBoxGenerator& FairBoxGenerator::operator= ( const FairBoxGenerator )
protecteddefault
Bool_t FairBoxGenerator::ReadEvent ( FairPrimaryGenerator primGen)
virtual

Creates an event with given type and multiplicity.

Parameters
primGenpointer to the FairPrimaryGenerator

Implements FairGenerator.

Definition at line 154 of file FairBoxGenerator.cxx.

void FairBoxGenerator::SetBoxXYZ ( Double32_t  x1 = 0,
Double32_t  y1 = 0,
Double32_t  x2 = 0,
Double32_t  y2 = 0,
Double32_t  z = 0 
)

Definition at line 101 of file FairBoxGenerator.cxx.

void FairBoxGenerator::SetCosTheta ( )
inline

Definition at line 109 of file FairBoxGenerator.h.

void FairBoxGenerator::SetDebug ( Bool_t  )
inline

not used, for backward compatibility, please user FairLogger to set debug mode

Parameters

Definition at line 119 of file FairBoxGenerator.h.

void FairBoxGenerator::SetEkinRange ( Double32_t  kmin = 0,
Double32_t  kmax = 10 
)
inline

Definition at line 75 of file FairBoxGenerator.h.

void FairBoxGenerator::SetEtaRange ( Double32_t  etamin = -5,
Double32_t  etamax = 7 
)
inline

Definition at line 88 of file FairBoxGenerator.h.

void FairBoxGenerator::SetPhiRange ( Double32_t  phimin = 0,
Double32_t  phimax = 360 
)
inline

Definition at line 82 of file FairBoxGenerator.h.

void FairBoxGenerator::SetPRange ( Double32_t  pmin = 0,
Double32_t  pmax = 10 
)
inline

Modifiers

Definition at line 61 of file FairBoxGenerator.h.

void FairBoxGenerator::SetPtRange ( Double32_t  ptmin = 0,
Double32_t  ptmax = 10 
)
inline

Definition at line 68 of file FairBoxGenerator.h.

void FairBoxGenerator::SetThetaRange ( Double32_t  thetamin = 0,
Double32_t  thetamax = 90 
)
inline

Definition at line 102 of file FairBoxGenerator.h.

void FairBoxGenerator::SetXYZ ( Double32_t  x = 0,
Double32_t  y = 0,
Double32_t  z = 0 
)

Definition at line 99 of file FairBoxGenerator.cxx.

void FairBoxGenerator::SetYRange ( Double32_t  ymin = -5,
Double32_t  ymax = 7 
)
inline

Definition at line 95 of file FairBoxGenerator.h.


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