![Logo](../../ATLAS-Logo-Square-Blue-RGB.png) |
ATLAS Offline Software
|
Go to the documentation of this file.
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) {
167 cluster->
eSample(samps[si][sampling]) / corr );
173 cluster->
setE ( cluster->
e() / corr );
175 ATH_MSG_DEBUG(
"CaloSwTransitionRegionsCorr::Energy after correction --> "
Scalar eta() const
pseudorapidity method
Constant< float > m_etamin_TR00
Calibration constants: The range over which this correction is defined.
This class groups all DetDescr information related to a CaloCell. Provides a generic interface for al...
Constant< float > m_etamax_TR00
Constant< float > m_etamin_TR08
bool setEnergy(const CaloSample sampling, const float e)
Set energy for a given sampling. Returns false if the sample isn't part of the cluster.
Description of a calorimeter cluster.
virtual void makeTheCorrection(const Context &myctx, xAOD::CaloCluster *cluster, const CaloDetDescrElement *elt, float eta, float adj_eta, float phi, float adj_phi, CaloSampling::CaloSample samp) const override
Virtual function for the correction-specific code.
Constant< bool > m_use_raw_eta
Calibration constant: If true, tabulated values are in terms of raw (local) eta.
float eSample(const CaloSample sampling) const
Context object for retrieving ToolConstant values.
Constant< CxxUtils::Array< 2 > > m_correction
Calibration constant: The tabulated array of correction parameters.
bool hasSampling(const CaloSample s) const
Checks if certain smapling contributes to cluster.
virtual double e() const
The total energy of the particle.
Constant< float > m_etamax_TR08