8 #include "G4VUserPrimaryGeneratorAction.hh"
9 #include "G4ParticleGun.hh"
10 #include "G4SystemOfUnits.hh"
11 #include "G4ParticleTable.hh"
12 #include "G4IonTable.hh"
13 #include "G4ParticleDefinition.hh"
14 #include "Randomize.hh"
15 #include "G4GenericMessenger.hh"
55 inline G4int GetModeType()
const {
return fModeType; };
65 G4double PDF_E_CosmicRay(G4double energy);
66 G4ThreeVector ProjectOnBottomDetector(G4ThreeVector pos0, G4ThreeVector mom0);
Mandatory user action concrete class of G4VUserPrimaryGeneratorAction. It defines the settings for th...
G4double fRadiusSpread
Radius of the area on the front face of the crystal that could be hit by primary gamma when spread is...
G4int fBeamType
Flag indicating the beam type.
void PrimariesForSpreadBeam()
Generate primaries auxiliary function for spread beam.
void PrimariesForCosmicRaysMode()
Generate primaries auxiliary function for Cosmic rays mode.
G4double fSigmaEnergy
Sigma of the gaussian distribution of the energy of the primary particle.
void PrimariesForLuDecayMode()
Generate primaries auxiliary function for Lu decay mode.
G4GenericMessenger * fMessenger_Calib
Generic messenger for the calibration mode.
G4GenericMessenger * fMessenger_Mode
Generic messenger for mode selection.
void PrimariesForStandardMode()
Generate primaries auxiliary function for Standard mode.
G4double fRadiusCircle
Radius of the beam profile in circle type.
G4double fMeanEnergy
Mean of the gaussian distribution of the energy of the primary particle.
MyPrimaryGenerator()
Constructor of the class.
G4String fChooseFrontorBack
Flag indicating on which face of the crystal a LED has to be switched ON.
G4int fModeType
Flag indicating the mode type.
void PrimariesForCircleBeam()
Generate primaries auxiliary function for circle beam.
void GeneratePrimaries(G4Event *anEvent) override
It generates the primary vertex of the event.
G4ParticleGun * fParticleGun
Pointer to the G4ParticleGun object.
G4GenericMessenger * fMessenger_Gun
Generic messenger for the standard gamma mode.
~MyPrimaryGenerator() override
Destructor of the class.
G4String fSwitchOnLED
Flag indicating which LED has to be switched ON.
G4ThreeVector fPosFixedDecay
Position of 176Lu isotope for fixed-position mode.
void DefineCommands()
Defines new user commands for primary particle generation.
void PrimariesForLEDMode()
Generate primaries auxiliary function for LED mode.
Definition of the namespace GS.