50 generatorInput(
singleFixed), verboseLevel(0), n_particle(1),
51 particleName(
"pi-"), particleEnergy(100*
GeV), particlePosition(0.,0.,0.),
100 G4double randomX = std::sin(theta)*std::cos(phi);
101 G4double randomY = std::sin(theta)*std::sin(phi);
109 << theta/
deg <<
" degree; Phi " << phi/
deg <<
" degree" <<
G4endl;
125 G4cout <<
" scanEtaStep " << scanEtaStep <<
" # of Steps " <<
etaSteps
127 G4cout <<
" scanPhiStep " << scanPhiStep <<
" # of Steps " <<
phiSteps
201 G4cerr <<
"CCalPrimaryGeneratorAction::SetMinimumEnergy: value " << p/
GeV
202 <<
"GeV is out of bounds, it will not be used" <<
G4endl;
208 G4cout <<
" CCalPrimaryGeneratorAction: setting min. value of energy to "
219 G4cerr <<
"CCalPrimaryGeneratorAction::SetMaximumEnergy: value " << p/
GeV
220 <<
"GeV is out of bounds, it will not be used" <<
G4endl;
226 G4cout <<
" CCalPrimaryGeneratorAction: setting max. value of energy to "
236 if (std::fabs(p)>2.*
pi) {
237 G4cerr <<
"CCalPrimaryGeneratorAction::SetMinimumPhi: setting value quite "
239 G4cerr <<
" Should be given in radians - Please check" <<
G4endl;
244 G4cout <<
" CCalPrimaryGeneratorAction: setting min. value of phi to "
254 if (std::fabs(p)>2.*
pi) {
255 G4cerr <<
"CCalPrimaryGeneratorAction::SetMaximumPhi: setting value quite "
257 G4cerr <<
" Should be given in radians - Please check" <<
G4endl;
262 G4cout <<
" CCalPrimaryGeneratorAction: setting max. value of phi to "
273 G4cerr <<
"CCalPrimaryGeneratorAction::SetStepsPhi: value " << val
274 <<
" is out of bounds, it will not be used" <<
G4endl;
280 G4cout <<
" CCalPrimaryGeneratorAction: setting no. of steps in phi to "
293 G4cout <<
" CCalPrimaryGeneratorAction: setting min. value of eta to "
305 G4cout <<
" CCalPrimaryGeneratorAction: setting max. value of eta to "
315 G4cerr<<
"CCalPrimaryGeneratorAction::SetStepsEta: value " << val <<
" is out of bounds, it will not be used"<<
G4endl;
321 G4cout <<
" CCalPrimaryGeneratorAction: setting no. of steps in eta to "
352 <<
"**********************************************************************" <<
G4endl
354 <<
"* CCalPrimaryGeneratorAction DEFAULT Random Energy/Direction setting:*" <<
G4endl
363 <<
"**********************************************************************" <<
G4endl;
366 <<
"**********************************************************************" <<
G4endl
368 <<
"* CCalPrimaryGeneratorAction DEFAULT Scan Direction settings : *" <<
G4endl
376 <<
"**********************************************************************" <<
G4endl;
379 <<
"*******************************************************************" <<
G4endl
381 <<
"* CCalPrimaryGeneratorAction: Current settings : *" <<
G4endl
390 <<
"*******************************************************************" <<
G4endl;
G4ParticleDefinition * FindParticle(G4int PDGEncoding)
static G4RunManager * GetRunManager()
G4double G4Exp(G4double initial_x)
Exponential Function double precision.
CLHEP::Hep3Vector G4ThreeVector
static const G4double pos
static G4ParticleTable * GetParticleTable()
void SetGunPosition(const G4ThreeVector &pos) const
CCalPrimaryGeneratorAction()
generatorInputType generatorInput
const G4String & GetParticleName() const
G4ThreeVector particlePosition
void SetScan(G4String val)
void SetMinimumEta(G4double p)
void SetParticlePosition(G4ThreeVector aPosition)
G4ThreeVector particleDir
void SetStepsEta(G4int val)
G4int GetNumberOfParticles() const
G4ParticleGun * particleGun
void SetMaximumEta(G4double p)
static constexpr double TeV
void SetParticleDefinition(G4ParticleDefinition *aParticleDefinition)
void SetRandom(G4String val)
static constexpr double deg
void SetStepsPhi(G4int val)
~CCalPrimaryGeneratorAction()
G4GLOB_DLL std::ostream G4cerr
void GeneratePrimaries(G4Event *anEvent)
void SetVerboseLevel(G4int val)
G4ThreeVector GetParticlePosition()
G4double GetParticleEnergy() const
static constexpr double degree
virtual void GeneratePrimaryVertex(G4Event *evt)
G4GLOB_DLL std::ostream G4cout
void SetParticleEnergy(G4double aKineticEnergy)
void SetMinimumPhi(G4double p)
static constexpr double pi
G4ParticleDefinition * GetParticleDefinition() const
G4ParticleMomentum GetParticleMomentumDirection() const
void SetMaximumPhi(G4double p)
CCalPrimaryGeneratorMessenger * gunMessenger
static constexpr double GeV
void SetParticleMomentumDirection(G4ParticleMomentum aMomentumDirection)
void SetMinimumEnergy(G4double p)
void SetMaximumEnergy(G4double p)
void SetRunIDCounter(G4int i)