Import Geant4 5.0.0 source tree
This commit is contained in:
@@ -21,8 +21,8 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4FastSimulationManager.cc,v 1.6 2001/10/26 14:43:36 mverderi Exp $
|
||||
// GEANT4 tag $Name: geant4-04-01 $
|
||||
// $Id: G4FastSimulationManager.cc,v 1.8 2002/11/15 11:41:56 stesting Exp $
|
||||
// GEANT4 tag $Name: geant4-05-00 $
|
||||
//
|
||||
//---------------------------------------------------------------
|
||||
//
|
||||
@@ -118,6 +118,39 @@ G4FastSimulationManager::InActivateFastSimulationModel(const G4String& aName)
|
||||
return false;
|
||||
}
|
||||
|
||||
G4VFastSimulationModel*
|
||||
G4FastSimulationManager::GetFastSimulationModel(const G4String& modelName,
|
||||
const G4VFastSimulationModel* previousFound,
|
||||
bool &foundPrevious) const
|
||||
{
|
||||
G4VFastSimulationModel* model = 0;
|
||||
for (size_t iModel=0; iModel<ModelList.size(); iModel++)
|
||||
{
|
||||
if(ModelList[iModel]->GetName() == modelName)
|
||||
{
|
||||
if (previousFound == 0)
|
||||
{
|
||||
model = ModelList[iModel];
|
||||
break;
|
||||
}
|
||||
else
|
||||
{
|
||||
if (ModelList[iModel] == previousFound)
|
||||
{
|
||||
foundPrevious = true;
|
||||
continue;
|
||||
}
|
||||
if (foundPrevious)
|
||||
{
|
||||
model = ModelList[iModel];
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return model;
|
||||
}
|
||||
|
||||
//----------------------------------------
|
||||
// Methods to add/remove GhostPlacements
|
||||
//----------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user