ATLAS Offline Software
Loading...
Searching...
No Matches
SiGlobAlignDBTool.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_SIGLOBALIGNDBTOOL_H
11#define AFP_DBTOOLS_SIGLOBALIGNDBTOOL_H
12
13// Global 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
30namespace AFP
31{
33 class SiGlobAlignDBTool : public extends<AthAlgTool, ISiGlobAlignDBTool>
34 {
35 public:
36 SiGlobAlignDBTool(const std::string& type, const std::string& name, const IInterface* parent);
37
39 virtual ~SiGlobAlignDBTool() 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 SiGlobAlignData alignment(const nlohmann::json& jsondata, const int stationID) const override;
50
51 private:
52 SG::ReadCondHandleKey<CondAttrListCollection> m_rch_glob {this, "glob_align_key", "/FWD/Onl/AFP/Align/Global", "read condition handle for global alignement"};
53 };
54
55} // namespace AFP
56
57#endif // > ! AFP_DBTOOLS_SIGLOBALIGNDBTOOL_H
58
This file defines the class for a collection of AttributeLists where each one is associated with a ch...
Source file for class SiGlobAlignData.
nlohmann::json alignmentData(const EventContext &ctx) const override
Provide alignment parameters for a given station. Returns nullptr if no data available.
virtual ~SiGlobAlignDBTool() override
Does nothing.
virtual StatusCode initialize() override
Does nothing.
SG::ReadCondHandleKey< CondAttrListCollection > m_rch_glob
virtual StatusCode finalize() override
Does nothing.
const SiGlobAlignData alignment(const nlohmann::json &jsondata, const int stationID) const override
SiGlobAlignDBTool(const std::string &type, const std::string &name, const IInterface *parent)
Header file for interface of SiGlobAlignDBTool used to read global alignment for database.