Belle II Software development
FiveHitFilter.cc
1/**************************************************************************
2 * basf2 (Belle II Analysis Software Framework) *
3 * Author: The Belle II Collaboration *
4 * *
5 * See git log for contributors and copyright holders. *
6 * This file is licensed under LGPL-3.0, see LICENSE.md. *
7 **************************************************************************/
8#include <tracking/vxdHoughTracking/filters/pathFilters/FiveHitFilter.h>
9#include <tracking/trackFindingCDC/utilities/StringManipulation.h>
10#include <framework/core/ModuleParamList.templateDetails.h>
11
12using namespace Belle2;
13using namespace TrackFindingCDC;
14using namespace vxdHoughTracking;
15
16void FiveHitFilter::exposeParameters(ModuleParamList* moduleParamList, const std::string& prefix)
17{
18 moduleParamList->addParameter(TrackFindingCDC::prefixed(prefix, "helixFitPocaDCut"), m_helixFitPocaDCut,
19 "Cut on the POCA difference in xy with the POCA obtained from a .",
21}
22
23TrackFindingCDC::Weight
25{
26 const std::vector<TrackFindingCDC::WithWeight<const VXDHoughState*>>& previousHits = pair.first;
27
28 // Do nothing if path is too short or too long
29 if (previousHits.size() != 4) {
30 return NAN;
31 }
32
33 return 1.0;
34}
The Module parameter list class.
std::pair< const std::vector< TrackFindingCDC::WithWeight< const VXDHoughState * > >, VXDHoughState * > Object
Definition Filter.dcl.h:35
TrackFindingCDC::Weight operator()(const BasePathFilter::Object &pair) override
Return the weight based on azimuthal-angle separation.
double m_helixFitPocaDCut
cut on the POCA distance in xy obtained from the helixFitEstimator
void exposeParameters(ModuleParamList *moduleParamList, const std::string &prefix) override
Expose the parameters.
STL class.
void addParameter(const std::string &name, T &paramVariable, const std::string &description, const T &defaultValue)
Adds a new parameter to the module list.
Abstract base class for different kinds of events.