8#include "Identifier/Identifier.h"
23 if (!insert_itr.second) {
25 <<
" already set to "<<insert_itr.first->second<<
". Cannot apply "<<
threshold);
38std::vector<Identifier>
40 std::vector<Identifier> keys;
41 keys.reserve(
m_data.size());
42 for (
const auto& p :
m_data) {
43 keys.emplace_back(p.first);
46 if(tech.empty() && side.empty()) {
49 std::vector<Identifier> chnls;
50 std::ranges::copy_if(keys, std::back_inserter(chnls), [&](
const Identifier& copyMe){
52 if (!side.empty() && ((
eta < 0 && side ==
"A") || (
eta > 0 && side ==
"C"))){
62 ChannelMap::const_iterator chan_itr =
m_data.find(chnlId);
64 if(chan_itr !=
m_data.end()) {
65 return chan_itr->second;
Scalar eta() const
pseudorapidity method
#define ATH_MSG_WARNING(x)
AthMessaging(IMessageSvc *msgSvc, const std::string &name)
Constructor.
Interface for Helper service that creates muon Identifiers and can be used to print Identifiers.
const Muon::IMuonIdHelperSvc * m_idHelperSvc
MuonCond::CalibTechType ThrsldTechType
void setData(const Identifier &channelId, const float)
void setZero(const ThrsldTechType tech, const float)
std::vector< Identifier > getChannelIds(const std::string="", const std::string="") const
NswCalibDbThresholdData(const Muon::IMuonIdHelperSvc *idHelperSvc)
std::optional< float > getThreshold(const Identifier &channelId) const
constexpr int toInt(const EnumType enumVal)
const std::string & technologyName(TechnologyIndex index)
convert LayerIndex into a string