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