18 return StatusCode::SUCCESS;
28 return StatusCode::FAILURE;
31 ATH_MSG_INFO(
"Loaded successfully the dead channel data");
33 std::unordered_set<Identifier> uniqueThreshData{};
38 for (
int gasGap = idHelper.
gasGapMin(chambId); gasGap <= idHelper.
gasGapMax(chambId); ++gasGap) {
39 for (
bool isStrip : {
false,
true}) {
41 const double threshold = readHandle->getThreshold(gasGapId);
47 1, gasGap, isStrip,1)).second)
continue;
52 return StatusCode::SUCCESS;
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_ALWAYS(x)
#define ATH_MSG_WARNING(x)
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
std::vector< Identifier >::const_iterator const_id_iterator
int stationEta(const Identifier &id) const
const_id_iterator module_end() const
const_id_iterator module_begin() const
Iterators over full set of ids.
int stationName(const Identifier &id) const
SG::ReadCondHandleKey< TgcDigitThresholdData > m_readKey
TgcDigtThresholdTestAlg(const std::string &name, ISvcLocator *pSvcLocator)
virtual ~TgcDigtThresholdTestAlg()
virtual StatusCode execute() override
virtual StatusCode initialize() override
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
static int gasGapMax(bool triplet)
Identifier channelID(int stationName, int stationEta, int stationPhi, int gasGap, int isStrip, int channel) const