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

Method ExtractProcesses

source/processes/management/src/G4ProcessTable.cc:441–452  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

439// --------------------------------------------------------------------
440//
441G4ProcessVector*
442G4ProcessTable::ExtractProcesses(G4ProcTableVector* procTblVector) const
443{
444 G4ProcessVector* procList = new G4ProcessVector();
445 // loop over all elements
446 for (auto itr=procTblVector->cbegin(); itr!=procTblVector->cend(); ++itr)
447 {
448 G4ProcTblElement* anElement = (*itr);
449 if ( anElement != nullptr) procList->insert( anElement->GetProcess() );
450 }
451 return procList;
452}
453
454// --------------------------------------------------------------------
455//

Callers

nothing calls this directly

Calls 4

cbeginMethod · 0.45
cendMethod · 0.45
insertMethod · 0.45
GetProcessMethod · 0.45

Tested by

no test coverage detected