ATLAS Offline Software
MmCTPCondDbAlg.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_MmCTPCondDbAlg_H
6 #define MUONCONDALG_MmCTPCondDbAlg_H
7 
8 // Athena includes
14 #include <nlohmann/json.hpp>
16 
18 public:
19  //No need for individual constructor
20  using AthReentrantAlgorithm::AthReentrantAlgorithm ;
21  virtual ~MmCTPCondDbAlg() = default;
22  virtual StatusCode initialize() override final;
23  virtual StatusCode execute(const EventContext& ctx) const override final;
24  virtual bool isReEntrant() const override final{ return false; }
25 
26 private:
28  Gaudi::Property<std::string> m_readFromJSON{this, "readFromJSON", "" };
30  Muon::mmCTPClusterCalibData& ctpClusterCondData) const;
31 
32  ServiceHandle<Muon::IMuonIdHelperSvc> m_idHelperSvc{this, "MuonIdHelperSvc", "Muon::MuonIdHelperSvc/MuonIdHelperSvc"};
33 
34 
35 
36  SG::WriteCondHandleKey<Muon::mmCTPClusterCalibData> m_writeKey{this, "WriteKey", "mmCTPClusterCalibData", "Key of the CTP slope data in the CondStore"};
37  SG::ReadCondHandleKey<CondAttrListCollection> m_readKeyDb{this, "ReadKey", "", "Folder of the MM CTP corrections as they are stored in COOL"};
38 
39 
40 };
41 
42 #endif
43 
MmCTPCondDbAlg::parseDataFromJSON
StatusCode parseDataFromJSON(const nlohmann::json &lines, Muon::mmCTPClusterCalibData &ctpClusterCondData) const
Definition: MmCTPCondDbAlg.cxx:85
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
mmCTPClusterCalibData.h
WriteCondHandleKey.h
const
bool const RAWDATA *ch2 const
Definition: LArRodBlockPhysicsV0.cxx:560
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition: AthReentrantAlgorithm.h:74
MmCTPCondDbAlg
Definition: MmCTPCondDbAlg.h:17
CaloCondBlobAlgs_fillNoiseFromASCII.lines
lines
Definition: CaloCondBlobAlgs_fillNoiseFromASCII.py:103
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
MmCTPCondDbAlg::m_readFromJSON
Gaudi::Property< std::string > m_readFromJSON
Parse data from COOL.
Definition: MmCTPCondDbAlg.h:28
MmCTPCondDbAlg::execute
virtual StatusCode execute(const EventContext &ctx) const override final
Definition: MmCTPCondDbAlg.cxx:41
CondHandleKeyArray.h
columnar::final
CM final
Definition: ColumnAccessor.h:106
AthReentrantAlgorithm.h
MmCTPCondDbAlg::m_idHelperSvc
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
Definition: MmCTPCondDbAlg.h:32
SG::ReadCondHandleKey< CondAttrListCollection >
MmCTPCondDbAlg::initialize
virtual StatusCode initialize() override final
Definition: MmCTPCondDbAlg.cxx:17
MmCTPCondDbAlg::m_readKeyDb
SG::ReadCondHandleKey< CondAttrListCollection > m_readKeyDb
Definition: MmCTPCondDbAlg.h:37
SG::WriteCondHandleKey< Muon::mmCTPClusterCalibData >
MmCTPCondDbAlg::isReEntrant
virtual bool isReEntrant() const override final
Definition: MmCTPCondDbAlg.h:24
Muon::mmCTPClusterCalibData
Definition: mmCTPClusterCalibData.h:18
IMuonIdHelperSvc.h
MmCTPCondDbAlg::~MmCTPCondDbAlg
virtual ~MmCTPCondDbAlg()=default
MmCTPCondDbAlg::m_writeKey
SG::WriteCondHandleKey< Muon::mmCTPClusterCalibData > m_writeKey
Definition: MmCTPCondDbAlg.h:36
ServiceHandle< Muon::IMuonIdHelperSvc >