Implementation for the IMuonRoICnvTool interface.
More...
#include <MuonRoICnvTool.h>
Implementation for the IMuonRoICnvTool interface.
This is a simple tool that implements the converter function
defined in IMuonRoICnvTool.
- Author
- Attila Krasznahorkay Attil.nosp@m.a.Kr.nosp@m.aszna.nosp@m.hork.nosp@m.ay@ce.nosp@m.rn.c.nosp@m.h
Definition at line 27 of file MuonRoICnvTool.h.
◆ StoreGateSvc_t
◆ MuonRoICnvTool()
| xAODMaker::MuonRoICnvTool::MuonRoICnvTool |
( |
const std::string & | type, |
|
|
const std::string & | name, |
|
|
const IInterface * | parent ) |
Regular AlgTool constructor.
Definition at line 17 of file MuonRoICnvTool.cxx.
21
22
23 declareInterface< IMuonRoICnvTool >( this );
24 }
◆ convert()
Function that fills an existing xAOD::MuonRoIContainer.
This is the important function of the tool.
It takes the muon RoI objects from a LVL1_ROI container, and fills an xAOD::MuonRoIContainer with them.
- Parameters
-
| aod | The AOD object to take the muon RoIs from |
| xaod | The xAOD container to fill the RoIs into |
- Returns
StatusCode::SUCCESS if all went fine, something else if not
Implements xAODMaker::IMuonRoICnvTool.
Definition at line 36 of file MuonRoICnvTool.cxx.
37 {
38
39
40 if( !xaod->
empty() ) {
42 << xaod->
size() <<
")" );
43 }
44
45
46 LVL1_ROI::muons_type::const_iterator aod_itr = aod->
getMuonROIs().begin();
47 LVL1_ROI::muons_type::const_iterator aod_end = aod->
getMuonROIs().end();
48 for( ; aod_itr != aod_end; ++aod_itr ) {
49
50
53
54
56 aod_itr->getEta(), aod_itr->getPhi(),
57 aod_itr->getThrName(), aod_itr->getThrValue() );
58 }
59
60
61 return StatusCode::SUCCESS;
62 }
#define ATH_MSG_WARNING(x)
value_type push_back(value_type pElem)
Add an element to the end of the collection.
size_type size() const noexcept
Returns the number of elements in the collection.
bool empty() const noexcept
Returns true if the collection is empty.
const muons_type & getMuonROIs() const
Get all the muon RoIs in the event.
void initialize(uint32_t roiword, float eta, float phi, const std::string &thrname, float thrvalue, uint32_t extraword=0u)
Initialise the object with all its properties.
◆ 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
◆ 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 & xAODMaker::IMuonRoICnvTool::interfaceID |
( |
| ) |
|
|
inlinestaticinherited |
Gaudi interface definition.
Definition at line 46 of file IMuonRoICnvTool.h.
46 {
48 }
static const InterfaceID IID_IMuonRoICnvTool("xAODMaker::IMuonRoICnvTool", 1, 0)
The interface provided by IMuonRoICnvTool.
◆ 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
◆ m_detStore
◆ m_evtStore
◆ m_varHandleArraysDeclared
◆ m_vhka
The documentation for this class was generated from the following files: