69 G4Exception(
"G4BlinePrimaryGeneratorAction::GeneratePrimaries()",
71 "Primary generator action not defined !");
100 G4double pmom = std::sqrt(energy*energy-mass*mass);
G4BlinePrimaryGeneratorAction()
static constexpr double MeV
virtual ~G4BlinePrimaryGeneratorAction()
virtual void GeneratePrimaries(G4Event *anEvent)
G4VUserPrimaryGeneratorAction * fUserPrimaryAction
G4double GetPDGCharge() const
G4double GetPDGMass() const
G4ThreeVector fBlineStartPosition
G4PrimaryVertex * GetPrimaryVertex(G4int i=0) const
static G4ChargedGeantino * ChargedGeantino()
void SetPrimary(G4PrimaryParticle *pp)
G4ThreeVector GetPosition() const
void SetCharge(G4double chg)
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
Definition of the G4BlinePrimaryGeneratorAction class.
void AddPrimaryVertex(G4PrimaryVertex *aPrimaryVertex)
virtual void GeneratePrimaries(G4Event *anEvent)=0
void SetMass(G4double mas)