Back to home page

sPhenix code displayed by LXR

 
 

    


File indexing completed on 2025-08-06 08:21:02

0001 #include <fun4all/Fun4AllServer.h>
0002 #include <fun4all/Fun4AllInputManager.h>
0003 #include <fun4allraw/SinglePrdfInput.h>
0004 #include <fun4allraw/Fun4AllPrdfInputManager.h>
0005 #include <fun4allraw/Fun4AllPrdfInputPoolManager.h>
0006 #include <fun4all/Fun4AllOutputManager.h>
0007 #include <fun4allraw/Fun4AllEventOutputManager.h>
0008 #include <ffarawmodules/EventNumberCheck.h>
0009 
0010 R__LOAD_LIBRARY(libfun4all.so)
0011 R__LOAD_LIBRARY(libfun4allraw.so)
0012 R__LOAD_LIBRARY(libffarawmodules.so)
0013 
0014 void Fun4All_Combiner(int nEvents = 0,
0015               const string &input_file10 = "hcaleast.list",
0016               const string &input_file11 = "hcalwest.list"
0017 ) {
0018   vector<string> infile;
0019   infile.push_back(input_file11);
0020 
0021   Fun4AllServer *se = Fun4AllServer::instance();
0022   se->Verbosity(0);
0023 
0024   Fun4AllPrdfInputPoolManager *in = new Fun4AllPrdfInputPoolManager("Comb");
0025   in->Verbosity(1);
0026   in->AddPrdfInputList(input_file10)->MakeReference(true);
0027 
0028   for (auto iter : infile) {
0029     in->AddPrdfInputList(iter);
0030   }
0031   se->registerInputManager(in);
0032 
0033   Fun4AllEventOutputManager *out = new Fun4AllEventOutputManager("EvtOut","/sphenix/tg/tg01/commissioning/CaloCalibWG/bseidlitz/cosmics-%08d-%04d.prdf",30000);
0034   se->registerOutputManager(out);
0035 
0036   if (nEvents < 0) return;
0037   se->run(nEvents);
0038 //  in->Print();
0039   se->End();
0040   delete se;
0041   gSystem->Exit(0);
0042 }