ATLAS Offline Software
CscILinesCondAlg.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3 */
4 #ifndef MUONCONDALG_ILINESCONDALG_H
5 #define MUONCONDALG_ILINESCONDALG_H
6 
9 #include "CoralBase/Blob.h"
15 #include "nlohmann/json.hpp"
16 
18 
19  public:
20  CscILinesCondAlg(const std::string& name, ISvcLocator* pSvcLocator);
21  virtual ~CscILinesCondAlg() = default;
22  virtual StatusCode initialize() override;
23  virtual StatusCode execute(const EventContext& ctx) const override;
24  virtual bool isReEntrant() const override { return false;}
25 
26  private:
27  SG::ReadCondHandleKey<CondAttrListCollection> m_readKey{this, "ReadKey", "/MUONALIGN/CSC/ILINES",
28  "Key of input CSC/ILINES condition data"};
29 
30  SG::WriteCondHandleKey<ALineContainer> m_writeKey{this, "WriteKey", "CscInternalAlignmentContainer",
31  "Key of output muon alignment CSC/ILine condition data"};
32 
33  ServiceHandle<Muon::IMuonIdHelperSvc> m_idHelperSvc{this, "MuonIdHelperSvc", "Muon::MuonIdHelperSvc/MuonIdHelperSvc"};
34  // new folder format 2020
35  Gaudi::Property<bool> m_newFormat2020 {this, "NewFormat2020", false,
36  "The database folders are given in the new JSON format"};
38  Gaudi::Property<std::string> m_readFromJSON{this,"readFromJSON", "",
39  "Reads the A & B lines parameters from a JSON file instead from COOL"};
40 
41 
46  StatusCode loadDataFromLegacy(const std::string& data, nlohmann::json& json) const;
51  ALineContainer& writeCdo) const;
52 };
53 #endif
data
char data[hepevt_bytes_allocation_ATLAS]
Definition: HepEvt.cxx:11
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
CscILinesCondAlg::execute
virtual StatusCode execute(const EventContext &ctx) const override
Definition: CscILinesCondAlg.cxx:30
CscILinesCondAlg::CscILinesCondAlg
CscILinesCondAlg(const std::string &name, ISvcLocator *pSvcLocator)
Definition: CscILinesCondAlg.cxx:14
CscILinesCondAlg::loadDataFromLegacy
StatusCode loadDataFromLegacy(const std::string &data, nlohmann::json &json) const
Load the Alignment data from the legacy format where the channels are parsed line wise The data is th...
Definition: CscILinesCondAlg.cxx:98
CscILinesCondAlg::m_newFormat2020
Gaudi::Property< bool > m_newFormat2020
Definition: CscILinesCondAlg.h:35
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition: AthReentrantAlgorithm.h:83
CscILinesCondAlg::~CscILinesCondAlg
virtual ~CscILinesCondAlg()=default
CorrContainer.h
CaloCondBlobAlgs_fillNoiseFromASCII.lines
lines
Definition: CaloCondBlobAlgs_fillNoiseFromASCII.py:104
CscILinesCondAlg::parseDataFromJSON
StatusCode parseDataFromJSON(const nlohmann::json &lines, ALineContainer &writeCdo) const
Parse the JSON blob to fill the I Line container.
Definition: CscILinesCondAlg.cxx:159
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
CscILinesCondAlg::m_idHelperSvc
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
Definition: CscILinesCondAlg.h:33
ALineContainer
std::set< ALinePar, std::less<> > ALineContainer
Definition: CorrContainer.h:16
CscILinesCondAlg::m_writeKey
SG::WriteCondHandleKey< ALineContainer > m_writeKey
Definition: CscILinesCondAlg.h:30
CondHandleKeyArray.h
ReadCondHandleKey.h
AthReentrantAlgorithm.h
CscILinesCondAlg::m_readFromJSON
Gaudi::Property< std::string > m_readFromJSON
Load the alignment parameters from a JSON file.
Definition: CscILinesCondAlg.h:38
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
CscILinesCondAlg::isReEntrant
virtual bool isReEntrant() const override
Definition: CscILinesCondAlg.h:24
SG::ReadCondHandleKey< CondAttrListCollection >
CscILinesCondAlg
Definition: CscILinesCondAlg.h:17
blobaccess.h
SG::WriteCondHandleKey< ALineContainer >
CscILinesCondAlg::initialize
virtual StatusCode initialize() override
Definition: CscILinesCondAlg.cxx:18
CscILinesCondAlg::m_readKey
SG::ReadCondHandleKey< CondAttrListCollection > m_readKey
Definition: CscILinesCondAlg.h:27
IMuonIdHelperSvc.h
ServiceHandle< Muon::IMuonIdHelperSvc >