ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
MuonSpectrometer
MuonConditions
MuonCondGeneral
MuonCondData
MuonCondData
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
11
#include "
MuonStationIndex/MuonStationIndex.h
"
//enum
12
#include "
AthenaKernel/CondCont.h
"
13
#include "
AthenaBaseComps/AthMessaging.h
"
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
25
namespace
Muon
{
26
class
IMuonIdHelperSvc
;
27
}
28
29
33
class
NswCalibDbThresholdData
:
public
AthMessaging
{
34
35
36
37
public
:
38
using
ThrsldTechType
=
MuonCond::CalibTechType
;
39
40
NswCalibDbThresholdData
(
const
Muon::IMuonIdHelperSvc
* idHelperSvc);
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
52
private
:
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)>;
58
ChannelMap
m_data
{};
59
ZeroMap
m_zero
{};
60
61
// ID helpers
62
const
Muon::IMuonIdHelperSvc
*
m_idHelperSvc
{};
63
};
64
65
CLASS_DEF
(
NswCalibDbThresholdData
, 108292495 , 1 );
66
CONDCONT_DEF
(
NswCalibDbThresholdData
, 169109811 );
67
68
#endif
AthMessaging.h
CondCont.h
Hold mappings of ranges to condition objects.
CONDCONT_DEF
#define CONDCONT_DEF(...)
Definition
CondCont.h:1413
CLASS_DEF
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
Definition
Control/AthenaKernel/AthenaKernel/CLASS_DEF.h:67
Defs.h
MuonStationIndex.h
AthMessaging::AthMessaging
AthMessaging(IMessageSvc *msgSvc, const std::string &name)
Constructor.
Definition
AthMessaging.cxx:13
Muon::IMuonIdHelperSvc
Interface for Helper service that creates muon Identifiers and can be used to print Identifiers.
Definition
IMuonIdHelperSvc.h:27
NswCalibDbThresholdData
Conditions data to model a channel dependent energy deposit threshold such that the electronics retur...
Definition
NswCalibDbThresholdData.h:33
NswCalibDbThresholdData::m_idHelperSvc
const Muon::IMuonIdHelperSvc * m_idHelperSvc
Definition
NswCalibDbThresholdData.h:62
NswCalibDbThresholdData::ThrsldTechType
MuonCond::CalibTechType ThrsldTechType
Definition
NswCalibDbThresholdData.h:38
NswCalibDbThresholdData::m_zero
ZeroMap m_zero
Definition
NswCalibDbThresholdData.h:59
NswCalibDbThresholdData::setData
void setData(const Identifier &channelId, const float)
Definition
NswCalibDbThresholdData.cxx:23
NswCalibDbThresholdData::setZero
void setZero(const ThrsldTechType tech, const float)
Definition
NswCalibDbThresholdData.cxx:33
NswCalibDbThresholdData::getChannelIds
std::vector< Identifier > getChannelIds(std::string_view={}, std::string_view={}) const
Definition
NswCalibDbThresholdData.cxx:42
NswCalibDbThresholdData::ChannelMap
std::unordered_map< Identifier, float > ChannelMap
Definition
NswCalibDbThresholdData.h:55
NswCalibDbThresholdData::NswCalibDbThresholdData
NswCalibDbThresholdData(const Muon::IMuonIdHelperSvc *idHelperSvc)
Definition
NswCalibDbThresholdData.cxx:15
NswCalibDbThresholdData::~NswCalibDbThresholdData
virtual ~NswCalibDbThresholdData()=default
NswCalibDbThresholdData::ZeroMap
std::array< std::optional< float >, Muon::MuonStationIndex::toInt(ThrsldTechType::nTypes)> ZeroMap
Definition
NswCalibDbThresholdData.h:56
NswCalibDbThresholdData::getThreshold
std::optional< float > getThreshold(const Identifier &channelId) const
Definition
NswCalibDbThresholdData.cxx:64
NswCalibDbThresholdData::m_data
ChannelMap m_data
Definition
NswCalibDbThresholdData.h:58
Identifier
Definition
IdentifierFieldParser.cxx:14
MuonCond::CalibTechType
CalibTechType
Definition
MuonSpectrometer/MuonConditions/MuonCondGeneral/MuonCondData/MuonCondData/Defs.h:37
Muon::MuonStationIndex::toInt
constexpr int toInt(const EnumType enumVal)
Definition
MuonStationIndex.h:62
Muon
NRpcCablingAlg reads raw condition data and writes derived condition data to the condition store.
Definition
TrackSystemController.h:46
Generated on
for ATLAS Offline Software by
1.17.0