23 #ifndef FAIRPRIMARYGENERATOR_H
24 #define FAIRPRIMARYGENERATOR_H
29 #include <TMCProcess.h>
31 #include <TObjArray.h>
53 virtual Bool_t
Init();
59 std::cout <<
"Empty fGenList pointer ! " << std::endl;
91 Bool_t wanttracking =
true,
95 TMCProcess proc = kPPrimary);
106 void SetBeam(Double_t beamX0, Double_t beamY0, Double_t beamSigmaX, Double_t beamSigmaY);
114 void SetBeamAngle(Double_t beamAngleX0, Double_t beamAngleY0, Double_t beamAngleSigmaX, Double_t beamAngleSigmaY);
128 void SetTarget(Double_t targetZ, Double_t targetDz);
136 void SetMultTarget(Int_t nroftargets, Double_t *targetZ, Double_t targetDz);
virtual void MakeBeamAngle()
void SmearVertexXY(Bool_t flag)
void AddGenerator(FairGenerator *generator)
void DoTracking(Bool_t doTracking=kTRUE)
void SetTarget(Double_t targetZ, Double_t targetDz)
ClassDef(FairPrimaryGenerator, 5)
virtual FairPrimaryGenerator * ClonePrimaryGenerator() const
void SetEventPlane(Double_t phiMin, Double_t phiMax)
void SetEventNr(Int_t evtNr)
void SmearGausVertexZ(Bool_t flag)
FairPrimaryGenerator & operator=(const FairPrimaryGenerator &)
void SetBeamAngle(Double_t beamAngleX0, Double_t beamAngleY0, Double_t beamAngleSigmaX, Double_t beamAngleSigmaY)
virtual void AddTrack(Int_t pdgid, Double_t px, Double_t py, Double_t pz, Double_t vx, Double_t vy, Double_t vz, Int_t parent=-1, Bool_t wanttracking=true, Double_t e=-9e9, Double_t tof=0., Double_t weight=0., TMCProcess proc=kPPrimary)
void SetBeam(Double_t beamX0, Double_t beamY0, Double_t beamSigmaX, Double_t beamSigmaY)
virtual Bool_t GenerateEvent(FairGenericStack *pStack)
void SetEvent(FairMCEventHeader *event)
void SmearVertexZ(Bool_t flag)
FairMCEventHeader * GetEvent()
Bool_t fSmearGausVertexXY
FairGenericStack * fStack
FairMCEventHeader * fEvent
void SetMultTarget(Int_t nroftargets, Double_t *targetZ, Double_t targetDz)
virtual ~FairPrimaryGenerator()
Double_t fBeamAngleSigmaX
TObjArray * GetListOfGenerators()
Double_t fBeamAngleSigmaY
void SmearGausVertexXY(Bool_t flag)
virtual void MakeVertex()