ATLAS Offline Software
TgcCondDbAlg.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_TGCCONDDBALG_H
6 #define MUONCONDALG_TGCCONDDBALG_H
7 
8 // STL includes
9 #include <zlib.h>
10 
11 
12 // Gaudi includes
13 #include <nlohmann/json.hpp>
14 
15 // Athena includes
19 #include "CxxUtils/StringUtils.h"
23 
24 
25 
27 public:
28  TgcCondDbAlg(const std::string& name, ISvcLocator* svc);
29  virtual ~TgcCondDbAlg() = default;
30  virtual StatusCode initialize() override;
31  virtual StatusCode execute(const EventContext& ctx) const override;
32  virtual bool isReEntrant() const override { return false; }
33 
34 private:
37  TgcCondDbData& deadChannels) const;
38 
40  Gaudi::Property<std::string> m_readFromJSON{this, "readFromJSON", "" };
41 
42  ServiceHandle<Muon::IMuonIdHelperSvc> m_idHelperSvc{this, "MuonIdHelperSvc", "Muon::MuonIdHelperSvc/MuonIdHelperSvc"};
43 
44  SG::WriteCondHandleKey<TgcCondDbData> m_writeKey{this, "WriteKey", "TgcCondDbData", "Key of output TGC condition data"};
45  SG::ReadCondHandleKey<CondAttrListCollection> m_readKeyDb{this, "ReadKey", "", "Key of input TGC condition data"};
46 };
47 
48 #endif
TgcCondDbAlg::m_readFromJSON
Gaudi::Property< std::string > m_readFromJSON
Load the detector status from a JSON file.
Definition: TgcCondDbAlg.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
TgcCondDbAlg::TgcCondDbAlg
TgcCondDbAlg(const std::string &name, ISvcLocator *svc)
Definition: TgcCondDbAlg.cxx:11
TgcCondDbAlg::m_writeKey
SG::WriteCondHandleKey< TgcCondDbData > m_writeKey
Definition: TgcCondDbAlg.h:44
TgcCondDbAlg::execute
virtual StatusCode execute(const EventContext &ctx) const override
Definition: TgcCondDbAlg.cxx:34
StringUtils.h
WriteCondHandleKey.h
TgcCondDbAlg::~TgcCondDbAlg
virtual ~TgcCondDbAlg()=default
TgcCondDbAlg::m_readKeyDb
SG::ReadCondHandleKey< CondAttrListCollection > m_readKeyDb
Definition: TgcCondDbAlg.h:45
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition: AthReentrantAlgorithm.h:83
TgcCondDbData.h
TgcCondDbAlg::isReEntrant
virtual bool isReEntrant() const override
Definition: TgcCondDbAlg.h:32
CaloCondBlobAlgs_fillNoiseFromASCII.lines
lines
Definition: CaloCondBlobAlgs_fillNoiseFromASCII.py:104
TgcCondDbAlg::parseDataFromJSON
StatusCode parseDataFromJSON(const nlohmann::json &lines, TgcCondDbData &deadChannels) const
Load the detector status from cool.
Definition: TgcCondDbAlg.cxx:75
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
TgcCondDbData
Conditions object to mark switched-off Tgc gasGaps.
Definition: TgcCondDbData.h:20
Handler::svc
AthROOTErrorHandlerSvc * svc
Definition: AthROOTErrorHandlerSvc.cxx:10
ReadCondHandleKey.h
TgcCondDbAlg::m_idHelperSvc
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
Definition: TgcCondDbAlg.h:42
AthReentrantAlgorithm.h
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
TgcCondDbAlg
Definition: TgcCondDbAlg.h:26
SG::ReadCondHandleKey< CondAttrListCollection >
SG::WriteCondHandleKey< TgcCondDbData >
IMuonIdHelperSvc.h
TgcCondDbAlg::initialize
virtual StatusCode initialize() override
Definition: TgcCondDbAlg.cxx:17
ServiceHandle< Muon::IMuonIdHelperSvc >