10#include "CaloDetDescr/CaloDetDescrElement.h"
13#include "CaloGeoHelpers/CaloSampling.h"
36 ATH_MSG_INFO (
" end of CaloFillCellPositionShift::initialize " );
37 return StatusCode::SUCCESS;
44 return StatusCode::SUCCESS;
54 int ncell=fcalmax-emmin;
55 ATH_MSG_INFO (
" Number of cells in LAr calo " << emmin <<
" " << fcalmax <<
" " << ncell );
65 ATH_MSG_INFO (
" start loop over Calo cells " << ncell );
66 for (
int i=0;i<ncell;i++) {
72 float phi = calodde->
phi();
78 if (layer==CaloSampling::EMB2) {
79 dy = -1.*std::cos(
phi)*std::cos(
phi);
80 dx = 1.*std::cos(
phi)*std::sin(
phi);
90 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:
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
~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
Gaudi::Property< std::string > m_key
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.