ATLAS Offline Software
Loading...
Searching...
No Matches
MuonCombinedR4::InDetTrackSelectionAlg Class Reference

Algorithm to select ID / ITk track candidates which may be suitable for the combined muon reconstruction chain. More...

#include <InDetTrackSelectionAlg.h>

Inheritance diagram for MuonCombinedR4::InDetTrackSelectionAlg:
Collaboration diagram for MuonCombinedR4::InDetTrackSelectionAlg:

Public Member Functions

virtual StatusCode initialize () override final
virtual StatusCode execute (const EventContext &ctx) const override final
virtual StatusCode sysInitialize () override
 Override sysInitialize.
virtual bool isClonable () const override
 Specify if the algorithm is clonable.
virtual StatusCode sysExecute (const EventContext &ctx) override
 Execute an algorithm.
virtual const DataObjIDColl & extraOutputDeps () const override
 Return the list of extra output dependencies.
virtual bool filterPassed (const EventContext &ctx) const
 Get filter decision:
virtual void setFilterPassed (bool state, const EventContext &ctx) const
 Set filter decision:
ServiceHandle< StoreGateSvc > & evtStore ()
 The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
const ServiceHandle< StoreGateSvc > & detStore () const
 The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
virtual StatusCode sysStart () override
 Handle START transition.
virtual std::vector< Gaudi::DataHandle * > inputHandles () const override
 Return this algorithm's input handles.
virtual std::vector< Gaudi::DataHandle * > outputHandles () const override
 Return this algorithm's output handles.
Gaudi::Details::PropertyBase & declareProperty (Gaudi::Property< T, V, H > &t)
void updateVHKA (Gaudi::Details::PropertyBase &)
MsgStream & msg () const
bool msgLvl (const MSG::Level lvl) const

Protected Member Functions

void renounceArray (SG::VarHandleKeyArray &handlesArray)
 remove all handles from I/O resolution
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)
void extraDeps_update_handler (Gaudi::Details::PropertyBase &ExtraDeps)
 Add StoreName to extra input/output deps as needed.

Private Types

typedef ServiceHandle< StoreGateSvcStoreGateSvc_t

Private Member Functions

std::optional< Acts::BoundTrackParameters > extrapolateToMsEntrance (const EventContext &ctx, const xAOD::TrackParticle &idTrack) const
 Extrapolate the ID track to the MS entrance in order to match it later with spectrometer activity.
bool compatibleWithMsTrk (const Acts::GeometryContext &tgContext, const Acts::BoundTrackParameters &caloExitPars, std::span< const Acts::BoundTrackParameters > msTracks) const
 Returns whether the ID track expressed on the calorimeter exit volume can be loosely matched with a reconsturcted MS track.
bool parametersCompatible (const Acts::GeometryContext &tgContext, const Acts::BoundTrackParameters &caloExitPatrs, const Acts::BoundTrackParameters &msTrackPars) const
 Evaluates whether the caloExit parameters and the MS track parameters are compatible with each other in terms of an angular cone.
bool compatibleWithSegment (const Acts::GeometryContext &tgContext, const Acts::BoundTrackParameters &caloExitPars, const std::span< const xAOD::MuonSegment * > candidateSegs) const
 Checks whether the ID track is compatible with a reconstructed segment which is not part of a reconstructed MS track.
const Acts::Logger & logger () const
 Return the reference to the Acts logger.
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
 specialization for handling Gaudi::Property<SG::VarHandleKey>

Private Attributes

SG::ReadHandleKey< xAOD::TrackParticleContainerm_idTrkKey {this, "IdTrackKey", "InDetTrackParticles"}
 The input key for the ID / ITk track particles.
SG::ReadDecorHandleKey< xAOD::TrackParticleContainerm_extensionDecorKey {this, "CaloExtensionDecorKey", m_idTrkKey, "caloExtensionLink"}
 Optional dependency on the calo extension container.
SG::ReadHandleKey< xAOD::TrackParticleContainerm_msTrkKey {this, "MsTrackKey", "MsTrackParticlesR4"}
 Input key for the MS track particles.
SG::ReadHandleKey< xAOD::MuonSegmentContainerm_segmentKey {this, "SegmentKey", "MuonSegmentsFromR4"}
 To pass the selection criteria, ITk tracks can alternatively be matched to.
SG::WriteHandleKey< MuonR4::MuonTagContainerm_writeKey {this, "writeKey", "MuonInDetCandidates"}
 The output key for the selected track candidates.
const MuonGMR4::MuonDetectorManagerm_detMgr {nullptr}
 Detector manager to retrieve the sector envelope surfaces.
ToolHandle< InDet::IInDetTrackSelectionToolm_selectionTool {this, "TackSelectionTool" , ""}
 Track quality selection tool (optional).
ServiceHandle< ActsTrk::ITrackingGeometrySvcm_trackingGeometrySvc {this, "TrackingGeometrySvc", "ActsTrackingGeometrySvc"}
 Tracking geometry tool.
ToolHandle< ActsTrk::IExtrapolationToolm_extrapolationTool {this, "ExtrapolationTool" ,"" }
 Track extrapolation tool.
ActsTrk::ContextUtility m_ctxProvider {this}
 Context provider for geometry, magnetic field and calibration contexts.
Gaudi::Property< bool > m_useCaloExtension {this, "useCaloExtension", true}
 Flag toggling whether the last track parameters shall be retrieved from the calo extension linked to the ID tracks.
Gaudi::Property< bool > m_matchWithMsTrk {this, "matchWithMsTracks" , true}
 Use the reconstructed MS tracks to match the InDetCandidates.
Gaudi::Property< float > m_trackPt {this, "minPt", 2.5*Gaudi::Units::GeV}
 The minimum momentum cut applied on the ID tracks to be considered.
Gaudi::Property< float > m_trackEta {this, "maxEta", 2.8}
 Apply a maximum eta cut to stay within the MS acceptance.
Gaudi::Property< bool > m_trackSameSurf {this, "matchTracksOnSameSurface", true}
 Require that the matching between MS and ID track happens on the same surface.
Gaudi::Property< float > m_dEtaCutMsTrk {this, "dEtaMaxMsTrk", 0.25}
 Selection cuts to test compability with the MS track.
Gaudi::Property< float > m_dPhiCutMsTrk {this, "dPhiMsTrk", 5*Gaudi::Units::deg}
Gaudi::Property< float > m_dLoc0CutMsTrk {this, "dLoc0MsTrk", 20.*Gaudi::Units::cm}
Gaudi::Property< float > m_dLoc1CutMsTrk {this, "dLoc1MsTrk", 5.*Gaudi::Units::deg}
Gaudi::Property< bool > m_matchWithSegs {this, "matchWithSegments", true}
 Use the segments directly to match the ID track with MS activity.
