ATLAS Offline Software
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 
22 public:
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  virtual bool isReEntrant() const override { return false; }
28 
29 private:
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"};
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
sTgcDigitEffiCondAlg::m_idHelperSvc
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
Definition: sTgcDigitEffiCondAlg.h:34
sTgcDigitEffiCondAlg::~sTgcDigitEffiCondAlg
virtual ~sTgcDigitEffiCondAlg()=default
sTgcDigitEffiCondAlg::m_readKeyDb
SG::ReadCondHandleKey< CondAttrListCollection > m_readKeyDb
Definition: sTgcDigitEffiCondAlg.h:40
CondAttrListCollection.h
This file defines the class for a collection of AttributeLists where each one is associated with a ch...
json
nlohmann::json json
Definition: HistogramDef.cxx:9
sTgcDigitEffiCondAlg::m_readFromJSON
Gaudi::Property< std::string > m_readFromJSON
Load the gasGap efficiencies from a JSON file.
Definition: sTgcDigitEffiCondAlg.h:37
WriteCondHandleKey.h
sTgcDigitEffiCondAlg::sTgcDigitEffiCondAlg
sTgcDigitEffiCondAlg(const std::string &name, ISvcLocator *svc)
Definition: sTgcDigitEffiCondAlg.cxx:12
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition: AthReentrantAlgorithm.h:83
CaloCondBlobAlgs_fillNoiseFromASCII.lines
lines
Definition: CaloCondBlobAlgs_fillNoiseFromASCII.py:104
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
Handler::svc
AthROOTErrorHandlerSvc * svc
Definition: AthROOTErrorHandlerSvc.cxx:10
ReadCondHandleKey.h
AthReentrantAlgorithm.h
Muon::DigitEffiData
Definition: DigitEffiData.h:23
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:195
sTgcDigitEffiCondAlg::isReEntrant
virtual bool isReEntrant() const override
Definition: sTgcDigitEffiCondAlg.h:27
sTgcDigitEffiCondAlg::parseDataFromJSON
StatusCode parseDataFromJSON(const nlohmann::json &lines, Muon::DigitEffiData &effiData) const
Parse efficiency data from COOL.
Definition: sTgcDigitEffiCondAlg.cxx:71
SG::ReadCondHandleKey< CondAttrListCollection >
sTgcDigitEffiCondAlg::m_writeKey
SG::WriteCondHandleKey< Muon::DigitEffiData > m_writeKey
Definition: sTgcDigitEffiCondAlg.h:39
DigitEffiData.h
SG::WriteCondHandleKey< Muon::DigitEffiData >
sTgcDigitEffiCondAlg::execute
virtual StatusCode execute(const EventContext &ctx) const override
Definition: sTgcDigitEffiCondAlg.cxx:32
sTgcDigitEffiCondAlg
Conditions algorithm to load the sTGC efficiency constants that are used in digitization.
Definition: sTgcDigitEffiCondAlg.h:21
sTgcDigitEffiCondAlg::initialize
virtual StatusCode initialize() override
Definition: sTgcDigitEffiCondAlg.cxx:16
IMuonIdHelperSvc.h
sTgcDigitEffiCondAlg::m_defaultEffi
Gaudi::Property< double > m_defaultEffi
Definition: sTgcDigitEffiCondAlg.h:42
ServiceHandle< Muon::IMuonIdHelperSvc >