ATLAS Offline Software
Loading...
Searching...
No Matches
CombinedFitAlg.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3*/
4#include "CombinedFitAlg.h"
5
6
7namespace MuonCombinedR4 {
8
10 ATH_CHECK(m_ctxProvider.initialize());
11 ATH_CHECK(m_stacoKey.initialize());
12 ATH_CHECK(m_outTagKey.initialize());
13 return StatusCode::SUCCESS;
14 }
15 StatusCode CombinedFitAlg::prepareDataShip(const EventContext& ctx, DataShip& ship) const {
17 ATH_CHECK(ship.combinedTags.record(m_outTagKey, ctx));
18 ship.calContext = m_ctxProvider.getCalibrationContext(ctx);
19 ship.mfContext = m_ctxProvider.getMagneticFieldContext(ctx);
20 ship.tgContext = m_ctxProvider.getGeometryContext(ctx);
21 return StatusCode::SUCCESS;
22 }
23 StatusCode CombinedFitAlg::execute(const EventContext& ctx) const {
24 DataShip ship{};
25 ATH_CHECK(prepareDataShip(ctx, ship));
26 return StatusCode::SUCCESS;
27 }
28}
#define ATH_CHECK
Evaluate an expression and check for errors.
SG::WriteHandleKey< MuonR4::MuonTagContainer > m_outTagKey
Write key of the created combined tags.
SG::ReadHandleKey< MuonR4::MuonTagContainer > m_stacoKey
Use STACO as input to the MuidCo chain as the track pair is already done upstream.
StatusCode prepareDataShip(const EventContext &ctx, DataShip &ship) const
ActsTrk::ContextUtility m_ctxProvider
Context provider for geometry, magnetic field and calibration contexts.
virtual StatusCode initialize() override final
virtual StatusCode execute(const EventContext &ctx) const override final
const T * get(const ReadCondHandleKey< T > &key, const EventContext &ctx)
Convenience function to retrieve an object given a ReadCondHandleKey.
Acts::MagneticFieldContext mfContext
The magnetic field context.
Acts::GeometryContext tgContext
The geometry context to align the surfaces during the fit.
Acts::CalibrationContext calContext
The calibration context.
xAOD::FillContainer< MuonR4::MuonTagContainer, void * > combinedTags
The output combined tag collection.
const MuonR4::MuonTagContainer * preMatchedTags
The prematched combined muon tags.