5#include "G4SElectronRMinus.hh"
10G4SElectronRMinus* G4SElectronRMinus::theInstance = NULL;
12G4SElectronRMinus* G4SElectronRMinus::Definition(G4double mass, G4double
width, G4double
charge, G4double
PDG, G4bool stable, G4double lifetime, G4bool shortlived)
15 if (theInstance !=0 && (mass>=0. ||
width>=0. || lifetime>=0.) )
18 description <<
"Trying to redefine the G4SElectronR Minus properties after it has been constructed is not allowed";
19 G4Exception(
"G4SElectronRMinus",
"FailedRedefinition", FatalException,
description);
37 G4ParticleDefinition* anInstance =
38 new G4ParticleDefinition(
"s_e_minus_R", mass,
width,
charge,
42 stable, lifetime, NULL,
43 shortlived,
"SElectronRMinus");
45 theInstance =
reinterpret_cast<G4SElectronRMinus*
>(anInstance);
51 description <<
"Trying to create a particle with default constructor is not allowed";
52 G4Exception(
"G4SElectronRMinus",
"DefaultConstructorCalled", FatalException,
description);
double charge(const T &p)
std::string description
glabal timer - how long have I taken so far?