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

Method Find

source/processes/management/src/G4ProcessTable.cc:378–405  ·  view source on GitHub ↗

--------------------------------------------------------------------

Source from the content-addressed store, hash-verified

376// --------------------------------------------------------------------
377//
378G4ProcessTable::G4ProcTableVector*
379G4ProcessTable::Find(const G4String& processName)
380{
381 tmpTblVector->clear();
382
383 G4bool isFound = false;
384 G4ProcTblElement* anElement = nullptr;
385 for (auto itr=fProcTblVector->cbegin(); itr!=fProcTblVector->cend(); ++itr)
386 {
387 anElement = (*itr);
388 // check name
389 if ( anElement != nullptr && anElement->GetProcessName() == processName )
390 {
391 isFound = true;
392 tmpTblVector->push_back(anElement);
393 }
394 }
395
396 if (!isFound && verboseLevel>0)
397 {
398#ifdef G4VERBOSE
399 G4cout << " G4ProcessTable::Find() -" ;
400 G4cout << " The Process[" << processName << "] is not found " << G4endl;
401#endif
402 }
403
404 return tmpTblVector;
405}
406
407// --------------------------------------------------------------------
408//

Callers 5

SetProcessManagerMethod · 0.45
GetSharedDataMethod · 0.45
SetProcessManagerMethod · 0.45
AttachToMethod · 0.45
GetBiasingOperatorMethod · 0.45

Calls 6

clearMethod · 0.45
cbeginMethod · 0.45
cendMethod · 0.45
push_backMethod · 0.45
GetProcessTypeMethod · 0.45
GetProcessMethod · 0.45

Tested by

no test coverage detected