1 #if ROOT_VERSION_CODE >= ROOT_VERSION(6,00,0)
2 #include <caloreco/RawTowerCalibration.h>
34 #include <qa_modules/QAHistManagerDef.h>
35 #include <qa_modules/QAG4SimulationCalorimeter.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)
51 gSystem->Load(
"libfun4all");
52 gSystem->Load(
"libg4caloprototype");
53 gSystem->Load(
"libg4testbench");
54 gSystem->Load(
"libg4histos");
55 gSystem->Load(
"libg4eval.so");
56 gSystem->Load(
"libqa_modules");
57 gSystem->Load(
"libg4calo");
58 gSystem->Load(
"libcalo_reco");
61 bool cemc_cell = cemc_on &&
true;
62 bool cemc_twr = cemc_cell &&
true;
63 bool cemc_digi = cemc_twr &&
true;
64 bool cemc_twrcal = cemc_digi &&
true;
66 bool ihcal_cell = ihcal_on &&
false;
67 bool ihcal_twr = ihcal_cell &&
false;
68 bool ihcal_digi = ihcal_twr &&
false;
69 bool ihcal_twrcal = ihcal_digi &&
false;
71 bool ohcal_cell = ohcal_on &&
false;
72 bool ohcal_twr = ohcal_cell &&
false;
73 bool ohcal_digi = ohcal_twr &&
false;
74 bool ohcal_twrcal = ohcal_digi &&
false;
77 bool dstreader =
true;
78 bool hit_ntuple =
false;
79 bool dstoutput =
false;
92 double theta = 90-46.4;
94 double add_place_x = 183.-173.93+2.54/2.;
103 double angle = theta*TMath::Pi()/180.;
116 angle = theta*TMath::Pi()/180.;
123 pgen->
set_phi_range(-20/180.*TMath::Pi(), 20/180.*TMath::Pi());
132 angle = theta*TMath::Pi()/180.;
133 gun->
set_mom(sin(angle),0.,cos(angle));
268 for (
int i=0;
i<5;
i++)
289 cemc_cells->
get_light_collection_model().
load_data_file(
string(getenv(
"CALIBRATIONROOT")) +
string(
"/CEMC/LightCollection/Prototype2Module.xml"),
"data_grid_light_guide_efficiency",
"data_grid_fiber_trans");
300 const double sampling_fraction = 0.0190134;
301 const double photoelectron_per_GeV = 500;
302 const double ADC_per_photoelectron_HG = 3.8;
303 const double ADC_per_photoelectron_LG = 0.24;
434 TowerDigitizer->
Detector(
"HCALOUT");
445 TowerDigitizer->
Detector(
"HCALOUT");
459 const double visible_sample_fraction_HCALIN = 7.19505e-02 ;
460 const double visible_sample_fraction_HCALOUT = 0.0313466 ;
465 TowerCalibration->
Detector(
"HCALIN");
475 TowerCalibration->
Detector(
"HCALIN");
487 TowerCalibration->
Detector(
"HCALOUT");
497 TowerCalibration->
Detector(
"HCALOUT");
532 hit->
AddNode(
"ABSORBER_HCALIN", 10);
533 hit->
AddNode(
"ABSORBER_HCALOUT", 11);