|
ATLAS Offline Software
|
Go to the documentation of this file.
34 #include "CLHEP/Units/PhysicalConstants.h"
38 #include "GaudiKernel/MsgStream.h"
39 #include "GaudiKernel/StatusCode.h"
53 const double deta = 0.2;
54 const double dphi =
twopi / 64. ;
67 return StatusCode::SUCCESS;
105 the_aeta = std::abs (adj_eta);
107 the_aeta = std::abs (eta);
123 for ( ; f_cell!=l_cell; ++f_cell)
128 double phic =
cell->phi();
129 double etac =
cell->eta();
130 if (phic-phi < -
pi) phic = phic +
twopi;
131 if (phic-phi >
pi) phic = phic -
twopi;
132 if (etac >= eta-deta && etac <= eta+deta) {
133 if (phic >= phi-dphi && phic <= phi+dphi) {
134 eh_scint +=
cell->e();
150 float ec = cluster->
e();
164 (
const std::string&
name)
166 return this->setProperty (StringProperty (
"cells_name",
name));
EM calorimeter gap corrections.
Constant< bool > m_use_raw_eta
Calibration constant: If true, tabulated values are in terms of raw (local) eta.
Const iterator class for DataVector/DataList.
Scalar phi() const
phi method
Scalar eta() const
pseudorapidity method
const EventContext & ctx() const
This class groups all DetDescr information related to a CaloCell. Provides a generic interface for al...
virtual void setenergy(xAOD::CaloCluster *cluster, float energy) const
Constant< int > m_degree
Calibration constant: The interpolation degree.
CaloCluster_v1 CaloCluster
Define the latest version of the calorimeter cluster class.
virtual StatusCode initialize() override
Initialize method.
Constant< float > m_etamax_crack
SG::ReadHandleKey< CaloCellContainer > m_cells_name
Property: The name of the container in which to look to find tile cells.
::StatusCode StatusCode
StatusCode definition for legacy code.
virtual StatusCode initialize() override
Standard Gaudi initialize method.
Principal data class for CaloCell clusters.
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.
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
virtual StatusCode setCaloCellContainerName(const std::string &name) override
Change the name of the CaloCellContainer used by this tool.
virtual void setE(double e)
Set energy.
Data object for each calorimeter readout cell.
float interpolate(const CaloRec::Array< 2 > &a, float x, unsigned int degree, unsigned int ycol=1, const CaloRec::Array< 1 > ®ions=CaloRec::Array< 1 >(), int n_points=-1, bool fixZero=false)
Polynomial interpolation in a table.
virtual double e() const
Retrieve energy independent of signal state.
Context object for retrieving ToolConstant values.
Constant< CxxUtils::Array< 2 > > m_correction
Calibration constant: The tabulated array of correction weights, A and alpha.
Polynomial interpolation in a table.
Constant< float > m_etamin_crack
Calibration constants: The range over which this correction is defined.