ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
MuonSpectrometer
MuonConditions
MuonCondGeneral
MuonCondAlg
src
TgcDigitEnergyThreshCondAlg.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#ifndef TGCDIGITENERGYTHRESHOLDALG_H
6
#define TGCDIGITENERGYTHRESHOLDALG_H
7
8
9
#include <nlohmann/json.hpp>
10
11
#include "
AthenaBaseComps/AthCondAlgorithm.h
"
12
#include "
AthenaPoolUtilities/CondAttrListCollection.h
"
13
#include "
MuonCondData/TgcDigitThresholdData.h
"
14
#include "
MuonIdHelpers/IMuonIdHelperSvc.h
"
15
#include "
StoreGate/ReadCondHandleKey.h
"
16
#include "
StoreGate/WriteCondHandleKey.h
"
17
18
namespace
Muon
{
19
class
TgcDigitEnergyThreshCondAlg
:
public
AthCondAlgorithm
20
{
21
public
:
22
using
AthCondAlgorithm::AthCondAlgorithm;
23
virtual
~TgcDigitEnergyThreshCondAlg
() =
default
;
24
virtual
StatusCode
initialize
()
override
;
25
virtual
StatusCode
execute
(
const
EventContext& ctx)
const override
;
26
private
:
28
StatusCode
parseDataFromJSON
(
const
nlohmann::json& lines,
29
TgcDigitThresholdData
& deadChannels)
const
;
30
32
Gaudi::Property<std::string>
m_readFromJSON
{
this
,
"readFromJSON"
,
""
};
33
34
ServiceHandle<Muon::IMuonIdHelperSvc>
m_idHelperSvc
{
this
,
"MuonIdHelperSvc"
,
"Muon::MuonIdHelperSvc/MuonIdHelperSvc"
};
35
SG::ReadCondHandleKey<CondAttrListCollection>
m_readKeyDb
{
this
,
"ReadKey"
,
""
,
"SG key for Tgc energy thresholds"
};
36
SG::WriteCondHandleKey<TgcDigitThresholdData>
m_writeKey
{
this
,
"WriteKey"
,
"TgcEnergyThresholds"
,
"SG Key of TGCDigit AsdPos"
};
37
};
38
}
39
#endif
40
41
AthCondAlgorithm.h
Base class for conditions algorithms.
CondAttrListCollection.h
This file defines the class for a collection of AttributeLists where each one is associated with a ch...
IMuonIdHelperSvc.h
ReadCondHandleKey.h
TgcDigitThresholdData.h
WriteCondHandleKey.h
AthCondAlgorithm
Base class for conditions algorithms.
Definition
AthCondAlgorithm.h:22
Muon::TgcDigitEnergyThreshCondAlg
Definition
TgcDigitEnergyThreshCondAlg.h:20
Muon::TgcDigitEnergyThreshCondAlg::initialize
virtual StatusCode initialize() override
Definition
TgcDigitEnergyThreshCondAlg.cxx:13
Muon::TgcDigitEnergyThreshCondAlg::m_readFromJSON
Gaudi::Property< std::string > m_readFromJSON
Use an external file to load the Jitter constants from.
Definition
TgcDigitEnergyThreshCondAlg.h:32
Muon::TgcDigitEnergyThreshCondAlg::~TgcDigitEnergyThreshCondAlg
virtual ~TgcDigitEnergyThreshCondAlg()=default
Muon::TgcDigitEnergyThreshCondAlg::m_writeKey
SG::WriteCondHandleKey< TgcDigitThresholdData > m_writeKey
Definition
TgcDigitEnergyThreshCondAlg.h:36
Muon::TgcDigitEnergyThreshCondAlg::execute
virtual StatusCode execute(const EventContext &ctx) const override
Definition
TgcDigitEnergyThreshCondAlg.cxx:30
Muon::TgcDigitEnergyThreshCondAlg::m_idHelperSvc
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
Definition
TgcDigitEnergyThreshCondAlg.h:34
Muon::TgcDigitEnergyThreshCondAlg::m_readKeyDb
SG::ReadCondHandleKey< CondAttrListCollection > m_readKeyDb
Definition
TgcDigitEnergyThreshCondAlg.h:35
Muon::TgcDigitEnergyThreshCondAlg::parseDataFromJSON
StatusCode parseDataFromJSON(const nlohmann::json &lines, TgcDigitThresholdData &deadChannels) const
Load the threshold constants from the JSON blob.
Definition
TgcDigitEnergyThreshCondAlg.cxx:70
SG::ReadCondHandleKey
Definition
ReadCondHandleKey.h:21
SG::WriteCondHandleKey
Definition
WriteCondHandleKey.h:22
ServiceHandle
Definition
ClusterMakerTool.h:36
TgcDigitThresholdData
Conditions object to cache.
Definition
TgcDigitThresholdData.h:19
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