ATLAS Offline Software
Loading...
Searching...
No Matches
NswCalibDbThresholdData.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef MUONCONDDATA_NSWCALIBDBTHRESHOLDDATA_H
6#define MUONCONDDATA_NSWCALIBDBTHRESHOLDDATA_H
7
8
9// Athena includes
10#include "MuonCondData/Defs.h" //CalibTechType
14#include "Identifier/Identifier.h"
15// STL includes
16#include <string>
17#include <string_view>
18#include <vector>
19#include <array>
20#include <optional>
21#include <unordered_map>
22
23
24
25namespace Muon{
26 class IMuonIdHelperSvc;
27}
28
29
34
35
36
37public:
39
41 virtual ~NswCalibDbThresholdData() = default;
42
43 // setting functions
44 void setData(const Identifier& channelId, const float);
45 void setZero(const ThrsldTechType tech , const float);
46
47 // retrieval functions
48 std::vector<Identifier> getChannelIds(std::string_view = {}, std::string_view = {}) const;
49 std::optional<float> getThreshold (const Identifier& channelId) const;
50
51
52private:
53
54 // containers
55 using ChannelMap = std::unordered_map<Identifier, float>;
56 using ZeroMap = std::array<std::optional<float>,
57 Muon::MuonStationIndex::toInt(ThrsldTechType::nTypes)>;
60
61 // ID helpers
63};
64
67
68#endif
Hold mappings of ranges to condition objects.
#define CONDCONT_DEF(...)
Definition CondCont.h:1413
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
AthMessaging(IMessageSvc *msgSvc, const std::string &name)
Constructor.
Interface for Helper service that creates muon Identifiers and can be used to print Identifiers.
Conditions data to model a channel dependent energy deposit threshold such that the electronics retur...
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(std::string_view={}, std::string_view={}) const
std::unordered_map< Identifier, float > ChannelMap
NswCalibDbThresholdData(const Muon::IMuonIdHelperSvc *idHelperSvc)
virtual ~NswCalibDbThresholdData()=default
std::array< std::optional< float >, Muon::MuonStationIndex::toInt(ThrsldTechType::nTypes)> ZeroMap
std::optional< float > getThreshold(const Identifier &channelId) const
constexpr int toInt(const EnumType enumVal)
NRpcCablingAlg reads raw condition data and writes derived condition data to the condition store.