ATLAS Offline Software
|
Tool to calculate input variables for the GNN-based tau identification. More...
#include <TauGNNUtils.h>
Public Types | |
using | ScalarCalc = bool(*)(const xAOD::TauJet &, double &) |
using | TrackCalc = bool(*)(const xAOD::TauJet &, const xAOD::TauTrack &, double &) |
using | ClusterCalc = bool(*)(const xAOD::TauJet &, const xAOD::CaloVertexedTopoCluster &, double &) |
Public Member Functions | |
GNNVarCalc () | |
~GNNVarCalc ()=default | |
bool | compute (const std::string &name, const xAOD::TauJet &tau, double &out) const |
bool | compute (const std::string &name, const xAOD::TauJet &tau, const std::vector< const xAOD::TauTrack * > &tracks, std::vector< double > &out) const |
bool | compute (const std::string &name, const xAOD::TauJet &tau, const std::vector< xAOD::CaloVertexedTopoCluster > &clusters, std::vector< double > &out) const |
void | insert (const std::string &name, ScalarCalc func, const std::vector< std::string > &scalar_vars) |
void | insert (const std::string &name, TrackCalc func, const std::vector< std::string > &track_vars) |
void | insert (const std::string &name, ClusterCalc func, const std::vector< std::string > &cluster_vars) |
void | setLevel (MSG::Level lvl) |
Change the current logging level. More... | |
Private Member Functions | |
void | initMessaging () const |
Initialize our message level and MessageSvc. More... | |
Private Attributes | |
std::unordered_map< std::string, ScalarCalc > | m_scalar_map |
std::unordered_map< std::string, TrackCalc > | m_track_map |
std::unordered_map< std::string, ClusterCalc > | m_cluster_map |
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... | |
Tool to calculate input variables for the GNN-based tau identification.
Used to calculate input variables for (onnx)GNN-based tau identification on the fly by providing a mapping between variable names (strings) and functions to calculate these variables.
Definition at line 31 of file TauGNNUtils.h.
using TauGNNUtils::GNNVarCalc::ClusterCalc = bool (*)(const xAOD::TauJet &, const xAOD::CaloVertexedTopoCluster &, double &) |
Definition at line 39 of file TauGNNUtils.h.
using TauGNNUtils::GNNVarCalc::ScalarCalc = bool (*)(const xAOD::TauJet &, double &) |
Definition at line 34 of file TauGNNUtils.h.
using TauGNNUtils::GNNVarCalc::TrackCalc = bool (*)(const xAOD::TauJet &, const xAOD::TauTrack &, double &) |
Definition at line 36 of file TauGNNUtils.h.
TauGNNUtils::GNNVarCalc::GNNVarCalc | ( | ) |
Definition at line 13 of file TauGNNUtils.cxx.
|
default |
bool TauGNNUtils::GNNVarCalc::compute | ( | const std::string & | name, |
const xAOD::TauJet & | tau, | ||
const std::vector< const xAOD::TauTrack * > & | tracks, | ||
std::vector< double > & | out | ||
) | const |
Definition at line 31 of file TauGNNUtils.cxx.
bool TauGNNUtils::GNNVarCalc::compute | ( | const std::string & | name, |
const xAOD::TauJet & | tau, | ||
const std::vector< xAOD::CaloVertexedTopoCluster > & | clusters, | ||
std::vector< double > & | out | ||
) | const |
Definition at line 57 of file TauGNNUtils.cxx.
bool TauGNNUtils::GNNVarCalc::compute | ( | const std::string & | name, |
const xAOD::TauJet & | tau, | ||
double & | out | ||
) | const |
Definition at line 16 of file TauGNNUtils.cxx.
|
privateinherited |
Initialize our message level and MessageSvc.
This method should only be called once.
Definition at line 39 of file AthMessaging.cxx.
void TauGNNUtils::GNNVarCalc::insert | ( | const std::string & | name, |
ClusterCalc | func, | ||
const std::vector< std::string > & | cluster_vars | ||
) |
Definition at line 103 of file TauGNNUtils.cxx.
void TauGNNUtils::GNNVarCalc::insert | ( | const std::string & | name, |
ScalarCalc | func, | ||
const std::vector< std::string > & | scalar_vars | ||
) |
Definition at line 83 of file TauGNNUtils.cxx.
void TauGNNUtils::GNNVarCalc::insert | ( | const std::string & | name, |
TrackCalc | func, | ||
const std::vector< std::string > & | track_vars | ||
) |
Definition at line 93 of file TauGNNUtils.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.
|
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.
|
mutableprivateinherited |
Messaging initialized (initMessaging)
Definition at line 141 of file AthMessaging.h.
|
private |
Definition at line 70 of file TauGNNUtils.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 68 of file TauGNNUtils.h.
|
private |
Definition at line 69 of file TauGNNUtils.h.