ATLAS Offline Software
Loading...
Searching...
No Matches
MDTSimulation.cxx
Go to the documentation of this file.
1
2/*
3 Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
4*/
5
6#include "MDTSimulation.h"
7
9
10namespace L0Muon {
11
12
14 ATH_MSG_DEBUG("Initializing " << name() << "...");
15
16 ATH_CHECK(m_keyMdtRdo.initialize());
17 ATH_CHECK(m_cablingKey.initialize());
18
20 ATH_CHECK(m_outputMuonRoIKey.initialize());
21
23 if (!m_monTool.empty()) ATH_CHECK(m_monTool.retrieve());
24
25 return StatusCode::SUCCESS;
26}
27
28StatusCode MDTSimulation::execute(const EventContext& ctx) const {
29 ATH_MSG_DEBUG ("Executing " << name() << "...");
30
31 SG::ReadHandle inputRDO(m_keyMdtRdo,ctx);
32 ATH_CHECK(inputRDO.isPresent());
33 ATH_MSG_DEBUG("Number of MDT RDO: " << inputRDO->size());
34
35 SG::ReadCondHandle cablingMap{m_cablingKey, ctx};
36 ATH_CHECK(cablingMap.isValid());
37
39 if ( !m_monTool.empty() ) {
40 auto n_of_RDO = Monitored::Scalar<unsigned int>("n_of_RDO",inputRDO->size());
41 }
42
43 return StatusCode::SUCCESS;
44}
45
46
47} // end of namespace
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_DEBUG(x)
ToolHandle< GenericMonitoringTool > m_monTool
virtual StatusCode initialize() override
virtual StatusCode execute(const EventContext &ctx) const override
SG::ReadCondHandleKey< MuonMDT_CablingMap > m_cablingKey
MDT cabling map.
SG::WriteHandleKey< xAOD::MuonRoIContainer > m_outputMuonRoIKey
Output RoIs.
SG::ReadHandleKey< MdtCsmContainer > m_keyMdtRdo
MDT Rdo.
Declare a monitored scalar variable.
bool isPresent() const
Is the referenced object present in SG?