7 #include <calobase/RawCluster.h>
8 #include <calobase/RawTowerDefs.h>
26 float xA = clus->
get_x();
27 float yA = clus->
get_y();
28 float zA = clus->
get_z();
36 float logE = log(0.1);
42 float rA = std::sqrt(xA * xA + yA * yA);
45 if (std::fabs(zA) <= 15)
51 theta_twr = std::atan2(zA - 15, rA);
55 theta_twr = std::atan2(zA + 15, rA);
60 float theta_tr = std::atan2(zA - vz, rA);
61 float L = -1.3 + 0.7 * logE;
62 float dz = L * std::sin(theta_tr - theta_twr) / std::cos(theta_twr);
88 std::vector<EmcModule> HitList;
89 HitList.erase(HitList.begin(), HitList.end());
95 for (toweriter = towers.first; toweriter != towers.second; ++toweriter)
111 vhit.
amp = toweriter->second;
115 HitList.push_back(vhit);
137 const char* calibroot = getenv(
"CALIBRATIONROOT");
139 if (calibroot ==
nullptr)
141 std::cout <<
PHWHERE <<
"CALIBRATIONROOT env var not set" << std::endl;
145 fname_emc_prof +=
"/EmcProfile/CEMCprof_Thresh30MeV.root";
147 std::cout <<
"CaloRecoUtility:::loading emc_prof from " << fname_emc_prof << std::endl;
164 float fProbNoiseParam = 0.04;
176 if (cru.
_bemc ==
nullptr)
188 float fProbNoiseParam = 0.04;
200 if (cru.
_bemc ==
nullptr)
212 float fProbNoiseParam = 0.04;