Back to home page

sPhenix code displayed by LXR

 
 

    


File indexing completed on 2025-08-05 08:15:07

0001 
0002 #ifndef MACRO_FUN4ALL_READDST_C
0003 #define MACRO_FUN4ALL_READDST_C
0004 
0005 #include <tpcrawtottree/TpcTimeFrameChecker.h>
0006 
0007 #include <fun4all/Fun4AllServer.h>
0008 #include <fun4allraw/Fun4AllPrdfInputManager.h>
0009 #include <QA.C>
0010 
0011 #include <phool/recoConsts.h>
0012 R__LOAD_LIBRARY(libfun4allraw.so)
0013 R__LOAD_LIBRARY(libTPCRawDataTree.so)
0014 
0015 int Fun4All_TpcTimeFrameChecker(const int nEvents = 10000,
0016                                 const string &inputFile = "/direct/sphenix+lustre01/sphnxpro/physics/tpc/physics/TPC_ebdc00_physics-00052482-0000.evt"  //
0017 )
0018 {
0019   //---------------
0020   // Fun4All server
0021   //---------------
0022   Fun4AllServer *se = Fun4AllServer::instance();
0023   se->Verbosity(1);
0024 
0025   for (int i = 4000; i <= 4001; i++)
0026   {
0027     TpcTimeFrameChecker *checker = new TpcTimeFrameChecker(i);
0028     // checker->Verbosity(1);
0029     checker->setDebugTTreeFile("TpcTimeFrameChecker" + to_string(i) + ".root");
0030     se->registerSubsystem(checker);
0031   }
0032 
0033   Fun4AllPrdfInputManager *in1 = new Fun4AllPrdfInputManager("PRDF1");
0034   in1->AddFile(inputFile);
0035   se->registerInputManager(in1);
0036 
0037   gSystem->ListLibraries();
0038   se->run(nEvents);
0039 
0040   se->End();
0041   se->PrintTimer();
0042 
0043   QA_Output("Fun4All_TpcTimeFrameChecker_qa.root");
0044 
0045   delete se;
0046   std::cout << "All done processing" << std::endl;
0047   gSystem->Exit(0);
0048   return 0;
0049 }
0050 
0051 #endif