Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
toweridmacro.C
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file 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 #include <cdbobjects/CDBTTree.h>
15 
16 
17 #include <towerid/towerid.h>
18 
19 R__LOAD_LIBRARY(libcdbobjects.so)
20 R__LOAD_LIBRARY(libfun4all.so)
21 R__LOAD_LIBRARY(libtowerid.so)
22 //R__LOAD_LIBRARY(libmakeMBDTrees.so)
23 #endif
24 void toweridmacro(const int nEvents = 5000, const char *listFile = "/sphenix/lustre01/sphnxpro/commissioning/DST/run_20488/dsts_fast/DST-00020488-0042.root", const char *inName = "commissioning3.root", const std::string cdbname = "test.root", float adccut_sg = 150, float adccut_k = 150,float sigmas_lo = -2, float sigmas_hi = 4, float SG_f = 0.5, float Kur_f = 0.5, float region_f = 1.0)
25 {
28 
29  towerid *calo = new towerid(inName,cdbname,adccut_sg,adccut_k,sigmas_lo,sigmas_hi,nEvents,SG_f,Kur_f);
30  se->registerSubsystem(calo);
31 
33  in->AddFile(listFile);
34  se->registerInputManager(in);
35 
36  se->run(nEvents);
37 
38  se->End();
39  se->PrintTimer();
40 
41  std::cout << "All done!" << std::endl;
42 
43  gSystem->Exit(0);
44 }
45