Belle II Software  release-05-01-25
Chi2FacetRelationFilter.h
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2016 - Belle II Collaboration *
4  * *
5  * Author: The Belle II Collaboration *
6  * Contributors: Oliver Frost *
7  * *
8  * This software is provided "as is" without any warranty. *
9  **************************************************************************/
10 #pragma once
11 
12 #include <tracking/trackFindingCDC/filters/facetRelation/BaseFacetRelationFilter.h>
13 
14 #include <tracking/trackFindingCDC/topology/ISuperLayer.h>
15 
16 #include <array>
17 #include <vector>
18 #include <string>
19 
20 namespace Belle2 {
25  namespace TrackFindingCDC {
26  class CDCFacet;
27 
29  class Chi2FacetRelationFilter : public BaseFacetRelationFilter {
30 
31  private:
34 
35  public:
38 
40  Chi2FacetRelationFilter(double chi2Cut, double penaltyWidth);
41 
42  public:
44  void exposeParameters(ModuleParamList* moduleParamList, const std::string& prefix) override;
45 
47  void initialize() final;
48 
49  public:
51  Weight operator()(const CDCFacet& fromFacet, const CDCFacet& toFacet) final;
52 
53  private: // Parameters
55  std::vector<double> m_param_chi2CutByISuperLayer{130.0}; // first guess was 350;
56 
58  double m_param_penaltyFactor = 200.0 / 130.0; // first guess was 800 / 350;
59 
60  private: // Cached values
62  std::array<double, ISuperLayerUtil::c_N> m_chi2CutByISuperLayer{};
63 
65  std::array<double, ISuperLayerUtil::c_N> m_penaltyWidthByISuperLayer{};
66  };
67  }
69 }
Belle2::TrackFindingCDC::Chi2FacetRelationFilter::Chi2FacetRelationFilter
Chi2FacetRelationFilter()
Constructor with the default chi2 cut value and width parameter.
Definition: Chi2FacetRelationFilter.cc:26
Belle2::TrackFindingCDC::BaseFacetRelationFilter::BaseFacetRelationFilter
BaseFacetRelationFilter()
Default constructor.
Belle2::TrackFindingCDC::Chi2FacetRelationFilter::Super
BaseFacetRelationFilter Super
Type of the super class.
Definition: Chi2FacetRelationFilter.h:41
Belle2::TrackFindingCDC::Chi2FacetRelationFilter::m_param_penaltyFactor
double m_param_penaltyFactor
Parameter : The chi2 cut values distinguished by superlayer.
Definition: Chi2FacetRelationFilter.h:66
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::TrackFindingCDC::Chi2FacetRelationFilter::initialize
void initialize() final
Initialise the parameter caches before the processing starts.
Definition: Chi2FacetRelationFilter.cc:54
Belle2::TrackFindingCDC::CDCFacet
Class representing a triple of neighboring oriented wire with additional trajectory information.
Definition: CDCFacet.h:42
Belle2::TrackFindingCDC::Chi2FacetRelationFilter::m_param_chi2CutByISuperLayer
std::vector< double > m_param_chi2CutByISuperLayer
Parameter : The chi2 cut values distinguished by superlayer.
Definition: Chi2FacetRelationFilter.h:63
Belle2::TrackFindingCDC::Chi2FacetRelationFilter::m_chi2CutByISuperLayer
std::array< double, ISuperLayerUtil::c_N > m_chi2CutByISuperLayer
Memory for the chi2 cut values distinguished by superlayer.
Definition: Chi2FacetRelationFilter.h:70
Belle2::TrackFindingCDC::Chi2FacetRelationFilter::m_penaltyWidthByISuperLayer
std::array< double, ISuperLayerUtil::c_N > m_penaltyWidthByISuperLayer
Memory for the chi2 cut values distinguished by superlayer.
Definition: Chi2FacetRelationFilter.h:73
Belle2::ModuleParamList
The Module parameter list class.
Definition: ModuleParamList.h:46
Belle2::TrackFindingCDC::Chi2FacetRelationFilter::exposeParameters
void exposeParameters(ModuleParamList *moduleParamList, const std::string &prefix) override
Expose the set of parameters of the filter to the module parameter list.
Definition: Chi2FacetRelationFilter.cc:38