1 #ifndef MACRO_G4EHCAL_C
2 #define MACRO_G4EHCAL_C
4 #include <GlobalVariables.C>
16 #include <caloreco/RawClusterBuilderFwd.h>
17 #include <caloreco/RawClusterBuilderTemplate.h>
18 #include <caloreco/RawTowerCalibration.h>
71 cout <<
"use only G4EHCAL::SETTING::FullEtaAcc=true or G4EHCAL::SETTING::HC2x=true or G4EHCAL::SETTING::HC4x=true" << endl;
78 cout <<
"use only G4EHCAL::SETTING::towercalib1 = true or G4EHCAL::SETTING::towercalibSiPM = true"
79 <<
" 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";
155 ostringstream mapping_EHCAL;
161 mapping_EHCAL << getenv(
"CALIBRATIONROOT") <<
"/BackwardHcal/mapping/towerMap_EHCAL_2x.txt";
166 mapping_EHCAL << getenv(
"CALIBRATIONROOT") <<
"/BackwardHcal/mapping/towerMap_EHCAL_2x_fullEtaCov.txt";
171 mapping_EHCAL << getenv(
"CALIBRATIONROOT") <<
"/BackwardHcal/mapping/towerMap_EHCAL_4x.txt";
176 mapping_EHCAL << getenv(
"CALIBRATIONROOT") <<
"/BackwardHcal/mapping/towerMap_EHCAL_4x_fullEtaCov.txt";
181 mapping_EHCAL << getenv(
"CALIBRATIONROOT") <<
"/BackwardHcal/mapping/towerMap_EHCAL_default_fullEtaCov.txt";
186 mapping_EHCAL << getenv(
"CALIBRATIONROOT") <<
"/BackwardHcal/mapping/towerMap_EHCAL_default.txt";
199 cout <<
"1: using towercalib1 for EHCAL towers" << endl;
200 const double EHCAL_photoelectron_per_GeV = 500;
203 TowerDigitizer_EHCAL->
Detector(
"EHCAL");
204 TowerDigitizer_EHCAL->
Verbosity(verbosity);
216 TowerCalibration_EHCAL->
Detector(
"EHCAL");
217 TowerCalibration_EHCAL->
Verbosity(verbosity);
228 const double photoelectron_per_GeV = 500;
229 const double ADC_per_photoelectron_HG = 3.8;
230 const double ADC_per_photoelectron_LG = 0.24;
232 cout <<
"2: using towercalibSiPM for EHCAL towers" << endl;
245 TowerCalibration->
Detector(
"EHCAL");
255 const double visible_sample_fraction_HCALIN = 7.19505e-02;
268 TowerCalibration->
Detector(
"EHCAL");
278 cout <<
"3: using towercalib3 for EHCAL towers" << endl;
288 TowerCalibration->
Detector(
"EHCAL");
297 cout <<
"def: using default for EHCAL towers" << endl;
305 TowerCalibration->
Detector(
"EHCAL");