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 30 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 42 of file PndVolGenerator.h.

42 {};

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 90 of file PndVolGenerator.h.

90 { fCosThetaIsSet = kTRUE; };

◆ SetDebug()

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

Definition at line 112 of file PndVolGenerator.h.

112 { fDebug = debug; }

◆ SetEtaRange()

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

Definition at line 69 of file PndVolGenerator.h.

70  {
71  fEtaMin = etamin;
72  fEtaMax = etamax;
73  fEtaRangeIsSet = kTRUE;
74  };

◆ SetInverseP()

void PndVolGenerator::SetInverseP ( )
inline

Definition at line 92 of file PndVolGenerator.h.

92 { fInversePIsSet = kTRUE; };

◆ SetMultiplicity()

void PndVolGenerator::SetMultiplicity ( Int_t  mult)
inline

Definition at line 47 of file PndVolGenerator.h.

47 { fMult = mult; };

◆ SetPDGType()

void PndVolGenerator::SetPDGType ( Int_t  pdg)
inline

Modifiers

Definition at line 45 of file PndVolGenerator.h.

45 { fPDGType = pdg; };

◆ SetPhiRange()

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

Definition at line 63 of file PndVolGenerator.h.

64  {
65  fPhiMin = phimin;
66  fPhiMax = phimax;
67  };

◆ SetPRange()

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

Definition at line 49 of file PndVolGenerator.h.

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

◆ SetPtRange()

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

Definition at line 56 of file PndVolGenerator.h.

57  {
58  fPtMin = ptmin;
59  fPtMax = ptmax;
60  fPtRangeIsSet = kTRUE;
61  };

◆ SetThetaRange()

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

Definition at line 83 of file PndVolGenerator.h.

84  {
85  fThetaMin = thetamin;
86  fThetaMax = thetamax;
87  fThetaRangeIsSet = kTRUE;
88  };

◆ SetVolTarg()

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

Definition at line 114 of file PndVolGenerator.h.

115  {
116  fQuad = quad;
117  fAbs = abs;
118  fExt = kTRUE;
119  }; // Absorber Volume Setter

◆ SetVolTgFc()

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

Definition at line 121 of file PndVolGenerator.h.

References Init(), and ReadEvent().

122  {
123  fQuad = quad;
124  fFunc = func;
125  fExt = kFALSE;
126  }; // 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 102 of file PndVolGenerator.h.

103  {
104  fX1 = x1;
105  fY1 = y1;
106  fX2 = x2;
107  fY2 = y2;
108  fZ = z;
109  fVolVtxIsSet = kTRUE;
110  }

◆ SetXYZ()

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

Definition at line 94 of file PndVolGenerator.h.

95  {
96  fX = x;
97  fY = y;
98  fZ = z;
99  fPointVtxIsSet = kTRUE;
100  }

◆ SetYRange()

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

Definition at line 76 of file PndVolGenerator.h.

77  {
78  fYMin = ymin;
79  fYMax = ymax;
80  fYRangeIsSet = kTRUE;
81  };

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