#include <G4ITModelManager.hh>
G4ITModelManager chooses which model to use according to the global simulation time.
Definition at line 58 of file G4ITModelManager.hh.
◆ mapModels
◆ G4ITModelManager() [1/2]
G4ITModelManager::G4ITModelManager |
( |
| ) |
|
◆ ~G4ITModelManager()
G4ITModelManager::~G4ITModelManager |
( |
| ) |
|
◆ G4ITModelManager() [2/2]
Definition at line 60 of file G4ITModelManager.cc.
62 mapModels::const_iterator it =
right.fModels.begin();
64 for (; it !=
right.fModels.end(); it++)
66 fModels[it->first] = it->second->Clone();
◆ GetModel()
Definition at line 107 of file G4ITModelManager.cc.
111 mapModels::reverse_iterator rit =
fModels.rbegin();
114 if (globalTime > rit->first)
120 mapModels::iterator it =
fModels.begin();
122 if (globalTime < it->first)
125 exceptionDescription <<
"No model was found at time ";
126 exceptionDescription <<
G4BestUnit(globalTime,
"Time");
127 exceptionDescription <<
". The first model is registered at time : ";
128 exceptionDescription <<
G4BestUnit(it->first,
"Time") <<
". ";
129 G4Exception(
"G4ITModelManager::GetModel",
"ITModelManager003",
133 it =
fModels.lower_bound(globalTime);
135 if (it !=
fModels.end())
return it->second;
141 exceptionDescription <<
"No model was found.";
142 G4Exception(
"G4ITModelManager::GetModel",
"ITModelManager004",
std::ostringstream G4ExceptionDescription
#define G4BestUnit(a, b)
#define G4_USE_G4BESTUNIT_FOR_VERBOSE 1
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
◆ Initialize()
void G4ITModelManager::Initialize |
( |
| ) |
|
◆ operator=()
◆ SetModel()
Definition at line 93 of file G4ITModelManager.cc.
100 <<
"You are trying to insert a new model after initialization of th model manager.";
101 G4Exception(
"G4ITModelManager::SetModel",
"ITModelManager001",
104 fModels[startingTime] = aModel;
std::ostringstream G4ExceptionDescription
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
◆ fIsInitialized
G4bool G4ITModelManager::fIsInitialized |
|
protected |
◆ fModels
The documentation for this class was generated from the following files: