Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Fun4All_quickHijing_Prod.C
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file Fun4All_quickHijing_Prod.C
1 #pragma once
2 #if ROOT_VERSION_CODE >= ROOT_VERSION(6,00,0)
3 #include <fun4all/SubsysReco.h>
7 
10 #include <fun4all/Fun4AllServer.h>
11 
12 #include <phool/PHRandomSeed.h>
13 #include <phool/recoConsts.h>
14 
15 
16 #include <quickhijing/quickHIJING.h>
17 
19 
20 R__LOAD_LIBRARY(libfun4all.so)
21 R__LOAD_LIBRARY(libg4centrality.so)
22 R__LOAD_LIBRARY(libquickHIJING.so)
23 
24 #endif
25 
26 
28  const char *filelist1 = "dst_truth.list",
29  const string sysName = "qhTest")
30 {
31 
32  gSystem->Load("libg4dst");
33 
34 
36  int verbosity = 0;
37 
38  se->Verbosity(verbosity);
40  //rc->set_IntFlag("RUNNUMBER",62);
41 
43  cent -> Verbosity(0);
44  cent -> GetCalibrationParameters().ReadFromFile("centrality","xml",0,0,string(getenv("CALIBRATIONROOT"))+string("/Centrality/"));
45  se -> registerSubsystem(cent);
46 
47  quickHIJING *qh = new quickHIJING(sysName);
48  se -> registerSubsystem(qh);
49 
51  in->AddListFile(filelist1,1);
52 
53  se->registerInputManager(in);
54  se->run(nEvents);
55  se->End();
56  std::cout << "All done!" << endl;
57  gSystem -> Exit(0);
58 
59 
60 
61 }