Gaudi::Property< float > m_dEtaCutMsSeg {this, "dEtaMaxMsSegment", 0.3}
 Selection cuts for the Muon segments.
Gaudi::Property< float > m_dY0CutMsSeg {this, "dY0MaxMsSegment", 40 * Gaudi::Units::cm}
std::unique_ptr< const Acts::Logger > m_logger {}
 Instance to the Acts logger.
DataObjIDColl m_extendedExtraObjects
 Extra output dependency collection, extended by AthAlgorithmDHUpdate to add symlinks.
StoreGateSvc_t m_evtStore
 Pointer to StoreGate (event store by default).
StoreGateSvc_t m_detStore
 Pointer to StoreGate (detector store by default).
std::vector< SG::VarHandleKeyArray * > m_vhka
bool m_varHandleArraysDeclared

Detailed Description

Algorithm to select ID / ITk track candidates which may be suitable for the combined muon reconstruction chain.

Apart from basic kinematic requirements, the tracks need to be dR cones around MS tracks or can be loosely matched to a standalone segment which has not been yet associated with a muon track. Successfully matched candidates need

Definition at line 36 of file MuonSpectrometer/MuonPhaseII/MuonIdentification/MuonCombinedAlgsR4/src/InDetTrackSelectionAlg.h.

Member Typedef Documentation

◆ StoreGateSvc_t

typedef ServiceHandle<StoreGateSvc> AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::StoreGateSvc_t
privateinherited

Definition at line 388 of file AthCommonDataStore.h.

Member Function Documentation

◆ compatibleWithMsTrk()

bool MuonCombinedR4::InDetTrackSelectionAlg::compatibleWithMsTrk ( const Acts::GeometryContext & tgContext,
const Acts::BoundTrackParameters & caloExitPars,
std::span< const Acts::BoundTrackParameters > msTracks ) const
private

Returns whether the ID track expressed on the calorimeter exit volume can be loosely matched with a reconsturcted MS track.

The matching is based on the angular cone between the MS & the ID track + separations on the local parameters on the cylinder

Parameters
tgContextThe geometry context to align the surfaces
caloExitParsThe ID track expressed at the calo exit
msTrackList of the reference MS track parameters

Definition at line 219 of file MuonSpectrometer/MuonPhaseII/MuonIdentification/MuonCombinedAlgsR4/src/InDetTrackSelectionAlg.cxx.

221 {
222 ATH_MSG_DEBUG(__func__<<"() "<<__LINE__<<" - Check whether the parameters \n"<<itkParameters
223 <<", eta: "<<eta(itkParameters)<<" are compatible with one of the "<<msTrks.size()<<" MS tracks.");
224 if (std::ranges::any_of(msTrks,
225 [&](const Acts::BoundTrackParameters& msPars) {
226 return parametersCompatible(tgContext, itkParameters, msPars);
227 })) {
228 ATH_MSG_DEBUG(__func__<<"() "<<__LINE__<<" Found a matching track.");
229 return true;
230 }
231 return false;
232 }
Scalar eta() const
pseudorapidity method
#define ATH_MSG_DEBUG(x,...)
bool parametersCompatible(const Acts::GeometryContext &tgContext, const Acts::BoundTrackParameters &caloExitPatrs, const Acts::BoundTrackParameters &msTrackPars) const
Evaluates whether the caloExit parameters and the MS track parameters are compatible with each other ...

◆ compatibleWithSegment()

bool MuonCombinedR4::InDetTrackSelectionAlg::compatibleWithSegment ( const Acts::GeometryContext & tgContext,
const Acts::BoundTrackParameters & caloExitPars,
const std::span< const xAOD::MuonSegment * > candidateSegs ) const
private

Checks whether the ID track is compatible with a reconstructed segment which is not part of a reconstructed MS track.

Matching is based on straight line extrapolations and sector correspondence

Straight line extrapolation onto the surface

Segment parameters expressed on the envelope surface

Definition at line 233 of file MuonSpectrometer/MuonPhaseII/MuonIdentification/MuonCombinedAlgsR4/src/InDetTrackSelectionAlg.cxx.

235 {
236
237
238 const Amg::Vector3D exitPos = caloExitPars.position(tgContext);
239 const Amg::Vector3D exitDir = caloExitPars.direction();
240 MuonR4::ExpandedSector exitSector{exitPos.phi()};
241 const double caloEta = eta(caloExitPars);
242
243 const MuonGMR4::SpectrometerSector* lastSector{nullptr};
244 Amg::Vector3D extPosOnSector{Amg::Vector3D::Zero()};
245 ATH_MSG_DEBUG(__func__<<"() "<<__LINE__<<" - Check whether a compatible segment can be matched to \n"
246 <<caloExitPars<<"\n "<<Amg::toString(exitPos)<<" + "<<Amg::toString(exitDir));
247 for (const xAOD::MuonSegment* segment : candidateSegs) {
248 MuonR4::ExpandedSector segSector{segment->position().phi()};
249 ATH_MSG_VERBOSE(__func__<<"() "<<__LINE__<<" - Check compatibility with "<<MuonR4::printID(*segment)
250 <<", sector: "<<segSector);
251 if (!segSector.isNeighbour(exitSector)) {
252 ATH_MSG_VERBOSE(__func__<<"() "<<__LINE__<<" - Sector requirement failed");
253 continue;
254 }
255 const double dEta = std::abs(segment->direction().eta() - caloEta);
256 // Reject segments on oposite sides
257 if (dEta > m_dEtaCutMsSeg) {
258 ATH_MSG_VERBOSE(__func__<<"() "<<__LINE__<<" - Too large separation in dEta: "
259 <<dEta<<" cut: "<<m_dEtaCutMsSeg);
260 continue;
261 }
262 ATH_MSG_VERBOSE(__func__<<"() "<<__LINE__<<" - eta separation: "<<dEta<<", max: "<<m_dEtaCutMsSeg);
264 const MuonGMR4::SpectrometerSector* msSector = m_detMgr->getSectorEnvelope(segment->chamberIndex(),
265 segment->sector(),
266 segment->etaIndex());
267 if (lastSector != msSector) {
268 lastSector = msSector;
269 const Amg::Transform3D toLocal = msSector->globalToLocalTransform(tgContext);
270
271 const Amg::Vector3D locExitPos = toLocal * exitPos;
272 const Amg::Vector3D locExitDir = toLocal.linear()* exitDir;
273 using namespace Acts::PlanarHelper;
274 const auto iSect = intersectPlane(locExitPos, locExitDir, Amg::Vector3D::UnitZ(), 0.);
275 extPosOnSector = iSect.position();
276 ATH_MSG_VERBOSE(__func__<<"() "<<__LINE__<<" - Extrapolate "<<Amg::toString(locExitPos)<<" + "
277 <<Amg::toString(locExitDir)<<" to centre of "<<msSector->identString()
278 <<" --> "<<iSect.pathLength()<<", "<<Amg::toString(iSect.position()));
279 }
281 Parameters segPars = localSegmentPars(*segment);
282 const double dY = std::abs(segPars[Acts::toUnderlying(ParamDefs::y0)] - extPosOnSector.y());
283 if (dY < m_dY0CutMsSeg) {
284 ATH_MSG_DEBUG(__func__<<"() "<<__LINE__<<" - Segment is close enough: "<<dY);
285 return true;
286 }
287 ATH_MSG_VERBOSE(__func__<<"() "<<__LINE__<<" - Segment outside acceptance "<<dY<<" max: "<<m_dY0CutMsSeg);
288 }
289 ATH_MSG_DEBUG(__func__<<"() "<<__LINE__<<" - None of the "<<candidateSegs.size()
290 <<" segments is compatible with Id track\n"<<caloExitPars);
291 return false;
292 }
#define ATH_MSG_VERBOSE(x,...)
const MuonGMR4::MuonDetectorManager * m_detMgr
Detector manager to retrieve the sector envelope surfaces.
std::string identString() const
Returns a string encoding the chamber index & the sector of the MS sector.
Amg::Transform3D globalToLocalTransform(const ActsTrk::GeometryContext &gctx) const
Returns the global -> local transformation from the ATLAS global.
bool isNeighbour(const ExpandedSector &other) const
std::string toString(const Translation3D &translation, int precision=4)
GeoPrimitvesToStringConverter.
Eigen::Affine3d Transform3D
Eigen::Matrix< double, 3, 1 > Vector3D
Parameters localSegmentPars(const xAOD::MuonSegment &seg)
Returns the localSegPars decoration from a xAODMuon::Segment.
Acts::Experimental::CompositeSpacePointLineFitter::ParamVec_t Parameters
std::string printID(const xAOD::MuonSegment &seg)
Print the chamber ID of a segment, e.g.
Amg::Vector3D toLocal(const Amg::Transform3D &toLocalTrans, const Amg::Vector3D &dir)
Rotates a direction vector into a local frame: x-axis : Parallell to the radial direction of the dete...
bool dEta(const xAOD::TauJet &tau, const xAOD::CaloVertexedTopoCluster &cluster, float &out)
MuonSegment_v1 MuonSegment
Reference the current persistent version:

