Back to home page

sPhenix code displayed by LXR

 
 

    


File indexing completed on 2025-08-05 08:14:55

0001 #pragma once
0002 #if ROOT_VERSION_CODE >= ROOT_VERSION(6,00,0)
0003 #include <fun4all/SubsysReco.h>
0004 #include <fun4all/Fun4AllServer.h>
0005 #include <fun4all/Fun4AllInputManager.h>
0006 #include <fun4all/Fun4AllDstInputManager.h>
0007 
0008 #include <fun4all/Fun4AllDstOutputManager.h>
0009 #include <fun4all/Fun4AllOutputManager.h>
0010 #include <fun4all/Fun4AllServer.h>
0011 
0012 #include <phool/PHRandomSeed.h>
0013 #include <phool/recoConsts.h>
0014 
0015 
0016 #include <quickhijing/quickHIJING.h>
0017 
0018 #include <g4centrality/PHG4CentralityReco.h>
0019 
0020 R__LOAD_LIBRARY(libfun4all.so)
0021 R__LOAD_LIBRARY(libg4centrality.so)
0022 R__LOAD_LIBRARY(libquickHIJING.so)
0023 
0024 #endif
0025 
0026 
0027 void Fun4All_quickHijing_Prod(int nEvents = 1,
0028                      const char *filelist1 = "dst_truth.list",
0029              const string sysName = "qhTest")
0030 {
0031 
0032   gSystem->Load("libg4dst");
0033   
0034   
0035   Fun4AllServer *se = Fun4AllServer::instance();
0036   int verbosity = 0;
0037 
0038   se->Verbosity(verbosity);
0039   recoConsts *rc = recoConsts::instance();
0040   //rc->set_IntFlag("RUNNUMBER",62);
0041 
0042   PHG4CentralityReco *cent = new PHG4CentralityReco();
0043   cent -> Verbosity(0);
0044   cent -> GetCalibrationParameters().ReadFromFile("centrality","xml",0,0,string(getenv("CALIBRATIONROOT"))+string("/Centrality/"));
0045   se -> registerSubsystem(cent);
0046 
0047   quickHIJING *qh = new quickHIJING(sysName);
0048   se -> registerSubsystem(qh);
0049   
0050   Fun4AllInputManager *in = new Fun4AllDstInputManager("DSTcalo");
0051   in->AddListFile(filelist1,1);
0052 
0053   se->registerInputManager(in);
0054   se->run(nEvents);
0055   se->End();
0056   std::cout << "All done!" << endl;
0057   gSystem -> Exit(0);
0058   
0059 
0060  
0061 }