ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
MuonSpectrometer
MuonConditions
MuonCondGeneral
MuonCondAlg
src
sTgcDigitEffiCondAlg.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#ifndef MUONCONDALG_sTgcDigitEffiCondAlg_H
6
#define MUONCONDALG_sTgcDigitEffiCondAlg_H
7
8
// Athena includes
9
#include "
AthenaBaseComps/AthCondAlgorithm.h
"
10
#include "
AthenaPoolUtilities/CondAttrListCollection.h
"
11
#include "
MuonCondData/DigitEffiData.h
"
12
#include "
MuonIdHelpers/IMuonIdHelperSvc.h
"
13
#include "
StoreGate/ReadCondHandleKey.h
"
14
#include "
StoreGate/WriteCondHandleKey.h
"
15
16
#include <nlohmann/json.hpp>
17
21
namespace
Muon
{
22
class
sTgcDigitEffiCondAlg
:
public
AthCondAlgorithm
{
23
public
:
24
using
AthCondAlgorithm::AthCondAlgorithm;
25
virtual
~sTgcDigitEffiCondAlg
() =
default
;
26
virtual
StatusCode
initialize
()
override
;
27
virtual
StatusCode
execute
(
const
EventContext& ctx)
const override
;
28
29
private
:
31
StatusCode
parseDataFromJSON
(
const
nlohmann::json& lines,
32
Muon::DigitEffiData
& effiData)
const
;
33
34
ServiceHandle<Muon::IMuonIdHelperSvc>
m_idHelperSvc
{
this
,
"MuonIdHelperSvc"
,
"Muon::MuonIdHelperSvc/MuonIdHelperSvc"
};
35
37
Gaudi::Property<std::string>
m_readFromJSON
{
this
,
"readFromJSON"
,
""
};
38
39
SG::WriteCondHandleKey<Muon::DigitEffiData>
m_writeKey
{
this
,
"WriteKey"
,
"sTgcDigitEff"
,
"Key of the efficiency data in the CondStore"
};
40
SG::ReadCondHandleKey<CondAttrListCollection>
m_readKeyDb
{
this
,
"ReadKey"
,
""
,
41
"Folder of the STGC efficiencies as they're stored in COOL"
};
42
Gaudi::Property<double>
m_defaultEffi
{
this
,
"defaultEffi"
, 1.};
43
};
44
}
45
#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...
DigitEffiData.h
IMuonIdHelperSvc.h
ReadCondHandleKey.h
WriteCondHandleKey.h
AthCondAlgorithm
Base class for conditions algorithms.
Definition
AthCondAlgorithm.h:22
Muon::DigitEffiData
Definition
DigitEffiData.h:23
Muon::sTgcDigitEffiCondAlg
Definition
sTgcDigitEffiCondAlg.h:22
Muon::sTgcDigitEffiCondAlg::initialize
virtual StatusCode initialize() override
Definition
sTgcDigitEffiCondAlg.cxx:14
Muon::sTgcDigitEffiCondAlg::m_idHelperSvc
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
Definition
sTgcDigitEffiCondAlg.h:34
Muon::sTgcDigitEffiCondAlg::m_writeKey
SG::WriteCondHandleKey< Muon::DigitEffiData > m_writeKey
Definition
sTgcDigitEffiCondAlg.h:39
Muon::sTgcDigitEffiCondAlg::m_defaultEffi
Gaudi::Property< double > m_defaultEffi
Definition
sTgcDigitEffiCondAlg.h:42
Muon::sTgcDigitEffiCondAlg::m_readFromJSON
Gaudi::Property< std::string > m_readFromJSON
Load the gasGap efficiencies from a JSON file.
Definition
sTgcDigitEffiCondAlg.h:37
Muon::sTgcDigitEffiCondAlg::parseDataFromJSON
StatusCode parseDataFromJSON(const nlohmann::json &lines, Muon::DigitEffiData &effiData) const
Parse efficiency data from COOL.
Definition
sTgcDigitEffiCondAlg.cxx:69
Muon::sTgcDigitEffiCondAlg::m_readKeyDb
SG::ReadCondHandleKey< CondAttrListCollection > m_readKeyDb
Definition
sTgcDigitEffiCondAlg.h:40
Muon::sTgcDigitEffiCondAlg::~sTgcDigitEffiCondAlg
virtual ~sTgcDigitEffiCondAlg()=default
Muon::sTgcDigitEffiCondAlg::execute
virtual StatusCode execute(const EventContext &ctx) const override
Definition
sTgcDigitEffiCondAlg.cxx:30
SG::ReadCondHandleKey
Definition
ReadCondHandleKey.h:21
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
Generated on
for ATLAS Offline Software by
1.17.0