#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 |
( |
| ) |
|
|
default |
◆ ~G4ITModelManager()
G4ITModelManager::~G4ITModelManager |
( |
| ) |
|
|
default |
◆ G4ITModelManager() [2/2]
◆ GetActiveModels()
Definition at line 79 of file G4ITModelManager.cc.
80{
81 std::vector<G4VITStepModel*> activeModels;
82
84 {
85 if (modelInfo.fStartingTime < globalTime && modelInfo.fEndTime > globalTime)
86 {
87 activeModels.push_back(modelInfo.fpModel.get());
88 }
89 }
90
91 return activeModels;
92}
std::vector< ModelInfo > fModelInfoList
◆ Initialize()
void G4ITModelManager::Initialize |
( |
| ) |
|
Definition at line 47 of file G4ITModelManager.cc.
48{
50 [](const ModelInfo& lhs, const ModelInfo& rhs) {
51 return lhs.fStartingTime < rhs.fStartingTime;
52 });
53
55 {
56 modelInfo.fpModel->Initialize();
57 }
58
60}
◆ operator=()
◆ SetModel()
Definition at line 62 of file G4ITModelManager.cc.
65{
66 assert(pModel != nullptr);
68 {
70 exceptionDescription
71 << "You are trying to insert a new model after initializing the model manager.";
72 G4Exception(
"G4ITModelManager::SetModel",
"ITModelManager001",
74 }
75
76 fModelInfoList.emplace_back(ModelInfo({ startingTime, endTime, std::unique_ptr<G4VITStepModel>(pModel) }));
77}
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
std::ostringstream G4ExceptionDescription
◆ fIsInitialized
G4bool G4ITModelManager::fIsInitialized {false} |
|
protected |
◆ fModelInfoList
std::vector<ModelInfo> G4ITModelManager::fModelInfoList |
|
protected |
The documentation for this class was generated from the following files: