Belle II Software  release-05-01-25
RoughCDCStateFilter.h
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2017 - Belle II Collaboration *
4  * *
5  * Author: The Belle II Collaboration *
6  * Contributors: Nils Braun *
7  * *
8  * This software is provided "as is" without any warranty. *
9  **************************************************************************/
10 #pragma once
11 
12 #include <tracking/ckf/cdc/filters/states/BaseCDCStateFilter.h>
13 
14 #include <tracking/trackFindingCDC/numerics/Weight.h>
15 #include <string>
16 
17 namespace Belle2 {
22  class ModuleParamList;
23 
25  class RoughCDCStateFilter : public BaseCDCStateFilter {
26  public:
28  TrackFindingCDC::Weight operator()(const BaseCDCStateFilter::Object& pair) final;
29 
31  void exposeParameters(ModuleParamList* moduleParamList, const std::string& prefix) override;
32 
33  private:
35  double m_maximalHitDistance = 2;
36  };
38 }
Belle2::RoughCDCStateFilter::exposeParameters
void exposeParameters(ModuleParamList *moduleParamList, const std::string &prefix) override
Expose the parameters of the sub findlets.
Definition: RoughCDCStateFilter.cc:41
Belle2::BaseCDCStateFilter
TrackFindingCDC::Filter< std::pair< const CDCCKFPath *, CDCCKFState * > > BaseCDCStateFilter
Base filter for CKF CDC states.
Definition: BaseCDCStateFilter.h:31
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::RoughCDCStateFilter::m_maximalHitDistance
double m_maximalHitDistance
maximal distance from track to trajectory (in XY)
Definition: RoughCDCStateFilter.h:43
Belle2::RoughCDCStateFilter::operator()
TrackFindingCDC::Weight operator()(const BaseCDCStateFilter::Object &pair) final
return 1 if distance < m_maximalHitDistance, NAN otherwise
Definition: RoughCDCStateFilter.cc:20
Belle2::TrackFindingCDC::Filter::Object
AObject Object
Type of the object to be analysed.
Definition: Filter.dcl.h:43