ATLAS Offline Software
TFCSGANLWTNNHandler.h
Go to the documentation of this file.
1 
22 // Hopefully documentation gets inherited from VNetworkBase
23 
24 #ifndef TFCSGANLWTNNHANDLER_H
25 #define TFCSGANLWTNNHANDLER_H
26 
28 
29 // Becuase we have a field of type LightweightGraph
30 #include "lwtnn/LightweightGraph.hh"
31 
32 // For writing to a tree
33 #include <vector>
34 #include <memory>
35 #include <string>
36 
38 public:
39  // Don't lose default constructors
41 
52  explicit TFCSGANLWTNNHandler(const std::string &inputFile);
53 
62  TFCSGANLWTNNHandler(const TFCSGANLWTNNHandler &copy_from);
63 
76  NetworkOutputs compute(NetworkInputs const &inputs) const override;
77 
86  std::vector<std::string> getOutputLayers() const override;
87 
88 protected:
98  void setupNet() override;
99 
100 private:
101  // unique ptr deletes the object when it goes out of scope
105  std::unique_ptr<lwt::LightweightGraph> m_lwtnn_graph;
106 
110  std::vector<std::string> m_outputLayers;
111 
115  std::string *m_input = nullptr;
116 
117  // Suppling a ClassDef for writing to file.
119 };
120 
121 #endif // TFCSGANLWTNNHANDLER_H
TFCSGANLWTNNHandler::m_lwtnn_graph
std::unique_ptr< lwt::LightweightGraph > m_lwtnn_graph
The network that we are wrapping here.
Definition: TFCSGANLWTNNHandler.h:105
VNetworkBase::NetworkOutputs
std::map< std::string, double > NetworkOutputs
Format for network outputs.
Definition: VNetworkBase.h:100
TFCSGANLWTNNHandler::ClassDefOverride
ClassDefOverride(TFCSGANLWTNNHandler, 6)
TFCSGANLWTNNHandler
Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration.
Definition: TFCSGANLWTNNHandler.h:37
VNetworkBase::NetworkInputs
std::map< std::string, std::map< std::string, double > > NetworkInputs
Format for network inputs.
Definition: VNetworkBase.h:90
TFCSGANLWTNNHandler::m_input
std::string * m_input
Do not persistify.
Definition: TFCSGANLWTNNHandler.h:115
postInclude.inputs
inputs
Definition: postInclude.SortInput.py:15
TFCSGANLWTNNHandler::compute
NetworkOutputs compute(NetworkInputs const &inputs) const override
Function to pass values to the network.
Definition: TFCSGANLWTNNHandler.cxx:69
CaloCondBlobAlgs_fillNoiseFromASCII.inputFile
string inputFile
Definition: CaloCondBlobAlgs_fillNoiseFromASCII.py:17
VNetworkLWTNN.h
TFCSGANLWTNNHandler::getOutputLayers
std::vector< std::string > getOutputLayers() const override
List the names of the outputs.
Definition: TFCSGANLWTNNHandler.cxx:63
TFCSGANLWTNNHandler::m_outputLayers
std::vector< std::string > m_outputLayers
Do not persistify.
Definition: TFCSGANLWTNNHandler.h:110
TFCSGANLWTNNHandler::setupNet
void setupNet() override
Perform actions that prepare network for use.
Definition: TFCSGANLWTNNHandler.cxx:33
VNetworkLWTNN
Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration.
Definition: VNetworkLWTNN.h:31
TFCSGANLWTNNHandler::TFCSGANLWTNNHandler
TFCSGANLWTNNHandler(const std::string &inputFile)
TFCSGANLWTNNHandler constructor.
Definition: TFCSGANLWTNNHandler.cxx:15
VNetworkLWTNN::VNetworkLWTNN
VNetworkLWTNN(const VNetworkLWTNN &copy_from)
VNetworkLWTNN copy constructor.
Definition: VNetworkLWTNN.cxx:14