8#include "Identifier/Identifier.h"
13#include "CoolKernel/types.h"
14#include "CoolKernel/Record.h"
15#include "CoralBase/AttributeListSpecification.h"
52 m_tree =
new TTree(
"mytree",
"Calo Noise ntuple");
62 ATH_MSG_INFO (
" end of CaloCellEnergyCorr2Ntuple::initialize " );
63 return StatusCode::SUCCESS;
71 return StatusCode::SUCCESS;
78 const coral::Blob& blob=(**attrListColl)[
"CaloCondBlob16M"].data<coral::Blob>();
81 int nobj=flt->getNObjs();
82 int nchan=flt->getNChans();
83 ATH_MSG_INFO (
"NObjs: "<<nobj<<
" nChans: "<<nchan<<
" nGains: "<<flt->getNGains() );
89 int ncell=
m_calo_id->calo_cell_hash_max();
90 ATH_MSG_INFO (
" start loop over Calo cells " << ncell );
91 for (
int i=0;i<ncell;i++) {
97 m_OffId = (int)(
id.get_identifier32().get_compact());
106 }
else if(
m_calo_id->is_em_endcap_outer(
id)) {
117 if(
m_Hash >= nchan)
break;
125 return StatusCode::SUCCESS;
#define ATH_CHECK
Evaluate an expression and check for errors.
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
const ServiceHandle< StoreGateSvc > & detStore() const
CaloCellEnergyCorr2Ntuple(const std::string &name, ISvcLocator *pSvcLocator)
Standard Athena-Algorithm Constructor.
SG::ReadCondHandleKey< AthenaAttributeList > m_attrListCollKey
virtual StatusCode stop() override
standard Athena-Algorithm method
~CaloCellEnergyCorr2Ntuple()
Default Destructor.
SG::ReadCondHandleKey< CaloDetDescrManager > m_caloMgrKey
const CaloCell_ID * m_calo_id
virtual StatusCode initialize() override
standard Athena-Algorithm method
virtual StatusCode execute() override
standard Athena-Algorithm method
ServiceHandle< ITHistSvc > m_thistSvc
static CaloCondBlobFlt * getInstance(coral::Blob &blob)
Returns a pointer to a non-const CaloCondBlobFlt.
This class groups all DetDescr information related to a CaloCell.
float eta_raw() const
cell eta_raw
float phi_raw() const
cell phi_raw
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...
This class initializes the Calo (LAr and Tile) offline identifiers.
This is a "hash" representation of an Identifier.