ATLAS Offline Software
Loading...
Searching...
No Matches
JetDNNCalibStep Class Reference

#include <JetDNNCalibStep.h>

Inheritance diagram for JetDNNCalibStep:
Collaboration diagram for JetDNNCalibStep:

Public Member Functions

virtual StatusCode initialize () override
 Dummy implementation of the initialisation function.
virtual StatusCode calibrate (xAOD::JetContainer &) const override
 Apply calibration to a jet container.
 AsgTool (const std::string &name)
 Constructor specifying the tool instance's name.
 AsgTool (const AsgTool &)=delete
virtual void print () const
 Print the state of the tool.
ServiceHandle< StoreGateSvc > & evtStore ()
 The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
const ServiceHandle< StoreGateSvc > & detStore () const
 The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
virtual StatusCode sysInitialize () override
 Perform system initialization for an algorithm.
virtual StatusCode sysStart () override
 Handle START transition.
virtual std::vector< Gaudi::DataHandle * > inputHandles () const override
 Return this algorithm's input handles.
virtual std::vector< Gaudi::DataHandle * > outputHandles () const override
 Return this algorithm's output handles.
Gaudi::Details::PropertyBase & declareProperty (Gaudi::Property< T, V, H > &t)
void updateVHKA (Gaudi::Details::PropertyBase &)
MsgStream & msg () const
bool msgLvl (const MSG::Level lvl) const
virtual StatusCode getNominalResolutionData (const xAOD::Jet &, const JetHelper::JetContext &, double &) const
virtual StatusCode getNominalResolutionMC (const xAOD::Jet &, const JetHelper::JetContext &, double &) const
Additional helper functions, not directly mimicking Athena
template<class T>
const T * getProperty (const std::string &name) const
 Get one of the tool's properties.
const std::string & msg_level_name () const __attribute__((deprecated))
 A deprecated function for getting the message level's name.
const std::string & getName (const void *ptr) const
 Get the name of an object that is / should be in the event store.
SG::sgkey_t getKey (const void *ptr) const
 Get the (hashed) key of an object that is in the event store.

Protected Member Functions

void renounceArray (SG::VarHandleKeyArray &handlesArray)
 remove all handles from I/O resolution
std::enable_if_t< std::is_void_v< std::result_of_t< decltype(&T::renounce)(T)> > &&!std::is_base_of_v< SG::VarHandleKeyArray, T > &&std::is_base_of_v< Gaudi::DataHandle, T >, void > renounce (T &h)
void extraDeps_update_handler (Gaudi::Details::PropertyBase &ExtraDeps)
 Add StoreName to extra input/output deps as needed.

Private Types

typedef ServiceHandle< StoreGateSvcStoreGateSvc_t

Private Member Functions

Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
 specialization for handling Gaudi::Property<SG::VarHandleKey>

Private Attributes

Gaudi::Property< std::string > m_jetInScale {this, "InScale", "JetConstitScaleMomentum", "Starting jet scale"}
Gaudi::Property< std::string > m_jetOutScale {this, "OutScale", "JetDNNScaleMomentum", "Ending jet scale"}
Gaudi::Property< int > m_onnxInputShape {this, "onnxInputShape", -1}
Gaudi::Property< int > m_onnxOutputShape {this, "onnxOutputShape", -1}
ToolHandleArray< JetHelper::IVarToolm_inputVariables {this, "InputVarTool", {}, "Instance of VarTool for accessing input variables"}
Gaudi::Property< std::vector< float > > m_eScales {this, "EScales", {}, "Vector of E scales for each input variable"}
Gaudi::Property< std::vector< float > > m_normOffsets {this, "NormOffsets", {}, "Vector of normalisation offsets for each input variable"}
Gaudi::Property< std::vector< float > > m_normScales {this, "NormScales", {}, "Vector of normalisation scales for each input variable"}
ToolHandle< AthInfer::IAthInferenceToolm_onnxTool {this, "ORTInferenceTool", "AthOnnx::OnnxRuntimeInferenceTool"}
SG::ReadDecorHandleKey< xAOD::EventInfom_muKey {this, "actualInteractionsPerCrossing", "EventInfo.actualInteractionsPerCrossing", "Decoration for Actual Number of Interactions Per Crossing"}
SG::ReadHandleKey< xAOD::VertexContainerm_npvKey {this, "VertexContainer", "PrimaryVertices"}
StoreGateSvc_t m_evtStore
 Pointer to StoreGate (event store by default).
