1 #if ROOT_VERSION_CODE >= ROOT_VERSION(6,00,0)
2 #include <caloreco/RawTowerCalibration.h>
33 #include <qa_modules/QAHistManagerDef.h>
34 #include <qa_modules/QAG4SimulationCalorimeter.h>
36 R__LOAD_LIBRARY(libcalo_reco.so)
37 R__LOAD_LIBRARY(libfun4all.so)
38 R__LOAD_LIBRARY(libg4calo.so)
39 R__LOAD_LIBRARY(libg4caloprototype.so)
40 R__LOAD_LIBRARY(libg4eval.so)
41 R__LOAD_LIBRARY(libg4histos.so)
42 R__LOAD_LIBRARY(libg4testbench.so)
43 R__LOAD_LIBRARY(libqa_modules.so)
50 gSystem->Load(
"libfun4all");
51 gSystem->Load(
"libg4caloprototype");
52 gSystem->Load(
"libg4testbench");
53 gSystem->Load(
"libg4histos");
54 gSystem->Load(
"libg4eval");
55 gSystem->Load(
"libqa_modules");
56 gSystem->Load(
"libg4calo");
57 gSystem->Load(
"libcalo_reco");
60 bool cemc_cell = cemc_on &&
true;
61 bool cemc_twr = cemc_cell &&
true;
62 bool cemc_digi = cemc_twr &&
true;
63 bool cemc_twrcal = cemc_digi &&
true;
66 bool ihcal_cell = ihcal_on &&
true;
67 bool ihcal_twr = ihcal_cell &&
true;
68 bool ihcal_digi = ihcal_twr &&
true;
69 bool ihcal_twrcal = ihcal_digi &&
true;
72 bool ohcal_cell = ohcal_on &&
true;
73 bool ohcal_twr = ohcal_cell &&
true;
74 bool ohcal_digi = ohcal_twr &&
true;
75 bool ohcal_twrcal = ohcal_digi &&
true;
79 bool hit_ntuple =
false;
80 bool dstreader =
true;
81 bool dstoutput =
false;
236 for (
int i=0;
i<5;
i++)
259 string(getenv(
"CALIBRATIONROOT")) +
string(
"/CEMC/LightCollection/Prototype2Module.xml"),
260 "data_grid_light_guide_efficiency",
"data_grid_fiber_trans");
273 const double ADC_per_photoelectron_LG = 0.24;
274 const double ADC_per_photoelectron_HG = 3.8;
275 const double photoelectron_per_GeV = 500;
279 const double sampling_fraction = 0.0233369;
291 photoelectron_per_GeV / sampling_fraction);
304 photoelectron_per_GeV / sampling_fraction);
410 TowerDigitizer->
Detector(
"HCALOUT");
422 TowerDigitizer->
Detector(
"HCALOUT");
436 const double visible_sample_fraction_HCALIN = 7.19505e-02 ;
437 const double visible_sample_fraction_HCALOUT = 0.0313466 ;
442 TowerCalibration->
Detector(
"HCALIN");
452 TowerCalibration->
Detector(
"HCALIN");
464 TowerCalibration->
Detector(
"HCALOUT");
474 TowerCalibration->
Detector(
"HCALOUT");
508 hit->
AddNode(
"ABSORBER_HCALIN", 10);
509 hit->
AddNode(
"ABSORBER_HCALOUT", 11);
518 string(
"DSTReader.root"));