1 #ifndef MACRO_G4LFHCAL_C
2 #define MACRO_G4LFHCAL_C
4 #include <GlobalVariables.C>
15 #include <caloreco/RawClusterBuilderFwd.h>
16 #include <caloreco/RawClusterBuilderTemplate.h>
17 #include <caloreco/RawTowerCalibration.h>
66 TString mappinFileName = getenv(
"CALIBRATIONROOT");
70 mappinFileName +=
"/LFHcal/mapping/towerMap_LFHCAL_2x-long.txt";
72 mappinFileName +=
"/LFHcal/mapping/towerMap_LFHCAL_2x.txt";
78 mappinFileName +=
"/LFHcal/mapping/towerMap_LFHCAL_wDR-long.txt";
80 mappinFileName +=
"/LFHcal/mapping/towerMap_LFHCAL_wDR.txt";
86 mappinFileName +=
"/LFHcal/mapping/towerMap_LFHCAL_FwdConfig-long.txt";
88 mappinFileName +=
"/LFHcal/mapping/towerMap_LFHCAL_FwdConfig.txt";
94 mappinFileName +=
"/LFHcal/mapping/towerMap_LFHCAL_FwdSquare-long.txt";
96 mappinFileName +=
"/LFHcal/mapping/towerMap_LFHCAL_FwdSquare.txt";
103 mappinFileName +=
"/LFHcal/mapping/towerMap_LFHCAL_IP6-asymmetric-long.txt";
105 mappinFileName +=
"/LFHcal/mapping/towerMap_LFHCAL_IP6-asymmetric.txt";
108 mappinFileName +=
"/LFHcal/mapping/towerMap_LFHCAL_asymmetric-long.txt";
110 mappinFileName +=
"/LFHcal/mapping/towerMap_LFHCAL_asymmetric.txt";
117 mappinFileName +=
"/LFHcal/mapping/towerMap_LFHCAL_default-long.txt";
119 mappinFileName +=
"/LFHcal/mapping/towerMap_LFHCAL_default.txt";
122 return mappinFileName;
136 cout <<
"use only G4LFHCAL::SETTING::FullEtaAcc=true or G4LFHCAL::SETTING::HC2x=true or G4LFHCAL::SETTING::HC4x=true" << endl;
155 cout <<
"LFHCAL: "<< mapping_fhcal.Data() << endl;
156 ostringstream mapping_fhcal_s;
157 mapping_fhcal_s << mapping_fhcal.Data();
183 ostringstream mapping_fhcal_s;
184 mapping_fhcal_s << mapping_fhcal.Data();
193 cout <<
"def: using default for LFHCAL towers" << endl;
202 TowerCalibration->
Detector(
"LFHCAL");