Belle II Software development
Chi2FacetRelationFilter.h
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#pragma once
9
10#include <tracking/trackFindingCDC/filters/facetRelation/BaseFacetRelationFilter.h>
11
12#include <tracking/trackFindingCDC/topology/ISuperLayer.h>
13
14#include <array>
15#include <vector>
16#include <string>
17
18namespace Belle2 {
23 namespace TrackFindingCDC {
24 class CDCFacet;
25
28
29 private:
32
33 public:
36
38 Chi2FacetRelationFilter(double chi2Cut, double penaltyWidth);
39
40 public:
42 void exposeParameters(ModuleParamList* moduleParamList, const std::string& prefix) override;
43
45 void initialize() final;
46
47 public:
49 Weight operator()(const CDCFacet& fromFacet, const CDCFacet& toFacet) final;
50
51 private: // Parameters
53 std::vector<double> m_param_chi2CutByISuperLayer{130.0}; // first guess was 350;
54
56 double m_param_penaltyFactor = 200.0 / 130.0; // first guess was 800 / 350;
57
58 private: // Cached values
60 std::array<double, ISuperLayerUtil::c_N> m_chi2CutByISuperLayer{};
61
63 std::array<double, ISuperLayerUtil::c_N> m_penaltyWidthByISuperLayer{};
64 };
65 }
67}
The Module parameter list class.
Base class for filtering the neighborhood of facets.
Class representing a triple of neighboring oriented wire with additional trajectory information.
Definition: CDCFacet.h:32
Class filtering the neighborhood of facets based on chi2 from a fit both facets.
std::array< double, ISuperLayerUtil::c_N > m_chi2CutByISuperLayer
Memory for the chi2 cut values distinguished by superlayer.
std::vector< double > m_param_chi2CutByISuperLayer
Parameter : The chi2 cut values distinguished by superlayer.
double m_param_penaltyFactor
Parameter : The chi2 cut values distinguished by superlayer.
void initialize() final
Initialise the parameter caches before the processing starts.
Chi2FacetRelationFilter()
Constructor with the default chi2 cut value and width parameter.
std::array< double, ISuperLayerUtil::c_N > m_penaltyWidthByISuperLayer
Memory for the chi2 cut values distinguished by superlayer.
void exposeParameters(ModuleParamList *moduleParamList, const std::string &prefix) override
Expose the set of parameters of the filter to the module parameter list.
Abstract base class for different kinds of events.
STL namespace.