#include <G4ITModelManager.hh>
G4ITModelManager chooses which model to use according to the global simulation time.
- Deprecated:
- This class will be removed
Definition at line 59 of file G4ITModelManager.hh.
◆ G4ITModelManager() [1/2]
G4ITModelManager::G4ITModelManager |
( |
| ) |
|
◆ ~G4ITModelManager()
G4ITModelManager::~G4ITModelManager |
( |
| ) |
|
|
default |
◆ G4ITModelManager() [2/2]
◆ GetActiveModels()
Definition at line 80 of file G4ITModelManager.cc.
81{
82 std::vector<G4VITStepModel*> activeModels;
83
85 {
86 if (modelInfo.fStartingTime < globalTime && modelInfo.fEndTime > globalTime)
87 {
88 activeModels.push_back(modelInfo.fpModel.get());
89 }
90 }
91
92 return activeModels;
93}
std::vector< ModelInfo > fModelInfoList
References fModelInfoList.
◆ Initialize()
void G4ITModelManager::Initialize |
( |
| ) |
|
Definition at line 48 of file G4ITModelManager.cc.
49{
51 [](const ModelInfo& lhs, const ModelInfo& rhs) {
52 return lhs.fStartingTime < rhs.fStartingTime;
53 });
54
56 {
57 modelInfo.fpModel->Initialize();
58 }
59
61}
References fIsInitialized, and fModelInfoList.
◆ operator=()
◆ SetModel()
Definition at line 63 of file G4ITModelManager.cc.
66{
67 assert(pModel != nullptr);
69 {
71 exceptionDescription
72 << "You are trying to insert a new model after initializing the model manager.";
73 G4Exception(
"G4ITModelManager::SetModel",
"ITModelManager001",
75 }
76
77 fModelInfoList.emplace_back(ModelInfo({ startingTime, endTime, std::unique_ptr<G4VITStepModel>(pModel) }));
78}
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
std::ostringstream G4ExceptionDescription
References FatalErrorInArgument, fIsInitialized, fModelInfoList, and G4Exception().
◆ fIsInitialized
G4bool G4ITModelManager::fIsInitialized |
|
protected |
◆ fModelInfoList
std::vector<ModelInfo> G4ITModelManager::fModelInfoList |
|
protected |
The documentation for this class was generated from the following files: