19#include "CaloEvent/CaloClusterBadChannelData.h"
23 const std::string& name,
24 const IInterface* parent)
28 declareProperty(
"badChannelTool",
m_badChannelTool,
"Tool handle for bad channel");
49 for( ;cellIter!=cellIterEnd;cellIter++) {
53 bool isBad = cell->badcell();
54 if (status.dead() || status.noisy() || isBad ) {
55 const float eta = cell->eta();
56 const float phi = cell->phi();
60 if (isBad && !status.dead()) {
64 <<
eta <<
" " <<
phi <<
" " << layer <<
" " << myword);
65 badChanList.emplace_back(
eta,
phi, layer, myword);
68 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
Initialize method.
ToolHandle< ICaloBadChanTool > m_badChannelTool
virtual StatusCode initialize() override
Initialize method.
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.
const EventContext & ctx() const