54 fFastTrack(anEnvelope,IsUnique),fTriggedFastSimulationModel(0),
55 fLastCrossedParticle(0)
63 AddFastSimulationManager(
this);
79 RemoveFastSimulationManager(
this);
92 for (iModel=0; iModel<
ModelList.size(); iModel++)
114 for (
size_t iModel=0; iModel<
ModelList.size(); iModel++)
115 if(
ModelList[iModel]->GetName() == aName) {
128 bool &foundPrevious)
const
131 for (
size_t iModel=0; iModel<
ModelList.size(); iModel++)
133 if(
ModelList[iModel]->GetName() == modelName)
135 if (previousFound == 0)
144 foundPrevious =
true;
194 for (iModel=0; iModel<
ModelList.size(); iModel++)
259 for (iModel=0; iModel<
ModelList.size(); iModel++)
301 else G4cout <<
" (// geom.)";
310 G4cout <<
"Current Models for the ";
314 for (iModel=0; iModel<
ModelList.size(); iModel++)
319 <<
"(inactivated)\n";
329 for ( iModel=0; iModel<
ModelList.size(); iModel++ )
330 if(
ModelList[iModel]->GetName() == modelName || modelName ==
"all" )
334 G4cout <<
"In the envelope ";
339 <<
" is applicable for :\n ";
341 G4int list_started=0;
342 for (
G4int iParticle = 0; iParticle<theParticleTable->
entries(); iParticle++)
345 if(list_started++)
G4cout <<
", ";
346 G4cout << theParticleTable->
358 G4cout <<
"In the envelope ";
363 <<
" (inactivated) is applicable for :\n ";
365 G4int list_started=0;
366 for (
G4int iParticle=0; iParticle<theParticleTable->
entries(); iParticle++ )
369 if(list_started++)
G4cout <<
", ";
370 G4cout << theParticleTable->
383 for ( iModel=0; iModel<
ModelList.size(); iModel++ )
384 if (
ModelList[iModel]->IsApplicable(*particleDefinition) )
392 for (
auto jModel = iModel + 1; jModel <
ModelList.size(); jModel++ )
393 if (
ModelList[jModel]->IsApplicable(*particleDefinition) ) unique =
false;
404 <<
" (inactivated)." <<
G4endl;
410 ed <<
"Two or more active Models are available for the same particle type, in the same envelope/region." <<
G4endl;
411 G4Exception(
"G4FastSimulationManager::ListModels(const G4ParticleDefinition* particleDefinition) const",
414 "Models risk to exclude each other.");
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
std::ostringstream G4ExceptionDescription
G4GLOB_DLL std::ostream G4cout
G4FastSimulationManager(G4Envelope *anEnvelope, G4bool IsUnique=FALSE)
G4VParticleChange * InvokePostStepDoIt()
G4FastSimulationVector< G4VFastSimulationModel > fInactivatedModels
G4FastSimulationVector< G4VFastSimulationModel > fApplicableModelList
G4VParticleChange * InvokeAtRestDoIt()
G4bool PostStepGetFastSimulationManagerTrigger(const G4Track &, const G4Navigator *a=0)
G4bool AtRestGetFastSimulationManagerTrigger(const G4Track &, const G4Navigator *a=0)
G4VFastSimulationModel * fTriggedFastSimulationModel
G4bool ActivateFastSimulationModel(const G4String &)
G4VFastSimulationModel * GetFastSimulationModel(const G4String &modelName, const G4VFastSimulationModel *previousFound, bool &foundPrevious) const
G4FastSimulationVector< G4VFastSimulationModel > ModelList
~G4FastSimulationManager()
G4bool InActivateFastSimulationModel(const G4String &)
G4ParticleDefinition * fLastCrossedParticle
void Initialize(const G4FastTrack &)
G4Envelope * GetEnvelope() const
G4bool OnTheBoundaryButExiting() const
void SetCurrentTrack(const G4Track &, const G4Navigator *a=0)
static G4GlobalFastSimulationManager * GetGlobalFastSimulationManager()
G4VPhysicalVolume * GetWorldVolume() const
G4ParticleDefinition * GetParticle(G4int index) const
static G4ParticleTable * GetParticleTable()
const G4String & GetParticleName(G4int index) const
G4FastSimulationManager * GetFastSimulationManager() const
G4VPhysicalVolume * GetWorldPhysical() const
const G4String & GetName() const
void SetFastSimulationManager(G4FastSimulationManager *fsm)
void ClearFastSimulationManager()
G4ParticleDefinition * GetDefinition() const
static G4TransportationManager * GetTransportationManager()
G4Navigator * GetNavigatorForTracking() const
virtual void DoIt(const G4FastTrack &, G4FastStep &)=0
virtual void AtRestDoIt(const G4FastTrack &, G4FastStep &)