ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
FPGATrackSimNNMap Class Reference

#include <FPGATrackSimNNMap.h>

Collaboration diagram for FPGATrackSimNNMap:

Public Member Functions

 FPGATrackSimNNMap (const std::string &filepath)
 
std::shared_ptr< lwt::LightweightGraph > getNNMap () const
 

Private Attributes

std::shared_ptr< lwt::LightweightGraph > m_lwnn_map
 

Detailed Description

Definition at line 26 of file FPGATrackSimNNMap.h.

Constructor & Destructor Documentation

◆ FPGATrackSimNNMap()

FPGATrackSimNNMap::FPGATrackSimNNMap ( const std::string &  filepath)

Definition at line 26 of file FPGATrackSimNNMap.cxx.

27 {
28 
29  // Open file with NN weights
30  std::string weightsFileName = filepath;
31  std::ifstream input_cfg(weightsFileName.c_str());
32  if (input_cfg.is_open())
33  ANA_MSG_INFO("Opened file: " << weightsFileName);
34  else {
35  ANA_MSG_FATAL("Unable to open file: " << weightsFileName);
36  throw ("FPGATrackSimNNMap could not open " + weightsFileName);
37  }
38 
39  auto cfg = lwt::parse_json_graph( input_cfg );
40  m_lwnn_map = std::shared_ptr<lwt::LightweightGraph> (new lwt::LightweightGraph( cfg ));
41 }

Member Function Documentation

◆ getNNMap()

std::shared_ptr< lwt::LightweightGraph > FPGATrackSimNNMap::getNNMap ( ) const

Definition at line 45 of file FPGATrackSimNNMap.cxx.

45 {return m_lwnn_map;}

Member Data Documentation

◆ m_lwnn_map

std::shared_ptr<lwt::LightweightGraph> FPGATrackSimNNMap::m_lwnn_map
private

Definition at line 48 of file FPGATrackSimNNMap.h.


The documentation for this class was generated from the following files:
ANA_MSG_INFO
#define ANA_MSG_INFO(xmsg)
Macro printing info messages.
Definition: Control/AthToolSupport/AsgMessaging/AsgMessaging/MessageCheck.h:290
ANA_MSG_FATAL
#define ANA_MSG_FATAL(xmsg)
Macro printing fatal messages.
Definition: Control/AthToolSupport/AsgMessaging/AsgMessaging/MessageCheck.h:296
WriteCaloSwCorrections.cfg
cfg
Definition: WriteCaloSwCorrections.py:23
lwtDev::parse_json_graph
GraphConfig parse_json_graph(std::istream &json)
Definition: parse_json.cxx:71
FPGATrackSimNNMap::m_lwnn_map
std::shared_ptr< lwt::LightweightGraph > m_lwnn_map
Definition: FPGATrackSimNNMap.h:48