ATLAS Offline Software
Loading...
Searching...
No Matches
MmDigitEffiCondAlg.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_MmDigitEffiCondAlg_H
6#define MUONCONDALG_MmDigitEffiCondAlg_H
7
8// Athena includes
15
16#include <nlohmann/json.hpp>
17
22public:
23 MmDigitEffiCondAlg(const std::string& name, ISvcLocator* svc);
24 virtual ~MmDigitEffiCondAlg() = default;
25 virtual StatusCode initialize() override;
26 virtual StatusCode execute(const EventContext& ctx) const override;
27 virtual bool isReEntrant() const override { return false; }
28
29private:
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", "MmDigitEff", "Key of the efficiency data in the CondStore"};
41 "Folder of the MM efficiencies as they're stored in COOL"};
42 Gaudi::Property<double> m_defaultEffi{this, "defaultEffi", 1.};
43};
44
45#endif
This file defines the class for a collection of AttributeLists where each one is associated with a ch...
An algorithm that can be simultaneously executed in multiple threads.
virtual StatusCode execute(const EventContext &ctx) const override
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
Gaudi::Property< std::string > m_readFromJSON
Load the gasGap efficiencies from a JSON file.
virtual bool isReEntrant() const override
MmDigitEffiCondAlg(const std::string &name, ISvcLocator *svc)
SG::WriteCondHandleKey< Muon::DigitEffiData > m_writeKey
virtual StatusCode initialize() override
Gaudi::Property< double > m_defaultEffi
StatusCode parseDataFromJSON(const nlohmann::json &lines, Muon::DigitEffiData &effiData) const
Parse efficiency data from COOL.
virtual ~MmDigitEffiCondAlg()=default
SG::ReadCondHandleKey< CondAttrListCollection > m_readKeyDb