PandaRoot
PndBoxGenerator Class Reference

#include <PndBoxGenerator.h>

Inheritance diagram for PndBoxGenerator:
PndTargetGenerator

Public Member Functions

 PndBoxGenerator ()
 
 PndBoxGenerator (Int_t pdgid, Int_t mult=1)
 
virtual ~PndBoxGenerator ()
 
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 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 debug=0)
 
Bool_t Init ()
 
virtual Bool_t ReadEvent (FairPrimaryGenerator *primGen)
 
- Public Member Functions inherited from PndTargetGenerator
 PndTargetGenerator ()
 
 PndTargetGenerator (TString densityFile, double radius=0., double drdz=0., double rlimit=2.)
 
virtual ~PndTargetGenerator ()
 
void SetDensityProfile (TString density)
 
void SetBeamRadius (double radius=0.1)
 
void SetBeamPipeRadius (double radius=2.)
 
void SetConstantBeamRegion (double zmin=-140., double zmax=223)
 
void SetBeamDrDz (double drdz=0.1)
 
void SetVerbose (int verb=1)
 
TGraph * GetDensityGraph ()
 
TVector3 SampleInteractionVertex ()
 
void ReadDensityFile ()
 

Detailed Description

Definition at line 25 of file PndBoxGenerator.h.

Constructor & Destructor Documentation

◆ PndBoxGenerator() [1/2]

PndBoxGenerator::PndBoxGenerator ( )

Default constructor.

◆ PndBoxGenerator() [2/2]

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

Constructor with PDG-ID, multiplicity

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

◆ ~PndBoxGenerator()

virtual PndBoxGenerator::~PndBoxGenerator ( )
inlinevirtual

Destructor

Definition at line 37 of file PndBoxGenerator.h.

37 {};

Member Function Documentation

◆ Init()

Bool_t PndBoxGenerator::Init ( )
virtual

Initializer

Reimplemented from PndTargetGenerator.

Referenced by SetDebug().

◆ ReadEvent()

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

Creates an event with given type and multiplicity.

Parameters
primGenpointer to the FairPrimaryGenerator

Reimplemented from PndTargetGenerator.

Referenced by SetDebug().

◆ SetBoxXYZ()

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

Definition at line 97 of file PndBoxGenerator.h.

98  {
99  fX1 = x1;
100  fY1 = y1;
101  fX2 = x2;
102  fY2 = y2;
103  fZ = z;
104  fBoxVtxIsSet = kTRUE;
105  }

◆ SetCosTheta()

void PndBoxGenerator::SetCosTheta ( )
inline

Definition at line 85 of file PndBoxGenerator.h.

85 { fCosThetaIsSet = kTRUE; };

◆ SetDebug()

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

Definition at line 107 of file PndBoxGenerator.h.

References Init(), and ReadEvent().

107 { fDebug = debug; }

◆ SetEtaRange()

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

Definition at line 64 of file PndBoxGenerator.h.

65  {
66  fEtaMin = etamin;
67  fEtaMax = etamax;
68  fEtaRangeIsSet = kTRUE;
69  };

◆ SetInverseP()

void PndBoxGenerator::SetInverseP ( )
inline

Definition at line 87 of file PndBoxGenerator.h.

87 { fInversePIsSet = kTRUE; };

◆ SetMultiplicity()

void PndBoxGenerator::SetMultiplicity ( Int_t  mult)
inline

Definition at line 42 of file PndBoxGenerator.h.

42 { fMult = mult; };

◆ SetPDGType()

void PndBoxGenerator::SetPDGType ( Int_t  pdg)
inline

Modifiers

Definition at line 40 of file PndBoxGenerator.h.

40 { fPDGType = pdg; };

◆ SetPhiRange()

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

Definition at line 58 of file PndBoxGenerator.h.

59  {
60  fPhiMin = phimin;
61  fPhiMax = phimax;
62  };

◆ SetPRange()

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

Definition at line 44 of file PndBoxGenerator.h.

45  {
46  fPMin = pmin;
47  fPMax = pmax;
48  fPRangeIsSet = kTRUE;
49  }

◆ SetPtRange()

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

Definition at line 51 of file PndBoxGenerator.h.

52  {
53  fPtMin = ptmin;
54  fPtMax = ptmax;
55  fPtRangeIsSet = kTRUE;
56  };

◆ SetThetaRange()

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

Definition at line 78 of file PndBoxGenerator.h.

79  {
80  fThetaMin = thetamin;
81  fThetaMax = thetamax;
82  fThetaRangeIsSet = kTRUE;
83  };

◆ SetXYZ()

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

Definition at line 89 of file PndBoxGenerator.h.

90  {
91  fX = x;
92  fY = y;
93  fZ = z;
94  fPointVtxIsSet = kTRUE;
95  }

◆ SetYRange()

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

Definition at line 71 of file PndBoxGenerator.h.

72  {
73  fYMin = ymin;
74  fYMax = ymax;
75  fYRangeIsSet = kTRUE;
76  };

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