This class is a simple tool to access EventInfo or JetContainer variables within the JetMonitoring environment.
More...
#include <EventHistoVarTool.h>
This class is a simple tool to access EventInfo or JetContainer variables within the JetMonitoring environment.
Definition at line 40 of file EventHistoVarTool.h.
◆ StoreGateSvc_t
◆ EventHistoVarTool()
| EventHistoVarTool::EventHistoVarTool |
( |
const std::string & | type, |
|
|
const std::string & | name, |
|
|
const IInterface * | parent ) |
Definition at line 9 of file EventHistoVarTool.cxx.
9 :
11{
12 declareInterface<IEventHistoVarTool>(this);
13}
◆ ~EventHistoVarTool()
| virtual EventHistoVarTool::~EventHistoVarTool |
( |
| ) |
|
|
inlinevirtual |
◆ declareGaudiProperty()
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition at line 156 of file AthCommonDataStore.h.
158 {
161 hndl.documentation());
162
163 }
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
◆ declareProperty()
Definition at line 145 of file AthCommonDataStore.h.
145 {
148 }
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
◆ detStore()
◆ evtStore()
◆ extraDeps_update_handler()
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
◆ initialize()
| StatusCode EventHistoVarTool::initialize |
( |
| ) |
|
|
virtual |
Definition at line 15 of file EventHistoVarTool.cxx.
15 {
16
18
20 if (pos == std::string::npos){
23 }
26
27 return StatusCode::SUCCESS;
28
29}
#define ATH_CHECK
Evaluate an expression and check for errors.
◆ inputHandles()
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.
◆ interfaceID()
| const InterfaceID & IEventHistoVarTool::interfaceID |
( |
| ) |
|
|
inlinestaticinherited |
◆ msg()
◆ msgLvl()
| bool AthCommonMsg< AlgTool >::msgLvl |
( |
const MSG::Level | lvl | ) |
const |
|
inlineinherited |
◆ outputHandles()
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.
◆ renounce()
Definition at line 380 of file AthCommonDataStore.h.
381 {
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()
◆ sysInitialize()
◆ sysStart()
Handle START transition.
We override this in order to make sure that conditions handle keys can cache a pointer to the conditions container.
◆ updateVHKA()
Definition at line 308 of file AthCommonDataStore.h.
308 {
309
310
313 for (
auto k :
keys) {
315 }
316 }
317 }
std::vector< SG::VarHandleKeyArray * > m_vhka
◆ value()
the value of the variable for a given Event
Implements IEventHistoVarTool.
Definition at line 31 of file EventHistoVarTool.cxx.
31 {
32
33 SG::ReadDecorHandle<xAOD::EventInfo,float> eiDecor(
m_attName);
34 if(!eiDecor.isPresent()){
37 }
38 return eiDecor(0);
39}
#define ATH_MSG_WARNING(x)
◆ varName()
| virtual std::string EventHistoVarTool::varName |
( |
| ) |
const |
|
inlinevirtual |
◆ m_attName
Definition at line 55 of file EventHistoVarTool.h.
55{this, "Attribute", "", "Attribute name retrieved from event info container ('<event info name>.<decoration>'). If no container name prefixed, then EventInfo.<Attribute> is used."};
◆ m_defaultValue
| Gaudi::Property<float> EventHistoVarTool::m_defaultValue = {this,"Default", -1.} |
|
private |
◆ m_detStore
◆ m_evtStore
◆ m_varHandleArraysDeclared
◆ m_varName
| Gaudi::Property<std::string> EventHistoVarTool::m_varName {this,"VarName", ""} |
|
private |
◆ m_vhka
The documentation for this class was generated from the following files: