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// STL includes
9#include <vector>
10#include <unordered_map>
11
12// Athena includes
13#include "MuonCondData/Defs.h"
18
19
24
25
26
27public:
29
31 virtual ~NswCalibDbThresholdData() = default;
32
33 // setting functions
34 void setData(const Identifier& channelId, const float);
35 void setZero(const ThrsldTechType tech , const float);
36
37 // retrieval functions
38 std::vector<Identifier> getChannelIds(const std::string="", const std::string="") const;
39 std::optional<float> getThreshold (const Identifier& channelId) const;
40
41
42private:
43
44 // containers
45 using ChannelMap = std::unordered_map<Identifier, float>;
46 using ZeroMap = std::array<std::optional<float>,
47 Muon::MuonStationIndex::toInt(ThrsldTechType::nTypes)>;
50
51 // ID helpers
53};
54
57
58#endif
Hold mappings of ranges to condition objects.
#define CONDCONT_DEF(...)
Definition CondCont.h:1413
Provide an interface for finding inheritance information at run time.
#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(const std::string="", const std::string="") const
std::unordered_map< Identifier, float > ChannelMap
NswCalibDbThresholdData(const Muon::IMuonIdHelperSvc *idHelperSvc)
virtual ~NswCalibDbThresholdData()=default
std::optional< float > getThreshold(const Identifier &channelId) const
std::array< std::optional< float >, Muon::MuonStationIndex::toInt(ThrsldTechType::nTypes)> ZeroMap
constexpr int toInt(const EnumType enumVal)