PandaRoot
PndFixStepParticleGun Class Reference

#include <PndFixStepParticleGun.h>

Inheritance diagram for PndFixStepParticleGun:
PndTargetGenerator

Public Member Functions

 PndFixStepParticleGun ()
 
 PndFixStepParticleGun (Int_t pdgid, Int_t mult=1)
 
virtual ~PndFixStepParticleGun ()
 
void SetPDGType (Int_t pdg)
 
void SetMultiplicity (Int_t mult)
 
void SetPRange (Double32_t pmin=0, Double32_t pmax=10, Double32_t pstep=1)
 
void SetPtRange (Double32_t ptmin=0, Double32_t ptmax=10, Double32_t ptstep=1)
 
void SetPhiRange (Double32_t phimin=0, Double32_t phimax=360, Double32_t phistep=1)
 
void SetEtaRange (Double32_t etamin=-5, Double32_t etamax=7, Double32_t etastep=1)
 
void SetYRange (Double32_t ymin=-5, Double32_t ymax=7, Double32_t ystep=1)
 
void SetThetaRange (Double32_t thetamin=0, Double32_t thetamax=90, Double32_t thetastep=1)
 
void SetCosThetaRange (Double32_t costhetamin=-1, Double32_t costhetamax=1, Double32_t costhetastep=0.1)
 
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)
 
int GetNEvents ()
 
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 49 of file PndFixStepParticleGun.h.

Constructor & Destructor Documentation

◆ PndFixStepParticleGun() [1/2]

PndFixStepParticleGun::PndFixStepParticleGun ( )

Default constructor.

◆ PndFixStepParticleGun() [2/2]

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

Constructor with PDG-ID, multiplicity

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

◆ ~PndFixStepParticleGun()

virtual PndFixStepParticleGun::~PndFixStepParticleGun ( )
inlinevirtual

Destructor

Definition at line 61 of file PndFixStepParticleGun.h.

61 {};

Member Function Documentation

◆ GetNEvents()

int PndFixStepParticleGun::GetNEvents ( )

◆ Init()

Bool_t PndFixStepParticleGun::Init ( )
virtual

Initializer

Reimplemented from PndTargetGenerator.

◆ ReadEvent()

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

Creates an event with given type and multiplicity.

Parameters
primGenpointer to the PndPrimaryGenerator

Reimplemented from PndTargetGenerator.

◆ SetBoxXYZ()

void PndFixStepParticleGun::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 132 of file PndFixStepParticleGun.h.

133  {
134  fX1 = x1;
135  fY1 = y1;
136  fX2 = x2;
137  fY2 = y2;
138  fZ = z;
139  fBoxVtxIsSet = kTRUE;
140  }

◆ SetCosThetaRange()

void PndFixStepParticleGun::SetCosThetaRange ( Double32_t  costhetamin = -1,
Double32_t  costhetamax = 1,
Double32_t  costhetastep = 0.1 
)
inline

Definition at line 115 of file PndFixStepParticleGun.h.

116  {
117  fCosTheta.SetStart(costhetamin);
118  fCosTheta.SetStop(costhetamax);
119  fCosTheta.SetStep(costhetastep);
120  fCosThetaIsSet = kTRUE;
121  fThetaRangeIsSet = kTRUE;
122  };
void SetStep(Double32_t val)
void SetStop(Double32_t val)
void SetStart(Double32_t val)

◆ SetDebug()

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

Definition at line 142 of file PndFixStepParticleGun.h.

References PndRangeValues::ClassDef().

142 { fDebug = debug; }

◆ SetEtaRange()

void PndFixStepParticleGun::SetEtaRange ( Double32_t  etamin = -5,
Double32_t  etamax = 7,
Double32_t  etastep = 1 
)
inline

Definition at line 91 of file PndFixStepParticleGun.h.

92  {
93  fEta.SetStart(etamin);
94  fEta.SetStop(etamax);
95  fEta.SetStep(etastep);
96  fEtaRangeIsSet = kTRUE;
97  };
void SetStep(Double32_t val)
void SetStop(Double32_t val)
void SetStart(Double32_t val)

◆ SetMultiplicity()

void PndFixStepParticleGun::SetMultiplicity ( Int_t  mult)
inline

Definition at line 66 of file PndFixStepParticleGun.h.

66 { fMult = mult; };

◆ SetPDGType()

void PndFixStepParticleGun::SetPDGType ( Int_t  pdg)
inline

Modifiers

Definition at line 64 of file PndFixStepParticleGun.h.

64 { fPDGType = pdg; };

◆ SetPhiRange()

void PndFixStepParticleGun::SetPhiRange ( Double32_t  phimin = 0,
Double32_t  phimax = 360,
Double32_t  phistep = 1 
)
inline

Definition at line 84 of file PndFixStepParticleGun.h.

85  {
86  fPhi.SetStart(phimin);
87  fPhi.SetStop(phimax);
88  fPhi.SetStep(phistep);
89  };
void SetStep(Double32_t val)
void SetStop(Double32_t val)
void SetStart(Double32_t val)

◆ SetPRange()

void PndFixStepParticleGun::SetPRange ( Double32_t  pmin = 0,
Double32_t  pmax = 10,
Double32_t  pstep = 1 
)
inline

Definition at line 68 of file PndFixStepParticleGun.h.

69  {
70  fP.SetStart(pmin);
71  fP.SetStop(pmax);
72  fP.SetStep(pstep);
73  fPRangeIsSet = kTRUE;
74  }
void SetStep(Double32_t val)
void SetStop(Double32_t val)
void SetStart(Double32_t val)

◆ SetPtRange()

void PndFixStepParticleGun::SetPtRange ( Double32_t  ptmin = 0,
Double32_t  ptmax = 10,
Double32_t  ptstep = 1 
)
inline

Definition at line 76 of file PndFixStepParticleGun.h.

77  {
78  fPt.SetStart(ptmin);
79  fPt.SetStop(ptmax);
80  fPt.SetStep(ptstep);
81  fPtRangeIsSet = kTRUE;
82  };
void SetStep(Double32_t val)
void SetStop(Double32_t val)
void SetStart(Double32_t val)

◆ SetThetaRange()

void PndFixStepParticleGun::SetThetaRange ( Double32_t  thetamin = 0,
Double32_t  thetamax = 90,
Double32_t  thetastep = 1 
)
inline

Definition at line 107 of file PndFixStepParticleGun.h.

108  {
109  fTheta.SetStart(thetamin);
110  fTheta.SetStop(thetamax);
111  fTheta.SetStep(thetastep);
112  fThetaRangeIsSet = kTRUE;
113  };
void SetStep(Double32_t val)
void SetStop(Double32_t val)
void SetStart(Double32_t val)

◆ SetXYZ()

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

Definition at line 124 of file PndFixStepParticleGun.h.

125  {
126  fX = x;
127  fY = y;
128  fZ = z;
129  fPointVtxIsSet = kTRUE;
130  }

◆ SetYRange()

void PndFixStepParticleGun::SetYRange ( Double32_t  ymin = -5,
Double32_t  ymax = 7,
Double32_t  ystep = 1 
)
inline

Definition at line 99 of file PndFixStepParticleGun.h.

100  {
101  fRapidity.SetStart(ymin);
102  fRapidity.SetStop(ymax);
103  fRapidity.SetStep(ystep);
104  fYRangeIsSet = kTRUE;
105  };
void SetStep(Double32_t val)
void SetStop(Double32_t val)
void SetStart(Double32_t val)

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