ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Simulation
ISF
ISF_FastCaloSim
ISF_FastCaloSimEvent
ISF_FastCaloSimEvent
TFCSGANLWTNNHandler.h
Go to the documentation of this file.
1
21
22
// Hopefully documentation gets inherited from VNetworkBase
23
24
#ifndef TFCSGANLWTNNHANDLER_H
25
#define TFCSGANLWTNNHANDLER_H
26
27
#include "
ISF_FastCaloSimEvent/VNetworkLWTNN.h
"
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
37
class
TFCSGANLWTNNHandler
:
public
VNetworkLWTNN
{
38
public
:
39
// Don't lose default constructors
40
using
VNetworkLWTNN::VNetworkLWTNN
;
41
52
explicit
TFCSGANLWTNNHandler
(
const
std::string &inputFile);
53
62
TFCSGANLWTNNHandler
(
const
TFCSGANLWTNNHandler
©_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.
118
ClassDefOverride
(
TFCSGANLWTNNHandler
, 6);
119
};
120
121
#endif
// TFCSGANLWTNNHANDLER_H
VNetworkLWTNN.h
TFCSGANLWTNNHandler::ClassDefOverride
ClassDefOverride(TFCSGANLWTNNHandler, 6)
TFCSGANLWTNNHandler::setupNet
void setupNet() override
Perform actions that prepare network for use.
Definition
TFCSGANLWTNNHandler.cxx:33
TFCSGANLWTNNHandler::m_input
std::string * m_input
Do not persistify.
Definition
TFCSGANLWTNNHandler.h:115
TFCSGANLWTNNHandler::compute
NetworkOutputs compute(NetworkInputs const &inputs) const override
Function to pass values to the network.
Definition
TFCSGANLWTNNHandler.cxx:69
TFCSGANLWTNNHandler::TFCSGANLWTNNHandler
TFCSGANLWTNNHandler(const std::string &inputFile)
TFCSGANLWTNNHandler constructor.
Definition
TFCSGANLWTNNHandler.cxx:15
TFCSGANLWTNNHandler::m_lwtnn_graph
std::unique_ptr< lwt::LightweightGraph > m_lwtnn_graph
The network that we are wrapping here.
Definition
TFCSGANLWTNNHandler.h:105
TFCSGANLWTNNHandler::VNetworkLWTNN
VNetworkLWTNN(const VNetworkLWTNN ©_from)
VNetworkLWTNN copy constructor.
Definition
VNetworkLWTNN.cxx:14
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
VNetworkBase::NetworkInputs
std::map< std::string, std::map< std::string, double > > NetworkInputs
Format for network inputs.
Definition
VNetworkBase.h:90
VNetworkBase::NetworkOutputs
std::map< std::string, double > NetworkOutputs
Format for network outputs.
Definition
VNetworkBase.h:100
VNetworkLWTNN::VNetworkLWTNN
VNetworkLWTNN(const VNetworkLWTNN ©_from)
VNetworkLWTNN copy constructor.
Definition
VNetworkLWTNN.cxx:14
Generated on
for ATLAS Offline Software by
1.17.0