Back to home page

sPhenix code displayed by LXR

 
 

    


File indexing completed on 2025-08-06 08:14:01

0001 #include "Fun4All_InttStreamingTiming.hh"
0002 
0003 int Fun4All_InttStreamingTiming( int trigger_bit = -1 ) // -1 means no requirement
0004 {
0005 
0006   int run_num = 50889;
0007   int nevents = 100000;
0008   //gSystem->ListLibraries();
0009 
0010   int skip_num = 0;
0011   Fun4AllServer *se = Fun4AllServer::instance();
0012   // se->Verbosity(5);
0013   
0014   // just if we set some flags somewhere in this macro
0015   recoConsts *rc = recoConsts::instance();
0016   
0017   Enable::CDB = true;
0018   rc->set_StringFlag("CDB_GLOBALTAG", CDB::global_tag);
0019   rc->set_uint64Flag("TIMESTAMP", CDB::timestamp);
0020   rc->set_IntFlag("RUNNUMBER", run_num ); // needed for the analysis modules
0021   
0022   //////////////////////////////////////////////////////////////////
0023   // DST input section                                           //
0024   //////////////////////////////////////////////////////////////////
0025   Fun4AllInputManager *in = new Fun4AllDstInputManager("DSTin");
0026   in->fileopen( "results/DST_physics_intt-00050889_no_hot.root" );  
0027   se->registerInputManager(in);
0028   
0029   //////////////////////////////////////////////////////////////////
0030   // Analysis moduel                                              //
0031   //////////////////////////////////////////////////////////////////
0032   // for #hit correlation
0033   InttStreamingTiming* ist = new InttStreamingTiming();
0034   ist->SetTriggerRequirement( trigger_bit );
0035   ist->SetMaxEvent( nevents );
0036   se->registerSubsystem( ist );
0037   
0038   //////////////////////////////////////////////////////////////////
0039   // Analyze!                                                     //
0040   //////////////////////////////////////////////////////////////////
0041   se->skip( skip_num );
0042   se->run( nevents );
0043   se->End();
0044 
0045   ist->Print();
0046     
0047   delete se;
0048   return 0;
0049 }