Tool to retrieve all TriggerTowers from bytestream.
More...
#include <TrigT1CaloDataAccessV2.h>
Tool to retrieve all TriggerTowers from bytestream.
- Author
- Alexander Mazurov alexa.nosp@m.nder.nosp@m..mazu.nosp@m.rov@.nosp@m.cern..nosp@m.ch
Definition at line 25 of file TrigT1CaloDataAccessV2.h.
◆ StoreGateSvc_t
◆ TrigT1CaloDataAccessV2()
| LVL1BS::TrigT1CaloDataAccessV2::TrigT1CaloDataAccessV2 |
( |
const std::string & | name | ) |
|
Definition at line 19 of file TrigT1CaloDataAccessV2.cxx.
21 m_tool(
"LVL1BS::PpmByteStreamReadV1V2Tool/PpmByteStreamReadV1V2Tool")
22{
23
24}
ToolHandle< LVL1BS::PpmByteStreamReadV1V2Tool > m_tool
Tool that does the actual work.
◆ 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
◆ 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::TEvent 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
-
| ptr | The 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
123
124 return evtStore()->event()->getKey( ptr );
125#else
127 return ( proxy ==
nullptr ? 0 :
proxy->sgkey() );
128#endif
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::TEvent 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
-
| ptr | The 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
110
111 return evtStore()->event()->getName( ptr );
112#else
114 static const std::string
dummy =
"";
115 return ( proxy ==
nullptr ? dummy :
proxy->name() );
116#endif
117 }
◆ getProperty()
template<class T>
| const T * asg::AsgTool::getProperty |
( |
const std::string & | name | ) |
const |
|
inherited |
Get one of the tool's properties.
◆ initialize()
| StatusCode LVL1BS::TrigT1CaloDataAccessV2::initialize |
( |
void | | ) |
|
|
virtual |
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 30 of file TrigT1CaloDataAccessV2.cxx.
31{
33
34
36
37 return StatusCode::SUCCESS;
38}
#define 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.
◆ loadTriggerTowers()
◆ msg()
◆ 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
104 }
const std::string & name(Level lvl)
Convenience function for translating message levels to strings.
◆ 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.
◆ print()
| void asg::AsgTool::print |
( |
| ) |
const |
|
virtualinherited |
Print the state of the tool.
Implements asg::IAsgTool.
Reimplemented in AsgHelloTool, HI::HIPileupTool, JetBottomUpSoftDrop, JetConstituentsRetriever, JetDumper, JetFinder, JetFromPseudojet, JetModifiedMassDrop, JetPileupLabelingTool, JetPruner, JetPseudojetRetriever, JetReclusterer, JetReclusteringTool, JetRecTool, JetRecursiveSoftDrop, JetSoftDrop, JetSplitter, JetSubStructureMomentToolsBase, JetToolRunner, JetTrimmer, JetTruthLabelingTool, KtDeltaRTool, and LundVariablesTool.
Definition at line 131 of file AsgTool.cxx.
131 {
132
134 return;
135 }
◆ PrintTriggerTowers()
| StatusCode LVL1BS::TrigT1CaloDataAccessV2::PrintTriggerTowers |
( |
| ) |
|
|
virtual |
Implements LVL1BS::ITrigT1CaloDataAccessV2.
Definition at line 50 of file TrigT1CaloDataAccessV2.cxx.
51{
54
55 ttCollection.setStore(&aux);
58 return StatusCode::SUCCESS;
59}
#define ATH_MSG_ALWAYS(x)
virtual StatusCode loadTriggerTowers(xAOD::TriggerTowerContainer &container)
std::string ToString(const xAOD::TriggerTower &tt)
TriggerTowerContainer_v2 TriggerTowerContainer
Define the latest version of the TriggerTower container.
TriggerTowerAuxContainer_v2 TriggerTowerAuxContainer
Define the latest version of the TriggerTower auxiliary container.
◆ 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
◆ m_detStore
◆ m_evtStore
◆ m_message
| std::string LVL1BS::TrigT1CaloDataAccessV2::m_message |
|
private |
◆ m_tool
◆ m_varHandleArraysDeclared
◆ m_vhka
The documentation for this class was generated from the following files: