PandaRoot
PndVolGenerator Class Reference

#include <PndVolGenerator.h>

Inheritance diagram for PndVolGenerator:

Public Member Functions

 PndVolGenerator ()
 
 PndVolGenerator (Int_t pdgid, Int_t mult=1)
 
virtual ~PndVolGenerator ()
 
void SetPDGType (Int_t pdg)
 
void SetMultiplicity (Int_t mult)
 
void SetPRange (Double32_t pmin=0, Double32_t pmax=10)
 
void SetPtRange (Double32_t ptmin=0, Double32_t ptmax=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 SetInverseP ()
 
void SetXYZ (Double32_t x=0, Double32_t y=0, Double32_t z=0)
 
void SetVolXYZ (Double32_t x1=0, Double32_t y1=0, Double32_t x2=0, Double32_t y2=0, Double32_t z=0)
 
void SetDebug (Bool_t debug=0)
 
void SetVolTarg (Int_t quad=2, Int_t abs=5)
 
void SetVolTgFc (Int_t quad=2, TF1 *func=nullptr)
 
Bool_t Init ()
 
virtual Bool_t ReadEvent (FairPrimaryGenerator *primGen)
 

Detailed Description

Definition at line 42 of file PndVolGenerator.h.

Constructor & Destructor Documentation

◆ PndVolGenerator() [1/2]

PndVolGenerator::PndVolGenerator ( )

Default constructor.

◆ PndVolGenerator() [2/2]

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

Constructor with PDG-ID, multiplicity

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

◆ ~PndVolGenerator()

virtual PndVolGenerator::~PndVolGenerator ( )
inlinevirtual

Destructor

Definition at line 54 of file PndVolGenerator.h.

54 {};

Member Function Documentation

◆ Init()

Bool_t PndVolGenerator::Init ( )

Initializer

Referenced by SetVolTgFc().

◆ ReadEvent()

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

Creates an event with given type and multiplicity.

Parameters
primGenpointer to the FairPrimaryGenerator

Referenced by SetVolTgFc().

◆ SetCosTheta()

void PndVolGenerator::SetCosTheta ( )
inline

Definition at line 102 of file PndVolGenerator.h.

102 { fCosThetaIsSet = kTRUE; };

◆ SetDebug()

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

Definition at line 124 of file PndVolGenerator.h.

124 { fDebug = debug; }

◆ SetEtaRange()

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

Definition at line 81 of file PndVolGenerator.h.

82  {
83  fEtaMin = etamin;
84  fEtaMax = etamax;
85  fEtaRangeIsSet = kTRUE;
86  };

◆ SetInverseP()

void PndVolGenerator::SetInverseP ( )
inline

Definition at line 104 of file PndVolGenerator.h.

104 { fInversePIsSet = kTRUE; };

◆ SetMultiplicity()

void PndVolGenerator::SetMultiplicity ( Int_t  mult)
inline

Definition at line 59 of file PndVolGenerator.h.

59 { fMult = mult; };

◆ SetPDGType()

void PndVolGenerator::SetPDGType ( Int_t  pdg)
inline

Modifiers

Definition at line 57 of file PndVolGenerator.h.

57 { fPDGType = pdg; };

◆ SetPhiRange()

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

Definition at line 75 of file PndVolGenerator.h.

76  {
77  fPhiMin = phimin;
78  fPhiMax = phimax;
79  };

◆ SetPRange()

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

Definition at line 61 of file PndVolGenerator.h.

62  {
63  fPMin = pmin;
64  fPMax = pmax;
65  fPRangeIsSet = kTRUE;
66  }

◆ SetPtRange()

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

Definition at line 68 of file PndVolGenerator.h.

69  {
70  fPtMin = ptmin;
71  fPtMax = ptmax;
72  fPtRangeIsSet = kTRUE;
73  };

◆ SetThetaRange()

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

Definition at line 95 of file PndVolGenerator.h.

96  {
97  fThetaMin = thetamin;
98  fThetaMax = thetamax;
99  fThetaRangeIsSet = kTRUE;
100  };

◆ SetVolTarg()

void PndVolGenerator::SetVolTarg ( Int_t  quad = 2,
Int_t  abs = 5 
)
inline

Definition at line 126 of file PndVolGenerator.h.

127  {
128  fQuad = quad;
129  fAbs = abs;
130  fExt = kTRUE;
131  }; // Absorber Volume Setter

◆ SetVolTgFc()

void PndVolGenerator::SetVolTgFc ( Int_t  quad = 2,
TF1 *  func = nullptr 
)
inline

Definition at line 133 of file PndVolGenerator.h.

References Init(), and ReadEvent().

134  {
135  fQuad = quad;
136  fFunc = func;
137  fExt = kFALSE;
138  }; // Absorber Volume Setter

◆ SetVolXYZ()

void PndVolGenerator::SetVolXYZ ( Double32_t  x1 = 0,
Double32_t  y1 = 0,
Double32_t  x2 = 0,
Double32_t  y2 = 0,
Double32_t  z = 0 
)
inline

Definition at line 114 of file PndVolGenerator.h.

115  {
116  fX1 = x1;
117  fY1 = y1;
118  fX2 = x2;
119  fY2 = y2;
120  fZ = z;
121  fVolVtxIsSet = kTRUE;
122  }

◆ SetXYZ()

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

Definition at line 106 of file PndVolGenerator.h.

107  {
108  fX = x;
109  fY = y;
110  fZ = z;
111  fPointVtxIsSet = kTRUE;
112  }

◆ SetYRange()

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

Definition at line 88 of file PndVolGenerator.h.

89  {
90  fYMin = ymin;
91  fYMax = ymax;
92  fYRangeIsSet = kTRUE;
93  };

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