Belle II Software  release-05-01-25
MCSegmentRelationFilter.h
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2015 - 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/segmentRelation/BaseSegmentRelationFilter.h>
13 
14 #include <tracking/trackFindingCDC/filters/base/MCSymmetricFilter.dcl.h>
15 
16 namespace Belle2 {
22  namespace TrackFindingCDC {
23 
25  class MCSegmentRelationFilter : public MCSymmetric<BaseSegmentRelationFilter> {
26 
27  private:
29  using Super = MCSymmetric<BaseSegmentRelationFilter >;
30 
31  public:
33  explicit MCSegmentRelationFilter(bool allowReverse = true);
34 
36  void exposeParameters(ModuleParamList* moduleParamList, const std::string& prefix) final;
37 
39  using Super::operator();
40 
41  private:
43  bool m_param_requireRLPure = false;
44 
46  Weight operator()(const CDCSegment2D& fromSegment, const CDCSegment2D& toSegment) final;
47  };
48  }
50 }
Belle2::TrackFindingCDC::MCSegmentRelationFilter::MCSegmentRelationFilter
MCSegmentRelationFilter(bool allowReverse=true)
Constructor.
Definition: MCSegmentRelationFilter.cc:29
Belle2::TrackFindingCDC::MCSegmentRelationFilter::exposeParameters
void exposeParameters(ModuleParamList *moduleParamList, const std::string &prefix) final
Expose the set of parameters of the filter to the module parameter list.
Definition: MCSegmentRelationFilter.cc:34
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::TrackFindingCDC::MCSegmentRelationFilter::operator()
Weight operator()(const CDCSegment2D &fromSegment, const CDCSegment2D &toSegment) final
Checks if a segment relation is a good combination.
Definition: MCSegmentRelationFilter.cc:45
Belle2::TrackFindingCDC::MCSegmentRelationFilter::Super
MCSymmetric< BaseSegmentRelationFilter > Super
Type of the super class.
Definition: MCSegmentRelationFilter.h:37
Belle2::TrackFindingCDC::CDCSegment2D
A reconstructed sequence of two dimensional hits in one super layer.
Definition: CDCSegment2D.h:40
Belle2::TrackFindingCDC::MCSegmentRelationFilter::m_param_requireRLPure
bool m_param_requireRLPure
Parameter : Switch to require the segment combination contain mostly correct rl information.
Definition: MCSegmentRelationFilter.h:51
Belle2::ModuleParamList
The Module parameter list class.
Definition: ModuleParamList.h:46