Back to home page

sPhenix code displayed by LXR

 
 

    


File indexing completed on 2025-12-16 09:23:52

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