Back to home page

sPhenix code displayed by LXR

 
 

    


File indexing completed on 2025-08-05 08:19:40

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