1 #ifndef MACRO_G4CEMCSPACAL_C
2 #define MACRO_G4CEMCSPACAL_C
21 #include <caloreco/RawClusterBuilderGraph.h>
22 #include <caloreco/RawClusterBuilderTemplate.h>
23 #include <caloreco/RawClusterPositionCorrection.h>
24 #include <caloreco/RawTowerCalibration.h>
25 #include <qa_modules/QAG4SimulationCalorimeter.h>
32 R__LOAD_LIBRARY(libcalo_reco.so)
33 R__LOAD_LIBRARY(libg4calo.so)
34 R__LOAD_LIBRARY(libg4detectors.so)
35 R__LOAD_LIBRARY(libg4eval.so)
36 R__LOAD_LIBRARY(libqa_modules.so)
103 double emc_inner_radius = 92;
107 double emc_outer_radius = emc_inner_radius + cemcthickness;
108 assert(emc_outer_radius < 116);
110 if (radius > emc_inner_radius)
112 cout <<
"inconsistency: preshower radius+thickness: " << radius
113 <<
" larger than emc inner radius: " << emc_inner_radius << endl;
118 radius = emc_inner_radius;
162 cemc->
SetCalibrationFileDir(
string(getenv(
"CALIBRATIONROOT")) +
string(
"/CEMC/Geometry_2023ProjTilted/"));
176 cout <<
"layer discrepancy, current layer " << ilayer
180 radius += cemcthickness;
200 const double radius = 95;
201 cemc_cells->
cellsize(
i, 2 * M_PI / 256. * radius, 2 * M_PI / 256. * radius);
212 string(getenv(
"CALIBRATIONROOT")) +
string(
"/CEMC/LightCollection/Prototype3Module.xml"),
213 "data_grid_light_guide_efficiency",
"data_grid_fiber_trans");
218 cout <<
"G4_CEmc_Spacal.C::CEmc - Fatal Error - unrecognized SPACAL configuration #"
240 double sampling_fraction = 1;
244 sampling_fraction = 2
e-02;
245 const double photoelectron_per_GeV = 500;
266 string(getenv(
"CALIBRATIONROOT")) +
string(
"/CEMC/TowerCalibCombinedParams_2020/"));
289 string(getenv(
"CALIBRATIONROOT")) +
string(
"/CEMC/TowerCalibCombinedParams_2020/"));
314 emc_prof +=
"/EmcProfile/CEMCprof_Thresh30MeV.root";
329 cout <<
"CEMC_Clusters - unknown clusterizer setting!" << endl;