ATLAS Offline Software
sTGCAsBuiltCondAlg.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef MUONCONDALG_sTGCAsBuiltCondAlg_H
6 #define MUONCONDALG_sTGCAsBuiltCondAlg_H
7 
8 // Athena includes
15 
16 #include <nlohmann/json.hpp>
17 
22 public:
23  using AthReentrantAlgorithm::AthReentrantAlgorithm;
24  virtual ~sTGCAsBuiltCondAlg() = 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  sTGCAsBuiltData& 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<sTGCAsBuiltData> m_writeKey{this, "WriteKey", "sTGCAsBuilt", "Key of the efficiency data in the CondStore"};
41  "Folder of the STGC efficiencies as they're stored in COOL"};
42 };
43 
44 #endif
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
sTGCAsBuiltCondAlg::execute
virtual StatusCode execute(const EventContext &ctx) const override
Definition: sTGCAsBuiltCondAlg.cxx:31
WriteCondHandleKey.h
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition: AthReentrantAlgorithm.h:74
sTGCAsBuiltCondAlg::initialize
virtual StatusCode initialize() override
Definition: sTGCAsBuiltCondAlg.cxx:14
CaloCondBlobAlgs_fillNoiseFromASCII.lines
lines
Definition: CaloCondBlobAlgs_fillNoiseFromASCII.py:103
sTGCAsBuiltCondAlg::m_idHelperSvc
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
Definition: sTGCAsBuiltCondAlg.h:34
sTGCAsBuiltCondAlg
Conditions algorithm to load the alternativ sTGC as built constants.
Definition: sTGCAsBuiltCondAlg.h:21
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
sTGCAsBuiltCondAlg::isReEntrant
virtual bool isReEntrant() const override
Definition: sTGCAsBuiltCondAlg.h:27
sTGCAsBuiltData
Class holding the sTGC as built conditions data and applying it. The model consists of four parameter...
Definition: sTGCAsBuiltData.h:27
sTGCAsBuiltCondAlg::m_readKeyDb
SG::ReadCondHandleKey< CondAttrListCollection > m_readKeyDb
Definition: sTGCAsBuiltCondAlg.h:40
ReadCondHandleKey.h
AthReentrantAlgorithm.h
sTGCAsBuiltCondAlg::~sTGCAsBuiltCondAlg
virtual ~sTGCAsBuiltCondAlg()=default
SG::ReadCondHandleKey< CondAttrListCollection >
sTGCAsBuiltCondAlg::m_readFromJSON
Gaudi::Property< std::string > m_readFromJSON
Load the gasGap efficiencies from a JSON file.
Definition: sTGCAsBuiltCondAlg.h:37
SG::WriteCondHandleKey< sTGCAsBuiltData >
sTGCAsBuiltCondAlg::parseDataFromJSON
StatusCode parseDataFromJSON(const nlohmann::json &lines, sTGCAsBuiltData &effiData) const
Parse efficiency data from COOL.
Definition: sTGCAsBuiltCondAlg.cxx:70
sTGCAsBuiltData.h
sTGCAsBuiltCondAlg::m_writeKey
SG::WriteCondHandleKey< sTGCAsBuiltData > m_writeKey
Definition: sTGCAsBuiltCondAlg.h:39
IMuonIdHelperSvc.h
ServiceHandle< Muon::IMuonIdHelperSvc >