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