ATLAS Offline Software
Loading...
Searching...
No Matches
LWTNNCondAlg.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 _InDet_LWTNNCondAlg_H_
6#define _InDet_LWTNNCondAlg_H_
7
11
12//#include "TrkNeuralNetworkUtils/NeuralNetworkToHistoTool.h"
15#include <string>
16
17namespace lwt {
18 class NanReplacer;
19 //class LightweightGraph;
20 namespace atlas { class FastGraph; }
21}
22
23namespace InDet {
24
28
29 public:
30
31 LWTNNCondAlg (const std::string& name, ISvcLocator* pSvcLocator);
32 ~LWTNNCondAlg() = default;
33
34 StatusCode initialize() override final;
35 StatusCode execute(const EventContext& ctx) const override final;
36 StatusCode finalize() override final;
37
38 private:
39// TTrainedNetwork* retrieveNetwork(TFile &input_file, const std::string& folder) const;
40
41 //StatusCode configureLwtnn(std::unique_ptr<lwt::LightweightGraph> & thisNN, const std::string& thisJson);
42 StatusCode configureLwtnn(std::unique_ptr<lwt::atlas::FastGraph> & thisNN, const std::string& thisJson) const;
43
45 {this, "ReadKey", "/PIXEL/PixelClustering/PixelNNCalibJSON", "Cool folder name for the cluster NN input histogram file."};
46
48 {this, "WriteKey", "PixelClusterNNJSON", "The conditions statore key for the pixel cluster NNs"};
49
50 // as of now, the number and position networks all use the same variables
51 // only need one of these
52 Gaudi::Property< std::vector<std::string> > m_variableOrder
53 {this, "VariableOrder", {
54 "NN_matrix0",
55 "NN_matrix1",
56 "NN_matrix2",
57 "NN_matrix3",
58 "NN_matrix4",
59 "NN_matrix5",
60 "NN_matrix6",
61 "NN_matrix7",
62 "NN_matrix8",
63 "NN_matrix9",
64 "NN_matrix10",
65 "NN_matrix11",
66 "NN_matrix12",
67 "NN_matrix13",
68 "NN_matrix14",
69 "NN_matrix15",
70 "NN_matrix16",
71 "NN_matrix17",
72 "NN_matrix18",
73 "NN_matrix19",
74 "NN_matrix20",
75 "NN_matrix21",
76 "NN_matrix22",
77 "NN_matrix23",
78 "NN_matrix24",
79 "NN_matrix25",
80 "NN_matrix26",
81 "NN_matrix27",
82 "NN_matrix28",
83 "NN_matrix29",
84 "NN_matrix30",
85 "NN_matrix31",
86 "NN_matrix32",
87 "NN_matrix33",
88 "NN_matrix34",
89 "NN_matrix35",
90 "NN_matrix36",
91 "NN_matrix37",
92 "NN_matrix38",
93 "NN_matrix39",
94 "NN_matrix40",
95 "NN_matrix41",
96 "NN_matrix42",
97 "NN_matrix43",
98 "NN_matrix44",
99 "NN_matrix45",
100 "NN_matrix46",
101 "NN_matrix47",
102 "NN_matrix48",
103 "NN_pitches0",
104 "NN_pitches1",
105 "NN_pitches2",
106 "NN_pitches3",
107 "NN_pitches4",
108 "NN_pitches5",
109 "NN_pitches6",
110 "NN_layer",
111 "NN_barrelEC",
112 "NN_phi",
113 "NN_theta"},
114 "List of training variables for the LWTNN networks in the order they are fed to evaluate the networks"};
115
116};
117}
118#endif
Base class for conditions algorithms.
This file defines the class for a collection of AttributeLists where each one is associated with a ch...
Base class for conditions algorithms.
This class is a collection of AttributeLists where each one is associated with a channel number.
LWTNNCondAlg(const std::string &name, ISvcLocator *pSvcLocator)
~LWTNNCondAlg()=default
StatusCode initialize() override final
StatusCode execute(const EventContext &ctx) const override final
Gaudi::Property< std::vector< std::string > > m_variableOrder
SG::ReadCondHandleKey< CondAttrListCollection > m_readKey
StatusCode finalize() override final
StatusCode configureLwtnn(std::unique_ptr< lwt::atlas::FastGraph > &thisNN, const std::string &thisJson) const
SG::WriteCondHandleKey< LWTNNCollection > m_writeKey
STL class.
Primary Vertex Finder.
Forward declaration.
Ensure that the extensions for the Vector3D are properly loaded.
STL namespace.
#define private
Definition testRead.cxx:27