11#ifndef CBMBEAMGENERATOR_H
12#define CBMBEAMGENERATOR_H 1
15#include <FairGenerator.h>
23class FairPrimaryGenerator;
58 CbmBeamGenerator(UInt_t beamZ, UInt_t beamA, UInt_t beamQ, Double_t momentum, Double_t zStart);
66 virtual void Print(Option_t* opt =
"")
const;
72 virtual Bool_t
ReadEvent(FairPrimaryGenerator* primGen);
CbmBeamGenerator()
Default constructor (should not be used)
Double_t fStartZ
z coordinate of start point
virtual Bool_t ReadEvent(FairPrimaryGenerator *primGen)
Generate one event (abstract in base class)
std::string ToString() const
Info to string.
virtual ~CbmBeamGenerator()
Destructor.
Double_t fP
Total momentum [GeV].
ClassDef(CbmBeamGenerator, 1)
virtual void Print(Option_t *opt="") const
Print info to logger.