Go to the documentation of this file.
7 #ifndef CBMEVENTGENERATOR_H
8 #define CBMEVENTGENERATOR_H 1
13 #include <FairPrimaryGenerator.h>
16 class FairGenericStack;
83 virtual void Print(Option_t* opt =
"")
const;
102 Double_t sigmaThetaX = -1.,
103 Double_t sigmaThetaY = -1.);
121 Double_t sigmaX = -1.,
122 Double_t sigmaY = -1.,
virtual void MakeVertexInTarget()
Generate event vertex position in the target.
CbmBeamProfile fBeamProfile
Beam properties.
Double_t fVertexZ
forced z coordinate of event vertex
virtual void MakeBeamAngle()
Generate beam angle.
ClassDef(CbmEventGenerator, 2)
std::shared_ptr< const CbmTarget > fTarget
void SetBeamAngle(Double_t meanThetaX, Double_t meanThetaY, Double_t sigmaThetaX=-1., Double_t sigmaThetaY=-1.)
Set the beam angle in the focal plane.
void SetBeamPosition(Double_t meanX, Double_t meanY, Double_t sigmaX=-1., Double_t sigmaY=-1., Double_t zF=0.)
Set the beam position in the focal plane.
virtual void Print(Option_t *opt="") const
Log output.
void ForceVertexInTarget(Bool_t choice=kTRUE)
Enable or disable forcing the vertex to be in the target.
virtual Bool_t GenerateEvent(FairGenericStack *stack)
Generate the input event.
void ForceVertexAtZ(Double_t zVertex)
Force event vertex to be at a given z.
void MakeVertexAtZ()
Generate event vertex position at a given z.
const CbmBeamProfile & GetBeamProfile()
Beam profile.
CbmEventGenerator()
Default constructor
Bool_t fForceVertexInTarget
Target properties.
void SetTarget(std::shared_ptr< const CbmTarget > target)
Set target properties.
Bool_t fForceVertexAtZ
If set, vertex must be at given z.
virtual ~CbmEventGenerator()
Destructor
virtual void MakeVertex()
Generate event vertex position.
virtual void MakeVertexInFocalPlane()
Generate event vertex position in the beam focal plane.