StoreGateSvc_t m_detStore
 Pointer to StoreGate (detector store by default).
std::vector< SG::VarHandleKeyArray * > m_vhka
bool m_varHandleArraysDeclared

Detailed Description

Definition at line 20 of file JetDNNCalibStep.h.

Member Typedef Documentation

◆ StoreGateSvc_t

typedef ServiceHandle<StoreGateSvc> AthCommonDataStore< AthCommonMsg< AlgTool > >::StoreGateSvc_t
privateinherited

Definition at line 388 of file AthCommonDataStore.h.

Member Function Documentation

◆ AsgTool() [1/2]

asg::AsgTool::AsgTool ( const AsgTool & )
delete

◆ AsgTool() [2/2]

asg::AsgTool::AsgTool ( const std::string & name)

Constructor specifying the tool instance's name.

Definition at line 51 of file AsgTool.cxx.

60#ifndef XAOD_STANDALONE
61 ::getType(name), ::getName(name), ::getParent(name)
62#else // not XAOD_STANDALONE
63 name
64#endif // not XAOD_STANDALONE
65 )
66#ifdef XAOD_STANDALONE
67 , m_event()
68#endif // XAOD_STANDALONE
69 {
70 ToolStore::put( this ).ignore(); // Register the tool in the ToolStore
71 }
const std::string & getName(const void *ptr) const
Get the name of an object that is / should be in the event store.
Definition AsgTool.cxx:106
::AthAlgTool AsgToolBase
Definition AsgTool.h:33

◆ calibrate()

StatusCode JetDNNCalibStep::calibrate ( xAOD::JetContainer & jets) const
overridevirtual

Apply calibration to a jet container.

Implements IJetCalibStep.

Definition at line 28 of file JetDNNCalibStep.cxx.

