Geant4
10.00.p01
|
The G4ITModelProcessor will call the two processes defined in G4VITModel. More...
#include <G4ITModelProcessor.hh>
Public Member Functions | |
G4ITModelProcessor () | |
virtual | ~G4ITModelProcessor () |
void | SetModelHandler (G4ITModelHandler *) |
void | Initialize () |
void | CleanProcessor () |
Restaure original state of the modelProcessor. More... | |
void | InitializeStepper (const G4double ¤tGlobalTime, const G4double &userMinTime) |
void | CalculateTimeStep (const G4Track *, const G4double) |
void | DoCalculateStep () |
void | FindReaction (std::map< G4Track *, G4TrackVectorHandle > *, const double currentStepTime, const double previousStepTime, const bool reachedUserStepTimeLimit) |
const std::vector< std::vector < G4VITModel * > > * | GetCurrentModel () |
std::vector < G4ITReactionChange * > * | GetReactionInfo () |
const G4Track * | GetTrack () const |
Protected Member Functions | |
void | SetTrack (const G4Track *) |
G4ITModelProcessor (const G4ITModelProcessor &other) | |
Copy constructor. More... | |
G4ITModelProcessor & | operator= (const G4ITModelProcessor &other) |
Assignment operator. More... | |
Protected Attributes | |
G4bool | fInitialized |
G4ITModelHandler * | fpModelHandler |
const G4Track * | fpTrack |
G4double | fUserMinTimeStep |
std::vector< std::vector < G4VITModel * > > | fCurrentModel |
G4VITModel * | fpModel |
G4ITModelManager * | fpModelManager |
G4ITType | fCurrentType1 |
G4ITType | fCurrentType2 |
std::vector< G4ITReactionChange * > | fReactionInfo |
Static Protected Attributes | |
static G4ThreadLocal std::map < const G4Track *, G4bool > * | fHasReacted = 0 |
The G4ITModelProcessor will call the two processes defined in G4VITModel.
This processes act at the beginning and end of each step. The first one, the TimeStepper will calculate a time step to propagate all the track and eventually it can return some tracks that can likely react at the end of the step. The second one, the ReactionProcess will make the tracks reacting.
Definition at line 62 of file G4ITModelProcessor.hh.
G4ITModelProcessor::G4ITModelProcessor | ( | ) |
Definition at line 42 of file G4ITModelProcessor.cc.
References fCurrentModel, fHasReacted, fInitialized, fpModel, fpModelHandler, fpModelManager, fpTrack, fUserMinTimeStep, and G4ITType::size().
|
virtual |
Definition at line 60 of file G4ITModelProcessor.cc.
References fCurrentModel, and fReactionInfo.
|
protected |
Copy constructor.
other | Object to copy from |
Definition at line 69 of file G4ITModelProcessor.cc.
References fInitialized, fpModel, fpModelHandler, fpModelManager, fpTrack, and fUserMinTimeStep.
void G4ITModelProcessor::CalculateTimeStep | ( | const G4Track * | track, |
const G4double | userMinTimeStep | ||
) |
Definition at line 157 of file G4ITModelProcessor.cc.
References CleanProcessor(), DoCalculateStep(), FatalErrorInArgument, fUserMinTimeStep, G4Exception(), and SetTrack().
|
inline |
Restaure original state of the modelProcessor.
This method should be call only by the ITStepManager
Definition at line 174 of file G4ITModelProcessor.hh.
References fpTrack.
Referenced by CalculateTimeStep().
void G4ITModelProcessor::DoCalculateStep | ( | ) |
Definition at line 175 of file G4ITModelProcessor.cc.
References fCurrentModel, fpModel, fpTrack, fUserMinTimeStep, GetIT(), and G4IT::GetITType().
Referenced by CalculateTimeStep().
void G4ITModelProcessor::FindReaction | ( | std::map< G4Track *, G4TrackVectorHandle > * | tracks, |
const double | currentStepTime, | ||
const double | previousStepTime, | ||
const bool | reachedUserStepTimeLimit | ||
) |
Get track A
Definition at line 194 of file G4ITModelProcessor.cc.
References FatalErrorInArgument, fCurrentModel, fHasReacted, fpModelHandler, fReactionInfo, fStopAndKill, G4Exception(), G4ITModelHandler::GetAllModelManager(), GetIT(), G4Track::GetTrackStatus(), G4VITReactionProcess::MakeReaction(), and G4VITReactionProcess::ResetChanges().
|
inline |
Definition at line 157 of file G4ITModelProcessor.hh.
References fCurrentModel.
|
inline |
Definition at line 100 of file G4ITModelProcessor.hh.
References fReactionInfo.
|
inline |
Definition at line 105 of file G4ITModelProcessor.hh.
References fpTrack.
void G4ITModelProcessor::Initialize | ( | ) |
Definition at line 88 of file G4ITModelProcessor.cc.
References fInitialized, fpModelHandler, and G4ITModelHandler::Initialize().
void G4ITModelProcessor::InitializeStepper | ( | const G4double & | currentGlobalTime, |
const G4double & | userMinTime | ||
) |
Definition at line 95 of file G4ITModelProcessor.cc.
References FatalErrorInArgument, fCurrentModel, fpModel, fpModelHandler, fpModelManager, G4Exception(), G4ITModelHandler::GetAllModelManager(), G4VITModel::GetTimeStepper(), and G4VITTimeStepper::SetTimes().
|
protected |
Assignment operator.
other | Object to assign from |
Definition at line 81 of file G4ITModelProcessor.cc.
|
inline |
Definition at line 162 of file G4ITModelProcessor.hh.
References FatalErrorInArgument, fInitialized, fpModelHandler, and G4Exception().
|
inlineprotected |
Definition at line 152 of file G4ITModelProcessor.hh.
References fpTrack.
Referenced by CalculateTimeStep().
|
protected |
Definition at line 132 of file G4ITModelProcessor.hh.
Referenced by DoCalculateStep(), FindReaction(), G4ITModelProcessor(), GetCurrentModel(), InitializeStepper(), and ~G4ITModelProcessor().
|
protected |
Definition at line 140 of file G4ITModelProcessor.hh.
|
protected |
Definition at line 141 of file G4ITModelProcessor.hh.
|
staticprotected |
Definition at line 145 of file G4ITModelProcessor.hh.
Referenced by FindReaction(), and G4ITModelProcessor().
|
protected |
Definition at line 124 of file G4ITModelProcessor.hh.
Referenced by G4ITModelProcessor(), Initialize(), and SetModelHandler().
|
protected |
Definition at line 136 of file G4ITModelProcessor.hh.
Referenced by DoCalculateStep(), G4ITModelProcessor(), and InitializeStepper().
|
protected |
Definition at line 125 of file G4ITModelProcessor.hh.
Referenced by FindReaction(), G4ITModelProcessor(), Initialize(), InitializeStepper(), and SetModelHandler().
|
protected |
Definition at line 137 of file G4ITModelProcessor.hh.
Referenced by G4ITModelProcessor(), and InitializeStepper().
|
protected |
Definition at line 127 of file G4ITModelProcessor.hh.
Referenced by CleanProcessor(), DoCalculateStep(), G4ITModelProcessor(), GetTrack(), and SetTrack().
|
protected |
Definition at line 144 of file G4ITModelProcessor.hh.
Referenced by FindReaction(), GetReactionInfo(), and ~G4ITModelProcessor().
|
protected |
Definition at line 128 of file G4ITModelProcessor.hh.
Referenced by CalculateTimeStep(), DoCalculateStep(), and G4ITModelProcessor().