5#include "G4SMuonLMinus.hh"
11G4SMuonLMinus* G4SMuonLMinus::theInstance = NULL;
13G4SMuonLMinus* G4SMuonLMinus::Definition(G4double mass, G4double
width, G4double
charge, G4double
PDG, G4bool stable, G4double lifetime, G4bool shortlived)
16 if (theInstance !=0 && (mass>=0. ||
width>=0. || lifetime>=0.) )
19 description <<
"Trying to redefine the G4SMuonL Minus properties after it has been constructed is not allowed";
20 G4Exception(
"G4SMuonLMinus",
"FailedRedefinition", FatalException,
description);
38 G4ParticleDefinition* anInstance =
39 new G4ParticleDefinition(
"s_mu_minus_L", mass,
width,
charge,
43 stable, lifetime, NULL,
44 shortlived,
"SMuonLMinus");
46 theInstance =
reinterpret_cast<G4SMuonLMinus*
>(anInstance);
52 description <<
"Trying to create a particle with default constructor is not allowed";
53 G4Exception(
"G4SMuonLMinus",
"DefaultConstructorCalled", FatalException,
description);
double charge(const T &p)
std::string description
glabal timer - how long have I taken so far?