28 {
29
30 JetHelper::JetContext jc;
31
32 SG::ReadHandle<xAOD::VertexContainer> primaryVertexContainer(m_npvKey);
33 float NPV = JetCalibUtils::countNPV(*primaryVertexContainer);
34 jc.setValue("NPV" , NPV);
35
36 SG::ReadDecorHandle<xAOD::EventInfo,float> eventInfoDecor(m_muKey);
37 float mu = eventInfoDecor(0);
38 jc.setValue("mu", mu);
39
40 // Pass 1: compute normalized input features per jet, resolving degenerate/invalid jets
41 // immediately (they never reach the DNN). Surviving jets are batched into a single ONNX
42 // inference call below, instead of one call per jet, since the model has a dynamic batch
43 // dimension ([-1, 21] in, [-1, 3] out).
44 std::vector<xAOD::Jet*> batchJets;
45 std::vector<xAOD::JetFourMom_t> batchStartP4;
46 std::vector<float> batchInputValues;
47 batchJets.reserve(jets.size());
48 batchStartP4.reserve(jets.size());
49 batchInputValues.reserve(jets.size() * m_inputVariables.size());
50
51 for (xAOD::Jet* jet : jets){
52
53 const xAOD::JetFourMom_t jetStartP4 = jet->getAttribute<xAOD::JetFourMom_t>(m_jetInScale);
54
55 // Sync the jet's active 4-vector to InScale, so any variable reading jet.e()/jet.m()/etc.
56 // directly (e.g. log_e/log_m below) sees the same values as jetStartP4, matching
57 // GlobalLargeRDNNCalibration's setStartP4() convention.
58 jet->setJetP4(jetStartP4);
59
60 // Don't apply calibration for jets with negative or null mass or for one constituent jets
61 if (jetStartP4.mass() <= 0 || jet->numConstituents() == 1) {
62 jet->setAttribute<xAOD::JetFourMom_t>(m_jetOutScale, jetStartP4);
63 continue;
64 }
65
66 std::vector<float> inputTensorValues;
67 inputTensorValues.reserve(m_inputVariables.size());
68
69 for (long unsigned int i=0; i < m_inputVariables.size(); i++) {
70
71 // log_e/log_m/log_m_cap40: InputVariable.cpp already returns log(x*scale) for these, with
72 // eScale folded in via the VarTool's own Scale property (see JetCalibStepsConfig.py), so
73 // eScale must NOT be re-applied below for them, or it would be double-counted.
74 static const std::vector<std::string> logScaledVars = {"log_e", "log_m", "log_m_cap40"};
75 const std::string& varName = m_inputVariables[i].name();
76 bool eScaleAlreadyApplied = std::any_of(logScaledVars.begin(), logScaledVars.end(),
77 [&varName](const std::string& n) { return varName.find(n) != std::string::npos; });
78
79 float inputVar = m_inputVariables[i]->getValue(*jet, jc);
80 float eScale = m_eScales[i];
81 float normOffset = m_normOffsets[i];
82 float normScale = m_normScales[i];
83 float normalisedVar;
84
85 if (eScaleAlreadyApplied) {
86 normalisedVar = inputVar*normScale + normOffset;
87 } else {
88 normalisedVar = inputVar*eScale*normScale + normOffset;
89 }
90
91 ATH_MSG_DEBUG(m_inputVariables[i].name() << ": raw=" << inputVar << " eScale=" << eScale
92 << " normOffset=" << normOffset << " normScale=" << normScale << " normalised=" << normalisedVar);
93
94 inputTensorValues.push_back(normalisedVar);
95 }
96
97 int nNan = std::count_if(inputTensorValues.begin(), inputTensorValues.end(),
98 [](float f){ return std::isnan(f) || std::isinf(f); });
99 if (nNan > 0) {
100 ATH_MSG_WARNING("Encountered NaN or inf value in input features, will not apply calibration to this jet");
101 jet->setJetP4(jetStartP4);
102 jet->setAttribute<xAOD::JetFourMom_t>(m_jetOutScale, jetStartP4);
103 continue;
104 }
105
106 batchJets.push_back(jet);
107 batchStartP4.push_back(jetStartP4);
108 batchInputValues.insert(batchInputValues.end(), inputTensorValues.begin(), inputTensorValues.end());
109 }
110
111 if (batchJets.empty()) {
112 return StatusCode::SUCCESS;
113 }
114
115 const int64_t nBatch = static_cast<int64_t>(batchJets.size());
116
117 AthInfer::InputDataMap inputData;
118 inputData["input_1"] = std::make_pair(
119 std::vector<int64_t>{nBatch, m_onnxInputShape}, std::move(batchInputValues)
120 );
121
122 AthInfer::OutputDataMap outputData;
123 outputData["outputE"] = std::make_pair(std::vector<int64_t>{nBatch, m_onnxOutputShape}, std::vector<float>{});
124 outputData["outputM"] = std::make_pair(std::vector<int64_t>{nBatch, m_onnxOutputShape}, std::vector<float>{});
125
126 ATH_CHECK( m_onnxTool->inference(inputData, outputData) );
127
128 const std::vector<float>& outputE = std::get<std::vector<float>>(outputData["outputE"].second);
129 const std::vector<float>& outputM = std::get<std::vector<float>>(outputData["outputM"].second);
130
131 // Pass 2: combine each jet's response and rescale, in the same order the batch was filled
132 for (int64_t idx = 0; idx < nBatch; idx++) {
133
134 xAOD::Jet* jet = batchJets[idx];
135 const xAOD::JetFourMom_t& jetStartP4 = batchStartP4[idx];
136
137 // First element of each jet's output is the predicted response; remaining elements are unused here
138 float predRespE = outputE.at(idx * m_onnxOutputShape);
139 float predRespM = outputM.at(idx * m_onnxOutputShape);
140
141 ATH_MSG_DEBUG("jetStartP4: pt=" << jetStartP4.pt() << " eta=" << jetStartP4.eta()
142 << " e=" << jetStartP4.e() << " m=" << jetStartP4.mass());
143 ATH_MSG_DEBUG("Predicted response: E=" << predRespE << " M=" << predRespM);
144
145 if (predRespE == 0 || predRespM == 0) {
146 ATH_MSG_WARNING("DNN predictions give 0 values, will not apply calibration to this jet");
147 jet->setJetP4(jetStartP4);
149 continue;
150 }
151
152 // Combine the energy and mass response predictions, following the same approach as GlobalLargeRDNNCalibration
153 float calibE = jetStartP4.e() / predRespE;
154
155 // Calibrate the mass at all mass values (log_m_cap40 protects the DNN input from extreme
156 // log(mass) values for very light jets, so no output-side mass cutoff is needed here).
157 float calibM = jetStartP4.mass() / predRespM;
158
159 // Propagate energy and mass calibration to jet pT
160 float calibpT = std::sqrt(calibE*calibE - calibM*calibM) / std::cosh(jetStartP4.eta());
161
162 TLorentzVector TLVjet;
163 TLVjet.SetPtEtaPhiM(calibpT, jetStartP4.eta(), jetStartP4.phi(), calibM);
164 xAOD::JetFourMom_t calibP4;
165 calibP4.SetPxPyPzE(TLVjet.Px(), TLVjet.Py(), TLVjet.Pz(), TLVjet.E());
166
167 jet->setJetP4(calibP4);
168
169 // Set the output scale
171 }
172 return StatusCode::SUCCESS;
173}
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_DEBUG(x,...)
#define ATH_MSG_WARNING(x,...)
SG::ReadDecorHandleKey< xAOD::EventInfo > m_muKey
ToolHandle< AthInfer::IAthInferenceTool > m_onnxTool
Gaudi::Property< int > m_onnxInputShape
Gaudi::Property< int > m_onnxOutputShape
Gaudi::Property< std::vector< float > > m_eScales
Gaudi::Property< std::vector< float > > m_normOffsets
Gaudi::Property< std::string > m_jetOutScale
Gaudi::Property< std::vector< float > > m_normScales
Gaudi::Property< std::string > m_jetInScale
ToolHandleArray< JetHelper::IVarTool > m_inputVariables
SG::ReadHandleKey< xAOD::VertexContainer > m_npvKey
bool setValue(std::string_view name, const T value, bool allowOverwrite=false)
Definition JetContext.h:58
void setAttribute(const std::string &name, const T &v)
void setJetP4(const JetFourMom_t &p4)
Definition Jet_v1.cxx:182
std::map< std::string, InferenceData > OutputDataMap
std::map< std::string, InferenceData > InputDataMap
int countNPV(const VXCONT &vxCont)
str varName
end cluster ToT and charge
Jet_v1 Jet
Definition of the current "jet version".
ROOT::Math::LorentzVector< ROOT::Math::PtEtaPhiM4D< double > > JetFourMom_t
Base 4 Momentum type for Jet.
Definition JetTypes.h:17

