Geant4
10.01
|
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 < G4VITStepModel * > > * | 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 < G4VITStepModel * > > | fCurrentModel |
G4VITStepModel * | fpModel |
G4ITModelManager * | fpModelManager |
G4ITType | fCurrentType1 |
G4ITType | fCurrentType2 |
std::vector< G4ITReactionChange * > | fReactionInfo |
Static Protected Attributes | |
static G4ThreadLocal std::map < const G4Track *, G4bool > * | fHasReacted |
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 67 of file G4ITModelProcessor.hh.
G4ITModelProcessor::G4ITModelProcessor | ( | ) |
Definition at line 51 of file G4ITModelProcessor.cc.
References G4ITType::size().
|
virtual |
Definition at line 69 of file G4ITModelProcessor.cc.
|
protected |
Copy constructor.
other | Object to copy from |
Definition at line 78 of file G4ITModelProcessor.cc.
void G4ITModelProcessor::CalculateTimeStep | ( | const G4Track * | track, |
const G4double | userMinTimeStep | ||
) |
Definition at line 182 of file G4ITModelProcessor.cc.
References FatalErrorInArgument, and G4Exception().
Referenced by G4Scheduler::CalculateMinTimeStep().
|
inline |
Restaure original state of the modelProcessor.
This method should be call only by the G4Scheduler
Definition at line 179 of file G4ITModelProcessor.hh.
References fpTrack.
Referenced by G4Scheduler::ExtractTimeStepperData().
void G4ITModelProcessor::DoCalculateStep | ( | ) |
Definition at line 201 of file G4ITModelProcessor.cc.
References GetIT(), and G4IT::GetITType().
void G4ITModelProcessor::FindReaction | ( | std::map< G4Track *, G4TrackVectorHandle > * | tracks, |
const double | currentStepTime, | ||
const double | previousStepTime, | ||
const bool | reachedUserStepTimeLimit | ||
) |
Get track A
Definition at line 221 of file G4ITModelProcessor.cc.
References FatalErrorInArgument, fStopAndKill, G4Exception(), GetIT(), G4IT::GetITType(), G4ITReactionChange::GetTrackA(), G4ITReactionChange::GetTrackB(), G4Track::GetTrackStatus(), G4VITReactionProcess::MakeReaction(), G4VITReactionProcess::ResetChanges(), and G4VITReactionProcess::TestReactibility().
Referenced by G4Scheduler::ComputeTrackReaction().
|
inline |
Definition at line 161 of file G4ITModelProcessor.hh.
References fCurrentModel.
Referenced by G4Scheduler::ExtractTimeStepperData().
|
inline |
Definition at line 105 of file G4ITModelProcessor.hh.
References fReactionInfo.
Referenced by G4Scheduler::ComputeTrackReaction().
|
inline |
Definition at line 110 of file G4ITModelProcessor.hh.
References fpTrack.
Referenced by G4Scheduler::ExtractTimeStepperData().
void G4ITModelProcessor::Initialize | ( | ) |
Definition at line 97 of file G4ITModelProcessor.cc.
Referenced by G4Scheduler::Process().
void G4ITModelProcessor::InitializeStepper | ( | const G4double & | currentGlobalTime, |
const G4double & | userMinTime | ||
) |
Definition at line 104 of file G4ITModelProcessor.cc.
References FatalErrorInArgument, G4cout, G4endl, G4Exception(), G4ITModelManager::GetModel(), G4VITStepModel::GetTimeStepper(), G4MemStat::MemoryUsage(), G4VITTimeStepComputer::Prepare(), and G4VITTimeStepComputer::SetTimes().
Referenced by G4Scheduler::CalculateMinTimeStep().
|
protected |
Assignment operator.
other | Object to assign from |
Definition at line 90 of file G4ITModelProcessor.cc.
|
inline |
Definition at line 166 of file G4ITModelProcessor.hh.
References FatalErrorInArgument, fInitialized, fpModelHandler, and G4Exception().
Referenced by G4Scheduler::Initialize().
|
inlineprotected |
Definition at line 156 of file G4ITModelProcessor.hh.
References fpTrack.
|
protected |
Definition at line 136 of file G4ITModelProcessor.hh.
Referenced by GetCurrentModel().
|
protected |
Definition at line 144 of file G4ITModelProcessor.hh.
|
protected |
Definition at line 145 of file G4ITModelProcessor.hh.
|
staticprotected |
Definition at line 149 of file G4ITModelProcessor.hh.
|
protected |
Definition at line 128 of file G4ITModelProcessor.hh.
Referenced by SetModelHandler().
|
protected |
Definition at line 140 of file G4ITModelProcessor.hh.
|
protected |
Definition at line 129 of file G4ITModelProcessor.hh.
Referenced by SetModelHandler().
|
protected |
Definition at line 141 of file G4ITModelProcessor.hh.
|
protected |
Definition at line 131 of file G4ITModelProcessor.hh.
Referenced by CleanProcessor(), GetTrack(), and SetTrack().
|
protected |
Definition at line 148 of file G4ITModelProcessor.hh.
Referenced by GetReactionInfo().
|
protected |
Definition at line 132 of file G4ITModelProcessor.hh.