Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Fun4All_CentralityValidation.C
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file Fun4All_CentralityValidation.C
1 #pragma once
2 #if ROOT_VERSION_CODE >= ROOT_VERSION(6,00,0)
5 #include <ffamodules/HeadReco.h>
6 #include <ffamodules/SyncReco.h>
7 
9 #include <centralityvalid/CentralityValidation.h>
10 #include <calotrigger/MinimumBiasClassifier.h>
11 
12 #include <fun4all/SubsysReco.h>
13 #include <fun4all/Fun4AllServer.h>
16 #include <vector>
17 
18 #include <phool/recoConsts.h>
19 
20 R__LOAD_LIBRARY(libfun4all.so)
21 R__LOAD_LIBRARY(libffamodules.so)
22 R__LOAD_LIBRARY(libcentrality.so)
23 R__LOAD_LIBRARY(libcentralityvalid.so)
24 R__LOAD_LIBRARY(libcalotrigger.so)
25 #endif
26 
28 {
29  gSystem->Load("libg4dst");
30  gSystem->Load("libcentrality");
31  gSystem->Load("libcentralityvalid");
32  gSystem->Load("libcalotrigger");
33 
35  se->Verbosity(1);
36 
38  rc->set_StringFlag("CDB_GLOBALTAG","ProdA_2023");
39  // // 64 bit timestamp
40  rc->set_uint64Flag("TIMESTAMP",runnumber);
41 
42 
44  in->fileopen(Form("/sphenix/lustre01/sphnxpro/commissioning/DST_ana395_2023p007/DST_CALO_run1auau_ana395_2023p007-000%d-0000.root", runnumber));
45  se->registerInputManager(in);
46 
47  // Fun4All
48  CentralityReco *cr = new CentralityReco();
49  cr->Verbosity(1);
50  se->registerSubsystem(cr);
51 
53  mb->Verbosity(0);
54  se->registerSubsystem(mb);
55 
56  CentralityValidation *centralityvalidation = new CentralityValidation("CentralityValidation","cent_valid.root");
57  se->registerSubsystem(centralityvalidation);
58 
59  se->run(10);
60  se->End();
61 }