◆ declareGaudiProperty()

Gaudi::Details::PropertyBase & AthCommonDataStore< AthCommonMsg< AlgTool > >::declareGaudiProperty ( Gaudi::Property< T, V, H > & hndl,
const SG::VarHandleKeyType &  )
inlineprivateinherited

specialization for handling Gaudi::Property<SG::VarHandleKey>

Definition at line 156 of file AthCommonDataStore.h.

158 {
160 hndl.value(),
161 hndl.documentation());
162
163 }
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)

◆ declareProperty()

Gaudi::Details::PropertyBase & AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty ( Gaudi::Property< T, V, H > & t)
inlineinherited

Definition at line 145 of file AthCommonDataStore.h.

145 {
146 typedef typename SG::HandleClassifier<T>::type htype;
148 }
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>

◆ detStore()

const ServiceHandle< StoreGateSvc > & AthCommonDataStore< AthCommonMsg< AlgTool > >::detStore ( ) const
inlineinherited

The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.

Definition at line 95 of file AthCommonDataStore.h.

◆ evtStore()

ServiceHandle< StoreGateSvc > & AthCommonDataStore< AthCommonMsg< AlgTool > >::evtStore ( )
inlineinherited

The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.

Definition at line 85 of file AthCommonDataStore.h.

◆ extraDeps_update_handler()

void AthCommonDataStore< AthCommonMsg< AlgTool > >::extraDeps_update_handler ( Gaudi::Details::PropertyBase & ExtraDeps)
protectedinherited

Add StoreName to extra input/output deps as needed.

use the logic of the VarHandleKey to parse the DataObjID keys supplied via the ExtraInputs and ExtraOuputs Properties to add the StoreName if it's not explicitly given

◆ getKey()

SG::sgkey_t asg::AsgTool::getKey ( const void * ptr) const
inherited

Get the (hashed) key of an object that is in the event store.