◆ declareGaudiProperty()

Gaudi::Details::PropertyBase & AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::declareGaudiProperty ( Gaudi::Property< T, V, H > & hndl,
const SG::VarHandleKeyType &  )
inlineprivateinherited

specialization for handling Gaudi::Property<SG::VarHandleKey>

Definition at line 156 of file AthCommonDataStore.h.

158 {
160 hndl.value(),
161 hndl.documentation());
162
163 }
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)

◆ declareProperty()

Gaudi::Details::PropertyBase & AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::declareProperty ( Gaudi::Property< T, V, H > & t)
inlineinherited

Definition at line 145 of file AthCommonDataStore.h.

145 {
146 typedef typename SG::HandleClassifier<T>::type htype;
148 }
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>

◆ detStore()

const ServiceHandle< StoreGateSvc > & AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::detStore ( ) const
inlineinherited

The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.

Definition at line 95 of file AthCommonDataStore.h.

◆ evtStore()

ServiceHandle< StoreGateSvc > & AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::evtStore ( )
inlineinherited

The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.

Definition at line 85 of file AthCommonDataStore.h.

◆ execute()

StatusCode MuonCombinedR4::InDetTrackSelectionAlg::execute ( const EventContext & ctx) const
finaloverridevirtual

Tracks within the MS eta range are attempted to be extrapolated to the calo exit

Failed extrapolations to the calo exit -> track probably too low in momentum in order to be considered even for calo tagging

Store the parameters at the calorimeter exit if the association to a MS track or a segment is successful -> The tag is then available for the combined fit, STACO, MuTagIMO && inside-> out chain

Definition at line 72 of file MuonSpectrometer/MuonPhaseII/MuonIdentification/MuonCombinedAlgsR4/src/InDetTrackSelectionAlg.cxx.

