12#include "CaloDetDescr/CaloDetDescrElement.h"
15#include "CaloGeoHelpers/CaloSampling.h"
28 ATH_MSG_DEBUG(
"CaloFillCellPositionShift destructor called" );
41 ATH_MSG_INFO (
" end of CaloFillCellPositionShift::initialize " );
42 return StatusCode::SUCCESS;
49 return StatusCode::SUCCESS;
59 int ncell=fcalmax-emmin;
60 ATH_MSG_INFO (
" Number of cells in LAr calo " << emmin <<
" " << fcalmax <<
" " << ncell );
70 ATH_MSG_INFO (
" start loop over Calo cells " << ncell );
71 for (
int i=0;i<ncell;i++) {
77 float phi = calodde->
phi();
83 if (layer==CaloSampling::EMB2) {
84 dy = -1.*std::cos(
phi)*std::cos(
phi);
85 dx = 1.*std::cos(
phi)*std::sin(
phi);
95 return StatusCode::SUCCESS;
100 return StatusCode::SUCCESS;
Scalar phi() const
phi method
#define ATH_CHECK
Evaluate an expression and check for errors.
Container for a cell-level position corrections to account for distorsion of calo shape in reconstruc...
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
const ServiceHandle< StoreGateSvc > & detStore() const
This class groups all DetDescr information related to a CaloCell.
float phi() const
cell phi
const CaloDetDescrElement * get_element(const Identifier &cellId) const
get element by its identifier
This class provides the client interface for accessing the detector description information common to...
const CaloCell_ID * m_calo_id
virtual StatusCode finalize() override
standard Athena-Algorithm method
~CaloFillCellPositionShift()
Default Destructor.
CaloFillCellPositionShift(const std::string &name, ISvcLocator *pSvcLocator)
Standard Athena-Algorithm Constructor.
CaloRec::CaloCellPositionShift * m_cellPos
SG::ReadCondHandleKey< CaloDetDescrManager > m_caloMgrKey
virtual StatusCode execute() override
standard Athena-Algorithm method
virtual StatusCode stop() override
standard Athena-Algorithm method
virtual StatusCode initialize() override
standard Athena-Algorithm method
This class initializes the Calo (LAr and Tile) offline identifiers.
Container for a cell-level rescaling-factors, typically obtained by Z->ee intercalibration.
This is a "hash" representation of an Identifier.