![]() |
ATLAS Offline Software
|
Tool to calculate input variables for the RNN-based tau identification. More...
#include <TauJetRNNUtils.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 | |
| VarCalc () | |
| ~VarCalc ()=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 RNN-based tau identification.
Used to calculate input variables of the RNN-based tau identification on the fly by providing a mapping between variable names (strings) and functions to calculate these variables.
Definition at line 29 of file TauJetRNNUtils.h.
| using TauJetRNNUtils::VarCalc::ClusterCalc = bool (*)(const xAOD::TauJet &, const xAOD::CaloVertexedTopoCluster &, double &) |
Definition at line 37 of file TauJetRNNUtils.h.
| using TauJetRNNUtils::VarCalc::ScalarCalc = bool (*)(const xAOD::TauJet &, double &) |
Definition at line 32 of file TauJetRNNUtils.h.
| using TauJetRNNUtils::VarCalc::TrackCalc = bool (*)(const xAOD::TauJet &, const xAOD::TauTrack &, double &) |
Definition at line 34 of file TauJetRNNUtils.h.
| TauJetRNNUtils::VarCalc::VarCalc | ( | ) |
Definition at line 11 of file TauJetRNNUtils.cxx.
|
default |
| bool TauJetRNNUtils::VarCalc::compute | ( | const std::string & | name, |
| const xAOD::TauJet & | tau, | ||
| const std::vector< const xAOD::TauTrack * > & | tracks, | ||
| std::vector< double > & | out | ||
| ) | const |
Definition at line 29 of file TauJetRNNUtils.cxx.
| bool TauJetRNNUtils::VarCalc::compute | ( | const std::string & | name, |
| const xAOD::TauJet & | tau, | ||
| const std::vector< xAOD::CaloVertexedTopoCluster > & | clusters, | ||
| std::vector< double > & | out | ||
| ) | const |
Definition at line 54 of file TauJetRNNUtils.cxx.
| bool TauJetRNNUtils::VarCalc::compute | ( | const std::string & | name, |
| const xAOD::TauJet & | tau, | ||
| double & | out | ||
| ) | const |
Definition at line 14 of file TauJetRNNUtils.cxx.
|
privateinherited |
Initialize our message level and MessageSvc.
This method should only be called once.
Definition at line 39 of file AthMessaging.cxx.
| void TauJetRNNUtils::VarCalc::insert | ( | const std::string & | name, |
| ClusterCalc | func, | ||
| const std::vector< std::string > & | cluster_vars | ||
| ) |
Definition at line 99 of file TauJetRNNUtils.cxx.
| void TauJetRNNUtils::VarCalc::insert | ( | const std::string & | name, |
| ScalarCalc | func, | ||
| const std::vector< std::string > & | scalar_vars | ||
| ) |
Definition at line 79 of file TauJetRNNUtils.cxx.
| void TauJetRNNUtils::VarCalc::insert | ( | const std::string & | name, |
| TrackCalc | func, | ||
| const std::vector< std::string > & | track_vars | ||
| ) |
Definition at line 89 of file TauJetRNNUtils.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 68 of file TauJetRNNUtils.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 66 of file TauJetRNNUtils.h.
|
private |
Definition at line 67 of file TauJetRNNUtils.h.
1.8.18