Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Fun4All_hijbkg.C
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file Fun4All_hijbkg.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 "upc/hijbkg_upc.h"
17 
18 R__LOAD_LIBRARY(libfun4all.so)
19 R__LOAD_LIBRARY(libhbcup.so)
20 
21 #endif
22 
23 
24 void Fun4All_hijbkg(int nEvents = 0, const char *dst_fname = "DST_TRUTH_sHijing_0_20fm_50kHz_bkg_0_20fm-0000000006-00000.root", const string sysName = "HIJBKG")
25 {
26 
27  gSystem->Load("libg4dst");
28 
29 
31  int verbosity = 0;
32 
33  se->Verbosity(verbosity);
35  //rc->set_IntFlag("RUNNUMBER",62);
36 
37  hijbkg_upc *hijbkg = new hijbkg_upc(sysName);
38  se -> registerSubsystem(hijbkg);
39 
41  //in->AddListFile(filelist1,1);
42  in->AddFile( dst_fname );
43 
44  se->registerInputManager( in );
45  se->run( nEvents );
46  se->End();
47  std::cout << "All done!" << endl;
48  gSystem->Exit( 0 );
49 
50 }