This is a bit of a special one. StoreGateSvc and xAOD::Event both provide ways for getting the SG::sgkey_t key for an object that is in the store, based on a bare pointer. But they provide different interfaces for doing so.

In order to allow tools to efficiently perform this operation, they can use this helper function.

See also
asg::AsgTool::getName
Parameters
ptrThe bare pointer to the object that the event store should know about
Returns
The hashed key of the object in the store. If not found, an invalid (zero) key.

Definition at line 119 of file AsgTool.cxx.

119 {
120
121#ifdef XAOD_STANDALONE
122 // In case we use @c xAOD::Event, we have a direct function call
123 // for this.
124 return evtStore()->event()->getKey( ptr );
125#else
126 const SG::DataProxy* proxy = evtStore()->proxy( ptr );
127 return ( proxy == nullptr ? 0 : proxy->sgkey() );
128#endif // XAOD_STANDALONE
129 }
ServiceHandle< StoreGateSvc > & evtStore()

◆ getName()

const std::string & asg::AsgTool::getName ( const void * ptr) const
inherited

Get the name of an object that is / should be in the event store.

This is a bit of a special one. StoreGateSvc and xAOD::Event both provide ways for getting the std::string name for an object that is in the store, based on a bare pointer. But they provide different interfaces for doing so.

In order to allow tools to efficiently perform this operation, they can use this helper function.

See also
asg::AsgTool::getKey
Parameters
ptrThe bare pointer to the object that the event store should know about
Returns
The string name of the object in the store. If not found, an empty string.

Definition at line 106 of file AsgTool.cxx.

106 {
107
108#ifdef XAOD_STANDALONE
109 // In case we use @c xAOD::Event, we have a direct function call
110 // for this.
111 return evtStore()->event()->getName( ptr );
112#else
113 const SG::DataProxy* proxy = evtStore()->proxy( ptr );
114 static const std::string dummy = "";
115 return ( proxy == nullptr ? dummy : proxy->name() );
116#endif // XAOD_STANDALONE
117 }

◆ getNominalResolutionData()

virtual StatusCode IJetCalibStep::getNominalResolutionData ( const xAOD::Jet & ,
const JetHelper::JetContext & ,
double &  ) const
inlinevirtualinherited

Reimplemented in SmearingCalibStep.

Definition at line 38 of file IJetCalibStep.h.

38{ return StatusCode::FAILURE; }

◆ getNominalResolutionMC()

virtual StatusCode IJetCalibStep::getNominalResolutionMC ( const xAOD::Jet & ,
const JetHelper::JetContext & ,
double &  ) const
inlinevirtualinherited

Reimplemented in SmearingCalibStep.

Definition at line 39 of file IJetCalibStep.h.

39{ return StatusCode::FAILURE; }

◆ getProperty()

template<class T>
const T * asg::AsgTool::getProperty ( const std::string & name) const
inherited

Get one of the tool's properties.

◆ initialize()

StatusCode JetDNNCalibStep::initialize ( void )
overridevirtual

Dummy implementation of the initialisation function.

It's here to allow the dual-use tools to skip defining an initialisation function. Since many are doing so...

Reimplemented from asg::AsgTool.

Definition at line 13 of file JetDNNCalibStep.cxx.

13 {
14
15 ATH_CHECK( m_inputVariables.retrieve() );
16 ATH_CHECK( m_npvKey.initialize() );
17 ATH_CHECK( m_muKey.initialize() );
18 ATH_CHECK( m_onnxTool.retrieve() );
19
20 if (static_cast<int>(m_inputVariables.size()) != m_onnxInputShape) {
21 ATH_MSG_FATAL("Number of input variables (" << m_inputVariables.size() << ") does not match onnxInputShape (" << m_onnxInputShape << ")");
22 return StatusCode::FAILURE;
23 }
24
25 return StatusCode::SUCCESS;
26}
#define ATH_MSG_FATAL(x,...)

◆ inputHandles()

virtual std::vector< Gaudi::DataHandle * > AthCommonDataStore< AthCommonMsg< AlgTool > >::inputHandles ( ) const
overridevirtualinherited

Return this algorithm's input handles.

We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.

◆ msg()

MsgStream & AthCommonMsg< AlgTool >::msg ( ) const
inlineinherited

