ATLAS Offline Software
Loading...
Searching...
No Matches
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
9
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
;}
MessageCheck.h
macros for messaging and checking status codes
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
FPGATrackSimNNMap.h
Map for NN tracking.
FPGATrackSimNNMap::FPGATrackSimNNMap
FPGATrackSimNNMap(const std::string &filepath)
Definition
FPGATrackSimNNMap.cxx:26
FPGATrackSimNNMap::m_weightsFileName
std::string m_weightsFileName
Definition
FPGATrackSimNNMap.h:44
FPGATrackSimNNMap::getNNMap
const std::string & getNNMap() const
Definition
FPGATrackSimNNMap.cxx:41
std
STL namespace.
Generated on
for ATLAS Offline Software by
1.14.0