Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
hcal_toweridmacro.C
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file hcal_toweridmacro.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 #include <hcal_towerid/hcal_towerid.h>
16 
17 R__LOAD_LIBRARY(libfun4all.so)
18 R__LOAD_LIBRARY(libtowerid.so)
19 //R__LOAD_LIBRARY(libmakeMBDTrees.so)
20 #endif
21 void hcal_toweridmacro(const int nEvents = 5000, const char *listFile = "/sphenix/lustre01/sphnxpro/commissioning/DST/run_22950/dsts_fast/DST-00022950-0018.root", const char *inName = "commissioning.root",const std::string cdbname_i = "cdbname_i.root",const std::string cdbname_o = "cdbname_o.root", float adccut_i = 150, float adccut_o = 150, float sigmas_lo = 2, float sigmas_hi = 4, float inner_f = 0.05, float outer_f = 0.05)
22 {
25 
26  hcal_towerid *calo = new hcal_towerid(inName,cdbname_i,cdbname_o,adccut_i,adccut_o,sigmas_lo,sigmas_hi,inner_f,outer_f);
27  se->registerSubsystem(calo);
28 
30  in->AddFile(listFile);
31  se->registerInputManager(in);
32 
33  se->run(nEvents);
34 
35  se->End();
36  se->PrintTimer();
37 
38  std::cout << "All done!" << std::endl;
39 
40  gSystem->Exit(0);
41 }
42