 |
ATLAS Offline Software
|
#include <MsTrackFindingAlg.h>
|
| virtual | ~MsTrackFindingAlg () |
| |
| virtual StatusCode | initialize () override final |
| | Standard algorithm hook to setup the extrapolator, retrieve the tools and declare algorithm's data dependencies. More...
|
| |
| virtual StatusCode | execute (const EventContext &ctx) const override final |
| | Standard algorithm execution hook. More...
|
| |
| virtual StatusCode | sysInitialize () override |
| | Override sysInitialize. More...
|
| |
| virtual bool | isClonable () const override |
| | Specify if the algorithm is clonable. More...
|
| |
| virtual unsigned int | cardinality () const override |
| | Cardinality (Maximum number of clones that can exist) special value 0 means that algorithm is reentrant. More...
|
| |
| virtual StatusCode | sysExecute (const EventContext &ctx) override |
| | Execute an algorithm. More...
|
| |
| virtual const DataObjIDColl & | extraOutputDeps () const override |
| | Return the list of extra output dependencies. More...
|
| |
| virtual bool | filterPassed (const EventContext &ctx) const |
| |
| virtual void | setFilterPassed (bool state, const EventContext &ctx) const |
| |
| ServiceHandle< StoreGateSvc > & | evtStore () |
| | The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc. More...
|
| |
| const ServiceHandle< StoreGateSvc > & | evtStore () const |
| | The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc. More...
|
| |
| const ServiceHandle< StoreGateSvc > & | detStore () const |
| | The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc. More...
|
| |
| virtual StatusCode | sysStart () override |
| | Handle START transition. More...
|
| |
| virtual std::vector< Gaudi::DataHandle * > | inputHandles () const override |
| | Return this algorithm's input handles. More...
|
| |
| virtual std::vector< Gaudi::DataHandle * > | outputHandles () const override |
| | Return this algorithm's output handles. More...
|
| |
| Gaudi::Details::PropertyBase & | declareProperty (Gaudi::Property< T, V, H > &t) |
| |
| Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, SG::VarHandleKey &hndl, const std::string &doc, const SG::VarHandleKeyType &) |
| | Declare a new Gaudi property. More...
|
| |
| Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, SG::VarHandleBase &hndl, const std::string &doc, const SG::VarHandleType &) |
| | Declare a new Gaudi property. More...
|
| |
| Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, SG::VarHandleKeyArray &hndArr, const std::string &doc, const SG::VarHandleKeyArrayType &) |
| |
| Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, T &property, const std::string &doc, const SG::NotHandleType &) |
| | Declare a new Gaudi property. More...
|
| |
| Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, T &property, const std::string &doc="none") |
| | Declare a new Gaudi property. More...
|
| |
| void | updateVHKA (Gaudi::Details::PropertyBase &) |
| |
| MsgStream & | msg () const |
| |
| MsgStream & | msg (const MSG::Level lvl) const |
| |
| bool | msgLvl (const MSG::Level lvl) const |
| |
|
| std::unique_ptr< MsTrackSeedContainer > | findTrackSeeds (const EventContext &ctx, const xAOD::MuonSegmentContainer &segments) const |
| | Iterates over the search tree and combines close-by segments to a track seed. More...
|
| |
| bool | fitSeedCandidate (const Acts::GeometryContext &gCtx, const Acts::MagneticFieldContext &mCtx, const Acts::CalibrationContext &cCtx, const MsTrackSeed &seed, ActsTrk::MutableTrackContainer &outContainer) const |
| | Attempts to fit the track seed candidate to a full track and returns whether the fit succeeded. More...
|
| |
| std::pair< OptBoundPars_t, MeasVec_t > | prepareFit (const Acts::GeometryContext &tgContext, const Acts::MagneticFieldContext &mfContext, const Acts::CalibrationContext &calContext, const MsTrackSeed &seed) const |
| | Prepares the input by the fit by collecting the measurements on the segment &. More...
|
| |
| void | visualizeObj (const Acts::GeometryContext &tgContext, const Acts::CalibrationContext &calContext, const MsTrackSeed &seed, const OptBoundPars_t &parsToExt) const |
| |
| Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &) |
| | specialization for handling Gaudi::Property<SG::VarHandleKey> More...
|
| |
| Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyArrayType &) |
| | specialization for handling Gaudi::Property<SG::VarHandleKeyArray> More...
|
| |
| Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleType &) |
| | specialization for handling Gaudi::Property<SG::VarHandleBase> More...
|
| |
| Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T, V, H > &t, const SG::NotHandleType &) |
| | specialization for handling everything that's not a Gaudi::Property<SG::VarHandleKey> or a <SG::VarHandleKeyArray> More...
|
| |
|
| SG::ReadHandleKey< xAOD::MuonSegmentContainer > | m_segmentKey {this, "SegmentContainer", "MuonSegmentsFromR4" } |
| | Declare the data dependency on the standard Mdt+Rpc+Tgc segment container & on the NSW segment container. More...
|
| |
| ServiceHandle< Muon::IMuonIdHelperSvc > | m_idHelperSvc {this, "IdHelperSvc", "Muon::MuonIdHelperSvc/MuonIdHelperSvc"} |
| | IdHelperSvc to decode the Identifiers. More...
|
| |
| const MuonGMR4::MuonDetectorManager * | m_detMgr {nullptr} |
| | Pointer to the MuonDetectorManager. More...
|
| |
| SG::WriteHandleKey< MsTrackSeedContainer > | m_msTrkSeedKey {this, "MsTrkSeedKey", "MsTrackSeeds"} |
| | Temporary container write handle to push the seeds to store gate for later efficiency analysis. More...
|
| |
| ToolHandle< ISegmentSelectionTool > | m_segSelector {this, "SegmentSelectionTool" , "" } |
| | Segment selection tool to pick the good quality segments. More...
|
| |
| ToolHandle< ActsTrk::IFitterTool > | m_trackFitTool {this, "FittingTool", ""} |
| | Track fitting tool. More...
|
| |
| ToolHandle< ISpacePointCalibrator > | m_calibTool {this, "Calibrator", ""} |
| |
| PublicToolHandle< ActsTrk::ITrackingGeometryTool > | m_trackingGeometryTool {this, "TrackingGeometryTool", ""} |
| | Tracking geometry tool. More...
|
| |
| ToolHandle< ActsTrk::IExtrapolationTool > | m_extrapolationTool {this, "ExtrapolationTool" ,"" } |
| | Track extrapolation tool. More...
|
| |
| ToolHandle< MuonValR4::ITrackVisualizationTool > | m_visualizationTool {this, "VisualizationTool", ""} |
| | Visualization tool to debug the track finding. More...
|
| |
| Gaudi::Property< double > | m_seedHalfLength {this, "SeedHalfLength", 50.*Gaudi::Units::cm} |
| | Maximum search window to search segments for. More...
|
| |
| SG::WriteHandleKey< ActsTrk::TrackContainer > | m_writeKey {this, "TrackWriteKey", "MsTracks"} |
| | Key to the output track container. More...
|
| |
| Gaudi::Property< bool > | m_drawEvent {this , "drawEvent", false } |
| | Dump the segments & the pre estimated track parameters. More...
|
| |
| std::unique_ptr< MsTrackSeeder > | m_seeder {} |
| | Pointer to the actual seeder implementation. More...
|
| |
| DataObjIDColl | m_extendedExtraObjects |
| | Extra output dependency collection, extended by AthAlgorithmDHUpdate to add symlinks. More...
|
| |
| StoreGateSvc_t | m_evtStore |
| | Pointer to StoreGate (event store by default) More...
|
| |
| StoreGateSvc_t | m_detStore |
| | Pointer to StoreGate (detector store by default) More...
|
| |
| std::vector< SG::VarHandleKeyArray * > | m_vhka |
| |
| bool | m_varHandleArraysDeclared |
| |
Definition at line 38 of file MsTrackFindingAlg.h.
◆ MeasVec_t
◆ OptBoundPars_t
◆ StoreGateSvc_t
◆ ~MsTrackFindingAlg()
| MuonR4::MsTrackFindingAlg::~MsTrackFindingAlg |
( |
| ) |
|
|
virtualdefault |
◆ cardinality()
Cardinality (Maximum number of clones that can exist) special value 0 means that algorithm is reentrant.
Override this to return 0 for reentrant algorithms.
Override this to return 0 for reentrant algorithms.
Definition at line 75 of file AthCommonReentrantAlgorithm.cxx.
◆ declareGaudiProperty() [1/4]
specialization for handling Gaudi::Property<SG::VarHandleKeyArray>
Definition at line 170 of file AthCommonDataStore.h.
175 hndl.documentation());
◆ declareGaudiProperty() [2/4]
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition at line 156 of file AthCommonDataStore.h.
161 hndl.documentation());
◆ declareGaudiProperty() [3/4]
specialization for handling Gaudi::Property<SG::VarHandleBase>
Definition at line 184 of file AthCommonDataStore.h.
189 hndl.documentation());
◆ declareGaudiProperty() [4/4]
◆ declareProperty() [1/6]
Declare a new Gaudi property.
- Parameters
-
| name | Name of the property. |
| hndl | Object holding the property value. |
| doc | Documentation string for the property. |
This is the version for types that derive from SG::VarHandleBase. The property value object is put on the input and output lists as appropriate; then we forward to the base class.
Definition at line 245 of file AthCommonDataStore.h.
250 this->declare(hndl.
vhKey());
251 hndl.
vhKey().setOwner(
this);
◆ declareProperty() [2/6]
Declare a new Gaudi property.
- Parameters
-
| name | Name of the property. |
| hndl | Object holding the property value. |
| doc | Documentation string for the property. |
This is the version for types that derive from SG::VarHandleKey. The property value object is put on the input and output lists as appropriate; then we forward to the base class.
Definition at line 221 of file AthCommonDataStore.h.
◆ declareProperty() [3/6]
◆ declareProperty() [4/6]
Declare a new Gaudi property.
- Parameters
-
| name | Name of the property. |
| property | Object holding the property value. |
| doc | Documentation string for the property. |
This is the generic version, for types that do not derive from SG::VarHandleKey. It just forwards to the base class version of declareProperty.
Definition at line 333 of file AthCommonDataStore.h.
◆ declareProperty() [5/6]
Declare a new Gaudi property.
- Parameters
-
| name | Name of the property. |
| property | Object holding the property value. |
| doc | Documentation string for the property. |
This dispatches to either the generic declareProperty or the one for VarHandle/Key/KeyArray.
Definition at line 352 of file AthCommonDataStore.h.
◆ declareProperty() [6/6]
◆ detStore()
◆ evtStore() [1/2]
◆ evtStore() [2/2]
◆ execute()
| StatusCode MuonR4::MsTrackFindingAlg::execute |
( |
const EventContext & |
ctx | ) |
const |
|
finaloverridevirtual |
Standard algorithm execution hook.
Attach the number of the parent seed to the output container
Definition at line 57 of file MsTrackFindingAlg.cxx.
58 ATH_MSG_VERBOSE(
"Run track finding in event "<<ctx.eventID().event_number());
66 const Acts::MagneticFieldContext mfContext =
m_extrapolationTool->getMagneticFieldContext(ctx);
70 Acts::VectorTrackContainer trackBackend{};
71 Acts::VectorMultiTrajectory trackStateBackend{};
73 std::move(trackStateBackend)};
75 cacheTrkContainer.addColumn<std::size_t>(
"parentSeed");
77 for (
const MsTrackSeed& seed : *seedContainer) {
83 auto lastTrack = cacheTrkContainer.getTrack(cacheTrkContainer.size() -1);
84 lastTrack.component<std::size_t, Acts::hashString(
"parentSeed")>() = seedIdx;
88 ATH_CHECK(writeHandleSeed.record(std::move(seedContainer)));
91 Acts::ConstVectorTrackContainer ctrackBackend{std::move(cacheTrkContainer.container())};
92 Acts::ConstVectorMultiTrajectory ctrackStateBackend{std::move(cacheTrkContainer.trackStateContainer())};
93 auto ctc = std::make_unique<ActsTrk::TrackContainer>(std::move(ctrackBackend),
94 std::move(ctrackStateBackend));
97 ATH_CHECK(writeHandle.record(std::move(ctc)));
98 return StatusCode::SUCCESS;
◆ extraDeps_update_handler()
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()
Return the list of extra output dependencies.
This list is extended to include symlinks implied by inheritance relations.
Definition at line 94 of file AthCommonReentrantAlgorithm.cxx.
◆ filterPassed()
◆ findTrackSeeds()
Iterates over the search tree and combines close-by segments to a track seed.
Seeds with the same segments as other seeds are deduplicated
- Parameters
-
| ctx | The event's context to access StoreGate & Conditions |
| segments | Full segment container |
Definition at line 102 of file MsTrackFindingAlg.cxx.
110 return seedContainer;
◆ fitSeedCandidate()
Attempts to fit the track seed candidate to a full track and returns whether the fit succeeded.
- Parameters
-
| gCtx | Geometry context to access the alignment of the surfaces |
| mCtxc | Magnetic field context to access the field map during the fit |
| cCtx | Calibration context to access the calibration constants from Store gate during the track state filling |
| seed | The seed of interest to fit |
| outContainer | Mutable track container to which the output track is written |
Definition at line 216 of file MsTrackFindingAlg.cxx.
222 ATH_MSG_DEBUG(__func__<<
"() "<<__LINE__<<
" - Attempt to fit a new track seed \n"<<seed);
224 const auto [initialPars, measurements] =
prepareFit(tgContext, mfContext, calContext, seed);
226 if (!initialPars.ok()) {
227 ATH_MSG_WARNING(__func__<<
"() "<<__LINE__<<
" - Failed to construct valid parameters for seed \n"<<seed);
232 tgContext, mfContext, calContext,
233 &(*initialPars).referenceSurface());
234 if (!fitTraject || fitTraject->size() == 0) {
239 outContainer.ensureDynamicColumns(*fitTraject);
240 auto destProxy = outContainer.getTrack(outContainer.addTrack());
241 destProxy.copyFrom(fitTraject->getTrack(0));
242 ATH_MSG_DEBUG(__func__<<
"() "<<__LINE__<<
" - Good track fit...");
243 for (
const auto state : destProxy.trackStates()) {
244 if (!state.hasUncalibratedSourceLink()){
◆ initialize()
| StatusCode MuonR4::MsTrackFindingAlg::initialize |
( |
| ) |
|
|
finaloverridevirtual |
Standard algorithm hook to setup the extrapolator, retrieve the tools and declare algorithm's data dependencies.
Definition at line 30 of file MsTrackFindingAlg.cxx.
46 MsTrackSeeder::Config seederCfg{};
51 m_seeder = std::make_unique<MsTrackSeeder>(
name(), std::move(seederCfg));
52 return StatusCode::SUCCESS;
◆ inputHandles()
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()
◆ msg() [1/2]
◆ msg() [2/2]
◆ msgLvl()
◆ outputHandles()
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.
◆ prepareFit()
Prepares the input by the fit by collecting the measurements on the segment &.
- Parameters
-
| gCtx | Geometry context to access the alignment of the surfaces |
| mCtxc | Magnetic field context to access the field map during the fit |
| cCtx | Calibration context to access the calibration constants from Store gate during the track state filling |
| seed | The seed of interest to fit |
Fetch the measurements from the segment & find the first segment which has phi hits
Ensure that the drift signs from the fit are stamped onto the Uncalibrated measurements
The middle or outer segment provide the phi information. Not so easy becasue we want to Take the y0 & precision direction from the inner segment but the phi & x0 from a straight line extrapolation onto the plane
Create a surface which is shortly before the first measurement
Definition at line 114 of file MsTrackFindingAlg.cxx.
118 const EventContext& ctx{*calContext.get<
const EventContext*>()};
120 measurements.reserve(100);
128 std::stringstream sstr{};
132 <<
", "<<
m->numDimensions()<<
", "
133 <<
", "<<surf.geometryId()<<
" @ "<<
Amg::toString(surf.transform(tgContext))<<std::endl;
136 <<
", direction: "<<
Amg::toString(segment->direction())<<
"\n"<<sstr.str());
138 measurements.insert(measurements.end(),
139 std::make_move_iterator(segMeasurements.begin()),
140 std::make_move_iterator(segMeasurements.end()));
151 if (
false && refSeg !=
seed.segments().front()) {
153 const Acts::PlaneSurface& surf = innerPlane->
surface();
156 const Amg::Vector3D locSeedDir = toInnerPlane.linear() * seedDir;
158 auto seedOnInner = Acts::PlanarHelper::intersectPlane(locSeedPos, locSeedDir,
159 Amg::Vector3D::UnitZ(), 0.);
163 innerPars[Acts::toUnderlying(x0)] = seedOnInner.position().x();
165 Acts::makeDirectionFromPhiTheta(innerPars[Acts::toUnderlying(
phi)],
166 innerPars[Acts::toUnderlying(
theta)]);
168 Acts::makeDirectionFromAxisTangents(
houghTanAlpha(locSeedDir),
170 seedPos = surf.transform(tgContext) *
Amg::Vector3D{innerPars[Acts::toUnderlying(x0)],
171 innerPars[Acts::toUnderlying(y0)], 0};
172 seedDir = surf.transform(tgContext).linear() * combSegDir;
175 const double propDistance = (
xAOD::muonSurface(measurements[0]).center(tgContext) -
177 const Amg::Vector3D refPos = seedPos + propDistance * seedDir;
178 auto target = Acts::Surface::makeShared<Acts::PerigeeSurface>(refPos);
183 auto initialPars = Acts::BoundTrackParameters::create(tgContext,
target, fourPos,
186 Acts::BoundSquareMatrix::Identity(),
188 return std::make_pair(std::move(initialPars), std::move(measurements));
◆ renounce()
◆ renounceArray()
◆ setFilterPassed()
◆ sysExecute()
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.
Definition at line 85 of file AthCommonReentrantAlgorithm.cxx.
◆ sysInitialize()
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 InputMakerBase, and HypoBase.
Definition at line 61 of file AthCommonReentrantAlgorithm.cxx.
110 if (
sc.isFailure()) {
118 if ( cs.retrieve().isFailure() ) {
120 return StatusCode::SUCCESS;
122 if (cs->regHandle(
this,*
h).isFailure()) {
123 sc = StatusCode::FAILURE;
124 ATH_MSG_ERROR(
"unable to register WriteCondHandle " <<
h->fullKey()
◆ sysStart()
Handle START transition.
We override this in order to make sure that conditions handle keys can cache a pointer to the conditions container.
◆ updateVHKA()
◆ visualizeObj()
Definition at line 191 of file MsTrackFindingAlg.cxx.
198 const EventContext& ctx {*calContext.get<
const EventContext*>()};
200 Acts::ObjVisualization3D visualHelper{};
201 if (parsToExt.ok()) {
205 std::string saveStr =
std::format(
"MsTrackFinding_{:}", ctx.eventID().event_number());
212 visualHelper.write(saveStr);
◆ m_calibTool
◆ m_detMgr
◆ m_detStore
◆ m_drawEvent
| Gaudi::Property<bool> MuonR4::MsTrackFindingAlg::m_drawEvent {this , "drawEvent", false } |
|
private |
◆ m_evtStore
◆ m_extendedExtraObjects
Extra output dependency collection, extended by AthAlgorithmDHUpdate to add symlinks.
Empty if no symlinks were found.
Definition at line 114 of file AthCommonReentrantAlgorithm.h.
◆ m_extrapolationTool
◆ m_idHelperSvc
◆ m_msTrkSeedKey
Temporary container write handle to push the seeds to store gate for later efficiency analysis.
Definition at line 97 of file MsTrackFindingAlg.h.
◆ m_seeder
| std::unique_ptr<MsTrackSeeder> MuonR4::MsTrackFindingAlg::m_seeder {} |
|
private |
◆ m_seedHalfLength
| Gaudi::Property<double> MuonR4::MsTrackFindingAlg::m_seedHalfLength {this, "SeedHalfLength", 50.*Gaudi::Units::cm} |
|
private |
◆ m_segmentKey
Declare the data dependency on the standard Mdt+Rpc+Tgc segment container & on the NSW segment container.
Definition at line 91 of file MsTrackFindingAlg.h.
◆ m_segSelector
| ToolHandle<ISegmentSelectionTool> MuonR4::MsTrackFindingAlg::m_segSelector {this, "SegmentSelectionTool" , "" } |
|
private |
◆ m_trackFitTool
| ToolHandle<ActsTrk::IFitterTool> MuonR4::MsTrackFindingAlg::m_trackFitTool {this, "FittingTool", ""} |
|
private |
◆ m_trackingGeometryTool
◆ m_varHandleArraysDeclared
◆ m_vhka
◆ m_visualizationTool
◆ m_writeKey
The documentation for this class was generated from the following files:
def retrieve(aClass, aKey=None)
std::vector< const xAOD::UncalibratedMeasurement * > collectMeasurements(const Segment &seg, bool skipOutlier=true)
Helper function to extract the measurements from the segment.
std::string printID(const xAOD::MuonSegment &seg)
Print the chamber ID of a segment, e.g.
Acts::CalibrationContext getCalibrationContext(const EventContext &ctx)
The Acts::Calibration context is piped through the Acts fitters to (re)calibrate the Acts::SourceLink...
const Identifier & identify(const UncalibratedMeasurement *meas)
Returns the associated identifier from the muon measurement.
A spectrometer sector forms the envelope of all chambers that are placed in the same MS sector & laye...
Scalar phi() const
phi method
SG::WriteHandleKey< MsTrackSeedContainer > m_msTrkSeedKey
Temporary container write handle to push the seeds to store gate for later efficiency analysis.
ToolHandle< ActsTrk::IFitterTool > m_trackFitTool
Track fitting tool.
Scalar theta() const
theta method
constexpr double energyToActs(const double athenaE)
Converts an energy scalar from Athena to Acts units.
Acts::TrackContainer< MutableTrackBackend, MutableTrackStateBackend, Acts::detail::ValueHolder > MutableTrackContainer
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)
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
std::vector< SG::VarHandleKeyArray * > m_vhka
Class describing a MuonSegment.
bool msgLvl(const MSG::Level lvl) const
SeedingAux::FitParIndex ParamDefs
Use the same parameter indices as used by the CompSpacePointAuxiliaries.
Acts::Vector4 convertPosToActs(const Amg::Vector3D &athenaPos, const double athenaTime=0.)
Converts a position vector & time from Athena units into Acts units.
#define ATH_MSG_VERBOSE(x)
void drawSegmentLine(const ActsTrk::GeometryContext &gctx, const xAOD::MuonSegment &segment, Acts::ObjVisualization3D &visualHelper, const Acts::ViewConfig &viewConfig=Acts::s_viewLine, const double standardLength=1.*Gaudi::Units::m)
Draw a segment line inside the obj file.
static const xAOD::UncalibratedMeasurement * unpack(const Acts::SourceLink &sl)
Helper method to unpack an Acts source link to an uncalibrated measurement.
std::vector< const xAOD::UncalibratedMeasurement * > MeasVec_t
const ServiceHandle< StoreGateSvc > & detStore() const
The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
virtual void setOwner(IDataHandleHolder *o)=0
const Segment * detailedSegment(const xAOD::MuonSegment &seg)
Helper function to navigate from the xAOD::MuonSegment to the MuonR4::Segment.
void visualizeObj(const Acts::GeometryContext &tgContext, const Acts::CalibrationContext &calContext, const MsTrackSeed &seed, const OptBoundPars_t &parsToExt) const
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
PublicToolHandle< ActsTrk::ITrackingGeometryTool > m_trackingGeometryTool
Tracking geometry tool.
virtual const DataObjIDColl & extraOutputDeps() const override
Return the list of extra output dependencies.
bool fitSeedCandidate(const Acts::GeometryContext &gCtx, const Acts::MagneticFieldContext &mCtx, const Acts::CalibrationContext &cCtx, const MsTrackSeed &seed, ActsTrk::MutableTrackContainer &outContainer) const
Attempts to fit the track seed candidate to a full track and returns whether the fit succeeded.
double houghTanBeta(const Amg::Vector3D &v)
Returns the hough tanBeta [y] / [z].
std::string toString(const Translation3D &translation, int precision=4)
GeoPrimitvesToStringConverter.
virtual std::vector< Gaudi::DataHandle * > outputHandles() const override
Return this algorithm's output handles.
const T * get(const ReadCondHandleKey< T > &key, const EventContext &ctx)
Convenience function to retrieve an object given a ReadCondHandleKey.
::StatusCode StatusCode
StatusCode definition for legacy code.
const MuonGMR4::MuonDetectorManager * m_detMgr
Pointer to the MuonDetectorManager.
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
void drawPropagation(const std::vector< Acts::detail::Step > &steps, Acts::ObjVisualization3D &visualHelper, const Acts::ViewConfig &viewConfig=Acts::s_viewLine)
virtual StatusCode sysExecute(const EventContext &ctx) override
Execute an algorithm.
Eigen::Affine3d Transform3D
Acts::Experimental::CompositeSpacePointLineFitter::ParamVec_t Parameters
SG::ReadHandleKey< xAOD::MuonSegmentContainer > m_segmentKey
Declare the data dependency on the standard Mdt+Rpc+Tgc segment container & on the NSW segment contai...
const Acts::PlaneSurface & surface() const
Returns the associated surface.
std::unique_ptr< MsTrackSeedContainer > findTrackSeeds(const EventContext &ctx, const xAOD::MuonSegmentContainer &segments) const
Iterates over the search tree and combines close-by segments to a track seed.
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
Gaudi::Property< double > m_seedHalfLength
Maximum search window to search segments for.
ToolHandle< ISpacePointCalibrator > m_calibTool
def dot(G, fn, nodesToHighlight=[])
virtual void renounce()=0
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
SG::WriteHandleKey< ActsTrk::TrackContainer > m_writeKey
Key to the output track container.
std::pair< OptBoundPars_t, MeasVec_t > prepareFit(const Acts::GeometryContext &tgContext, const Acts::MagneticFieldContext &mfContext, const Acts::CalibrationContext &calContext, const MsTrackSeed &seed) const
Prepares the input by the fit by collecting the measurements on the segment &.
Gaudi::Property< bool > m_drawEvent
Dump the segments & the pre estimated track parameters.
ToolHandle< ActsTrk::IExtrapolationTool > m_extrapolationTool
Track extrapolation tool.
void drawSegmentMeasurements(const ActsTrk::GeometryContext &gctx, const xAOD::MuonSegment &segment, Acts::ObjVisualization3D &visualHelper, const Acts::ViewConfig &viewConfig=Acts::s_viewSensitive)
Draw all uncalibrated measurements associated to the segment.
Eigen::Matrix< double, 3, 1 > Vector3D
const Acts::Surface & muonSurface(const UncalibratedMeasurement *meas)
Returns the associated Acts surface to the measurement.
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
IdHelperSvc to decode the Identifiers.
ToolHandle< MuonValR4::ITrackVisualizationTool > m_visualizationTool
Visualization tool to debug the track finding.
#define ATH_MSG_WARNING(x)
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
Parameters localSegmentPars(const xAOD::MuonSegment &seg)
Returns the localSegPars decoration from a xAODMuon::Segment.
virtual StatusCode sysInitialize() override
Override sysInitialize.
DataObjIDColl m_extendedExtraObjects
Extra output dependency collection, extended by AthAlgorithmDHUpdate to add symlinks.
double houghTanAlpha(const Amg::Vector3D &v)
: Returns the hough tanAlpha [x] / [z]
std::unique_ptr< MsTrackSeeder > m_seeder
Pointer to the actual seeder implementation.
ToolHandle< ISegmentSelectionTool > m_segSelector
Segment selection tool to pick the good quality segments.