ATLAS Offline Software
Loading...
Searching...
No Matches
MuonR4::IxAODSegmentCnvTool::DataShip Struct Reference

Structure to hold the data needed for the conversion and decoration. More...

#include <IxAODSegmentCnvTool.h>

Collaboration diagram for MuonR4::IxAODSegmentCnvTool::DataShip:

Public Types

using DecorKey_t = SG::WriteDecorHandleKey<xAOD::MuonSegmentContainer>
using SegPars_t = xAOD::PosAccessor<Acts::toUnderlying(SegmentFit::ParamDefs::nPars)>::element_type
 Abrivation of the decorated local segment parameters.
using SegCov_t = xAOD::PosAccessor<Acts::sumUpToN(Acts::toUnderlying(SegmentFit::ParamDefs::nPars))>::element_type
 Abrivation of the decorated local segment covariance.
using PrdLink_t = ElementLink<xAOD::UncalibratedMeasurementContainer>

Public Member Functions

StatusCode setupLocalParameters (const DecorKey_t &localParKey, const DecorKey_t &localCovKey, const EventContext &ctx)
 Initialize the linking of the local segment parameters and covariance.
StatusCode setupMeasurementLink (const SG::WriteHandleKey< xAOD::CombinedMuonStripContainer > &combinedKey, const DecorKey_t &prdLinkKey, const DecorKey_t &prdStateKey, const EventContext &ctx)
 Instantiate the linking of the measurements.
StatusCode setupBeamSpotMeasurement (const ActsTrk::AuxiliaryMeasurementHandler &auxMeasProv, const EventContext &ctx, const ActsTrk::GeometryContext &gctx)
 Initialize the creation & linking of the beamspot measurement.

Public Attributes

xAOD::FillContainer< xAOD::MuonSegmentContainer, xAOD::MuonSegmentAuxContainersegmentContainer {}
 Output segment container.
xAOD::ContainerDecorator< xAOD::MuonSegmentContainer, SegPars_tdec_localSegPars {}
 Decoration of the 5 local segment parameters (not persitifiable).
xAOD::ContainerDecorator< xAOD::MuonSegmentContainer, SegCov_tdec_localSegCov {}
 Decoration of the local segment fit covariance (not persitifiable).
Acts::Result< ActsTrk::AuxiliaryMeasurementHandler::MeasurementProvider, ActsTrk::AuxiliaryMeasurementHandler::HandleStatusbeamSpotMeasCreator {ActsTrk::AuxiliaryMeasurementHandler::HandleStatus::emptyKey}
 Container handle to create the beamspot measurement, if needed.
xAOD::FillContainer< xAOD::CombinedMuonStripContainer, xAOD::CombinedMuonStripAuxContainerprdCombContainer {}
 Container handle to create the combined measurements of Rpc/Tgc/sTgc.
const xAOD::UncalibratedMeasurementbeamSpot {}
 Pointer to the commonly shared beamspot measurement.
xAOD::ContainerDecorator< xAOD::MuonSegmentContainer, std::vector< PrdLink_t > > dec_prdLinks {}
 Decoration of the list of measurements used to construct the segment.
xAOD::ContainerDecorator< xAOD::MuonSegmentContainer, std::vector< char > > dec_prdStates {}
 Extra column containing the fitState of each measurement (Valid, Outlier, wrongly calibrated).

Detailed Description

Structure to hold the data needed for the conversion and decoration.

Definition at line 45 of file IxAODSegmentCnvTool.h.

Member Typedef Documentation

◆ DecorKey_t

◆ PrdLink_t

◆ SegCov_t

using MuonR4::IxAODSegmentCnvTool::DataShip::SegCov_t = xAOD::PosAccessor<Acts::sumUpToN(Acts::toUnderlying(SegmentFit::ParamDefs::nPars))>::element_type

Abrivation of the decorated local segment covariance.

Definition at line 103 of file IxAODSegmentCnvTool.h.

◆ SegPars_t

using MuonR4::IxAODSegmentCnvTool::DataShip::SegPars_t = xAOD::PosAccessor<Acts::toUnderlying(SegmentFit::ParamDefs::nPars)>::element_type

Abrivation of the decorated local segment parameters.

Definition at line 101 of file IxAODSegmentCnvTool.h.

Member Function Documentation

◆ setupBeamSpotMeasurement()

StatusCode MuonR4::IxAODSegmentCnvTool::DataShip::setupBeamSpotMeasurement ( const ActsTrk::AuxiliaryMeasurementHandler & auxMeasProv,
const EventContext & ctx,
const ActsTrk::GeometryContext & gctx )
inline

Initialize the creation & linking of the beamspot measurement.

Parameters
auxMeasProvThe auxiliary measurement provider
ctxThe event context
gctxThe geometry context
Returns
StatusCode indicating success or failure

Definition at line 86 of file IxAODSegmentCnvTool.h.

88 {
89 beamSpotMeasCreator = auxMeasProv.makeHandle(ctx, gctx.context());
90 if (!beamSpotMeasCreator.ok()) {
91 return StatusCode::FAILURE;
92 }
93 return StatusCode::SUCCESS;
94 }
HandleReturn_t makeHandle(const EventContext &ctx, const Acts::GeometryContext &gctx) const
Creates a new MeasurementProvider and triggers the write of the container backend to StoreGate.
Acts::GeometryContext context() const
Acts::Result< ActsTrk::AuxiliaryMeasurementHandler::MeasurementProvider, ActsTrk::AuxiliaryMeasurementHandler::HandleStatus > beamSpotMeasCreator
Container handle to create the beamspot measurement, if needed.

