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