32#include "G4AccumulableManager.hh"
52 G4Exception(
"RadioBioManager::createInstance",
"RecreatingRadioBioManager", FatalException,
53 "Creating another, new, instance of RadioBioManager");
84 (q.second)->Initialize();
92 (q.second)->Compute();
122 G4cout <<
"*******************************************" << G4endl
123 <<
"*** right now registered quantities are ***" << G4endl;
125 G4cout <<
"*** " << q.first;
126 G4cout <<
"*** but their calculation might be not ****" << G4endl
127 <<
"*** active. Ask for parameters of each ****" << G4endl
128 <<
"*******************************************" << G4endl;
137 G4VAccumulable* GenAcc = G4AccumulableManager::Instance()->GetAccumulable(q.first);
140 G4Exception(
"RadioBioManager::AddFromAccumulable",
"NoAccumulable", FatalException, q.first);
144 if (!q.second->IsCalculationEnabled())
continue;
147 q.second->AddFromAccumulable(GenAcc);
156 G4Exception(
"RadioBioManager::Register",
"RegisteringNullptr", JustWarning,
157 "Asking to register a quantity with null pointer!");
162 G4Exception(
"RadioBioManager::Register",
"RegisteringSameQuantity", FatalException,
163 "Registering two radiobiological quantities with the same name!");
Definition of the RadioBio::Manager class.
std::map< G4String, VRadiobiologicalQuantity * > fQuantities
bool Register(VRadiobiologicalQuantity *, G4String)
VRadiobiologicalQuantity * GetQuantity(G4String)
void DigestAccumulables()
static Manager * CreateInstance()
static Manager * GetInstance()
static Manager * fInstance