Definition at line 24 of file AthCommonMsg.h.

24 {
25 return this->msgStream();
26 }

◆ msg_level_name()

const std::string & asg::AsgTool::msg_level_name ( ) const
inherited

A deprecated function for getting the message level's name.

Instead of using this, weirdly named function, user code should get the string name of the current minimum message level (in case they really need it...), with:

MSG::name( msg().level() )

This function's name doesn't follow the ATLAS coding rules, and as such will be removed in the not too distant future.

Returns
The string name of the current minimum message level that's printed

Definition at line 101 of file AsgTool.cxx.

101 {
102
103 return MSG::name( msg().level() );
104 }
MsgStream & msg() const
const std::string & name(Level lvl)
Convenience function for translating message levels to strings.
Definition MsgLevel.cxx:19

◆ msgLvl()

bool AthCommonMsg< AlgTool >::msgLvl ( const MSG::Level lvl) const
inlineinherited

Definition at line 30 of file AthCommonMsg.h.

30 {
31 return this->msgLevel(lvl);
32 }

◆ outputHandles()

virtual std::vector< Gaudi::DataHandle * > AthCommonDataStore< AthCommonMsg< AlgTool > >::outputHandles ( ) const
overridevirtualinherited

Return this algorithm's output handles.

We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.

◆ print()

void asg::AsgTool::print ( ) const
virtualinherited

◆ renounce()

std::enable_if_t< std::is_void_v< std::result_of_t< decltype(&T::renounce)(T)> > &&!std::is_base_of_v< SG::VarHandleKeyArray, T > &&std::is_base_of_v< Gaudi::DataHandle, T >, void > AthCommonDataStore< AthCommonMsg< AlgTool > >::renounce ( T & h)
inlineprotectedinherited

Definition at line 380 of file AthCommonDataStore.h.

381 {
382 h.renounce();
384 }
std::enable_if_t< std::is_void_v< std::result_of_t< decltype(&T::renounce)(T)> > &&!std::is_base_of_v< SG::VarHandleKeyArray, T > &&std::is_base_of_v< Gaudi::DataHandle, T >, void > renounce(T &h)

◆ renounceArray()

void AthCommonDataStore< AthCommonMsg< AlgTool > >::renounceArray ( SG::VarHandleKeyArray & handlesArray)
inlineprotectedinherited

remove all handles from I/O resolution

Definition at line 364 of file AthCommonDataStore.h.

364 {
366 }

◆ sysInitialize()

virtual StatusCode AthCommonDataStore< AthCommonMsg< AlgTool > >::sysInitialize ( )
overridevirtualinherited

Perform system initialization for an algorithm.

We override this to declare all the elements of handle key arrays at the end of initialization. See comments on updateVHKA.

Reimplemented in asg::AsgMetadataTool, AthCheckedComponent< AthAlgTool >, and AthCheckedComponent<::AthAlgTool >.

◆ sysStart()

virtual StatusCode AthCommonDataStore< AthCommonMsg< AlgTool > >::sysStart ( )
overridevirtualinherited

Handle START transition.

We override this in order to make sure that conditions handle keys can cache a pointer to the conditions container.

◆ updateVHKA()

void AthCommonDataStore< AthCommonMsg< AlgTool > >::updateVHKA ( Gaudi::Details::PropertyBase & )
inlineinherited

Definition at line 308 of file AthCommonDataStore.h.

308 {
309 // debug() << "updateVHKA for property " << p.name() << " " << p.toString()
310 // << " size: " << m_vhka.size() << endmsg;
311 for (auto &a : m_vhka) {
313 for (auto k : keys) {
314 k->setOwner(this);
315 }
316 }
317 }
std::vector< SG::VarHandleKeyArray * > m_vhka

Member Data Documentation

◆ m_detStore

StoreGateSvc_t AthCommonDataStore< AthCommonMsg< AlgTool > >::m_detStore
privateinherited

Pointer to StoreGate (detector store by default).

Definition at line 393 of file AthCommonDataStore.h.

◆ m_eScales

Gaudi::Property<std::vector<float> > JetDNNCalibStep::m_eScales {this, "EScales", {}, "Vector of E scales for each input variable"}
private

Definition at line 43 of file JetDNNCalibStep.h.

43{this, "EScales", {}, "Vector of E scales for each input variable"};

