File indexing completed on 2025-08-03 08:15:39
0001 #pragma once
0002 #if ROOT_VERSION_CODE >= ROOT_VERSION(6,00,0)
0003
0004 #include <runtowerinfo/SaveTowerInfo.h>
0005 #include <runtowerinfo/RunTowerInfo.h>
0006
0007 #include <fun4all/SubsysReco.h>
0008 #include <fun4all/Fun4AllServer.h>
0009 #include <fun4all/Fun4AllInputManager.h>
0010 #include <fun4allraw/Fun4AllPrdfInputManager.h>
0011 #include <fun4all/Fun4AllDstInputManager.h>
0012 #include <fun4all/Fun4AllDstOutputManager.h>
0013
0014 R__LOAD_LIBRARY(libfun4all.so)
0015 R__LOAD_LIBRARY(libfun4allraw.so)
0016 R__LOAD_LIBRARY(libruntowerinfo.so)
0017
0018 #endif
0019
0020 void Fun4All_TowerBuilder(vector<string> myInputLists = {"productionFiles-PYTHIA8_PP_MB-dst_calo_cluster-00000.list", "productionFiles-PYTHIA8_PP_MB-dst_vertex-00000.list", "productionFiles-PYTHIA8_PP_MB-dst_tracks-00000.list"}, const int nEvents = 100)
0021 {
0022 gSystem->Load("libg4dst");
0023 Fun4AllServer *se = Fun4AllServer::instance();
0024
0025
0026 for (unsigned int i = 0; i < myInputLists.size(); ++i)
0027 {
0028 Fun4AllInputManager *infile = new Fun4AllDstInputManager("DSTin_" + to_string(i));
0029 infile->AddListFile(myInputLists[i]);
0030 se->registerInputManager(infile);
0031 }
0032
0033 SaveTowerInfo *sti = new SaveTowerInfo();
0034 se->registerSubsystem(sti);
0035
0036 RunTowerInfo *rti = new RunTowerInfo();
0037 se->registerSubsystem(rti);
0038
0039 se->run(nEvents);
0040 se->End();
0041 se->PrintTimer();
0042 gSystem->Exit(0);
0043 }