Geant4-11
Public Member Functions | Protected Attributes
G4ITModelHandler Class Reference

#include <G4ITModelHandler.hh>

Public Member Functions

 G4ITModelHandler ()
 
 G4ITModelHandler (const G4ITModelHandler &other)=delete
 
std::vector< G4VITStepModel * > GetActiveModels (G4double globalTime) const
 
bool GetReactionProcessFlag ()
 
bool GetTimeStepComputerFlag ()
 
void Initialize ()
 
G4ITModelHandleroperator= (const G4ITModelHandler &rhs)=delete
 
void RegisterModel (G4VITStepModel *pModel, G4double globalTime)
 
 ~G4ITModelHandler ()
 

Protected Attributes

G4bool fIsInitialized
 
std::unique_ptr< G4ITModelManagerfpModelManager
 
G4bool fReactionProcessFlag
 
G4bool fTimeStepComputerFlag
 

Detailed Description

G4ITModelHandler holds for two IT types the corresponding model manager

Deprecated:
This class will be removed

Definition at line 60 of file G4ITModelHandler.hh.

Constructor & Destructor Documentation

◆ G4ITModelHandler() [1/2]

G4ITModelHandler::G4ITModelHandler ( )

Definition at line 40 of file G4ITModelHandler.cc.

41{
42 fIsInitialized = false;
45}

References fIsInitialized, fReactionProcessFlag, and fTimeStepComputerFlag.

◆ G4ITModelHandler() [2/2]

G4ITModelHandler::G4ITModelHandler ( const G4ITModelHandler other)
delete

◆ ~G4ITModelHandler()

G4ITModelHandler::~G4ITModelHandler ( )
default

Member Function Documentation

◆ GetActiveModels()

std::vector< G4VITStepModel * > G4ITModelHandler::GetActiveModels ( G4double  globalTime) const

Definition at line 92 of file G4ITModelHandler.cc.

93{
95 {
96 return {};
97 }
98 return fpModelManager->GetActiveModels(globalTime);
99}
std::unique_ptr< G4ITModelManager > fpModelManager

References fpModelManager.

Referenced by G4ITModelProcessor::InitializeStepper().

◆ GetReactionProcessFlag()

bool G4ITModelHandler::GetReactionProcessFlag ( )

Definition at line 106 of file G4ITModelHandler.cc.

107{
109}

References fReactionProcessFlag.

Referenced by G4ITModelProcessor::Initialize().

◆ GetTimeStepComputerFlag()

bool G4ITModelHandler::GetTimeStepComputerFlag ( )

Definition at line 101 of file G4ITModelHandler.cc.

102{
104}

References fTimeStepComputerFlag.

Referenced by G4ITModelProcessor::Initialize().

◆ Initialize()

void G4ITModelHandler::Initialize ( )

Definition at line 49 of file G4ITModelHandler.cc.

50{
51 fpModelManager->Initialize();
52 fIsInitialized = true;
53}

References fIsInitialized, and fpModelManager.

Referenced by G4ITModelProcessor::Initialize().

◆ operator=()

G4ITModelHandler & G4ITModelHandler::operator= ( const G4ITModelHandler rhs)
delete

◆ RegisterModel()

void G4ITModelHandler::RegisterModel ( G4VITStepModel pModel,
G4double  globalTime 
)

Definition at line 55 of file G4ITModelHandler.cc.

57{
58 assert(pModel != nullptr);
59
60 G4ITType type1;
61 G4ITType type2;
62
63 pModel->GetApplicable(type1, type2);
64
65 if (type1 != type2)
66 {
67 G4Exception("G4ITModelHandler::RegisterModel",
68 "FeatureDisabled",
70 "Models for different type ids are not supported anymore. This feature will be superseded.");
71 }
72
74 {
76 }
77
78 fpModelManager->SetModel(pModel, startingTime);
79
80 //________________________________________________
81 // Setup ITStepManager
82 if (pModel->GetTimeStepper())
83 {
85 }
86 if (pModel->GetReactionProcess())
87 {
89 }
90}
@ FatalException
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
Definition: G4Exception.cc:35
void GetApplicable(G4ITType &type1, G4ITType &type2)
G4VITTimeStepComputer * GetTimeStepper()
G4VITReactionProcess * GetReactionProcess()

References FatalException, fpModelManager, fReactionProcessFlag, fTimeStepComputerFlag, G4Exception(), G4VITStepModel::GetApplicable(), G4VITStepModel::GetReactionProcess(), and G4VITStepModel::GetTimeStepper().

Referenced by G4ITModelProcessor::RegisterModel(), and G4Scheduler::RegisterModel().

Field Documentation

◆ fIsInitialized

G4bool G4ITModelHandler::fIsInitialized
protected

Definition at line 86 of file G4ITModelHandler.hh.

Referenced by G4ITModelHandler(), and Initialize().

◆ fpModelManager

std::unique_ptr<G4ITModelManager> G4ITModelHandler::fpModelManager
protected

Definition at line 87 of file G4ITModelHandler.hh.

Referenced by GetActiveModels(), Initialize(), and RegisterModel().

◆ fReactionProcessFlag

G4bool G4ITModelHandler::fReactionProcessFlag
protected

Definition at line 90 of file G4ITModelHandler.hh.

Referenced by G4ITModelHandler(), GetReactionProcessFlag(), and RegisterModel().

◆ fTimeStepComputerFlag

G4bool G4ITModelHandler::fTimeStepComputerFlag
protected

Definition at line 89 of file G4ITModelHandler.hh.

Referenced by G4ITModelHandler(), GetTimeStepComputerFlag(), and RegisterModel().


The documentation for this class was generated from the following files: