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