72 {
73 const xAOD::TrackParticleContainer* idTracks{nullptr};
74 const xAOD::TrackParticleContainer* msTracks{nullptr};
75 const xAOD::MuonSegmentContainer* msSegments{nullptr};
76 ATH_CHECK(SG::get(idTracks, m_idTrkKey, ctx));
77 ATH_CHECK(SG::get(msSegments, m_segmentKey, ctx));
78 ATH_CHECK(SG::get(msTracks, m_msTrkKey, ctx));
79
80 const Acts::GeometryContext tgContext{m_ctxProvider.getGeometryContext(ctx)};
81
82 using SegVec_t = std::vector<const xAOD::MuonSegment*>;
83 SegVec_t uncombinedSegments{};
84 if (msSegments) {
85 uncombinedSegments.reserve(msSegments->size());
86 std::copy_if(msSegments->begin(), msSegments->end(),
87 std::back_inserter(uncombinedSegments),
88 [msTracks, this](const xAOD::MuonSegment* segment){
89 return !msTracks || std::none_of(msTracks->begin(), msTracks->end(),
90 [&segment, this](const xAOD::TrackParticle* msTrack) {
91 auto actsTrk = ActsTrk::getActsTrack(*msTrack);
92 if (!actsTrk) {
93 ATH_MSG_WARNING(__func__<<"() "<<__LINE__<<" - No acts track");
94 return false;
95 }
96 return Acts::rangeContainsValue(actsTrk->component<SegVec_t>("muonSegLinks"), segment);
97 });
98 });
99 }
100 ATH_MSG_DEBUG(__func__<<"() "<<__LINE__
101 <<" - Select track candidates suitable for combined reconstruction amongst "
102 <<idTracks->size()<<" ID tracks.");
103 IdCandidateCont_t idCandidates{};
104 std::vector<Acts::BoundTrackParameters> msTrkPars{};
105 if (msTracks) {
106 msTrkPars.reserve(msTracks->size());
107 std::transform(msTracks->begin(), msTracks->end(), std::back_inserter(msTrkPars),
108 [](const xAOD::TrackParticle* trkPart){
109 return ActsTrk::getActsTrack(*trkPart)->createParametersAtReference();
110 });
111 }
112 for (const xAOD::TrackParticle* idTrk : *idTracks) {
113 /* Track does not satisfy the kinematic requirements
114 * Or the optional track quality */
115 if (idTrk->pt () < m_trackPt ||
116 (m_selectionTool.isEnabled() && !m_selectionTool->accept(*idTrk))) {
117 continue;
118 }
121 auto idTag = std::make_unique<MuonR4::MuonTag>();
122 idTag->setIdTrack(idTrk);
123 if (std::abs(idTrk->eta()) < m_trackEta) {
126 auto parsAtEntrance = extrapolateToMsEntrance(ctx, *idTrk);
127 if (!parsAtEntrance) {
128 continue;
129 }
133 if (compatibleWithMsTrk(tgContext, *parsAtEntrance, msTrkPars) ||
134 compatibleWithSegment(tgContext, *parsAtEntrance, uncombinedSegments)) {
135 idTag->setExtrapolatedParsID(Acts::hashString("@CaloExit"),
136 std::move(*parsAtEntrance));
137 }
138 }
139 idCandidates->push_back(std::move(idTag));
140 }
141 ATH_MSG_DEBUG(__func__<<"() "<<__LINE__<<" - Selected "<<idCandidates->size()
142 <<" candidates for combined reconstruction downstream");
143 ATH_CHECK(idCandidates.record(m_writeKey, ctx));
144 return StatusCode::SUCCESS;
145 }
#define ATH_CHECK
Evaluate an expression and check for errors.
const_iterator end() const noexcept
Return a const_iterator pointing past the end of the collection.
const_iterator begin() const noexcept
Return a const_iterator pointing at the beginning of the collection.
size_type size() const noexcept
Returns the number of elements in the collection.
Gaudi::Property< float > m_trackPt
The minimum momentum cut applied on the ID tracks to be considered.
SG::ReadHandleKey< xAOD::TrackParticleContainer > m_idTrkKey
The input key for the ID / ITk track particles.
ToolHandle< InDet::IInDetTrackSelectionTool > m_selectionTool
Track quality selection tool (optional).
ActsTrk::ContextUtility m_ctxProvider
Context provider for geometry, magnetic field and calibration contexts.
bool compatibleWithMsTrk(const Acts::GeometryContext &tgContext, const Acts::BoundTrackParameters &caloExitPars, std::span< const Acts::BoundTrackParameters > msTracks) const
Returns whether the ID track expressed on the calorimeter exit volume can be loosely matched with a r...
SG::ReadHandleKey< xAOD::MuonSegmentContainer > m_segmentKey
To pass the selection criteria, ITk tracks can alternatively be matched to.
std::optional< Acts::BoundTrackParameters > extrapolateToMsEntrance(const EventContext &ctx, const xAOD::TrackParticle &idTrack) const
Extrapolate the ID track to the MS entrance in order to match it later with spectrometer activity.
SG::ReadHandleKey< xAOD::TrackParticleContainer > m_msTrkKey
Input key for the MS track particles.
bool compatibleWithSegment(const Acts::GeometryContext &tgContext, const Acts::BoundTrackParameters &caloExitPars, const std::span< const xAOD::MuonSegment * > candidateSegs) const
Checks whether the ID track is compatible with a reconstructed segment which is not part of a reconst...
Gaudi::Property< float > m_trackEta
Apply a maximum eta cut to stay within the MS acceptance.
SG::WriteHandleKey< MuonR4::MuonTagContainer > m_writeKey
The output key for the selected track candidates.
const T * get(const ReadCondHandleKey< T > &key, const EventContext &ctx)
Convenience function to retrieve an object given a ReadCondHandleKey.
MuonSegmentContainer_v1 MuonSegmentContainer
Definition of the current "MuonSegment container version".
TrackParticle_v1 TrackParticle
Reference the current persistent version:
TrackParticleContainer_v1 TrackParticleContainer
Definition of the current "TrackParticle container version".

◆ extraDeps_update_handler()

void AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::extraDeps_update_handler ( Gaudi::Details::PropertyBase & ExtraDeps)
protectedinherited

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

◆ extraOutputDeps()

const DataObjIDColl & AthCommonAlgorithm< Gaudi::Algorithm >::extraOutputDeps ( ) const
overridevirtualinherited

Return the list of extra output dependencies.

This list is extended to include symlinks implied by inheritance relations.

Definition at line 89 of file AthCommonAlgorithm.cxx.

54{
55 // If we didn't find any symlinks to add, just return the collection
56 // from the base class. Otherwise, return the extended collection.
57 if (!m_extendedExtraObjects.empty()) {
59 }
61}
Common base class for algorithms.

◆ extrapolateToMsEntrance()

std::optional< Acts::BoundTrackParameters > MuonCombinedR4::InDetTrackSelectionAlg::extrapolateToMsEntrance ( const EventContext & ctx,
const xAOD::TrackParticle & idTrack ) const
private

Extrapolate the ID track to the MS entrance in order to match it later with spectrometer activity.

Parameters
ctxEventContext to retrieve the alignment and magnetic field or the calo extensions
idTrackThe track to be extrapolated

Retrieve the last state of the track to extrapolate into the MS

Definition at line 147 of file MuonSpectrometer/MuonPhaseII/MuonIdentification/MuonCombinedAlgsR4/src/InDetTrackSelectionAlg.cxx.

