ATLAS Offline Software
|
Wrapper around lwtnn to compute the output score of a neural network. More...
#include <TauJetRNN.h>
Classes | |
struct | Config |
Public Member Functions | |
TauJetRNN (const std::string &filename, const Config &config) | |
~TauJetRNN () | |
float | compute (const xAOD::TauJet &tau, const std::vector< const xAOD::TauTrack * > &tracks, const std::vector< xAOD::CaloVertexedTopoCluster > &clusters) const |
bool | calculateInputVariables (const xAOD::TauJet &tau, const std::vector< const xAOD::TauTrack * > &tracks, const std::vector< xAOD::CaloVertexedTopoCluster > &clusters, std::map< std::string, std::map< std::string, double >> &scalarInputs, std::map< std::string, std::map< std::string, std::vector< double >>> &vectorInputs) const |
const TauJetRNNUtils::VarCalc * | variable_calculator () const |
operator bool () const | |
void | setLevel (MSG::Level lvl) |
Change the current logging level. More... | |
Private Types | |
using | VariableMap = std::map< std::string, double > |
using | VectorMap = std::map< std::string, std::vector< double > > |
using | InputMap = std::map< std::string, VariableMap > |
using | InputSequenceMap = std::map< std::string, VectorMap > |
Private Member Functions | |
void | initMessaging () const |
Initialize our message level and MessageSvc. More... | |
Private Attributes | |
const Config | m_config |
std::unique_ptr< const lwt::LightweightGraph > | m_graph |
std::vector< std::string > | m_scalar_inputs |
std::vector< std::string > | m_track_inputs |
std::vector< std::string > | m_cluster_inputs |
std::unique_ptr< TauJetRNNUtils::VarCalc > | m_var_calc |
std::string | m_nm |
Message source name. More... | |
boost::thread_specific_ptr< MsgStream > | m_msg_tls |
MsgStream instance (a std::cout like with print-out levels) More... | |
std::atomic< IMessageSvc * > | m_imsg { nullptr } |
MessageSvc pointer. More... | |
std::atomic< MSG::Level > | m_lvl { MSG::NIL } |
Current logging level. More... | |
std::atomic_flag m_initialized | ATLAS_THREAD_SAFE = ATOMIC_FLAG_INIT |
Messaging initialized (initMessaging) More... | |
Wrapper around lwtnn to compute the output score of a neural network.
Configures the network and computes the network outputs given the input objects. Retrieval of input variables is handled internally.
Definition at line 34 of file TauJetRNN.h.
|
private |
Definition at line 77 of file TauJetRNN.h.
|
private |
Definition at line 78 of file TauJetRNN.h.
|
private |
Definition at line 74 of file TauJetRNN.h.
|
private |
Definition at line 75 of file TauJetRNN.h.
Definition at line 17 of file TauJetRNN.cxx.
TauJetRNN::~TauJetRNN | ( | ) |
Definition at line 89 of file TauJetRNN.cxx.
bool TauJetRNN::calculateInputVariables | ( | const xAOD::TauJet & | tau, |
const std::vector< const xAOD::TauTrack * > & | tracks, | ||
const std::vector< xAOD::CaloVertexedTopoCluster > & | clusters, | ||
std::map< std::string, std::map< std::string, double >> & | scalarInputs, | ||
std::map< std::string, std::map< std::string, std::vector< double >>> & | vectorInputs | ||
) | const |
Definition at line 105 of file TauJetRNN.cxx.
float TauJetRNN::compute | ( | const xAOD::TauJet & | tau, |
const std::vector< const xAOD::TauTrack * > & | tracks, | ||
const std::vector< xAOD::CaloVertexedTopoCluster > & | clusters | ||
) | const |
Definition at line 91 of file TauJetRNN.cxx.
|
privateinherited |
Initialize our message level and MessageSvc.
This method should only be called once.
Definition at line 39 of file AthMessaging.cxx.
|
inherited |
The standard message stream.
Definition at line 49 of file AsgMessaging.cxx.
|
inherited |
The standard message stream.
lvl | The message level to set the stream to |
Definition at line 57 of file AsgMessaging.cxx.
|
inherited |
Test the output level of the object.
lvl | The message level to test against |
true
If messages at level "lvl" will be printed Definition at line 41 of file AsgMessaging.cxx.
|
inlineexplicit |
Definition at line 68 of file TauJetRNN.h.
|
inherited |
Change the current logging level.
Use this rather than msg().setLevel() for proper operation with MT.
Definition at line 28 of file AthMessaging.cxx.
|
inline |
Definition at line 64 of file TauJetRNN.h.
|
mutableprivateinherited |
Messaging initialized (initMessaging)
Definition at line 141 of file AthMessaging.h.
|
private |
Definition at line 87 of file TauJetRNN.h.
Definition at line 81 of file TauJetRNN.h.
|
private |
Definition at line 82 of file TauJetRNN.h.
|
mutableprivateinherited |
MessageSvc pointer.
Definition at line 135 of file AthMessaging.h.
|
mutableprivateinherited |
Current logging level.
Definition at line 138 of file AthMessaging.h.
|
mutableprivateinherited |
MsgStream instance (a std::cout like with print-out levels)
Definition at line 132 of file AthMessaging.h.
|
privateinherited |
Message source name.
Definition at line 129 of file AthMessaging.h.
|
private |
Definition at line 85 of file TauJetRNN.h.
|
private |
Definition at line 86 of file TauJetRNN.h.
|
private |
Definition at line 90 of file TauJetRNN.h.