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 ()
 

Friends

std::ostream & operator<< (std::ostream &out, PndBoxGenerator &gen)
 

Detailed Description

Definition at line 37 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 49 of file PndBoxGenerator.h.

49 {};

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 109 of file PndBoxGenerator.h.

110  {
111  fX1 = x1;
112  fY1 = y1;
113  fX2 = x2;
114  fY2 = y2;
115  fZ = z;
116  fBoxVtxIsSet = kTRUE;
117  }

◆ SetCosTheta()

void PndBoxGenerator::SetCosTheta ( )
inline

Definition at line 97 of file PndBoxGenerator.h.

97 { fCosThetaIsSet = kTRUE; };

◆ SetDebug()

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

Definition at line 119 of file PndBoxGenerator.h.

References Init(), and ReadEvent().

119 { fDebug = debug; }

◆ SetEtaRange()

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

Definition at line 76 of file PndBoxGenerator.h.

77  {
78  fEtaMin = etamin;
79  fEtaMax = etamax;
80  fEtaRangeIsSet = kTRUE;
81  };

◆ SetInverseP()

void PndBoxGenerator::SetInverseP ( )
inline

Definition at line 99 of file PndBoxGenerator.h.

99 { fInversePIsSet = kTRUE; };

◆ SetMultiplicity()

void PndBoxGenerator::SetMultiplicity ( Int_t  mult)
inline

Definition at line 54 of file PndBoxGenerator.h.

54 { fMult = mult; };

◆ SetPDGType()

void PndBoxGenerator::SetPDGType ( Int_t  pdg)
inline

Modifiers

Definition at line 52 of file PndBoxGenerator.h.

52 { fPDGType = pdg; };

◆ SetPhiRange()

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

Definition at line 70 of file PndBoxGenerator.h.

71  {
72  fPhiMin = phimin;
73  fPhiMax = phimax;
74  };

◆ SetPRange()

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

Definition at line 56 of file PndBoxGenerator.h.

57  {
58  fPMin = pmin;
59  fPMax = pmax;
60  fPRangeIsSet = kTRUE;
61  }

◆ SetPtRange()

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

Definition at line 63 of file PndBoxGenerator.h.

64  {
65  fPtMin = ptmin;
66  fPtMax = ptmax;
67  fPtRangeIsSet = kTRUE;
68  };

◆ SetThetaRange()

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

Definition at line 90 of file PndBoxGenerator.h.

91  {
92  fThetaMin = thetamin;
93  fThetaMax = thetamax;
94  fThetaRangeIsSet = kTRUE;
95  };

◆ SetXYZ()

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

Definition at line 101 of file PndBoxGenerator.h.

102  {
103  fX = x;
104  fY = y;
105  fZ = z;
106  fPointVtxIsSet = kTRUE;
107  }

◆ SetYRange()

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

Definition at line 83 of file PndBoxGenerator.h.

84  {
85  fYMin = ymin;
86  fYMax = ymax;
87  fYRangeIsSet = kTRUE;
88  };

Friends And Related Function Documentation

◆ operator<<

std::ostream& operator<< ( std::ostream &  out,
PndBoxGenerator gen 
)
friend

Definition at line 129 of file PndBoxGenerator.h.

130  {
131  out << "BoxGenerator settings:" << std::endl;
132  out << gen.fMult << " * " << gen.fPDGType << std::endl;
133  if (gen.fPRangeIsSet) out << "P Range: " << gen.fPMin << " < " << gen.fPMax << std::endl;
134  if (gen.fPtRangeIsSet) out << "Pt Range: " << gen.fPtMin << " < " << gen.fPtMax << std::endl;
135  if (gen.fInversePIsSet) out << "InverseP is set" << std::endl;
136  if (gen.fThetaRangeIsSet) out << "Theta Range: " << gen.fThetaMin << " < " << gen.fThetaMax << std::endl;
137  if (gen.fCosThetaIsSet) out << "CosTheta is set" << std::endl;
138  if (gen.fEtaRangeIsSet) out << "Eta Range: " << gen.fEtaMin << " < " << gen.fEtaMax << std::endl;
139  if (gen.fYRangeIsSet) out << "Y Range: " << gen.fYMin << " < " << gen.fYMax << std::endl;
140  out << "Phi Range: " << gen.fPhiMin << " < " << gen.fPhiMax << std::endl;
141  if (gen.fPointVtxIsSet) out << "Point Vertex: " << gen.fX << "/" << gen.fY << "/" << gen.fZ << std::endl;
142  if (gen.fBoxVtxIsSet) out << "Box Vertex: p1: " << gen.fX1 << "/" << gen.fY1 << " p2: " << gen.fX2 << "/" << gen.fY2 << " z " << gen.fZ << std::endl;
143 
144  return out;
145 
146  }

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