ATLAS Offline Software
SiLocAlignDBTool.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3 */
4 
10 #ifndef AFP_DBTOOLS_SILOCALIGNDBTOOL_H
11 #define AFP_DBTOOLS_SILOCALIGNDBTOOL_H
12 
13 // Local includes
16 
17 // FrameWork includes
20 
21 // database access
22 #include "GaudiKernel/EventContext.h"
25 
26 #include "nlohmann/json.hpp"
27 #include <string>
28 #include <utility>
29 
30 namespace AFP
31 {
33  class SiLocAlignDBTool : public extends<AthAlgTool, ISiLocAlignDBTool>
34  {
35  public:
36  SiLocAlignDBTool(const std::string& type, const std::string& name, const IInterface* parent);
37 
39  virtual ~SiLocAlignDBTool() override {}
40 
42  virtual StatusCode initialize() override;
43 
45  virtual StatusCode finalize() override;
46 
48  nlohmann::json alignmentData (const EventContext& ctx) const override;
49  const SiLocAlignData alignment (const nlohmann::json& jsondata, const int stationID, const int planeID) const override;
50 
51  private:
52  SG::ReadCondHandleKey<CondAttrListCollection> m_rch_loc {this, "loc_align_key", "/FWD/Onl/AFP/Align/Local", "read condition handle for local alignement"};
53  };
54 
55 
56 } // namespace AFP
57 
58 #endif // > ! AFP_DBTOOLS_SILOCALIGNDBTOOL_H
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
AFP::SiLocAlignDBTool::~SiLocAlignDBTool
virtual ~SiLocAlignDBTool() override
Does nothing.
Definition: SiLocAlignDBTool.h:39
AFP::SiLocAlignDBTool
Tool providing local alignment of silicon detectors from the conditions database.
Definition: SiLocAlignDBTool.h:34
AFP::SiLocAlignDBTool::finalize
virtual StatusCode finalize() override
Does nothing.
Definition: SiLocAlignDBTool.cxx:23
ISiLocAlignDBTool.h
AthenaAttributeList.h
AFP
Header file for interface of SiGlobAlignDBTool used to read global alignment for database.
Definition: ISiGlobAlignDBTool.h:18
ReadCondHandle.h
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
SiLocAlignData.h
Header file for class SiLocAlignData.
AthAlgTool.h
test_pyathena.parent
parent
Definition: test_pyathena.py:15
AFP::SiLocAlignDBTool::alignmentData
nlohmann::json alignmentData(const EventContext &ctx) const override
Provide alignment parameters for a given plane. Returns zeros if no data available.
Definition: SiLocAlignDBTool.cxx:30
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
AFP::SiLocAlignDBTool::initialize
virtual StatusCode initialize() override
Does nothing.
Definition: SiLocAlignDBTool.cxx:16
SG::ReadCondHandleKey< CondAttrListCollection >
AFP::SiLocAlignData
Class storing information about alignment.
Definition: SiLocAlignData.h:24
AFP::SiLocAlignDBTool::alignment
const SiLocAlignData alignment(const nlohmann::json &jsondata, const int stationID, const int planeID) const override
Definition: SiLocAlignDBTool.cxx:52
AFP::SiLocAlignDBTool::SiLocAlignDBTool
SiLocAlignDBTool(const std::string &type, const std::string &name, const IInterface *parent)
Definition: SiLocAlignDBTool.cxx:10
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
AFP::SiLocAlignDBTool::m_rch_loc
SG::ReadCondHandleKey< CondAttrListCollection > m_rch_loc
Definition: SiLocAlignDBTool.h:52