19#include "CaloEvent/CaloClusterBadChannelData.h"
23 const std::string& name,
24 const IInterface* parent)
47 for( ;cellIter!=cellIterEnd;cellIter++) {
51 bool isBad = cell->badcell();
52 if (status.dead() || status.noisy() || isBad ) {
53 const float eta = cell->eta();
54 const float phi = cell->phi();
58 if (isBad && !status.dead()) {
62 <<
eta <<
" " <<
phi <<
" " << layer <<
" " << myword);
63 badChanList.emplace_back(
eta,
phi, layer, myword);
66 cluster->setBadChannelList(badChanList);
Scalar eta() const
pseudorapidity method
Scalar phi() const
phi method
Helpers for checking error return status codes and reporting errors.
#define CHECK(...)
Evaluate an expression and check for errors.
static void setBit(ProblemType pb, BitWord &word, bool value=true)
Sets the bit corresponding to "pb" inside the word passed as second argument to "value".
Data object for each calorimeter readout cell.
CaloClusterBadChannelList(const std::string &type, const std::string &name, const IInterface *parent)
virtual void makeCorrection(const Context &myctx, xAOD::CaloCluster *cluster) const override
virtual StatusCode initialize() override
ToolHandle< ICaloBadChanTool > m_badChannelTool
virtual StatusCode initialize() override
Principal data class for CaloCell clusters.
cell_iterator cell_end() const
Retrieve a STL-type end() iterator for the cell store.
cell_iterator cell_begin() const
Retrieve a STL-type begin() iterator for the cell store.
Helper class to provide type-safe access to aux data.
CaloClusterCellLink::iterator cell_iterator
Iterator of the underlying CaloClusterCellLink (non-const version).
std::vector< CaloClusterBadChannelData > CaloClusterBadChannelList
CaloCluster_v1 CaloCluster
Define the latest version of the calorimeter cluster class.