1 #if ROOT_VERSION_CODE >= ROOT_VERSION(6,00,0)
10 #include <prototype4/CaloCalibration.h>
11 #include <prototype4/CaloUnpackPRDF.h>
12 #include <prototype4/EventInfoSummary.h>
13 #include <prototype4/GenericUnpackPRDF.h>
14 #include <prototype4/PROTOTYPE4_FEM.h>
15 #include <prototype4/Prototype4DSTReader.h>
16 #include <prototype4/RunInfoUnpackPRDF.h>
17 #include <prototype4/TempInfoUnpackPRDF.h>
19 R__LOAD_LIBRARY(libfun4allraw.so)
20 R__LOAD_LIBRARY(libPrototype4.so)
24 const char *
input_file =
"/sphenix/data/data02/sphenix/t1044/fnal/beam/beam_00000406-0000.prdf",
27 gSystem->Load(
"libfun4all");
28 gSystem->Load(
"libPrototype4.so");
30 const bool do_cemc =
true;
31 const bool do_hcal =
true;
61 unpack_run->
add_channel(
"beam_MTNRG_GeV", 911, i_offset++, 1
e-4);
62 unpack_run->
add_channel(
"beam_MT6SC1_Cnts", 911, i_offset++, 1
e-4);
63 unpack_run->
add_channel(
"beam_MT6SC2_Cnts", 911, i_offset++, 1
e-4);
64 unpack_run->
add_channel(
"beam_MT6SC3_Cnts", 911, i_offset++, 1
e-4);
65 unpack_run->
add_channel(
"beam_MT6SC4_Cnts", 911, i_offset++, 1
e-4);
66 unpack_run->
add_channel(
"beam_MT6SC5_Cnts", 911, i_offset++, 1
e-4);
67 unpack_run->
add_channel(
"beam_2CH_mm", 911, i_offset++, 1
e-4);
68 unpack_run->
add_channel(
"beam_2CV_mm", 911, i_offset++, 1
e-4);
69 unpack_run->
add_channel(
"beam_2CMT6T_F", 911, i_offset++, 1
e-4);
70 unpack_run->
add_channel(
"beam_2CMT6H_RH", 911, i_offset++, 1
e-4);
71 unpack_run->
add_channel(
"beam_MT5CP2_Psia", 911, i_offset++, 1
e-4);
72 unpack_run->
add_channel(
"beam_MT6CP2_Psia", 911, i_offset++, 1
e-4);
75 unpack_run->
add_channel(
"EMCAL_A0_HighGain", 984, 0, 1);
78 unpack_run->
add_channel(
"EMCAL_GR0_BiasOffset_Tower21", 983, 21 - 1, 1);
81 unpack_run->
add_channel(
"EMCAL_T0_Tower21", 982, 21 - 1, 1
e-3);
105 string(getenv(
"CALIBRATIONROOT")) +
string(
"/Prototype4/Calibration/"));
112 const double cin_cali = 0.00270145;
113 const double cout_cali = 0.0065718;
122 string(getenv(
"CALIBRATIONROOT")) +
string(
"/Prototype4/Calibration/"));
140 string(getenv(
"CALIBRATIONROOT")) +
string(
"/Prototype4/Calibration/"));
150 string(getenv(
"CALIBRATIONROOT")) +
string(
"/Prototype4/Calibration/"));
161 const int N_hodo = 8;
324 const int N_TileMapper = 16;
327 for (
int i = 0;
i < N_TileMapper; ++
i)
388 reader->
AddRunInfo(
"EMCAL_GR0_BiasOffset_Tower21");
405 reader->
AddTower(
"CALIB_LG_HCALIN");
407 reader->
AddTower(
"CALIB_LG_HCALOUT");
408 reader->
AddTower(
"CALIB_HG_HCALOUT");
418 reader->
AddTower(
"RAW_HODO_VERTICAL");
419 reader->
AddTower(
"RAW_HODO_HORIZONTAL");
420 reader->
AddTower(
"CALIB_HODO_VERTICAL");
421 reader->
AddTower(
"CALIB_HODO_HORIZONTAL");
435 reader->
AddTower(
"RAW_TRIGGER_VETO");
436 reader->
AddTower(
"CALIB_TRIGGER_VETO");
438 reader->
AddTower(
"RAW_TILE_MAPPER");
439 reader->
AddTower(
"CALIB_TILE_MAPPER");
444 reader->
AddTower(
"RAW_FINGER_COUNTER");
445 reader->
AddTower(
"CALIB_FINGER_COUNTER");