5#include "G4SMuonRPlus.hh"
10G4SMuonRPlus* G4SMuonRPlus::theInstance = NULL;
12G4SMuonRPlus* G4SMuonRPlus::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 G4SMuonL Plus properties after it has been constructed is not allowed";
19 G4Exception(
"G4SMuonRPlus",
"FailedRedefinition", FatalException,
description);
38 G4ParticleDefinition* anInstance =
39 new G4ParticleDefinition(
"s_mu_plus_R", mass,
width,
charge,
43 stable, lifetime, NULL,
44 shortlived,
"SMuonRPlus");
46 theInstance =
reinterpret_cast<G4SMuonRPlus*
>(anInstance);
53 description <<
"Trying to create a particle with default constructor is not allowed";
54 G4Exception(
"G4SMuonRPlus",
"DefaultConstructorCalled", FatalException,
description);
double charge(const T &p)
std::string description
glabal timer - how long have I taken so far?