1 #ifndef MACRO_G4EHCAL_C
2 #define MACRO_G4EHCAL_C
19 #include <caloreco/RawClusterBuilderFwd.h>
20 #include <caloreco/RawClusterBuilderTemplate.h>
21 #include <caloreco/RawTowerCalibration.h>
74 cout <<
"use only G4EHCAL::SETTING::FullEtaAcc=true or G4EHCAL::SETTING::HC2x=true or G4EHCAL::SETTING::HC4x=true" << endl;
81 cout <<
"use only G4EHCAL::SETTING::towercalib1 = true or G4EHCAL::SETTING::towercalibSiPM = true"
82 <<
" or G4EHCAL::SETTING::towercalibHCALIN = true or G4EHCAL::SETTING::towercalib3 = true" << endl;
99 ostringstream mapping_EHCAL;
105 mapping_EHCAL << getenv(
"CALIBRATIONROOT") <<
"/BackwardHcal/mapping/towerMap_EHCAL_2x.txt";
110 mapping_EHCAL << getenv(
"CALIBRATIONROOT") <<
"/BackwardHcal/mapping/towerMap_EHCAL_2x_fullEtaCov.txt";
115 mapping_EHCAL << getenv(
"CALIBRATIONROOT") <<
"/BackwardHcal/mapping/towerMap_EHCAL_4x.txt";
120 mapping_EHCAL << getenv(
"CALIBRATIONROOT") <<
"/BackwardHcal/mapping/towerMap_EHCAL_4x_fullEtaCov.txt";
125 mapping_EHCAL << getenv(
"CALIBRATIONROOT") <<
"/BackwardHcal/mapping/towerMap_EHCAL_default_fullEtaCov.txt";
130 mapping_EHCAL << getenv(
"CALIBRATIONROOT")
131 <<
"/BackwardHcal/mapping/towerMap_EHCAL_default.txt";
154 ostringstream mapping_EHCAL;
160 mapping_EHCAL << getenv(
"CALIBRATIONROOT") <<
"/BackwardHcal/mapping/towerMap_EHCAL_2x.txt";
165 mapping_EHCAL << getenv(
"CALIBRATIONROOT") <<
"/BackwardHcal/mapping/towerMap_EHCAL_2x_fullEtaCov.txt";
170 mapping_EHCAL << getenv(
"CALIBRATIONROOT") <<
"/BackwardHcal/mapping/towerMap_EHCAL_4x.txt";
175 mapping_EHCAL << getenv(
"CALIBRATIONROOT") <<
"/BackwardHcal/mapping/towerMap_EHCAL_4x_fullEtaCov.txt";
180 mapping_EHCAL << getenv(
"CALIBRATIONROOT") <<
"/BackwardHcal/mapping/towerMap_EHCAL_default_fullEtaCov.txt";
185 mapping_EHCAL << getenv(
"CALIBRATIONROOT") <<
"/BackwardHcal/mapping/towerMap_EHCAL_default.txt";
198 cout <<
"1: using towercalib1 for EHCAL towers" << endl;
199 const double EHCAL_photoelectron_per_GeV = 500;
202 TowerDigitizer_EHCAL->
Detector(
"EHCAL");
203 TowerDigitizer_EHCAL->
Verbosity(verbosity);
215 TowerCalibration_EHCAL->
Detector(
"EHCAL");
216 TowerCalibration_EHCAL->
Verbosity(verbosity);
226 const double sampling_fraction = 0.019441;
227 const double photoelectron_per_GeV = 500;
228 const double ADC_per_photoelectron_HG = 3.8;
229 const double ADC_per_photoelectron_LG = 0.24;
231 cout <<
"2: using towercalibSiPM for EHCAL towers" << endl;
244 TowerCalibration->
Detector(
"EHCAL");
254 const double visible_sample_fraction_HCALIN = 7.19505e-02;
267 TowerCalibration->
Detector(
"EHCAL");
277 cout <<
"3: using towercalib3 for EHCAL towers" << endl;
287 TowerCalibration->
Detector(
"EHCAL");
296 cout <<
"def: using default for EHCAL towers" << endl;
304 TowerCalibration->
Detector(
"EHCAL");
321 ehcal_clusterbuilder->
Detector(
"EHCAL");