Back to home page

sPhenix code displayed by LXR

 
 

    


File indexing completed on 2025-08-03 08:20:18

0001 #include <fun4all/Fun4AllServer.h>
0002 #include <fun4all/Fun4AllInputManager.h>
0003 
0004 #include <fun4allraw/Fun4AllPrdfInputManager.h>
0005 #include <ffarawmodules/Gl1BcoDump.h>
0006 
0007 R__LOAD_LIBRARY(libfun4all.so)
0008 R__LOAD_LIBRARY(libfun4allraw.so)
0009 R__LOAD_LIBRARY(libffarawmodules.so)
0010 
0011 void Fun4All_Gl1QA(int nEvents = 0,
0012            const std::string &input_list = "gl1daq.list",
0013            const std::string outfile = "gl1daq.root")
0014 {
0015   Fun4AllServer *se = Fun4AllServer::instance();
0016 //  se->Verbosity(1);
0017   Gl1BcoDump *gl1dmp = new Gl1BcoDump();
0018   gl1dmp->OutFileName(outfile);
0019   se->registerSubsystem(gl1dmp);
0020   Fun4AllInputManager *in = new Fun4AllPrdfInputManager("PRDFin");
0021   in->AddListFile(input_list);
0022   se->registerInputManager(in);
0023 
0024   se->run(nEvents);
0025 
0026   se->End();
0027   delete se;
0028   gSystem->Exit(0);
0029 }