22 #include "GaudiKernel/StatusCode.h"
23 #include "GaudiKernel/MsgStream.h"
69 the_aeta = std::abs (adj_eta);
71 the_aeta = std::abs (eta);
93 <<
" cluster->eta() ::::: " << the_aeta <<
endmsg);
101 if (the_aeta < etamax_TR00 && the_aeta > etamin_TR00 ) {
103 <<
"Applying correction for eta = 0 (loose) " <<
endmsg);
107 corr = ( tr00[0] - tr00[1] /
108 (
exp( tr00[2] - the_aeta ) +
109 exp( tr00[3]*( the_aeta - tr00[4]))+tr00[5]));
117 else if ( the_aeta < etamin_TR00 ) {
120 <<
"Applying correction for eta = 0 (tight) " <<
endmsg);
127 if ( the_aeta < etamax_TR08 && the_aeta > etamin_TR08 ) {
129 <<
"Applying correction for eta =0.8 " <<
endmsg);
133 corr = (tr08[0] - tr08[1] / (
exp( tr08[2] - the_aeta ) +
134 exp( tr08[3] *( the_aeta - tr08[4] )) +
144 ATH_MSG_DEBUG(
"CaloSwTransitionRegionsCorr::Energy before correction --> "
145 << cluster->e() <<
" Correction --> " << corr <<
endmsg);
163 for (
int sampling=1; sampling<=3; sampling++){
164 for (
int si=0; si<2; ++si) {
165 if (cluster->hasSampling (samps[si][sampling]))
166 cluster->setEnergy (samps[si][sampling],
167 cluster->eSample(samps[si][sampling]) / corr );
173 cluster->setE ( cluster->e() / corr );
175 ATH_MSG_DEBUG(
"CaloSwTransitionRegionsCorr::Energy after correction --> "
176 << cluster->e() <<
endmsg);