ATLAS Offline Software
Loading...
Searching...
No Matches
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
15
16#include <nlohmann/json.hpp>
17
22public:
23 sTgcDigitEffiCondAlg(const std::string& name, ISvcLocator* svc);
24 virtual ~sTgcDigitEffiCondAlg() = default;
25 virtual StatusCode initialize() override;
26 virtual StatusCode execute(const EventContext& ctx) const override;
27
28private:
30 StatusCode parseDataFromJSON(const nlohmann::json& lines,
31 Muon::DigitEffiData& effiData) const;
32
33 ServiceHandle<Muon::IMuonIdHelperSvc> m_idHelperSvc{this, "MuonIdHelperSvc", "Muon::MuonIdHelperSvc/MuonIdHelperSvc"};
34
36 Gaudi::Property<std::string> m_readFromJSON{this, "readFromJSON", "" };
37
38 SG::WriteCondHandleKey<Muon::DigitEffiData> m_writeKey{this, "WriteKey", "sTgcDigitEff", "Key of the efficiency data in the CondStore"};
40 "Folder of the STGC efficiencies as they're stored in COOL"};
41 Gaudi::Property<double> m_defaultEffi{this, "defaultEffi", 1.};
42};
43
44#endif
Base class for conditions algorithms.
This file defines the class for a collection of AttributeLists where each one is associated with a ch...
Base class for conditions algorithms.
sTgcDigitEffiCondAlg(const std::string &name, ISvcLocator *svc)
StatusCode parseDataFromJSON(const nlohmann::json &lines, Muon::DigitEffiData &effiData) const
Parse efficiency data from COOL.
virtual StatusCode execute(const EventContext &ctx) const override
virtual ~sTgcDigitEffiCondAlg()=default
Gaudi::Property< std::string > m_readFromJSON
Load the gasGap efficiencies from a JSON file.
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
virtual StatusCode initialize() override
Gaudi::Property< double > m_defaultEffi
SG::WriteCondHandleKey< Muon::DigitEffiData > m_writeKey
SG::ReadCondHandleKey< CondAttrListCollection > m_readKeyDb