8#include "Identifier/Identifier.h"
13#include "CoolKernel/types.h"
14#include "CoolKernel/Record.h"
15#include "CoralBase/AttributeListSpecification.h"
43 ATH_MSG_DEBUG (
"CaloCellEnergyCorr2Ntuple destructor called" );
46StatusCode CaloCellEnergyCorr2Ntuple::initialize()
60 m_tree =
new TTree(
"mytree",
"Calo Noise ntuple");
70 ATH_MSG_INFO (
" end of CaloCellEnergyCorr2Ntuple::initialize " );
71 return StatusCode::SUCCESS;
80 if (
evtStore()->retrieve(eventInfo).isFailure()) {
82 return StatusCode::SUCCESS;
87 return StatusCode::SUCCESS;
91StatusCode CaloCellEnergyCorr2Ntuple::stop()
95 const coral::Blob& blob=(*m_AttrListColl)[
"CaloCondBlob16M"].data<coral::Blob>();
98 int nobj=flt->getNObjs();
99 int nchan=flt->getNChans();
100 ATH_MSG_INFO (
"NObjs: "<<nobj<<
" nChans: "<<nchan<<
" nGains: "<<flt->getNGains() );
104 const CaloDetDescrManager* calodetdescrmgr = *caloMgrHandle;
107 ATH_MSG_INFO (
" start loop over Calo cells " << ncell );
109 IdentifierHash idHash=
i;
110 Identifier
id=
m_calo_id->cell_id(idHash);
111 const CaloDetDescrElement* calodde = calodetdescrmgr->
get_element(
id);
114 m_OffId = (
int)(
id.get_identifier32().get_compact());
123 }
else if(
m_calo_id->is_em_endcap_outer(
id)) {
134 if(
m_Hash >= nchan)
break;
142 return StatusCode::SUCCESS;
147 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:
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
ServiceHandle< StoreGateSvc > & evtStore()
const ServiceHandle< StoreGateSvc > & detStore() const
SG::ReadCondHandleKey< CaloDetDescrManager > m_caloMgrKey
virtual StatusCode finalize() override
standard Athena-Algorithm method
~CaloCellEnergyCorr2Ntuple() ATLAS_CTORDTOR_NOT_THREAD_SAFE
Default Destructor.
const CaloCell_ID * m_calo_id
CaloCellEnergyCorr2Ntuple(const std::string &name, ISvcLocator *pSvcLocator) ATLAS_CTORDTOR_NOT_THREAD_SAFE
Standard Athena-Algorithm Constructor.
const DataHandle< AthenaAttributeList > m_AttrListColl
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.
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 initializes the Calo (LAr and Tile) offline identifiers.
StatusCode initialize(bool used=true)
uint32_t lumiBlock() const
The current event's luminosity block number.
uint32_t runNumber() const
The current event's run number.
EventInfo_v1 EventInfo
Definition of the latest event info version.