MCPcopy Create free account
hub / github.com/Geant4/geant4 / GetType

Method GetType

source/run/src/G4RunManagerFactory.cc:202–214  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

200//============================================================================//
201
202G4RunManagerType G4RunManagerFactory::GetType(const std::string& key)
203{
204 // IGNORES CASE!
205 static const auto opts = std::regex::icase;
206
207 if (std::regex_match(key, std::regex("^(Serial).*", opts))) return G4RunManagerType::Serial;
208 if (std::regex_match(key, std::regex("^(MT).*", opts))) return G4RunManagerType::MT;
209 if (std::regex_match(key, std::regex("^(Task).*", opts))) return G4RunManagerType::Tasking;
210 if (std::regex_match(key, std::regex("^(TBB).*", opts))) return G4RunManagerType::TBB;
211 if (std::regex_match(key, std::regex("^(SubEvt).*", opts))) return G4RunManagerType::SubEvt;
212
213 return G4RunManagerType::Default;
214}
215
216//============================================================================//
217

Callers 13

ExtraPOProcessingMethod · 0.45
FindOrInsertTouchableMethod · 0.45
AddPrimitiveMethod · 0.45
MakeOneStepMethod · 0.45
GetFinalTrajStateMethod · 0.45
UpdateSceneTreeMethod · 0.45
BuildPVQTreeMethod · 0.45
SceneTreeItemClickedMethod · 0.45
SceneTreeItemExpandedMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected