ATLAS Offline Software
|
#include <GlobalLargeRDNNCalibration.h>
Classes | |
struct | VarRetriever |
VarRetriever is a generic class to access Jet and/or JetEventInfo variables. More... | |
Public Member Functions | |
GlobalLargeRDNNCalibration () | |
The constructor. More... | |
GlobalLargeRDNNCalibration (const std::string &name) | |
The constructor. More... | |
GlobalLargeRDNNCalibration (const std::string &name, TEnv *config, const TString &calibArea, bool dev) | |
The constructor, which is used by the JetCalibrationTool. More... | |
virtual | ~GlobalLargeRDNNCalibration () |
The destructor. More... | |
virtual StatusCode | initialize () override |
Returns the charged fraction of a jet. More... | |
virtual void | setUnitsGeV (bool useGeV) |
virtual StatusCode | getNominalResolutionData (const xAOD::Jet &, double &) const |
virtual StatusCode | getNominalResolutionMC (const xAOD::Jet &, double &) const |
void | setLevel (MSG::Level lvl) |
Change the current logging level. More... | |
Protected Member Functions | |
virtual StatusCode | calibrate (xAOD::Jet &jet, JetEventInfo &) const override |
virtual StatusCode | setStartP4 (xAOD::Jet &jet) const |
Protected Attributes | |
double | m_GeV |
std::string | m_jetStartScale |
std::string | m_name |
Private Member Functions | |
std::vector< float > | getJetFeatures (xAOD::Jet &jet_reco, JetEventInfo &jetEventInfo) const |
Returns a vector of input features for the NN. More... | |
void | initMessaging () const |
Initialize our message level and MessageSvc. More... | |
Private Attributes | |
std::vector< TString > | m_NNInputs |
std::vector< double > | m_eScales |
std::vector< double > | m_NormOffsets |
std::vector< double > | m_NormScales |
std::string | m_modelFileName |
std::vector< VarRetriever * > | m_varretrievers |
std::unique_ptr< Ort::Session > | m_session |
std::vector< int64_t > | m_input_node_dims |
std::vector< const char * > | m_input_node_names |
std::vector< int64_t > | m_output_node_dims |
std::vector< const char * > | m_output_node_names |
TEnv * | m_config {} |
std::string | m_calibArea |
bool | m_devMode {} |
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... | |
Definition at line 32 of file GlobalLargeRDNNCalibration.h.
GlobalLargeRDNNCalibration::GlobalLargeRDNNCalibration | ( | ) |
The constructor.
Constructors.
Note that this doesn't have all the necessary information, so it will not configure things correctly.
Definition at line 186 of file GlobalLargeRDNNCalibration.cxx.
GlobalLargeRDNNCalibration::GlobalLargeRDNNCalibration | ( | const std::string & | name | ) |
The constructor.
Note that this doesn't have all the necessary information, so it will not configure things correctly.
name | The name of the tool being created |
Definition at line 192 of file GlobalLargeRDNNCalibration.cxx.
GlobalLargeRDNNCalibration::GlobalLargeRDNNCalibration | ( | const std::string & | name, |
TEnv * | config, | ||
const TString & | calibArea, | ||
bool | dev | ||
) |
The constructor, which is used by the JetCalibrationTool.
name | The name of the tool being created |
config | The name of the config file for the calibration |
jetAlgo | The name of the jet collection |
calibAreaTag | The tag for this calibration |
dev | A flag for if the calibration is run in development mode |
Definition at line 198 of file GlobalLargeRDNNCalibration.cxx.
|
virtual |
|
overrideprotectedvirtual |
Implements JetCalibrationStep.
Definition at line 322 of file GlobalLargeRDNNCalibration.cxx.
|
private |
Returns a vector of input features for the NN.
jet_reco | The jet |
jetEventInfo | A set of information about the event and jet |
Definition at line 426 of file GlobalLargeRDNNCalibration.cxx.
|
virtualinherited |
Reimplemented in JetSmearingCorrection.
Definition at line 33 of file JetCalibrationStep.cxx.
|
virtualinherited |
Reimplemented in JetSmearingCorrection.
Definition at line 38 of file JetCalibrationStep.cxx.
|
overridevirtual |
Returns the charged fraction of a jet.
name | The name of the tool being created |
Implements JetCalibrationStep.
Definition at line 210 of file GlobalLargeRDNNCalibration.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.
|
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.
|
protectedvirtualinherited |
Definition at line 21 of file JetCalibrationStep.cxx.
|
inlinevirtualinherited |
Definition at line 30 of file JetCalibrationStep.h.
|
mutableprivateinherited |
Messaging initialized (initMessaging)
Definition at line 141 of file AthMessaging.h.
|
private |
Definition at line 103 of file GlobalLargeRDNNCalibration.h.
|
private |
Definition at line 102 of file GlobalLargeRDNNCalibration.h.
|
private |
Definition at line 104 of file GlobalLargeRDNNCalibration.h.
|
private |
Definition at line 89 of file GlobalLargeRDNNCalibration.h.
|
protectedinherited |
Definition at line 40 of file JetCalibrationStep.h.
|
mutableprivateinherited |
MessageSvc pointer.
Definition at line 135 of file AthMessaging.h.
|
private |
Definition at line 97 of file GlobalLargeRDNNCalibration.h.
|
private |
Definition at line 98 of file GlobalLargeRDNNCalibration.h.
|
protectedinherited |
Definition at line 41 of file JetCalibrationStep.h.
|
mutableprivateinherited |
Current logging level.
Definition at line 138 of file AthMessaging.h.
|
private |
Definition at line 92 of file GlobalLargeRDNNCalibration.h.
|
mutableprivateinherited |
MsgStream instance (a std::cout like with print-out levels)
Definition at line 132 of file AthMessaging.h.
|
protectedinherited |
Definition at line 42 of file JetCalibrationStep.h.
|
privateinherited |
Message source name.
Definition at line 129 of file AthMessaging.h.
|
private |
Definition at line 88 of file GlobalLargeRDNNCalibration.h.
|
private |
Definition at line 90 of file GlobalLargeRDNNCalibration.h.
|
private |
Definition at line 91 of file GlobalLargeRDNNCalibration.h.
|
private |
Definition at line 99 of file GlobalLargeRDNNCalibration.h.
|
private |
Definition at line 100 of file GlobalLargeRDNNCalibration.h.
|
private |
Definition at line 96 of file GlobalLargeRDNNCalibration.h.
|
private |
Definition at line 94 of file GlobalLargeRDNNCalibration.h.