1 #if ROOT_VERSION_CODE >= ROOT_VERSION(6, 00, 0)
2 #include <caloreco/RawTowerCalibration.h>
34 #include <qa_modules/QAG4SimulationCalorimeter.h>
35 #include <qa_modules/QAHistManagerDef.h>
37 R__LOAD_LIBRARY(libcalo_reco.so)
38 R__LOAD_LIBRARY(libfun4all.so)
39 R__LOAD_LIBRARY(libg4calo.so)
40 R__LOAD_LIBRARY(libg4caloprototype.so)
41 R__LOAD_LIBRARY(libg4eval.so)
42 R__LOAD_LIBRARY(libg4histos.so)
43 R__LOAD_LIBRARY(libg4testbench.so)
44 R__LOAD_LIBRARY(libqa_modules.so)
49 gSystem->Load(
"libfun4all");
50 gSystem->Load(
"libg4caloprototype");
51 gSystem->Load(
"libg4testbench");
52 gSystem->Load(
"libg4histos");
53 gSystem->Load(
"libg4eval.so");
54 gSystem->Load(
"libqa_modules");
55 gSystem->Load(
"libg4calo");
56 gSystem->Load(
"libcalo_reco");
59 bool cemc_cell = cemc_on &&
true;
60 bool cemc_twr = cemc_cell &&
true;
61 bool cemc_digi = cemc_twr &&
true;
62 bool cemc_twrcal = cemc_digi &&
true;
64 bool ihcal_al =
false;
65 bool ihcal_cell = ihcal_on &&
false;
66 bool ihcal_twr = ihcal_cell &&
false;
67 bool ihcal_digi = ihcal_twr &&
false;
68 bool ihcal_twrcal = ihcal_digi &&
false;
70 bool ohcal_cell = ohcal_on &&
false;
71 bool ohcal_twr = ohcal_cell &&
false;
72 bool ohcal_digi = ohcal_twr &&
false;
73 bool ohcal_twrcal = ohcal_digi &&
false;
76 bool dstreader =
true;
77 bool hit_ntuple =
false;
78 bool dstoutput =
false;
91 double theta = 90 - 46.4;
93 double add_place_x = 183. - 173.93 + 2.54 / 2.;
102 double angle = theta * TMath::Pi() / 180.;
115 angle = theta * TMath::Pi() / 180.;
116 eta = -1. *
TMath::Log(TMath::Tan(angle / 2.));
122 pgen->
set_phi_range(-20 / 180. * TMath::Pi(), 20 / 180. * TMath::Pi());
131 angle = theta * TMath::Pi() / 180.;
132 gun->
set_mom(sin(angle), 0., cos(angle));
285 for (
int i = 0;
i < 6;
i++)
307 string(getenv(
"CALIBRATIONROOT")) +
string(
"/CEMC/LightCollection/Prototype3Module.xml"),
308 "data_grid_light_guide_efficiency",
"data_grid_fiber_trans");
319 const double sampling_fraction =0.019441;
320 const double photoelectron_per_GeV = 500;
321 const double ADC_per_photoelectron_HG = 3.8;
322 const double ADC_per_photoelectron_LG = 0.24;
451 TowerDigitizer->
Detector(
"HCALOUT");
462 TowerDigitizer->
Detector(
"HCALOUT");
476 const double visible_sample_fraction_HCALIN = 7.19505e-02;
477 const double visible_sample_fraction_HCALOUT = 0.0313466;
482 TowerCalibration->
Detector(
"HCALIN");
492 TowerCalibration->
Detector(
"HCALIN");
504 TowerCalibration->
Detector(
"HCALOUT");
514 TowerCalibration->
Detector(
"HCALOUT");
549 hit->
AddNode(
"ABSORBER_HCALIN", 10);
550 hit->
AddNode(
"ABSORBER_HCALOUT", 11);