8#include "Identifier/Identifier.h"
20CaloNoise2Ntuple::~CaloNoise2Ntuple() =
default;
52 ATH_MSG_INFO (
" end of CaloNoise2Ntuple::initialize " );
53 return StatusCode::SUCCESS;
62 if (
evtStore()->retrieve(eventInfo).isFailure()) {
64 return StatusCode::SUCCESS;
69 return StatusCode::SUCCESS;
77 const EventContext& ctx = Gaudi::Hive::currentContext();
85 int ncell=
m_calo_id->calo_cell_hash_max();
86 ATH_MSG_INFO (
" start loop over Calo cells " << ncell );
87 for (
int i=0;i<ncell;i++) {
119 int ii = (
int) (idSubHash);
124 m_OffId = (
int)(
id.get_identifier32().get_compact());
131 if (subCalo<3) ngain=3;
134 for (
int igain=0;igain<ngain;igain++) {
150 m_noise = totalNoise->getNoise(
id,gain);
160 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:
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
Gaudi::Property< std::string > m_treeName
SG::ReadCondHandleKey< CaloDetDescrManager > m_caloMgrKey
SG::ReadCondHandleKey< CaloNoise > m_totalNoiseKey
virtual StatusCode stop() 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.