◆ m_evtStore

StoreGateSvc_t AthCommonDataStore< AthCommonMsg< AlgTool > >::m_evtStore
privateinherited

Pointer to StoreGate (event store by default).

Definition at line 390 of file AthCommonDataStore.h.

◆ m_inputVariables

ToolHandleArray<JetHelper::IVarTool> JetDNNCalibStep::m_inputVariables {this, "InputVarTool", {}, "Instance of VarTool for accessing input variables"}
private

Definition at line 42 of file JetDNNCalibStep.h.

42{this, "InputVarTool", {}, "Instance of VarTool for accessing input variables"};

◆ m_jetInScale

Gaudi::Property<std::string> JetDNNCalibStep::m_jetInScale {this, "InScale", "JetConstitScaleMomentum", "Starting jet scale"}
private

Definition at line 34 of file JetDNNCalibStep.h.

34{this, "InScale", "JetConstitScaleMomentum", "Starting jet scale"};

◆ m_jetOutScale

Gaudi::Property<std::string> JetDNNCalibStep::m_jetOutScale {this, "OutScale", "JetDNNScaleMomentum", "Ending jet scale"}
private

Definition at line 35 of file JetDNNCalibStep.h.

35{this, "OutScale", "JetDNNScaleMomentum", "Ending jet scale"};

◆ m_muKey

SG::ReadDecorHandleKey<xAOD::EventInfo> JetDNNCalibStep::m_muKey {this, "actualInteractionsPerCrossing", "EventInfo.actualInteractionsPerCrossing", "Decoration for Actual Number of Interactions Per Crossing"}
private

Definition at line 53 of file JetDNNCalibStep.h.

53{this, "actualInteractionsPerCrossing", "EventInfo.actualInteractionsPerCrossing", "Decoration for Actual Number of Interactions Per Crossing"};

◆ m_normOffsets

Gaudi::Property<std::vector<float> > JetDNNCalibStep::m_normOffsets {this, "NormOffsets", {}, "Vector of normalisation offsets for each input variable"}
private

Definition at line 44 of file JetDNNCalibStep.h.

44{this, "NormOffsets", {}, "Vector of normalisation offsets for each input variable"};

◆ m_normScales

Gaudi::Property<std::vector<float> > JetDNNCalibStep::m_normScales {this, "NormScales", {}, "Vector of normalisation scales for each input variable"}
private

Definition at line 45 of file JetDNNCalibStep.h.

45{this, "NormScales", {}, "Vector of normalisation scales for each input variable"};

◆ m_npvKey

SG::ReadHandleKey<xAOD::VertexContainer> JetDNNCalibStep::m_npvKey {this, "VertexContainer", "PrimaryVertices"}
private

Definition at line 54 of file JetDNNCalibStep.h.

54{this, "VertexContainer", "PrimaryVertices"};

◆ m_onnxInputShape

Gaudi::Property<int> JetDNNCalibStep::m_onnxInputShape {this, "onnxInputShape", -1}
private

Definition at line 38 of file JetDNNCalibStep.h.

38{this, "onnxInputShape", -1}; //Value -1 is just a default value

◆ m_onnxOutputShape

Gaudi::Property<int> JetDNNCalibStep::m_onnxOutputShape {this, "onnxOutputShape", -1}
private

Definition at line 39 of file JetDNNCalibStep.h.

39{this, "onnxOutputShape", -1};

◆ m_onnxTool

ToolHandle<AthInfer::IAthInferenceTool> JetDNNCalibStep::m_onnxTool {this, "ORTInferenceTool", "AthOnnx::OnnxRuntimeInferenceTool"}
private

Definition at line 48 of file JetDNNCalibStep.h.

48{this, "ORTInferenceTool", "AthOnnx::OnnxRuntimeInferenceTool"};

◆ m_varHandleArraysDeclared

bool AthCommonDataStore< AthCommonMsg< AlgTool > >::m_varHandleArraysDeclared
privateinherited

Definition at line 399 of file AthCommonDataStore.h.

◆ m_vhka

std::vector<SG::VarHandleKeyArray*> AthCommonDataStore< AthCommonMsg< AlgTool > >::m_vhka
privateinherited

Definition at line 398 of file AthCommonDataStore.h.


The documentation for this class was generated from the following files: