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)
 
const std::string & getNNMap () const
 

Private Attributes

std::string m_weightsFileName
 

Detailed Description

Definition at line 24 of file FPGATrackSimNNMap.h.

Constructor & Destructor Documentation

◆ FPGATrackSimNNMap()

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

Definition at line 26 of file FPGATrackSimNNMap.cxx.

26  :
27  m_weightsFileName(filepath)
28 {
29  // Open file with NN weights
30  std::ifstream input_cfg(m_weightsFileName.c_str());
31  if (input_cfg.is_open())
32  ANA_MSG_INFO("Opened file: " << m_weightsFileName);
33  else {
34  ANA_MSG_FATAL("Unable to open file: " << m_weightsFileName);
35  throw ("FPGATrackSimNNMap could not open " + m_weightsFileName);
36  }
37 
38 }

Member Function Documentation

◆ getNNMap()

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

Definition at line 41 of file FPGATrackSimNNMap.cxx.

41 {return m_weightsFileName;}

Member Data Documentation

◆ m_weightsFileName

std::string FPGATrackSimNNMap::m_weightsFileName
private

Definition at line 44 of file FPGATrackSimNNMap.h.


The documentation for this class was generated from the following files:
FPGATrackSimNNMap::m_weightsFileName
std::string m_weightsFileName
Definition: FPGATrackSimNNMap.h:44
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