6#include "AMSBNeutralino.hh"
13AMSBNeutralino* AMSBNeutralino::s_theInstance = NULL;
15AMSBNeutralino* AMSBNeutralino::Definition(G4double mass, G4double
width, G4double
charge, G4double
PDG, G4bool stable, G4double lifetime, G4bool shortlived)
18 if (s_theInstance !=0 && (mass>=0. ||
width>=0. || lifetime>=0.) )
21 description <<
"Trying to redefine the AMSB Neutralino properties after it has been constructed is not allowed";
22 G4Exception(
"AMSBNeutralino",
"FailedRedefinition", FatalException,
description);
26 if (s_theInstance != 0)
43 G4ParticleDefinition* anInstance =
44 new G4ParticleDefinition(
"s_chi_0_1", mass,
width,
charge,
47 "supersymmetric", 0, 0,
PDG,
48 stable, lifetime, NULL,
49 shortlived,
"Neutralino");
51 s_theInstance =
reinterpret_cast<AMSBNeutralino*
>(anInstance);
57 description <<
"Trying to create a particle with default constructor is not allowed";
58 G4Exception(
"AMSBNeutralino",
"DefaultConstructorCalled", FatalException,
description);
double charge(const T &p)
std::string description
glabal timer - how long have I taken so far?