148 {
149
150 const auto trackingGeometry = m_trackingGeometrySvc->trackingGeometry();
151
152 const Acts::GeometryContext tgContext = m_ctxProvider.getGeometryContext(ctx);
153 const Acts::TrackingVolume* msEntrance = m_trackingGeometrySvc->getEnvelope(ActsTrk::SystemEnvelope::CaloExit);
154 ATH_MSG_DEBUG(__func__<<"() "<<__LINE__<<" - Extrapolate ID "<<print(idTrack)<<"\n to the calorimeter exit.\n"
155 <<msEntrance->volumeBounds()<<", id: "<<msEntrance->geometryId());
157 auto idExitPars = lastTrackParameters(idTrack);
158 if (!idExitPars) {
159 ATH_MSG_WARNING(__func__<<"() "<<__LINE__<<" - The ID track has no valid last state");
160 return std::nullopt;
161 }
162 if (m_useCaloExtension) {
163 const ActsTrk::CaloExtension* extension = ActsTrk::getCaloExtension(idTrack);
164 if (extension != nullptr){
165 auto lastExtensionPars = extension->lastParameters();
166 if (lastExtensionPars->referenceSurface().geometryId().withBoundary(0) ==
167 msEntrance->geometryId()) {
168 ATH_MSG_VERBOSE(__func__<<"() "<<__LINE__<<" - Calo extension is on the MS entrance");
169 return lastExtensionPars;
170 }
171 idExitPars = lastExtensionPars;
172 }
173 }
174 ATH_MSG_VERBOSE(__func__<<"() "<<__LINE__<<" - Extrapolate ID track to MS entrance "
175 <<msEntrance->volumeBounds());
176 auto caloPars = m_extrapolationTool->propagate(ctx, *idExitPars, *msEntrance,
178 if (caloPars.ok()) {
179 ATH_MSG_VERBOSE(__func__<<"() "<<__LINE__<<" - Extrapolation successful "<<(*caloPars));
180 return *caloPars;
181 }
182 ATH_MSG_WARNING(__func__<<"() "<<__LINE__<<" - Failed to extrapolate ID "<<print(idTrack)<<".");
183 return std::nullopt;
184 }
#define ATH_MSG_WARNING(x,...)
void print(char *figname, TCanvas *c1)
std::optional< Acts::BoundTrackParameters > lastParameters() const
Returns the outermost parameters known to the extension.
Gaudi::Property< bool > m_useCaloExtension
Flag toggling whether the last track parameters shall be retrieved from the calo extension linked to ...
const CaloExtension * getCaloExtension(const xAOD::TrackParticle &track)
Retrieve a pointer to the CaloExtension linked with the passed TrackParticle.
std::optional< Acts::BoundTrackParameters > lastTrackParameters(const xAOD::TrackParticle &trkPart, const bool skipOutlier=true)
Returns the last MeasurementState in form of Acts::BoundTrackParameters.

◆ filterPassed()

virtual bool AthCommonAlgorithm< Gaudi::Algorithm >::filterPassed ( const EventContext & ctx) const
inlinevirtualinherited

Get filter decision:

Definition at line 93 of file AthCommonAlgorithm.h.

93 {
94 return execState( ctx ).filterPassed();
95 }
virtual bool filterPassed(const EventContext &ctx) const
Get filter decision:

◆ initialize()

StatusCode MuonCombinedR4::InDetTrackSelectionAlg::initialize ( )
finaloverridevirtual

Definition at line 53 of file MuonSpectrometer/MuonPhaseII/MuonIdentification/MuonCombinedAlgsR4/src/InDetTrackSelectionAlg.cxx.

53 {
54 ATH_CHECK(m_idTrkKey.initialize());
57 ATH_CHECK(m_ctxProvider.initialize());
58 ATH_CHECK(m_selectionTool.retrieve(EnableTool{!m_selectionTool.empty()}));
61 ATH_CHECK(m_writeKey.initialize());
63 ATH_CHECK(detStore()->retrieve(m_detMgr));
64 if (m_trackingGeometrySvc->trackingGeometry()->geometryVersion() !=
65 Acts::TrackingGeometry::GeometryVersion::Gen3){
66 ATH_MSG_ERROR("The ID track selection alg requires the Gen 3 geometry format");
67 return StatusCode::FAILURE;
68 }
70 return StatusCode::SUCCESS;
71 }
#define ATH_MSG_ERROR(x,...)
std::unique_ptr< const Acts::Logger > makeActsAthenaLogger(IMessageSvc *svc, const std::string &name, int level, std::optional< std::string > parent_name)
Definition Logger.cxx:64
const ServiceHandle< StoreGateSvc > & detStore() const
SG::ReadDecorHandleKey< xAOD::TrackParticleContainer > m_extensionDecorKey
Optional dependency on the calo extension container.
Gaudi::Property< bool > m_matchWithMsTrk
Use the reconstructed MS tracks to match the InDetCandidates.
Gaudi::Property< bool > m_matchWithSegs
Use the segments directly to match the ID track with MS activity.

◆ inputHandles()

virtual std::vector< Gaudi::DataHandle * > AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::inputHandles ( ) const
overridevirtualinherited

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.

◆ isClonable()

virtual bool AthCommonAlgorithm< Gaudi::Algorithm >::isClonable ( ) const
inlineoverridevirtualinherited

Specify if the algorithm is clonable.

Only relevant for non-reentrant algorithms. Actual number of clones needs to be set via the "Cardinality" property.

Reimplemented in AFP_DigiTop, AlgB, AlgT, BCM_Digitization, CscDigitBuilder, CscDigitToCscRDO, G4AtlasAlg, G4RunAlg, HGTD_Digitization, HiveAlgBase, InDet::GNNSeedingTrackMaker, InDet::SCT_Clusterization, InDet::SiSPGNNTrackMaker, InDet::SiSPSeededTrackFinder, InDet::SiTrackerSpacePointFinder, ISF::SimKernelMT, ITk::StripDigitization, ITkPixelCablingAlg, ITkStripCablingAlg, LArHitEMapMaker, LArTTL1Maker, LUCID_DigiTop, LVL1::L1TopoSimulation, MergeCalibHits, MergeGenericMuonSimHitColl, MergeHijingPars, MergeMcEventCollection, MergeTrackRecordCollection, MergeTruthJets, MergeTruthParticles, MuonDigitizer, PileUpMTAlg, PixelDigitization, RoIBResultToxAOD, SCT_ByteStreamErrorsTestAlg, SCT_CablingCondAlgFromCoraCool, SCT_CablingCondAlgFromText, SCT_ConditionsParameterTestAlg, SCT_ConditionsSummaryTestAlg, SCT_ConfigurationConditionsTestAlg, SCT_Digitization, SCT_FlaggedConditionTestAlg, SCT_LinkMaskingTestAlg, SCT_MajorityConditionsTestAlg, SCT_ModuleVetoTestAlg, SCT_MonitorConditionsTestAlg, SCT_PrepDataToxAOD, SCT_RawDataToxAOD, SCT_ReadCalibChipDataTestAlg, SCT_ReadCalibDataTestAlg, SCT_RODVetoTestAlg, SCT_SensorsTestAlg, SCT_SiliconConditionsTestAlg, SCT_StripVetoTestAlg, SCT_TdaqEnabledTestAlg, SCT_TestCablingAlg, SCTEventFlagWriter, SCTRawDataProvider, SCTSiLorentzAngleTestAlg, SCTSiPropertiesTestAlg, SGInputLoader, Simulation::BeamEffectsAlg, TileHitVecToCnt, TileMuonFitter, TilePulseForTileMuonReceiver, TileRawChannelMaker, TRTDigitization, and ZDC_DigiTop.

Definition at line 68 of file AthCommonAlgorithm.h.

68 {
69 return true;
70 }

◆ logger()

const Acts::Logger & MuonCombinedR4::InDetTrackSelectionAlg::logger ( ) const
inlineprivate

Return the reference to the Acts logger.

Definition at line 124 of file MuonSpectrometer/MuonPhaseII/MuonIdentification/MuonCombinedAlgsR4/src/InDetTrackSelectionAlg.h.

124{ return *m_logger; }

◆ msg()

MsgStream & AthCommonMsg< Gaudi::Algorithm >::msg ( ) const
inlineinherited

Definition at line 24 of file AthCommonMsg.h.

24 {
25 return this->msgStream();
26 }

◆ msgLvl()

bool AthCommonMsg< Gaudi::Algorithm >::msgLvl ( const MSG::Level lvl) const
inlineinherited

Definition at line 30 of file AthCommonMsg.h.

30 {
31 return this->msgLevel(lvl);
32 }

◆ outputHandles()

virtual std::vector< Gaudi::DataHandle * > AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::outputHandles ( ) const
overridevirtualinherited

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.

◆ parametersCompatible()

bool MuonCombinedR4::InDetTrackSelectionAlg::parametersCompatible ( const Acts::GeometryContext & tgContext,
const Acts::BoundTrackParameters & caloExitPatrs,
const Acts::BoundTrackParameters & msTrackPars ) const
private

Evaluates whether the caloExit parameters and the MS track parameters are compatible with each other in terms of an angular cone.

Optionally, the radial displacement on the endcap discs or the longitudinal displacement on the barrel cylinder is checked to be within the limits.

Parameters
tgContextThe geometry context to align the surfaces
caloExitParsThe ID track expressed at the calo exit
msTrackParsReferene track parameters of the MS track

Definition at line 186 of file MuonSpectrometer/MuonPhaseII/MuonIdentification/MuonCombinedAlgsR4/src/InDetTrackSelectionAlg.cxx.

188 {
189
190 ATH_MSG_VERBOSE(__func__<<"() "<<__LINE__<<" - Check MS track \n@ "<<msTrackPars
191 <<", eta: "<<eta(msTrackPars));
192 const double dPhi = std::abs(xAOD::P4Helpers::deltaPhi(msTrackPars.phi(), caloExitPars.phi())) ;
193 const double dEta = std::abs(eta(msTrackPars) - eta(caloExitPars));
194 if(dPhi> m_dPhiCutMsTrk || dEta > m_dEtaCutMsTrk) {
195 ATH_MSG_VERBOSE(__func__<<"() "<<__LINE__<<" - Angular cone does not match dEta: "
196 <<dEta <<" vs "<<m_dEtaCutMsTrk<<" or dPhi: "<<dPhi<<" vs "<<m_dPhiCutMsTrk);
197 return false;
198 }
199 if (!m_trackSameSurf) {
200 ATH_MSG_VERBOSE(__func__<<"() "<<__LINE__<<" - Same surface requirement disabled");
201 return true;
202 }
203 if (msTrackPars.referenceSurface().geometryId().withBoundary(0) !=
204 caloExitPars.referenceSurface().geometryId().withBoundary(0)) {
205 ATH_MSG_VERBOSE(__func__<<"() "<<__LINE__<<" - Reference surfaces do not belong "
206 <<" to the same volume. ");
207 return false;
208 }
209 auto diffTrkPars = makeDiffParameters(tgContext, caloExitPars,
210 msTrackPars, logger(), m_dLoc0CutMsTrk);
211 if (!diffTrkPars) {
212 ATH_MSG_VERBOSE(__func__<<"() "<<__LINE__<<" - Parameters cannot be expressed on same surface");
213 return false;
214 }
215 return std::abs(longitudinalParam(*diffTrkPars, logger())) < m_dLoc0CutMsTrk &&
216 std::abs(localPolarAngle(*diffTrkPars, logger())) < m_dLoc1CutMsTrk;
217 }
Gaudi::Property< bool > m_trackSameSurf
Require that the matching between MS and ID track happens on the same surface.
Gaudi::Property< float > m_dEtaCutMsTrk
Selection cuts to test compability with the MS track.
std::optional< Acts::BoundTrackParameters > makeDiffParameters(const Acts::GeometryContext &tgContext, const Acts::BoundTrackParameters &idParameters, const Acts::BoundTrackParameters &msParameters, const Acts::Logger &logger, const double boundTolerance=Acts::UnitConstants::km)
Calculates the difference parameters between the ID and the MS If the parameters are expressed on dif...
double localPolarAngle(const Acts::BoundTrackParameters &pars, const Acts::Logger &logger)
Returns the local angular polar angle of the track parameter.
double longitudinalParam(const Acts::BoundTrackParameters &pars, const Acts::Logger &logger)
Returns the longitudinal local track parameter which is defined as.
bool dPhi(const xAOD::TauJet &tau, const xAOD::CaloVertexedTopoCluster &cluster, float &out)
double deltaPhi(double phiA, double phiB)
delta Phi in range [-pi,pi[

◆ renounce()

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 > AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::renounce ( T & h)
inlineprotectedinherited

Definition at line 380 of file AthCommonDataStore.h.

381 {
382 h.renounce();
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()

void AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::renounceArray ( SG::VarHandleKeyArray & handlesArray)
inlineprotectedinherited

remove all handles from I/O resolution

Definition at line 364 of file AthCommonDataStore.h.

364 {
366 }

◆ setFilterPassed()

virtual void AthCommonAlgorithm< Gaudi::Algorithm >::setFilterPassed ( bool state,
const EventContext & ctx ) const
inlinevirtualinherited

Set filter decision:

Reimplemented in AthFilterAlgorithm.

Definition at line 99 of file AthCommonAlgorithm.h.

99 {
101 }
virtual void setFilterPassed(bool state, const EventContext &ctx) const
Set filter decision:

◆ sysExecute()

StatusCode AthCommonAlgorithm< Gaudi::Algorithm >::sysExecute ( const EventContext & ctx)
overridevirtualinherited

Execute an algorithm.

We override this in order to work around an issue with the Algorithm base class storing the event context in a member variable that can cause crashes in MT jobs.

Reimplemented in AthAnalysisAlgorithm.

Definition at line 80 of file AthCommonAlgorithm.cxx.

41{
42 return BaseAlg::sysExecute (ctx);
43}

◆ sysInitialize()

StatusCode AthCommonAlgorithm< Gaudi::Algorithm >::sysInitialize ( )
overridevirtualinherited

Override sysInitialize.

Override sysInitialize from the base class.

Loop through all output handles, and if they're WriteCondHandles, automatically register them and this Algorithm with the CondSvc

Scan through all outputHandles, and if they're WriteCondHandles, register them with the CondSvc

Reimplemented from AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >.

Reimplemented in AthAnalysisAlgorithm, AthFilterAlgorithm, AthHistogramAlgorithm, HypoBase, InputMakerBase, and PyAthena::Alg.

Definition at line 60 of file AthCommonAlgorithm.cxx.

71 {
73
74 if (sc.isFailure()) {
75 return sc;
76 }
77
78 ServiceHandle<ICondSvc> cs("CondSvc",name());
79 for (auto h : outputHandles()) {
80 if (h->isCondition() && h->mode() == Gaudi::DataHandle::Writer) {
81 // do this inside the loop so we don't create the CondSvc until needed
82 if ( cs.retrieve().isFailure() ) {
83 ATH_MSG_WARNING("no CondSvc found: won't autoreg WriteCondHandles");
85 }
86 if (cs->regHandle(this,*h).isFailure()) {
88 ATH_MSG_ERROR("unable to register WriteCondHandle " << h->fullKey()
89 << " with CondSvc");
90 }
91 }
92 }
93 return sc;
94}
virtual StatusCode sysInitialize() override
virtual std::vector< Gaudi::DataHandle * > outputHandles() const override

◆ sysStart()

virtual StatusCode AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::sysStart ( )
overridevirtualinherited

Handle START transition.

We override this in order to make sure that conditions handle keys can cache a pointer to the conditions container.

◆ updateVHKA()

void AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::updateVHKA ( Gaudi::Details::PropertyBase & )
inlineinherited

Definition at line 308 of file AthCommonDataStore.h.

308 {
309 // debug() << "updateVHKA for property " << p.name() << " " << p.toString()
310 // << " size: " << m_vhka.size() << endmsg;
311 for (auto &a : m_vhka) {
313 for (auto k : keys) {
314 k->setOwner(this);
315 }
316 }
317 }

Member Data Documentation

◆ m_ctxProvider

ActsTrk::ContextUtility MuonCombinedR4::InDetTrackSelectionAlg::m_ctxProvider {this}
private

Context provider for geometry, magnetic field and calibration contexts.

Definition at line 97 of file MuonSpectrometer/MuonPhaseII/MuonIdentification/MuonCombinedAlgsR4/src/InDetTrackSelectionAlg.h.

97{this};

◆ m_dEtaCutMsSeg

Gaudi::Property<float> MuonCombinedR4::InDetTrackSelectionAlg::m_dEtaCutMsSeg {this, "dEtaMaxMsSegment", 0.3}
private

Selection cuts for the Muon segments.

Definition at line 119 of file MuonSpectrometer/MuonPhaseII/MuonIdentification/MuonCombinedAlgsR4/src/InDetTrackSelectionAlg.h.

119{this, "dEtaMaxMsSegment", 0.3};

◆ m_dEtaCutMsTrk

Gaudi::Property<float> MuonCombinedR4::InDetTrackSelectionAlg::m_dEtaCutMsTrk {this, "dEtaMaxMsTrk", 0.25}
private

Selection cuts to test compability with the MS track.

Definition at line 111 of file MuonSpectrometer/MuonPhaseII/MuonIdentification/MuonCombinedAlgsR4/src/InDetTrackSelectionAlg.h.

111{this, "dEtaMaxMsTrk", 0.25};

◆ m_detMgr

const MuonGMR4::MuonDetectorManager* MuonCombinedR4::InDetTrackSelectionAlg::m_detMgr {nullptr}
private

Detector manager to retrieve the sector envelope surfaces.

Definition at line 89 of file MuonSpectrometer/MuonPhaseII/MuonIdentification/MuonCombinedAlgsR4/src/InDetTrackSelectionAlg.h.

89{nullptr};

◆ m_detStore

StoreGateSvc_t AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_detStore
privateinherited

Pointer to StoreGate (detector store by default).

Definition at line 393 of file AthCommonDataStore.h.

◆ m_dLoc0CutMsTrk

Gaudi::Property<float> MuonCombinedR4::InDetTrackSelectionAlg::m_dLoc0CutMsTrk {this, "dLoc0MsTrk", 20.*Gaudi::Units::cm}
private

Definition at line 113 of file MuonSpectrometer/MuonPhaseII/MuonIdentification/MuonCombinedAlgsR4/src/InDetTrackSelectionAlg.h.

113{this, "dLoc0MsTrk", 20.*Gaudi::Units::cm};

◆ m_dLoc1CutMsTrk

Gaudi::Property<float> MuonCombinedR4::InDetTrackSelectionAlg::m_dLoc1CutMsTrk {this, "dLoc1MsTrk", 5.*Gaudi::Units::deg}
private

Definition at line 114 of file MuonSpectrometer/MuonPhaseII/MuonIdentification/MuonCombinedAlgsR4/src/InDetTrackSelectionAlg.h.

114{this, "dLoc1MsTrk", 5.*Gaudi::Units::deg};

◆ m_dPhiCutMsTrk

Gaudi::Property<float> MuonCombinedR4::InDetTrackSelectionAlg::m_dPhiCutMsTrk {this, "dPhiMsTrk", 5*Gaudi::Units::deg}
private

Definition at line 112 of file MuonSpectrometer/MuonPhaseII/MuonIdentification/MuonCombinedAlgsR4/src/InDetTrackSelectionAlg.h.

112{this, "dPhiMsTrk", 5*Gaudi::Units::deg};

◆ m_dY0CutMsSeg

Gaudi::Property<float> MuonCombinedR4::InDetTrackSelectionAlg::m_dY0CutMsSeg {this, "dY0MaxMsSegment", 40 * Gaudi::Units::cm}
private

Definition at line 120 of file MuonSpectrometer/MuonPhaseII/MuonIdentification/MuonCombinedAlgsR4/src/InDetTrackSelectionAlg.h.

120{this, "dY0MaxMsSegment", 40 * Gaudi::Units::cm};

◆ m_evtStore

StoreGateSvc_t AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_evtStore
privateinherited

Pointer to StoreGate (event store by default).

Definition at line 390 of file AthCommonDataStore.h.

◆ m_extendedExtraObjects

DataObjIDColl AthCommonAlgorithm< Gaudi::Algorithm >::m_extendedExtraObjects
privateinherited

Extra output dependency collection, extended by AthAlgorithmDHUpdate to add symlinks.

Empty if no symlinks were found.

Definition at line 108 of file AthCommonAlgorithm.h.

◆ m_extensionDecorKey

SG::ReadDecorHandleKey<xAOD::TrackParticleContainer> MuonCombinedR4::InDetTrackSelectionAlg::m_extensionDecorKey {this, "CaloExtensionDecorKey", m_idTrkKey, "caloExtensionLink"}
private

Optional dependency on the calo extension container.

Definition at line 80 of file MuonSpectrometer/MuonPhaseII/MuonIdentification/MuonCombinedAlgsR4/src/InDetTrackSelectionAlg.h.

80{this, "CaloExtensionDecorKey", m_idTrkKey, "caloExtensionLink"};

◆ m_extrapolationTool

ToolHandle<ActsTrk::IExtrapolationTool> MuonCombinedR4::InDetTrackSelectionAlg::m_extrapolationTool {this, "ExtrapolationTool" ,"" }
private

Track extrapolation tool.

Definition at line 95 of file MuonSpectrometer/MuonPhaseII/MuonIdentification/MuonCombinedAlgsR4/src/InDetTrackSelectionAlg.h.

95{this, "ExtrapolationTool" ,"" };

◆ m_idTrkKey

SG::ReadHandleKey<xAOD::TrackParticleContainer> MuonCombinedR4::InDetTrackSelectionAlg::m_idTrkKey {this, "IdTrackKey", "InDetTrackParticles"}
private

The input key for the ID / ITk track particles.

Definition at line 78 of file MuonSpectrometer/MuonPhaseII/MuonIdentification/MuonCombinedAlgsR4/src/InDetTrackSelectionAlg.h.

78{this, "IdTrackKey", "InDetTrackParticles"};

◆ m_logger

std::unique_ptr<const Acts::Logger> MuonCombinedR4::InDetTrackSelectionAlg::m_logger {}
private

◆ m_matchWithMsTrk

Gaudi::Property<bool> MuonCombinedR4::InDetTrackSelectionAlg::m_matchWithMsTrk {this, "matchWithMsTracks" , true}
private

Use the reconstructed MS tracks to match the InDetCandidates.

Definition at line 102 of file MuonSpectrometer/MuonPhaseII/MuonIdentification/MuonCombinedAlgsR4/src/InDetTrackSelectionAlg.h.

102{this, "matchWithMsTracks" , true};

◆ m_matchWithSegs

Gaudi::Property<bool> MuonCombinedR4::InDetTrackSelectionAlg::m_matchWithSegs {this, "matchWithSegments", true}
private

Use the segments directly to match the ID track with MS activity.

Definition at line 117 of file MuonSpectrometer/MuonPhaseII/MuonIdentification/MuonCombinedAlgsR4/src/InDetTrackSelectionAlg.h.

117{this, "matchWithSegments", true};

◆ m_msTrkKey

SG::ReadHandleKey<xAOD::TrackParticleContainer> MuonCombinedR4::InDetTrackSelectionAlg::m_msTrkKey {this, "MsTrackKey", "MsTrackParticlesR4"}
private

Input key for the MS track particles.

ID tracks are only considered if they can be roughly matched to a MS track

Definition at line 83 of file MuonSpectrometer/MuonPhaseII/MuonIdentification/MuonCombinedAlgsR4/src/InDetTrackSelectionAlg.h.

83{this, "MsTrackKey", "MsTrackParticlesR4"};

◆ m_segmentKey

SG::ReadHandleKey<xAOD::MuonSegmentContainer> MuonCombinedR4::InDetTrackSelectionAlg::m_segmentKey {this, "SegmentKey", "MuonSegmentsFromR4"}
private

To pass the selection criteria, ITk tracks can alternatively be matched to.

Definition at line 85 of file MuonSpectrometer/MuonPhaseII/MuonIdentification/MuonCombinedAlgsR4/src/InDetTrackSelectionAlg.h.

85{this, "SegmentKey", "MuonSegmentsFromR4"};

◆ m_selectionTool

ToolHandle<InDet::IInDetTrackSelectionTool> MuonCombinedR4::InDetTrackSelectionAlg::m_selectionTool {this, "TackSelectionTool" , ""}
private

Track quality selection tool (optional).

Definition at line 91 of file MuonSpectrometer/MuonPhaseII/MuonIdentification/MuonCombinedAlgsR4/src/InDetTrackSelectionAlg.h.

91{this, "TackSelectionTool" , ""};

◆ m_trackEta

Gaudi::Property<float> MuonCombinedR4::InDetTrackSelectionAlg::m_trackEta {this, "maxEta", 2.8}
private

Apply a maximum eta cut to stay within the MS acceptance.

Definition at line 106 of file MuonSpectrometer/MuonPhaseII/MuonIdentification/MuonCombinedAlgsR4/src/InDetTrackSelectionAlg.h.

106{this, "maxEta", 2.8};

◆ m_trackingGeometrySvc

ServiceHandle<ActsTrk::ITrackingGeometrySvc> MuonCombinedR4::InDetTrackSelectionAlg::m_trackingGeometrySvc {this, "TrackingGeometrySvc", "ActsTrackingGeometrySvc"}
private

Tracking geometry tool.

Definition at line 93 of file MuonSpectrometer/MuonPhaseII/MuonIdentification/MuonCombinedAlgsR4/src/InDetTrackSelectionAlg.h.

93{this, "TrackingGeometrySvc", "ActsTrackingGeometrySvc"};

◆ m_trackPt

Gaudi::Property<float> MuonCombinedR4::InDetTrackSelectionAlg::m_trackPt {this, "minPt", 2.5*Gaudi::Units::GeV}
private

The minimum momentum cut applied on the ID tracks to be considered.

Definition at line 104 of file MuonSpectrometer/MuonPhaseII/MuonIdentification/MuonCombinedAlgsR4/src/InDetTrackSelectionAlg.h.

104{this, "minPt", 2.5*Gaudi::Units::GeV};

◆ m_trackSameSurf

Gaudi::Property<bool> MuonCombinedR4::InDetTrackSelectionAlg::m_trackSameSurf {this, "matchTracksOnSameSurface", true}
private

Require that the matching between MS and ID track happens on the same surface.

Definition at line 109 of file MuonSpectrometer/MuonPhaseII/MuonIdentification/MuonCombinedAlgsR4/src/InDetTrackSelectionAlg.h.

109{this, "matchTracksOnSameSurface", true};

◆ m_useCaloExtension

Gaudi::Property<bool> MuonCombinedR4::InDetTrackSelectionAlg::m_useCaloExtension {this, "useCaloExtension", true}
private

Flag toggling whether the last track parameters shall be retrieved from the calo extension linked to the ID tracks.

Definition at line 100 of file MuonSpectrometer/MuonPhaseII/MuonIdentification/MuonCombinedAlgsR4/src/InDetTrackSelectionAlg.h.

100{this, "useCaloExtension", true};

◆ m_varHandleArraysDeclared

bool AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_varHandleArraysDeclared
privateinherited

Definition at line 399 of file AthCommonDataStore.h.

◆ m_vhka

std::vector<SG::VarHandleKeyArray*> AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_vhka
privateinherited

Definition at line 398 of file AthCommonDataStore.h.

◆ m_writeKey

SG::WriteHandleKey<MuonR4::MuonTagContainer> MuonCombinedR4::InDetTrackSelectionAlg::m_writeKey {this, "writeKey", "MuonInDetCandidates"}
private

The output key for the selected track candidates.

Definition at line 87 of file MuonSpectrometer/MuonPhaseII/MuonIdentification/MuonCombinedAlgsR4/src/InDetTrackSelectionAlg.h.

87{this, "writeKey", "MuonInDetCandidates"};

The documentation for this class was generated from the following files: