PandaRoot
PndGasGenerator Class Reference

#include <PndGasGenerator.h>

Inheritance diagram for PndGasGenerator:

Public Member Functions

 PndGasGenerator ()
 
 PndGasGenerator (Int_t pdgid, Int_t mult=1)
 
virtual ~PndGasGenerator ()
 
void SetPDGType (Int_t pdg)
 
void SetMultiplicity (Int_t mult)
 
void SetPRange (Double32_t pmin=0, Double32_t pmax=10)
 
void SetPhiRange (Double32_t phimin=0, Double32_t phimax=360)
 
void SetThetaRange (Double32_t thetamin=0, Double32_t thetamax=90)
 
void SetCosTheta ()
 
void SetZRange (Double32_t zmin=0, Double32_t zmax=10)
 
void SetRadius (Double32_t radius=0.2)
 
void SetDebug (Bool_t debug=0)
 
Bool_t Init ()
 
virtual Bool_t ReadEvent (FairPrimaryGenerator *primGen)
 

Detailed Description

Definition at line 30 of file PndGasGenerator.h.

Constructor & Destructor Documentation

◆ PndGasGenerator() [1/2]

PndGasGenerator::PndGasGenerator ( )

Default constructor.

◆ PndGasGenerator() [2/2]

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

Constructor with PDG-ID, multiplicity

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

◆ ~PndGasGenerator()

virtual PndGasGenerator::~PndGasGenerator ( )
inlinevirtual

Destructor

Definition at line 42 of file PndGasGenerator.h.

42 {};

Member Function Documentation

◆ Init()

Bool_t PndGasGenerator::Init ( )

Initializer

Referenced by SetDebug().

◆ ReadEvent()

virtual Bool_t PndGasGenerator::ReadEvent ( FairPrimaryGenerator *  primGen)
virtual

Creates an event with given type and multiplicity.

Parameters
primGenpointer to the FairPrimaryGenerator

Referenced by SetDebug().

◆ SetCosTheta()

void PndGasGenerator::SetCosTheta ( )
inline

Definition at line 69 of file PndGasGenerator.h.

69 { fCosThetaIsSet = kTRUE; };

◆ SetDebug()

void PndGasGenerator::SetDebug ( Bool_t  debug = 0)
inline

Definition at line 81 of file PndGasGenerator.h.

References Init(), and ReadEvent().

81 { fDebug = debug; }

◆ SetMultiplicity()

void PndGasGenerator::SetMultiplicity ( Int_t  mult)
inline

Definition at line 47 of file PndGasGenerator.h.

47 { fMult = mult; };

◆ SetPDGType()

void PndGasGenerator::SetPDGType ( Int_t  pdg)
inline

Modifiers

Definition at line 45 of file PndGasGenerator.h.

45 { fPDGType = pdg; };

◆ SetPhiRange()

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

Definition at line 56 of file PndGasGenerator.h.

57  {
58  fPhiMin = phimin;
59  fPhiMax = phimax;
60  };

◆ SetPRange()

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

Definition at line 49 of file PndGasGenerator.h.

50  {
51  fPMin = pmin;
52  fPMax = pmax;
53  fPRangeIsSet = kTRUE;
54  }

◆ SetRadius()

void PndGasGenerator::SetRadius ( Double32_t  radius = 0.2)
inline

Definition at line 77 of file PndGasGenerator.h.

77 { fRadius = radius; }

◆ SetThetaRange()

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

Definition at line 62 of file PndGasGenerator.h.

63  {
64  fThetaMin = thetamin;
65  fThetaMax = thetamax;
66  fThetaRangeIsSet = kTRUE;
67  };

◆ SetZRange()

void PndGasGenerator::SetZRange ( Double32_t  zmin = 0,
Double32_t  zmax = 10 
)
inline

Definition at line 71 of file PndGasGenerator.h.

72  {
73  fZMin = zmin;
74  fZMax = zmax;
75  }

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