1 #ifndef MACRO_G4FHCAL_C
2 #define MACRO_G4FHCAL_C
4 #include <GlobalVariables.C>
16 #include <caloreco/RawClusterBuilderFwd.h>
17 #include <caloreco/RawClusterBuilderTemplate.h>
18 #include <caloreco/RawTowerCalibration.h>
78 cout <<
"use only G4FHCAL::SETTING::FullEtaAcc=true or G4FHCAL::SETTING::HC2x=true or G4FHCAL::SETTING::HC4x=true" << endl;
85 cout <<
"use only G4FHCAL::SETTING::towercalib1 = true or G4FHCAL::SETTING::towercalibSiPM = true"
86 <<
" or G4FHCAL::SETTING::towercalibHCALIN = true or G4FHCAL::SETTING::towercalib3 = true" << endl;
105 ostringstream mapping_fhcal;
111 mapping_fhcal << getenv(
"CALIBRATIONROOT") <<
"/ForwardHcal/mapping/towerMap_FHCAL_2x.txt";
116 mapping_fhcal << getenv(
"CALIBRATIONROOT") <<
"/ForwardHcal/mapping/towerMap_FHCAL_2x_fullEtaCov.txt";
121 mapping_fhcal << getenv(
"CALIBRATIONROOT") <<
"/ForwardHcal/mapping/towerMap_FHCAL_4x.txt";
126 mapping_fhcal << getenv(
"CALIBRATIONROOT") <<
"/ForwardHcal/mapping/towerMap_FHCAL_4x_fullEtaCov.txt";
131 mapping_fhcal << getenv(
"CALIBRATIONROOT") <<
"/ForwardHcal/mapping/towerMap_FHCAL_wDR.txt";
137 mapping_fhcal << getenv(
"CALIBRATIONROOT") <<
"/ForwardHcal/mapping/towerMap_FHCAL_FwdSquare_XL.txt";
139 mapping_fhcal << getenv(
"CALIBRATIONROOT") <<
"/ForwardHcal/mapping/towerMap_FHCAL_FwdSquare.txt";
145 mapping_fhcal << getenv(
"CALIBRATIONROOT") <<
"/ForwardHcal/mapping/towerMap_FHCAL_asymmetric_XL.txt";
147 mapping_fhcal << getenv(
"CALIBRATIONROOT") <<
"/ForwardHcal/mapping/towerMap_FHCAL_asymmetric.txt";
152 mapping_fhcal << getenv(
"CALIBRATIONROOT") <<
"/ForwardHcal/mapping/towerMap_FHCAL_default_fullEtaCov.txt";
157 mapping_fhcal << getenv(
"CALIBRATIONROOT")
158 <<
"/ForwardHcal/mapping/towerMap_FHCAL_v005.txt";
182 ostringstream mapping_fhcal;
188 mapping_fhcal << getenv(
"CALIBRATIONROOT") <<
"/ForwardHcal/mapping/towerMap_FHCAL_2x.txt";
193 mapping_fhcal << getenv(
"CALIBRATIONROOT") <<
"/ForwardHcal/mapping/towerMap_FHCAL_2x_fullEtaCov.txt";
198 mapping_fhcal << getenv(
"CALIBRATIONROOT") <<
"/ForwardHcal/mapping/towerMap_FHCAL_4x.txt";
203 mapping_fhcal << getenv(
"CALIBRATIONROOT") <<
"/ForwardHcal/mapping/towerMap_FHCAL_4x_fullEtaCov.txt";
208 mapping_fhcal << getenv(
"CALIBRATIONROOT") <<
"/ForwardHcal/mapping/towerMap_FHCAL_wDR.txt";
214 mapping_fhcal << getenv(
"CALIBRATIONROOT") <<
"/ForwardHcal/mapping/towerMap_FHCAL_FwdSquare_XL.txt";
216 mapping_fhcal << getenv(
"CALIBRATIONROOT") <<
"/ForwardHcal/mapping/towerMap_FHCAL_FwdSquare.txt";
222 mapping_fhcal << getenv(
"CALIBRATIONROOT") <<
"/ForwardHcal/mapping/towerMap_FHCAL_asymmetric_XL.txt";
224 mapping_fhcal << getenv(
"CALIBRATIONROOT") <<
"/ForwardHcal/mapping/towerMap_FHCAL_asymmetric.txt";
229 mapping_fhcal << getenv(
"CALIBRATIONROOT") <<
"/ForwardHcal/mapping/towerMap_FHCAL_default_fullEtaCov.txt";
234 mapping_fhcal << getenv(
"CALIBRATIONROOT") <<
"/ForwardHcal/mapping/towerMap_FHCAL_v005.txt";
247 cout <<
"1: using towercalib1 for FHCAL towers" << endl;
248 const double FHCAL_photoelectron_per_GeV = 500;
251 TowerDigitizer_FHCAL->
Detector(
"FHCAL");
252 TowerDigitizer_FHCAL->
Verbosity(verbosity);
264 TowerCalibration_FHCAL->
Detector(
"FHCAL");
265 TowerCalibration_FHCAL->
Verbosity(verbosity);
276 const double photoelectron_per_GeV = 500;
277 const double ADC_per_photoelectron_HG = 3.8;
278 const double ADC_per_photoelectron_LG = 0.24;
280 cout <<
"2: using towercalibSiPM for FHCAL towers" << endl;
293 TowerCalibration->
Detector(
"FHCAL");
303 const double visible_sample_fraction_HCALIN = 7.19505e-02;
316 TowerCalibration->
Detector(
"FHCAL");
326 cout <<
"3: using towercalib3 for FHCAL towers" << endl;
336 TowerCalibration->
Detector(
"FHCAL");
345 cout <<
"def: using default for FHCAL towers" << endl;
353 TowerCalibration->
Detector(
"FHCAL");