6#include "CaloDetDescr/CaloDetDescrElement.h"
8#include "Identifier/Identifier.h"
37 m_tree =
new TTree(
"mytree",
"Calo Noise ntuple");
50 ATH_MSG_INFO (
" end of CaloCellPosition2Ntuple::initialize " );
51 return StatusCode::SUCCESS;
59 return StatusCode::SUCCESS;
68 int ncell=fcalmax-emmin;
78 int nread = (int)(cellPos->size());
81 ATH_MSG_WARNING (
" CaloCellPosition size different from max lar hash " << cellPos->size() <<
" " << ncell );
82 return StatusCode::SUCCESS;
84 ATH_MSG_INFO (
" start loop over Calo cells " << ncell );
85 for (
int i=0;i<ncell;i++) {
91 m_OffId = (int)(
id.get_identifier32().get_compact());
97 m_dx = cellPos->deltaX(i);
98 m_dy = cellPos->deltaY(i);
99 m_dz = cellPos->deltaZ(i);
106 return StatusCode::SUCCESS;
111 return StatusCode::SUCCESS;
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_WARNING(x)
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
const ServiceHandle< StoreGateSvc > & detStore() const
CaloCellPosition2Ntuple(const std::string &name, ISvcLocator *pSvcLocator)
Standard Athena-Algorithm Constructor.
virtual StatusCode finalize() override
standard Athena-Algorithm method
ServiceHandle< ITHistSvc > m_thistSvc
SG::ReadCondHandleKey< CaloDetDescrManager > m_caloMgrKey
virtual StatusCode execute() override
standard Athena-Algorithm method
virtual StatusCode initialize() override
standard Athena-Algorithm method
virtual StatusCode stop() override
standard Athena-Algorithm method
SG::ReadCondHandleKey< CaloRec::CaloCellPositionShift > m_cellPosKey
const CaloCell_ID * m_calo_id
This class groups all DetDescr information related to a CaloCell.
float eta() const
cell eta
float phi() const
cell phi
float volume() const
cell volume
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...
Container for a cell-level rescaling-factors, typically obtained by Z->ee intercalibration.
This is a "hash" representation of an Identifier.