ATLAS Offline Software
Loading...
Searching...
No Matches
ToFLocParamDBTool.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3*/
4
10#ifndef AFP_DBTOOLS_TOFLOCPARAMDBTOOL_H
11#define AFP_DBTOOLS_TOFLOCPARAMDBTOOL_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
30namespace AFP
31{
33 class ToFLocParamDBTool : public extends<AthAlgTool, IToFLocParamDBTool>
34 {
35 public:
36 ToFLocParamDBTool(const std::string& type, const std::string& name, const IInterface* parent);
37
39 virtual ~ToFLocParamDBTool() override {}
40
42 virtual StatusCode initialize() override;
43
45 virtual StatusCode finalize() override;
46
48 nlohmann::json parametersData(const EventContext& ctx) const override;
49 const ToFLocParamData parameters(const nlohmann::json& jsondata, const int stationID, const int trainID, const int barID) const override;
50
51 private:
52 SG::ReadCondHandleKey<CondAttrListCollection> m_rch_loc {this, "loc_param_key", "/FWD/Onl/AFP/ToFParameters/Local", "read condition handle for local ToF parameters"};
53 };
54
55
56} // namespace AFP
57
58#endif // > ! AFP_DBTOOLS_TOFLOCPARAMDBTOOL_H
This file defines the class for a collection of AttributeLists where each one is associated with a ch...
SG::ReadCondHandleKey< CondAttrListCollection > m_rch_loc
const ToFLocParamData parameters(const nlohmann::json &jsondata, const int stationID, const int trainID, const int barID) const override
nlohmann::json parametersData(const EventContext &ctx) const override
Provide ToF parameters for a given bar. Returns zeros if no data available.
virtual ~ToFLocParamDBTool() override
Does nothing.
virtual StatusCode finalize() override
Does nothing.
ToFLocParamDBTool(const std::string &type, const std::string &name, const IInterface *parent)
virtual StatusCode initialize() override
Does nothing.
Class storing information about alignment.
Header file for interface of SiGlobAlignDBTool used to read global alignment for database.