![]() |
ATLAS Offline Software
|
#include <RingerSelector.h>
Public Member Functions | |
| RingerSelector (const std::string &name) | |
| Standard constructor. | |
| ~RingerSelector ()=default | |
| Standard destructor. | |
| StatusCode | read_from (const std::string &, AthOnnx::IOnnxRuntimeSvc *) |
| read tunings from configuration file | |
| std::vector< std::vector< float > > | prepare_inputs (unsigned barcode, const xAOD::TrigRingerRings *, const xAOD::TrigElectron *) const |
| prepare all inputs | |
| float | predict (const xAOD::TrigRingerRings *, const xAOD::TrigElectron *) const |
| Calculation of model output. | |
| bool | accept (const xAOD::TrigRingerRings *, float discr, float mu) const |
| Accept method. | |
| void | setLevel (MSG::Level lvl) |
| Change the current logging level. | |
Functions providing the same interface as AthMessaging | |
| bool | msgLvl (const MSG::Level lvl) const |
| Test the output level of the object. | |
| MsgStream & | msg () const |
| The standard message stream. | |
| MsgStream & | msg (const MSG::Level lvl) const |
| The standard message stream. | |
Private Member Functions | |
| template<typename T> | |
| bool | strtof (const std::string &input, T &f) |
| parse tenv string into list with type T | |
| template<typename T> | |
| std::vector< T > | GetValues (const std::string &input, TEnv &env) |
| Get the list of values inside of tenv. | |
| std::vector< std::string > | GetPaths (const std::string &input, TEnv &env) |
| Get the list of paths inside of tenv. | |
| std::string | GetBasePath (const std::string &path) const |
| Get basepath from calib path. | |
| void | initMessaging () const |
| Initialize our message level and MessageSvc. | |
Private Attributes | |
| std::vector< Ringer::onnx::Model > | m_models |
| hold all onnx sessions | |
| std::vector< Ringer::onnx::Threshold > | m_thresholds |
| hold all thresholds definitions | |
| std::string | m_nm |
| Message source name. | |
| boost::thread_specific_ptr< MsgStream > | m_msg_tls |
| MsgStream instance (a std::cout like with print-out levels) | |
| std::atomic< IMessageSvc * > | m_imsg { nullptr } |
| MessageSvc pointer. | |
| std::atomic< MSG::Level > | m_lvl { MSG::NIL } |
| Current logging level. | |
| std::atomic_flag m_initialized | ATLAS_THREAD_SAFE = ATOMIC_FLAG_INIT |
| Messaging initialized (initMessaging) | |
Definition at line 27 of file RingerSelector.h.
| Ringer::onnx::RingerSelector::RingerSelector | ( | const std::string & | name | ) |
Standard constructor.
Definition at line 20 of file RingerSelector.cxx.
|
default |
Standard destructor.
| bool Ringer::onnx::RingerSelector::accept | ( | const xAOD::TrigRingerRings * | ringsCluster, |
| float | discr, | ||
| float | mu ) const |
Accept method.
Definition at line 109 of file RingerSelector.cxx.
|
private |
Get basepath from calib path.
Definition at line 286 of file RingerSelector.cxx.
|
private |
Get the list of paths inside of tenv.
Definition at line 269 of file RingerSelector.cxx.
|
private |
Get the list of values inside of tenv.
Definition at line 247 of file RingerSelector.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.
| float Ringer::onnx::RingerSelector::predict | ( | const xAOD::TrigRingerRings * | ringsCluster, |
| const xAOD::TrigElectron * | el ) const |
Calculation of model output.
Definition at line 126 of file RingerSelector.cxx.
| std::vector< std::vector< float > > Ringer::onnx::RingerSelector::prepare_inputs | ( | unsigned | barcode, |
| const xAOD::TrigRingerRings * | ringsCluster, | ||
| const xAOD::TrigElectron * | ) const |
prepare all inputs
Definition at line 151 of file RingerSelector.cxx.
| StatusCode Ringer::onnx::RingerSelector::read_from | ( | const std::string & | path, |
| AthOnnx::IOnnxRuntimeSvc * | svc ) |
read tunings from configuration file
Definition at line 26 of file RingerSelector.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.
|
private |
parse tenv string into list with type T
Definition at line 216 of file RingerSelector.cxx.
|
mutableprivateinherited |
Messaging initialized (initMessaging)
Definition at line 141 of file AthMessaging.h.
|
mutableprivateinherited |
|
mutableprivateinherited |
|
private |
hold all onnx sessions
Definition at line 66 of file RingerSelector.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 |
hold all thresholds definitions
Definition at line 68 of file RingerSelector.h.