31 #include "B2bDetectorConstruction.hh"
32 #include "B2ActionInitialization.hh"
54 #include <tbb/task_scheduler_init.h>
67 tbb::task_list* tasks =
static_cast<tbb::task_list*
>(arg);
71 std::cout<<
"Now spawn work and waiting"<<std::endl;
72 tbb::task::spawn_root_and_wait( *tasks );
73 }
catch(std::exception& e) {
74 std::cerr<<
"Error occurred. Error test is:\""<<e.what()<<
"\""<<std::endl;
81 int main(
int argc,
char** argv)
85 G4Random::setTheEngine(
new CLHEP::RanecuEngine);
133 G4String command =
"/control/execute ";
142 UImanager->
ApplyCommand(
"/control/execute init_vis.mac");
#define G4THREADJOIN(worker)
void RegisterPhysics(G4VPhysicsConstructor *)
void SetNumberEventsPerTask(G4int nt)
int main(int argc, char **argv)
static G4UImanager * GetUIpointer()
#define G4THREADCREATE(worker, func, arg)
Action initialization class.
G4int G4GetNumberOfCores()
virtual void SetUserInitialization(G4VUserPhysicsList *userPL)
G4ThreadFunReturnType startWork(G4ThreadFunArgType arg)
virtual void Initialize()
TFTFP_BERT< G4VModularPhysicsList > FTFP_BERT
void SetTaskList(tbb::task_list *tl)
Detector construction class to define materials, geometry and global uniform magnetic field...
void * G4ThreadFunArgType
G4int ApplyCommand(const char *aCommand)
void * G4ThreadFunReturnType