Geant4
10.02.p02
|
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 | RegisterModel (double time, G4VITStepModel *) |
void | CleanProcessor () |
Restore original state of the modelProcessor. More... | |
G4double | CalculateMinTimeStep (G4double currentGlobalTime, G4double definedMinTimeStep) |
void | ComputeTrackReaction (G4ITStepStatus fITStepStatus, G4double fGlobalTime, G4double currentTimeStep, G4double previousTimeStep, G4bool reachedUserTimeLimit, G4double fTimeTolerance, G4UserTimeStepAction *fpUserTimeStepAction, G4int fVerbose) |
void | InitializeStepper (G4double currentGlobalTime, G4double userMinTime) |
bool | GetComputeTimeStep () |
void | CalculateTimeStep (const G4Track *, const G4double) |
void | DoCalculateStep () |
void | FindReaction (G4ITReactionSet *reactionSet, const double currentStepTime, const double previousStepTime, const bool reachedUserStepTimeLimit) |
const std::vector< std::vector < G4VITStepModel * > > * | GetCurrentModel () |
std::vector < G4ITReactionChange * > * | GetReactionInfo () |
const G4Track * | GetTrack () const |
void | SetTrackingManager (G4ITTrackingManager *trackingManager) |
Protected Member Functions | |
void | SetTrack (const G4Track *) |
void | ExtractTimeStepperData () |
G4ITModelProcessor (const G4ITModelProcessor &other) | |
Copy constructor. More... | |
G4ITModelProcessor & | operator= (const G4ITModelProcessor &other) |
Assignment operator. More... | |
Protected Attributes | |
G4double | fTSTimeStep |
G4ITReactionSet * | fReactionSet |
G4ITTrackingManager * | fpTrackingManager |
G4ITTrackHolder * | fpTrackContainer |
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 |
bool | fComputeTimeStep |
bool | fComputeReaction |
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 83 of file G4ITModelProcessor.hh.
G4ITModelProcessor::G4ITModelProcessor | ( | ) |
Definition at line 56 of file G4ITModelProcessor.cc.
References DBL_MAX, and G4ITType::size().
|
virtual |
Definition at line 78 of file G4ITModelProcessor.cc.
|
protected |
Copy constructor.
other | Object to copy from |
Definition at line 87 of file G4ITModelProcessor.cc.
References DBL_MAX.
G4double G4ITModelProcessor::CalculateMinTimeStep | ( | G4double | currentGlobalTime, |
G4double | definedMinTimeStep | ||
) |
Definition at line 131 of file G4ITModelProcessor.cc.
References G4ManyFastLists< OBJECT >::begin(), DBL_MAX, G4ManyFastLists< OBJECT >::end(), FatalErrorInArgument, fStopAndKill, fStopButAlive, G4cout, G4endl, G4Exception(), G4Track::GetGlobalTime(), GetIT(), G4IT::GetName(), G4Track::GetTrackID(), G4Track::GetTrackStatus(), and G4MemStat::MemoryUsage().
Referenced by G4Scheduler::Stepping().
void G4ITModelProcessor::CalculateTimeStep | ( | const G4Track * | track, |
const G4double | userMinTimeStep | ||
) |
Definition at line 397 of file G4ITModelProcessor.cc.
References FatalErrorInArgument, and G4Exception().
|
inline |
Restore original state of the modelProcessor.
This method should be call only by the G4Scheduler
Definition at line 229 of file G4ITModelProcessor.hh.
References fpTrack.
void G4ITModelProcessor::ComputeTrackReaction | ( | G4ITStepStatus | fITStepStatus, |
G4double | fGlobalTime, | ||
G4double | currentTimeStep, | ||
G4double | previousTimeStep, | ||
G4bool | reachedUserTimeLimit, | ||
G4double | fTimeTolerance, | ||
G4UserTimeStepAction * | fpUserTimeStepAction, | ||
G4int | fVerbose | ||
) |
Definition at line 439 of file G4ITModelProcessor.cc.
References eCollisionBetweenTracks, FatalErrorInArgument, fStopAndKill, G4BestUnit, G4cout, G4endl, G4Exception(), G4ITReactionChange::GetfSecondary(), G4Track::GetGlobalTime(), GetIT(), G4IT::GetName(), G4ITReactionChange::GetNumberOfSecondaries(), G4Track::GetParentID(), G4Track::GetParticleDefinition(), G4ParticleDefinition::GetParticleName(), G4Track::GetStep(), G4ITReactionChange::GetTrackA(), G4ITReactionChange::GetTrackB(), G4Track::GetTrackID(), G4Track::GetTrackStatus(), G4IT::SetParentID(), G4Track::SetTrackStatus(), G4UserTimeStepAction::UserReactionAction(), and G4ITReactionChange::WereParentsKilled().
Referenced by G4Scheduler::Stepping().
void G4ITModelProcessor::DoCalculateStep | ( | ) |
Definition at line 418 of file G4ITModelProcessor.cc.
References GetIT(), and G4IT::GetITType().
|
protected |
Definition at line 210 of file G4ITModelProcessor.cc.
References G4VITStepModel::GetTimeStepper(), and G4VITTimeStepComputer::ResetReactants().
void G4ITModelProcessor::FindReaction | ( | G4ITReactionSet * | reactionSet, |
const double | currentStepTime, | ||
const double | previousStepTime, | ||
const bool | reachedUserStepTimeLimit | ||
) |
Definition at line 622 of file G4ITModelProcessor.cc.
References FatalErrorInArgument, fStopAndKill, G4Exception(), GetIT(), G4IT::GetITType(), G4ITReactionSet::GetReactionMap(), G4Track::GetTrackStatus(), G4VITReactionProcess::MakeReaction(), G4VITReactionProcess::ResetChanges(), G4ITReactionSet::SelectThisReaction(), and G4VITReactionProcess::TestReactibility().
|
inline |
Definition at line 118 of file G4ITModelProcessor.hh.
References fComputeTimeStep.
Referenced by G4Scheduler::Stepping().
|
inline |
Definition at line 211 of file G4ITModelProcessor.hh.
References fCurrentModel.
|
inline |
Definition at line 142 of file G4ITModelProcessor.hh.
References fReactionInfo.
|
inline |
Definition at line 147 of file G4ITModelProcessor.hh.
References fpTrack.
void G4ITModelProcessor::Initialize | ( | ) |
Definition at line 117 of file G4ITModelProcessor.cc.
References G4ITTrackHolder::Instance(), and G4ITReactionSet::Instance().
Referenced by G4Scheduler::Process().
Definition at line 315 of file G4ITModelProcessor.cc.
References FatalErrorInArgument, G4cout, G4endl, G4Exception(), G4ITModelManager::GetModel(), G4VITStepModel::GetTimeStepper(), G4MemStat::MemoryUsage(), G4VITTimeStepComputer::Prepare(), and G4VITTimeStepComputer::SetTimes().
|
protected |
Assignment operator.
other | Object to assign from |
Definition at line 110 of file G4ITModelProcessor.cc.
void G4ITModelProcessor::RegisterModel | ( | double | time, |
G4VITStepModel * | model | ||
) |
Definition at line 104 of file G4ITModelProcessor.cc.
|
inline |
Definition at line 216 of file G4ITModelProcessor.hh.
References FatalErrorInArgument, fInitialized, fpModelHandler, and G4Exception().
Referenced by G4Scheduler::Initialize().
|
inlineprotected |
Definition at line 206 of file G4ITModelProcessor.hh.
References fpTrack.
|
inline |
Definition at line 152 of file G4ITModelProcessor.hh.
References fpTrackingManager.
Referenced by G4Scheduler::Initialize().
|
protected |
Definition at line 199 of file G4ITModelProcessor.hh.
|
protected |
Definition at line 198 of file G4ITModelProcessor.hh.
Referenced by GetComputeTimeStep().
|
protected |
Definition at line 186 of file G4ITModelProcessor.hh.
Referenced by GetCurrentModel().
|
protected |
Definition at line 193 of file G4ITModelProcessor.hh.
|
protected |
Definition at line 194 of file G4ITModelProcessor.hh.
|
protected |
Definition at line 178 of file G4ITModelProcessor.hh.
Referenced by SetModelHandler().
|
protected |
Definition at line 190 of file G4ITModelProcessor.hh.
|
protected |
Definition at line 179 of file G4ITModelProcessor.hh.
Referenced by SetModelHandler().
|
protected |
Definition at line 191 of file G4ITModelProcessor.hh.
|
protected |
Definition at line 181 of file G4ITModelProcessor.hh.
Referenced by CleanProcessor(), GetTrack(), and SetTrack().
|
protected |
Definition at line 176 of file G4ITModelProcessor.hh.
|
protected |
Definition at line 175 of file G4ITModelProcessor.hh.
Referenced by SetTrackingManager().
|
protected |
Definition at line 196 of file G4ITModelProcessor.hh.
Referenced by GetReactionInfo().
|
protected |
Definition at line 174 of file G4ITModelProcessor.hh.
|
protected |
Definition at line 173 of file G4ITModelProcessor.hh.
|
protected |
Definition at line 182 of file G4ITModelProcessor.hh.