ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Trigger
TrigT1
Muon
L0MuonEndcap
src
L0MuonEndcapAlg.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#include "
L0MuonEndcapAlg.h
"
6
7
#include "
StoreGate/ReadHandle.h
"
8
#include "
xAODMuonViews/FillContainer.h
"
9
10
namespace
L0Muon
{
11
12
StatusCode
L0MuonEndcapAlg::initialize
() {
13
ATH_CHECK
(
m_inputKey
.initialize());
14
ATH_CHECK
(
m_outputKey
.initialize());
15
return
StatusCode::SUCCESS;
16
}
17
18
StatusCode
L0MuonEndcapAlg::execute
(
const
EventContext& ctx)
const
{
19
const
xAOD::TGCCandDataContainer
* inputHandle{};
20
ATH_CHECK
(
SG::get
(inputHandle,
m_inputKey
, ctx));
21
22
xAOD::FillContainer
<
xAOD::SectorLogicCandDataContainer
,
23
xAOD::SectorLogicCandDataAuxContainer
>
24
output{};
25
26
ATH_MSG_DEBUG
(
"Received "
<< inputHandle->
size
()
27
<<
" TGC candidates; endcap candidate conversion "
28
"is not implemented in this skeleton"
);
29
30
ATH_CHECK
(output.record(
m_outputKey
, ctx));
31
return
StatusCode::SUCCESS;
32
}
33
34
}
// namespace L0Muon
ATH_CHECK
#define ATH_CHECK
Evaluate an expression and check for errors.
Definition
AthCheckMacros.h:40
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition
AthMsgStreamMacros.h:29
FillContainer.h
L0MuonEndcapAlg.h
ReadHandle.h
Handle class for reading from StoreGate.
DataVector::size
size_type size() const noexcept
Returns the number of elements in the collection.
L0Muon::L0MuonEndcapAlg::execute
StatusCode execute(const EventContext &ctx) const override
Definition
L0MuonEndcapAlg.cxx:18
L0Muon::L0MuonEndcapAlg::m_inputKey
SG::ReadHandleKey< xAOD::TGCCandDataContainer > m_inputKey
Definition
L0MuonEndcapAlg.h:32
L0Muon::L0MuonEndcapAlg::initialize
StatusCode initialize() override
Definition
L0MuonEndcapAlg.cxx:12
L0Muon::L0MuonEndcapAlg::m_outputKey
SG::WriteHandleKey< xAOD::SectorLogicCandDataContainer > m_outputKey
Definition
L0MuonEndcapAlg.h:36
xAOD::FillContainer
Definition
FillContainer.h:39
L0Muon
Definition
NSWTPBits.h:7
SG::get
const T * get(const ReadCondHandleKey< T > &key, const EventContext &ctx)
Convenience function to retrieve an object given a ReadCondHandleKey.
Definition
ReadCondHandle.h:282
xAOD::TGCCandDataContainer
TGCCandDataContainer_v1 TGCCandDataContainer
Definition
MuonSpectrometer/MuonPhaseII/Event/xAOD/xAODL0MuonCand/xAODL0MuonCand/TGCCandDataContainer.h:13
xAOD::SectorLogicCandDataContainer
SectorLogicCandDataContainer_v1 SectorLogicCandDataContainer
Definition
SectorLogicCandDataContainer.h:13
xAOD::SectorLogicCandDataAuxContainer
SectorLogicCandDataAuxContainer_v1 SectorLogicCandDataAuxContainer
Definition
SectorLogicCandDataAuxContainer.h:12
Generated on
for ATLAS Offline Software by
1.17.0