File indexing completed on 2025-12-16 09:24:06
0001 #include <ffarawmodules/Gl1Check.h>
0002
0003 #include <fun4all/Fun4AllServer.h>
0004 #include <fun4all/Fun4AllInputManager.h>
0005 #include <fun4all/Fun4AllOutputManager.h>
0006 #include <fun4all/Fun4AllDstOutputManager.h>
0007
0008 #include <fun4allraw/Fun4AllStreamingInputManager.h>
0009 #include <fun4allraw/InputManagerType.h>
0010 #include <fun4allraw/SingleGl1PoolInput.h>
0011
0012 #include <phool/recoConsts.h>
0013
0014 #include <TSystem.h>
0015
0016 R__LOAD_LIBRARY(libfun4all.so)
0017 R__LOAD_LIBRARY(libfun4allraw.so)
0018 R__LOAD_LIBRARY(libffarawmodules.so)
0019
0020 void Fun4All_Gl1_Combiner(int nEvents = 0,
0021 const std::string &input_file00 = "gl1.list"
0022 )
0023 {
0024 std::vector<std::string> infile;
0025 infile.push_back(input_file00);
0026
0027 Fun4AllServer *se = Fun4AllServer::instance();
0028 se->Verbosity(1);
0029
0030
0031 Fun4AllStreamingInputManager *in = new Fun4AllStreamingInputManager("Comb");
0032
0033 int i=0;
0034 for (const auto& iter : infile)
0035 {
0036 SingleGl1PoolInput *sngl= new SingleGl1PoolInput("GL1_" + std::to_string(i));
0037
0038 sngl->AddListFile(iter);
0039 in->registerStreamingInput(sngl,InputManagerType::GL1);
0040 i++;
0041 }
0042 se->registerInputManager(in);
0043
0044 Gl1Check *gl1check = new Gl1Check();
0045
0046 se->registerSubsystem(gl1check);
0047
0048 Fun4AllOutputManager *out = new Fun4AllDstOutputManager("out","gl1.root");
0049 out->UseFileRule();
0050 out->SetNEvents(5);
0051 se->registerOutputManager(out);
0052
0053 se->run(nEvents);
0054
0055 se->End();
0056 delete se;
0057 gSystem->Exit(0);
0058 }