1 #if ROOT_VERSION_CODE >= ROOT_VERSION(6,00,0)
10 #include <prototype4/CaloCalibration.h>
11 #include <prototype4/CaloTemplateFit.h>
12 #include <prototype4/CaloUnpackPRDF.h>
13 #include <prototype4/EventInfoSummary.h>
14 #include <prototype4/GenericUnpackPRDF.h>
15 #include <prototype4/PROTOTYPE4_FEM.h>
16 #include <Prototype4DSTReader.h>
17 #include <prototype4/RunInfoUnpackPRDF.h>
18 #include <prototype4/TempInfoUnpackPRDF.h>
20 R__LOAD_LIBRARY(libfun4allraw.so)
21 R__LOAD_LIBRARY(libPrototype4.so)
25 const char *
input_file =
"/sphenix/data/data02/sphenix/t1044/production/production_0506/beam_00002099-0000.prdf",
28 gSystem->Load(
"libfun4all");
29 gSystem->Load(
"libPrototype4.so");
31 const bool do_cemc =
true;
32 const bool do_hcal =
true;
63 unpack_run->
add_channel(
"beam_MTNRG_GeV", 911, i_offset++, 1
e-4);
64 unpack_run->
add_channel(
"beam_MT6SC1_Cnts", 911, i_offset++, 1
e-4);
65 unpack_run->
add_channel(
"beam_MT6SC2_Cnts", 911, i_offset++, 1
e-4);
66 unpack_run->
add_channel(
"beam_MT6SC3_Cnts", 911, i_offset++, 1
e-4);
67 unpack_run->
add_channel(
"beam_MT6SC4_Cnts", 911, i_offset++, 1
e-4);
68 unpack_run->
add_channel(
"beam_MT6SC5_Cnts", 911, i_offset++, 1
e-4);
69 unpack_run->
add_channel(
"beam_2CH_mm", 911, i_offset++, 1
e-4);
70 unpack_run->
add_channel(
"beam_2CV_mm", 911, i_offset++, 1
e-4);
71 unpack_run->
add_channel(
"beam_2CMT6T_F", 911, i_offset++, 1
e-4);
72 unpack_run->
add_channel(
"beam_2CMT6H_RH", 911, i_offset++, 1
e-4);
73 unpack_run->
add_channel(
"beam_MT5CP2_Psia", 911, i_offset++, 1
e-4);
74 unpack_run->
add_channel(
"beam_MT6CP2_Psia", 911, i_offset++, 1
e-4);
77 unpack_run->
add_channel(
"EMCAL_A0_HighGain", 984, 0, 1);
80 unpack_run->
add_channel(
"EMCAL_GR0_BiasOffset_Tower21", 983, 21 - 1, 1);
83 unpack_run->
add_channel(
"EMCAL_T0_Tower21", 982, 21 - 1, 1
e-3);
106 calib_cemc->
set_templatefile(
"/gpfs/mnt/gpfs02/sphenix/user/trinn/fitting_algorithm_playing/prdfcode/prototype/offline/packages/Prototype4/templates.root");
111 string(getenv(
"CALIBRATIONROOT")) +
string(
"/Prototype4/Calibration/"));
118 const double cin_cali = 0.00270145;
119 const double cout_cali = 0.0065718;
128 string(getenv(
"CALIBRATIONROOT")) +
string(
"/Prototype4/Calibration/"));
146 string(getenv(
"CALIBRATIONROOT")) +
string(
"/Prototype4/Calibration/"));
156 string(getenv(
"CALIBRATIONROOT")) +
string(
"/Prototype4/Calibration/"));
167 const int N_hodo = 8;
330 const int N_TileMapper = 16;
333 for (
int i = 0;
i < N_TileMapper; ++
i)
394 reader->
AddRunInfo(
"EMCAL_GR0_BiasOffset_Tower21");
411 reader->
AddTower(
"CALIB_LG_HCALIN");
413 reader->
AddTower(
"CALIB_LG_HCALOUT");
414 reader->
AddTower(
"CALIB_HG_HCALOUT");
424 reader->
AddTower(
"RAW_HODO_VERTICAL");
425 reader->
AddTower(
"RAW_HODO_HORIZONTAL");
426 reader->
AddTower(
"CALIB_HODO_VERTICAL");
427 reader->
AddTower(
"CALIB_HODO_HORIZONTAL");
441 reader->
AddTower(
"RAW_TRIGGER_VETO");
442 reader->
AddTower(
"CALIB_TRIGGER_VETO");
444 reader->
AddTower(
"RAW_TILE_MAPPER");
445 reader->
AddTower(
"CALIB_TILE_MAPPER");
450 reader->
AddTower(
"RAW_FINGER_COUNTER");
451 reader->
AddTower(
"CALIB_FINGER_COUNTER");