ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
MuonSpectrometer
MuonConditions
MuonCondGeneral
MuonCondAlg
src
NswUncertDbAlg.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 MUONCONDALG_NSWUNCERTDBALG_H
6
#define MUONCONDALG_NSWUNCERTDBALG_H
7
8
// Gaudi includes
9
#include <nlohmann/json.hpp>
10
11
// Athena includes
12
#include "
AthenaBaseComps/AthCondAlgorithm.h
"
13
#include "
StoreGate/CondHandleKeyArray.h
"
14
#include "
StoreGate/WriteCondHandleKey.h
"
15
#include "
MuonIdHelpers/IMuonIdHelperSvc.h
"
16
#include "
AthenaPoolUtilities/CondAttrListCollection.h
"
17
// Muon includes
18
#include "
MuonCondData/NswErrorCalibData.h
"
19
20
21
namespace
Muon
{
22
23
class
NswUncertDbAlg
:
public
AthCondAlgorithm
{
24
25
public
:
26
using
AthCondAlgorithm::AthCondAlgorithm;
27
virtual
~NswUncertDbAlg
() =
default
;
28
virtual
StatusCode
initialize
()
override
;
29
virtual
StatusCode
execute
(
const
EventContext&)
const override
;
30
31
32
private
:
33
35
StatusCode
parseDataFromJSON
(
const
nlohmann::json& lines,
36
NswErrorCalibData
& errorCalibData)
const
;
37
39
Gaudi::Property<std::string>
m_readFromJSON
{
this
,
"readFromJSON"
,
""
};
40
41
ServiceHandle<Muon::IMuonIdHelperSvc>
m_idHelperSvc
{
this
,
"MuonIdHelperSvc"
,
42
"Muon::MuonIdHelperSvc/MuonIdHelperSvc"
};
43
44
SG::WriteCondHandleKey<NswErrorCalibData>
m_writeKey
{
this
,
"WriteKey"
,
"NswUncertData"
,
45
"Key of the parametrized NSW uncertainties"
};
46
47
SG::ReadCondHandleKeyArray<CondAttrListCollection>
m_readKeysDb
{
this
,
"ReadKeys"
, {},
48
"Key to the parametrized NSW uncertainty COOL folder"
};
49
};
50
51
}
52
#endif
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...
CondHandleKeyArray.h
IMuonIdHelperSvc.h
NswErrorCalibData.h
WriteCondHandleKey.h
AthCondAlgorithm
Base class for conditions algorithms.
Definition
AthCondAlgorithm.h:22
Muon::NswUncertDbAlg
Definition
NswUncertDbAlg.h:23
Muon::NswUncertDbAlg::~NswUncertDbAlg
virtual ~NswUncertDbAlg()=default
Muon::NswUncertDbAlg::parseDataFromJSON
StatusCode parseDataFromJSON(const nlohmann::json &lines, NswErrorCalibData &errorCalibData) const
Load the Jitter constants from the JSON format.
Definition
NswUncertDbAlg.cxx:86
Muon::NswUncertDbAlg::m_idHelperSvc
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
Definition
NswUncertDbAlg.h:41
Muon::NswUncertDbAlg::m_readFromJSON
Gaudi::Property< std::string > m_readFromJSON
Use an external JSON file to load the Jitter constants from.
Definition
NswUncertDbAlg.h:39
Muon::NswUncertDbAlg::m_writeKey
SG::WriteCondHandleKey< NswErrorCalibData > m_writeKey
Definition
NswUncertDbAlg.h:44
Muon::NswUncertDbAlg::execute
virtual StatusCode execute(const EventContext &) const override
Definition
NswUncertDbAlg.cxx:35
Muon::NswUncertDbAlg::initialize
virtual StatusCode initialize() override
Definition
NswUncertDbAlg.cxx:16
Muon::NswUncertDbAlg::m_readKeysDb
SG::ReadCondHandleKeyArray< CondAttrListCollection > m_readKeysDb
Definition
NswUncertDbAlg.h:47
NswErrorCalibData
Definition
NswErrorCalibData.h:19
SG::WriteCondHandleKey
Definition
WriteCondHandleKey.h:22
ServiceHandle
Definition
ClusterMakerTool.h:36
Muon
NRpcCablingAlg reads raw condition data and writes derived condition data to the condition store.
Definition
TrackSystemController.h:46
SG::ReadCondHandleKeyArray
HandleKeyArray< ReadCondHandle< T >, CondHandleDefault::Key< ReadCondHandleKey< T > >, Gaudi::DataHandle::Reader > ReadCondHandleKeyArray
Definition
CondHandleKeyArray.h:30
Generated on
for ATLAS Offline Software by
1.17.0