#include <TrackParamsEstimationTool.h>
|
| TrackParamsEstimationTool (const std::string &type, const std::string &name, const IInterface *parent) |
|
virtual | ~TrackParamsEstimationTool ()=default |
|
virtual StatusCode | initialize () override |
|
virtual std::optional< Acts::BoundTrackParameters > | estimateTrackParameters (const EventContext &ctx, const ActsTrk::Seed &seed, const Acts::GeometryContext &geoContext, const Acts::MagneticFieldContext &magFieldContext, std::function< const Acts::Surface &(const ActsTrk::Seed &)> retrieveSurface) const override |
|
virtual std::optional< Acts::BoundTrackParameters > | estimateTrackParameters (const EventContext &ctx, const ActsTrk::Seed &seed, const Acts::GeometryContext &geoContext, const Acts::Surface &surface, const Acts::Vector3 &bField) const override |
|
Definition at line 15 of file TrackParamsEstimationTool.h.
◆ TrackParamsEstimationTool()
ActsTrk::TrackParamsEstimationTool::TrackParamsEstimationTool |
( |
const std::string & |
type, |
|
|
const std::string & |
name, |
|
|
const IInterface * |
parent |
|
) |
| |
◆ ~TrackParamsEstimationTool()
virtual ActsTrk::TrackParamsEstimationTool::~TrackParamsEstimationTool |
( |
| ) |
|
|
virtualdefault |
◆ estimateTrackParameters() [1/2]
std::optional< Acts::BoundTrackParameters > ActsTrk::TrackParamsEstimationTool::estimateTrackParameters |
( |
const EventContext & |
ctx, |
|
|
const ActsTrk::Seed & |
seed, |
|
|
const Acts::GeometryContext & |
geoContext, |
|
|
const Acts::MagneticFieldContext & |
magFieldContext, |
|
|
std::function< const Acts::Surface &(const ActsTrk::Seed &)> |
retrieveSurface |
|
) |
| const |
|
overridevirtual |
Definition at line 37 of file TrackParamsEstimationTool.cxx.
43 const auto& sp_collection =
seed.sp();
44 if ( sp_collection.size() < 3 )
return std::nullopt;
45 const auto& bottom_sp =
m_useTopSp ? sp_collection.back() : sp_collection.front();
49 Acts::MagneticFieldProvider::Cache magFieldCache = magneticField.
makeCache( magFieldContext );
50 Acts::Vector3 bField = *magneticField.
getField( Acts::Vector3(bottom_sp->x(), bottom_sp->y(), bottom_sp->z()),
54 const Acts::Surface& surface = retrieveSurface(seed);
◆ estimateTrackParameters() [2/2]
std::optional< Acts::BoundTrackParameters > ActsTrk::TrackParamsEstimationTool::estimateTrackParameters |
( |
const EventContext & |
ctx, |
|
|
const ActsTrk::Seed & |
seed, |
|
|
const Acts::GeometryContext & |
geoContext, |
|
|
const Acts::Surface & |
surface, |
|
|
const Acts::Vector3 & |
bField |
|
) |
| const |
|
overridevirtual |
Definition at line 64 of file TrackParamsEstimationTool.cxx.
71 const auto& sp_collection =
seed.sp();
72 if ( sp_collection.size() < 3 )
return std::nullopt;
76 Acts::estimateTrackParamsFromSeed(geoContext,
80 Acts::estimateTrackParamsFromSeed(geoContext,
85 if ( not params_result.ok() ) {
89 auto&
params = params_result.value();
96 Acts::EstimateTrackParamCovarianceConfig covarianceEstimationConfig = {
100 .noTimeVarInflation = 1.0,
102 Acts::BoundMatrix covariance = Acts::estimateTrackParamCovariance(covarianceEstimationConfig,
params,
false);
105 return Acts::BoundTrackParameters(surface.getSharedPtr(),
◆ initialize()
StatusCode ActsTrk::TrackParamsEstimationTool::initialize |
( |
| ) |
|
|
overridevirtual |
◆ logger()
const Acts::Logger& ActsTrk::TrackParamsEstimationTool::logger |
( |
| ) |
const |
|
inlineprivate |
◆ m_initialSigmaPtRel
Gaudi::Property< double > ActsTrk::TrackParamsEstimationTool::m_initialSigmaPtRel |
|
private |
◆ m_initialVarInflation
Gaudi::Property< std::vector<double> > ActsTrk::TrackParamsEstimationTool::m_initialVarInflation |
|
private |
Initial value:{this, "initialVarInflation", {1., 1., 1., 1., 1., 1.},
"Inflate tracks"}
Definition at line 61 of file TrackParamsEstimationTool.h.
◆ m_logger
std::unique_ptr<const Acts::Logger> ActsTrk::TrackParamsEstimationTool::m_logger {nullptr} |
|
private |
◆ m_sigmaLoc0
Gaudi::Property< double > ActsTrk::TrackParamsEstimationTool::m_sigmaLoc0 |
|
private |
◆ m_sigmaLoc1
Gaudi::Property< double > ActsTrk::TrackParamsEstimationTool::m_sigmaLoc1 |
|
private |
◆ m_sigmaPhi
Gaudi::Property< double > ActsTrk::TrackParamsEstimationTool::m_sigmaPhi |
|
private |
◆ m_sigmaQOverP
Gaudi::Property< double > ActsTrk::TrackParamsEstimationTool::m_sigmaQOverP |
|
private |
◆ m_sigmaT0
Gaudi::Property< double > ActsTrk::TrackParamsEstimationTool::m_sigmaT0 |
|
private |
◆ m_sigmaTheta
Gaudi::Property< double > ActsTrk::TrackParamsEstimationTool::m_sigmaTheta |
|
private |
◆ m_useTopSp
Gaudi::Property< bool > ActsTrk::TrackParamsEstimationTool::m_useTopSp |
|
private |
The documentation for this class was generated from the following files: