ATLAS Offline Software
Trigger
EFTracking
FPGATrackSim
FPGATrackSimMaps
src
FPGATrackSimNNMap.cxx
Go to the documentation of this file.
1
// Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
2
10
#include "
FPGATrackSimMaps/FPGATrackSimNNMap.h
"
11
12
#include <string>
13
#include <sstream>
14
#include <exception>
15
#include <
AsgMessaging/MessageCheck.h
>
16
17
using namespace
std;
18
using namespace
asg::msgUserCode;
19
21
// Constructor/Desctructor
23
24
25
26
FPGATrackSimNNMap::FPGATrackSimNNMap
(
const
std::string & filepath) :
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
}
39
40
41
const
std::string&
FPGATrackSimNNMap::getNNMap
()
const
{
return
m_weightsFileName
;}
FPGATrackSimNNMap.h
Map for NN tracking.
FPGATrackSimNNMap::getNNMap
const std::string & getNNMap() const
Definition:
FPGATrackSimNNMap.cxx:41
FPGATrackSimNNMap::m_weightsFileName
std::string m_weightsFileName
Definition:
FPGATrackSimNNMap.h:44
FPGATrackSimNNMap::FPGATrackSimNNMap
FPGATrackSimNNMap(const std::string &filepath)
Definition:
FPGATrackSimNNMap.cxx:26
ANA_MSG_INFO
#define ANA_MSG_INFO(xmsg)
Macro printing info messages.
Definition:
Control/AthToolSupport/AsgMessaging/AsgMessaging/MessageCheck.h:290
MessageCheck.h
macros for messaging and checking status codes
ANA_MSG_FATAL
#define ANA_MSG_FATAL(xmsg)
Macro printing fatal messages.
Definition:
Control/AthToolSupport/AsgMessaging/AsgMessaging/MessageCheck.h:296
Generated on Sun Dec 22 2024 21:10:38 for ATLAS Offline Software by
1.8.18