8#include <tracking/vxdHoughTracking/filters/pathFilters/QualityIndicatorFilter.h>
9#include <tracking/trackFindingCDC/filters/base/Filter.icc.h>
10#include <tracking/trackFindingVXD/trackQualityEstimators/QualityEstimatorCircleFit.h>
11#include <tracking/trackFindingVXD/trackQualityEstimators/QualityEstimatorMC.h>
12#include <tracking/trackFindingVXD/trackQualityEstimators/QualityEstimatorRiemannHelixFit.h>
13#include <tracking/trackFindingVXD/trackQualityEstimators/QualityEstimatorTripletFit.h>
14#include <tracking/trackFindingCDC/utilities/StringManipulation.h>
15#include <framework/core/ModuleParamList.templateDetails.h>
16#include <framework/geometry/BFieldManager.h>
19using namespace TrackFindingCDC;
20using namespace vxdHoughTracking;
25 "Identifier which estimation method to use. Valid identifiers are: [mcInfo, circleFit, tripletFit, helixFit]",
29 "Only required for MCInfo method. Name of StoreArray containing MCRecoTracks.",
33 "Only required for MCInfo method. If false combining several MCTracks is allowed.",
37 "Cut on the quality indicator. Only process QI values larger than this.",
m_QIcut);
59 m_estimator = std::make_unique<QualityEstimatorTripletFit>();
61 m_estimator = std::make_unique<QualityEstimatorCircleFit>();
63 m_estimator = std::make_unique<QualityEstimatorRiemannHelixFit>();
68TrackFindingCDC::Weight
71 const std::vector<TrackFindingCDC::WithWeight<const VXDHoughState*>>& previousHits = pair.first;
73 std::vector<const SpacePoint*> spacePoints;
74 spacePoints.reserve(previousHits.size() + 1);
75 for (
auto& hit : previousHits) {
76 spacePoints.emplace_back(hit->getHit());
78 spacePoints.emplace_back(pair.second->getHit());
82 std::reverse(spacePoints.begin(), spacePoints.end());
84 const auto& estimatorResult =
m_estimator->estimateQualityAndProperties(spacePoints);
86 if (estimatorResult.qualityIndicator <
m_QIcut) {
90 return estimatorResult.qualityIndicator;
The Module parameter list class.
Class implementing the algorithm used for the MC based quality estimation.
void forceUpdateClusterNames()
Setter to force the class to update its cluster names.
bool isRequired(const std::string &name="")
Ensure this array/object has been registered previously.
Accessor to arrays stored in the data store.
AObject Object
Type of the object to be analysed.
static const double T
[tesla]
bool m_MCStrictQualityEstimator
Only required for MCInfo method.
void initialize() override
initialize quality estimator
std::string m_EstimationMethod
Identifier which estimation method to use.
TrackFindingCDC::Weight operator()(const BasePathFilter::Object &pair) override
Return the weight based on the quality estimator.
void beginRun() override
set BField value for estimator
std::string m_MCRecoTracksStoreArrayName
sets the name of the expected StoreArray containing MCRecoTracks. Only required for MCInfo method
double m_QIcut
cut on quality indicator
std::unique_ptr< QualityEstimatorBase > m_estimator
pointer to the selected QualityEstimator
void exposeParameters(ModuleParamList *moduleParamList, const std::string &prefix) override
Expose the parameters.
void addParameter(const std::string &name, T ¶mVariable, const std::string &description, const T &defaultValue)
Adds a new parameter to the module list.
static void getField(const double *pos, double *field)
return the magnetic field at a given position.
Abstract base class for different kinds of events.