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