29 #include "G4String.hh"
43 tbb::concurrent_queue<const G4Run*>* out,
48 m_beamOnCondition(
false)
56 #include <tbb/atomic.h>
58 tbb::atomic<int> counter;
115 G4int thisId = counter.fetch_and_increment();
154 localRM->G4RunManager::SetUserInitialization(
155 const_cast<G4VUserDetectorConstruction*>(detector));
157 localRM->SetUserInitialization(const_cast<G4VUserPhysicsList*>(physicslist));
166 localRM->Initialize();
172 std::vector<G4String>::const_iterator
it = cmds.begin();
173 for(;it!=cmds.end();it++)
178 if ( macroFile ==
"" || macroFile ==
" " )
184 localRM->BeamOn(
m_nEvents,macroFile,numSelect);
193 localRM->SetNumberOfEventsToBeProcessed(
m_nEvents );
194 localRM->ConstructScoringWorlds();
195 localRM->RunInitialization();
232 return static_cast<tbb::task*
>(NULL);