◆ setupLocalParameters()

StatusCode MuonR4::IxAODSegmentCnvTool::DataShip::setupLocalParameters ( const DecorKey_t & localParKey,
const DecorKey_t & localCovKey,
const EventContext & ctx )
inline

Initialize the linking of the local segment parameters and covariance.

Parameters
localParKeyThe key for the local segment parameter decoration
localCovKeyThe key for the local segment covariance decoration
ctxThe event context
Returns
StatusCode indicating success or failure

Definition at line 52 of file IxAODSegmentCnvTool.h.

54 {
55 if (localParKey.empty() || localCovKey.empty()) {
56 return StatusCode::FAILURE;
57 }
58 dec_localSegPars.initialize(localParKey, ctx);
59 dec_localSegCov.initialize(localCovKey, ctx);
60 return StatusCode::SUCCESS;
61 }
xAOD::ContainerDecorator< xAOD::MuonSegmentContainer, SegPars_t > dec_localSegPars
Decoration of the 5 local segment parameters (not persitifiable).
xAOD::ContainerDecorator< xAOD::MuonSegmentContainer, SegCov_t > dec_localSegCov
Decoration of the local segment fit covariance (not persitifiable).

◆ setupMeasurementLink()

StatusCode MuonR4::IxAODSegmentCnvTool::DataShip::setupMeasurementLink ( const SG::WriteHandleKey< xAOD::CombinedMuonStripContainer > & combinedKey,
const DecorKey_t & prdLinkKey,
const DecorKey_t & prdStateKey,
const EventContext & ctx )
inline

Instantiate the linking of the measurements.

Parameters
combinedKeyThe key for the combined measurement decoration
prdLinkKeyThe key for the measurement link decoration
prdStateKeyThe key for the measurement state decoration
ctxThe event context
Returns
StatusCode indicating success or failure

Definition at line 69 of file IxAODSegmentCnvTool.h.

72 {
73 if (combinedKey.empty() || prdLinkKey.empty() || prdStateKey.empty()) {
74 return StatusCode::FAILURE;
75 }
76 dec_prdLinks.initialize(prdLinkKey, ctx);
77 dec_prdStates.initialize(prdStateKey, ctx);
78 return prdCombContainer.record(combinedKey, ctx);
79 }
bool empty() const
Test if the key is blank.
xAOD::FillContainer< xAOD::CombinedMuonStripContainer, xAOD::CombinedMuonStripAuxContainer > prdCombContainer
Container handle to create the combined measurements of Rpc/Tgc/sTgc.
xAOD::ContainerDecorator< xAOD::MuonSegmentContainer, std::vector< char > > dec_prdStates
Extra column containing the fitState of each measurement (Valid, Outlier, wrongly calibrated).
xAOD::ContainerDecorator< xAOD::MuonSegmentContainer, std::vector< PrdLink_t > > dec_prdLinks
Decoration of the list of measurements used to construct the segment.

Member Data Documentation

◆ beamSpot

const xAOD::UncalibratedMeasurement* MuonR4::IxAODSegmentCnvTool::DataShip::beamSpot {}

Pointer to the commonly shared beamspot measurement.

Definition at line 117 of file IxAODSegmentCnvTool.h.

117{};

◆ beamSpotMeasCreator

◆ dec_localSegCov

xAOD::ContainerDecorator<xAOD::MuonSegmentContainer, SegCov_t> MuonR4::IxAODSegmentCnvTool::DataShip::dec_localSegCov {}

Decoration of the local segment fit covariance (not persitifiable).

Definition at line 108 of file IxAODSegmentCnvTool.h.

108{};

◆ dec_localSegPars

xAOD::ContainerDecorator<xAOD::MuonSegmentContainer, SegPars_t> MuonR4::IxAODSegmentCnvTool::DataShip::dec_localSegPars {}

Decoration of the 5 local segment parameters (not persitifiable).

Definition at line 106 of file IxAODSegmentCnvTool.h.

106{};

◆ dec_prdLinks

xAOD::ContainerDecorator<xAOD::MuonSegmentContainer, std::vector<PrdLink_t> > MuonR4::IxAODSegmentCnvTool::DataShip::dec_prdLinks {}

Decoration of the list of measurements used to construct the segment.

Definition at line 122 of file IxAODSegmentCnvTool.h.

122{};

◆ dec_prdStates

xAOD::ContainerDecorator<xAOD::MuonSegmentContainer, std::vector<char> > MuonR4::IxAODSegmentCnvTool::DataShip::dec_prdStates {}

Extra column containing the fitState of each measurement (Valid, Outlier, wrongly calibrated).

Definition at line 126 of file IxAODSegmentCnvTool.h.

126{};

◆ prdCombContainer

xAOD::FillContainer<xAOD::CombinedMuonStripContainer, xAOD::CombinedMuonStripAuxContainer> MuonR4::IxAODSegmentCnvTool::DataShip::prdCombContainer {}

Container handle to create the combined measurements of Rpc/Tgc/sTgc.

Definition at line 115 of file IxAODSegmentCnvTool.h.

115{};

◆ segmentContainer

xAOD::FillContainer<xAOD::MuonSegmentContainer, xAOD::MuonSegmentAuxContainer> MuonR4::IxAODSegmentCnvTool::DataShip::segmentContainer {}

Output segment container.

Definition at line 98 of file IxAODSegmentCnvTool.h.

98{};

The documentation for this struct was generated from the following file: