1 #ifndef MACRO_G4FHCAL_C
2 #define MACRO_G4FHCAL_C
19 #include <caloreco/RawClusterBuilderFwd.h>
20 #include <caloreco/RawClusterBuilderTemplate.h>
21 #include <caloreco/RawTowerCalibration.h>
74 cout <<
"use only G4FHCAL::SETTING::FullEtaAcc=true or G4FHCAL::SETTING::HC2x=true or G4FHCAL::SETTING::HC4x=true" << endl;
81 cout <<
"use only G4FHCAL::SETTING::towercalib1 = true or G4FHCAL::SETTING::towercalibSiPM = true"
82 <<
" or G4FHCAL::SETTING::towercalibHCALIN = true or G4FHCAL::SETTING::towercalib3 = true" << endl;
99 ostringstream mapping_fhcal;
105 mapping_fhcal << getenv(
"CALIBRATIONROOT") <<
"/ForwardHcal/mapping/towerMap_FHCAL_2x.txt";
110 mapping_fhcal << getenv(
"CALIBRATIONROOT") <<
"/ForwardHcal/mapping/towerMap_FHCAL_2x_fullEtaCov.txt";
115 mapping_fhcal << getenv(
"CALIBRATIONROOT") <<
"/ForwardHcal/mapping/towerMap_FHCAL_4x.txt";
120 mapping_fhcal << getenv(
"CALIBRATIONROOT") <<
"/ForwardHcal/mapping/towerMap_FHCAL_4x_fullEtaCov.txt";
125 mapping_fhcal << getenv(
"CALIBRATIONROOT") <<
"/ForwardHcal/mapping/towerMap_FHCAL_default_fullEtaCov.txt";
130 mapping_fhcal << getenv(
"CALIBRATIONROOT")
131 <<
"/ForwardHcal/mapping/towerMap_FHCAL_v005.txt";
154 ostringstream mapping_fhcal;
160 mapping_fhcal << getenv(
"CALIBRATIONROOT") <<
"/ForwardHcal/mapping/towerMap_FHCAL_2x.txt";
165 mapping_fhcal << getenv(
"CALIBRATIONROOT") <<
"/ForwardHcal/mapping/towerMap_FHCAL_2x_fullEtaCov.txt";
170 mapping_fhcal << getenv(
"CALIBRATIONROOT") <<
"/ForwardHcal/mapping/towerMap_FHCAL_4x.txt";
175 mapping_fhcal << getenv(
"CALIBRATIONROOT") <<
"/ForwardHcal/mapping/towerMap_FHCAL_4x_fullEtaCov.txt";
180 mapping_fhcal << getenv(
"CALIBRATIONROOT") <<
"/ForwardHcal/mapping/towerMap_FHCAL_default_fullEtaCov.txt";
185 mapping_fhcal << getenv(
"CALIBRATIONROOT") <<
"/ForwardHcal/mapping/towerMap_FHCAL_v005.txt";
198 cout <<
"1: using towercalib1 for FHCAL towers" << endl;
199 const double FHCAL_photoelectron_per_GeV = 500;
202 TowerDigitizer_FHCAL->
Detector(
"FHCAL");
203 TowerDigitizer_FHCAL->
Verbosity(verbosity);
215 TowerCalibration_FHCAL->
Detector(
"FHCAL");
216 TowerCalibration_FHCAL->
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 FHCAL towers" << endl;
244 TowerCalibration->
Detector(
"FHCAL");
254 const double visible_sample_fraction_HCALIN = 7.19505e-02;
267 TowerCalibration->
Detector(
"FHCAL");
277 cout <<
"3: using towercalib3 for FHCAL towers" << endl;
287 TowerCalibration->
Detector(
"FHCAL");
296 cout <<
"def: using default for FHCAL towers" << endl;
304 TowerCalibration->
Detector(
"FHCAL");