2 #if ROOT_VERSION_CODE >= ROOT_VERSION(6,00,0)
11 #include <proto4showercalib/Proto4ShowerCalib.h>
13 R__LOAD_LIBRARY(libfun4all.so)
14 R__LOAD_LIBRARY(libPrototype4.so)
15 R__LOAD_LIBRARY(/direct/phenix+
u/xusun/WorkSpace/sPHENIX/install/lib/libProto4HCalTowerCalib.so)
26 gSystem->Load(
"libPrototype4.so");
27 gSystem->Load(
"libfun4all.so");
49 if(_is_sim) inputlist = Form(
"../list/Cosmic_SIM_%s_col_%d.list",det.c_str(),colID);
50 if(!_is_sim) inputlist = Form(
"../list/Cosmic_RAW_%s_col_%d.list",det.c_str(),colID);
55 gSystem->Load(
"/direct/phenix+u/xusun/WorkSpace/sPHENIX/install/lib/libProto4HCalTowerCalib.so");
59 if(_is_sim) outputfile = Form(
"/sphenix/user/xusun/TestBeam/TowerCalib/Proto4TowerInfoSIM_%s_%d.root",det.c_str(),colID);
60 if(!_is_sim) outputfile = Form(
"/sphenix/user/xusun/TestBeam/TowerCalib/Proto4TowerInfoRAW_%s_%d.root",det.c_str(),colID);
69 std::cout <<
"All done" << std::endl;