File indexing completed on 2025-08-05 08:13:27
0001 #pragma once
0002 #if ROOT_VERSION_CODE >= ROOT_VERSION(6,00,0)
0003
0004 #include <fun4all/SubsysReco.h>
0005 #include <fun4all/Fun4AllServer.h>
0006 #include <fun4all/Fun4AllInputManager.h>
0007 #include <fun4all/Fun4AllDstInputManager.h>
0008
0009 #include <fun4all/Fun4AllDstOutputManager.h>
0010 #include <fun4all/Fun4AllOutputManager.h>
0011
0012 #include <phool/PHRandomSeed.h>
0013 #include <phool/recoConsts.h>
0014
0015 #include <mbdinfo/MBDinfo.h>
0016
0017 R__LOAD_LIBRARY(libfun4all.so)
0018 R__LOAD_LIBRARY(libg4dst.so)
0019 R__LOAD_LIBRARY(libMBDinfo.so)
0020
0021
0022 #endif
0023
0024
0025
0026 void Fun4Allsim(int nevents = 1e4, const string &inputmbdepdList = "dst_mbd_epd.list")
0027 {
0028
0029
0030 gSystem->Load("libg4dst.so");
0031 Fun4AllServer *se = Fun4AllServer::instance();
0032
0033 gSystem->Load("libMBDinfo.so.0.0.0");
0034 MBDinfo *MBDreco = new MBDinfo();
0035 se->registerSubsystem(MBDreco);
0036
0037 Fun4AllInputManager *in = new Fun4AllDstInputManager("DSTMBDEPD");
0038 in->AddListFile(inputmbdepdList,1);
0039 se->registerInputManager(in);
0040
0041 se->run(nevents);
0042 se->End();
0043
0044 gSystem->Exit(0);
0045 return 0;
0046
0047 }