8#include "Identifier/Identifier.h"
70 ATH_MSG_INFO (
" end of CaloNoise2Ntuple::initialize " );
71 return StatusCode::SUCCESS;
80 if (
evtStore()->retrieve(eventInfo).isFailure()) {
82 return StatusCode::SUCCESS;
87 return StatusCode::SUCCESS;
95 const EventContext& ctx = Gaudi::Hive::currentContext();
103 int ncell=
m_calo_id->calo_cell_hash_max();
104 ATH_MSG_INFO (
" start loop over Calo cells " << ncell );
105 for (
int i=0;i<ncell;i++) {
137 int ii = (
int) (idSubHash);
142 m_OffId = (
int)(
id.get_identifier32().get_compact());
149 if (subCalo<3) ngain=3;
152 for (
int igain=0;igain<ngain;igain++) {
168 m_noise = totalNoise->getNoise(
id,gain);
178 return StatusCode::SUCCESS;
183 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
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.
SG::ReadCondHandleKey< CaloNoise > m_pileupNoiseKey
virtual StatusCode execute() override
standard Athena-Algorithm method
const CaloCell_ID * m_calo_id
SG::ReadCondHandleKey< CaloDetDescrManager > m_caloMgrKey
SG::ReadCondHandleKey< CaloNoise > m_totalNoiseKey
virtual ~CaloNoise2Ntuple()
Default Destructor.
virtual StatusCode stop() override
standard Athena-Algorithm method
virtual StatusCode finalize() override
standard Athena-Algorithm method
ServiceHandle< ITHistSvc > m_thistSvc
virtual StatusCode initialize() override
standard Athena-Algorithm method
SG::ReadCondHandleKey< CaloNoise > m_elecNoiseKey
CaloNoise2Ntuple(const std::string &name, ISvcLocator *pSvcLocator)
Standard Athena-Algorithm Constructor.
This is a "hash" representation of an Identifier.
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.