ATLAS Offline Software
TFCSNetworkFactory.h
Go to the documentation of this file.
1 
15 #ifndef TFCSNETWORKFACTORY_H
16 #define TFCSNETWORKFACTORY_H
17 
19 #include <memory>
20 #include <string>
21 #include <vector>
22 #include <filesystem>
23 
25 public:
26  // Unspecified TFCSGANLWTNNHandler or TFCSSimpleLWTNNHandler, take a guess
47  static std::unique_ptr<VNetworkBase> create(std::string input);
48  // Specified TFCSGANLWTNNHandler or TFCSSimpleLWTNNHandler
69  static std::unique_ptr<VNetworkBase> create(std::string input,
70  bool graph_form);
71 
81  static std::unique_ptr<VNetworkBase> create(std::vector<char> const &input);
82 
92  static std::unique_ptr<VNetworkBase>
93  create(std::vector<char> const &vector_input, std::string string_input);
105  static std::unique_ptr<VNetworkBase>
106  create(std::vector<char> const &vector_input, std::string string_input,
107  bool graph_form);
108 
109 private:
119  static void resolveGlobs(std::string &filename);
120 
128  static bool isOnnxFile(std::string const &filename);
129 };
130 
131 #endif // TFCSNETWORKFACTORY_H
VNetworkBase.h
TFCSNetworkFactory
Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration.
Definition: TFCSNetworkFactory.h:24
TFCSNetworkFactory::resolveGlobs
static void resolveGlobs(std::string &filename)
If the filepath ends in .
Definition: TFCSNetworkFactory.cxx:19
TFCSNetworkFactory::create
static std::unique_ptr< VNetworkBase > create(std::string input)
Given a string, make a network.
Definition: TFCSNetworkFactory.cxx:66
PlotPulseshapeFromCool.input
input
Definition: PlotPulseshapeFromCool.py:106
TFCSNetworkFactory::isOnnxFile
static bool isOnnxFile(std::string const &filename)
Check if a filename seems to be an onnx file.
Definition: TFCSNetworkFactory.cxx:42
CaloCellTimeCorrFiller.filename
filename
Definition: CaloCellTimeCorrFiller.py:24