ATLAS Offline Software
NswUncertDbAlg.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_NSWUNCERTDBALG_H
6 #define MUONCONDALG_NSWUNCERTDBALG_H
7 
8 // Gaudi includes
9 #include <nlohmann/json.hpp>
10 
11 // Athena includes
17 // Muon includes
19 
20 
21 
22 
24 
25 public:
26  NswUncertDbAlg(const std::string& name, ISvcLocator* svc);
27  virtual ~NswUncertDbAlg() = default;
28  virtual StatusCode initialize() override;
29  virtual StatusCode execute (const EventContext&) const override;
30  virtual bool isReEntrant() const override { return false; }
31 
32 
33 private:
34 
37  NswErrorCalibData& errorCalibData) const;
38 
40  Gaudi::Property<std::string> m_readFromJSON{this, "readFromJSON", "" };
41 
43  "Muon::MuonIdHelperSvc/MuonIdHelperSvc"};
44 
45  SG::WriteCondHandleKey<NswErrorCalibData> m_writeKey{this, "WriteKey", "NswUncertData",
46  "Key of the parametrized NSW uncertainties"};
47 
49  "Key to the parametrized NSW uncertainty COOL folder"};
50 };
51 
52 
53 #endif
NswErrorCalibData
Definition: NswErrorCalibData.h:19
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
NswUncertDbAlg::execute
virtual StatusCode execute(const EventContext &) const override
Definition: NswUncertDbAlg.cxx:37
NswUncertDbAlg::m_writeKey
SG::WriteCondHandleKey< NswErrorCalibData > m_writeKey
Definition: NswUncertDbAlg.h:45
WriteCondHandleKey.h
SG::HandleKeyArray
Definition: StoreGate/StoreGate/HandleKeyArray.h:38
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition: AthReentrantAlgorithm.h:83
NswUncertDbAlg::parseDataFromJSON
StatusCode parseDataFromJSON(const nlohmann::json &lines, NswErrorCalibData &errorCalibData) const
Load the Jitter constants from the JSON format.
Definition: NswUncertDbAlg.cxx:88
CaloCondBlobAlgs_fillNoiseFromASCII.lines
lines
Definition: CaloCondBlobAlgs_fillNoiseFromASCII.py:104
NswUncertDbAlg
Definition: NswUncertDbAlg.h:23
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
NswUncertDbAlg::m_readKeysDb
SG::ReadCondHandleKeyArray< CondAttrListCollection > m_readKeysDb
Definition: NswUncertDbAlg.h:48
NswErrorCalibData.h
Handler::svc
AthROOTErrorHandlerSvc * svc
Definition: AthROOTErrorHandlerSvc.cxx:10
CondHandleKeyArray.h
AthReentrantAlgorithm.h
NswUncertDbAlg::~NswUncertDbAlg
virtual ~NswUncertDbAlg()=default
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
NswUncertDbAlg::m_idHelperSvc
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
Definition: NswUncertDbAlg.h:42
NswUncertDbAlg::isReEntrant
virtual bool isReEntrant() const override
Definition: NswUncertDbAlg.h:30
NswUncertDbAlg::NswUncertDbAlg
NswUncertDbAlg(const std::string &name, ISvcLocator *svc)
Definition: NswUncertDbAlg.cxx:15
SG::WriteCondHandleKey< NswErrorCalibData >
NswUncertDbAlg::m_readFromJSON
Gaudi::Property< std::string > m_readFromJSON
Use an external JSON file to load the Jitter constants from.
Definition: NswUncertDbAlg.h:40
NswUncertDbAlg::initialize
virtual StatusCode initialize() override
Definition: NswUncertDbAlg.cxx:18
IMuonIdHelperSvc.h
ServiceHandle< Muon::IMuonIdHelperSvc >