Belle II Software  release-05-01-25
MCFacetRelationFilter.h
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2012 - 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/filters/facet/MCFacetFilter.h>
15 
16 #include <tracking/trackFindingCDC/filters/base/MCSymmetricFilter.dcl.h>
17 
18 namespace Belle2 {
23  namespace TrackFindingCDC {
24  class CDCFacet;
25 
27  class MCFacetRelationFilter : public MCSymmetric<BaseFacetRelationFilter> {
28 
29  private:
31  using Super = MCSymmetric<BaseFacetRelationFilter>;
32 
33  public:
38  explicit MCFacetRelationFilter(bool allowReverse = false);
39 
41  void exposeParameters(ModuleParamList* moduleParamList, const std::string& prefix) final;
42 
44  void initialize() final;
45 
46  public:
51  Weight operator()(const CDCFacet& fromFacet, const CDCFacet& toFacet) final;
52 
53  public:
55  void setAllowReverse(bool allowReverse) override
56  {
57  Super::setAllowReverse(allowReverse);
58  m_mcFacetFilter.setAllowReverse(allowReverse);
59  }
60 
61  private:
64  };
65  }
67 }
Belle2::TrackFindingCDC::MCFacetRelationFilter::initialize
void initialize() final
Initialize the before event processing.
Definition: MCFacetRelationFilter.cc:35
Belle2::TrackFindingCDC::MCFacetRelationFilter::m_mcFacetFilter
MCFacetFilter m_mcFacetFilter
Monte Carlo cell filter to reject neighborhoods have false cells.
Definition: MCFacetRelationFilter.h:71
Belle2::TrackFindingCDC::MCFacetRelationFilter::Super
MCSymmetric< BaseFacetRelationFilter > Super
Type of the super class.
Definition: MCFacetRelationFilter.h:39
Belle2::TrackFindingCDC::MCFacetRelationFilter::MCFacetRelationFilter
MCFacetRelationFilter(bool allowReverse=false)
Constructor also setting the switch if the reversed version of a facet (in comparision to MC truth) s...
Definition: MCFacetRelationFilter.cc:22
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::TrackFindingCDC::MCFacetRelationFilter::exposeParameters
void exposeParameters(ModuleParamList *moduleParamList, const std::string &prefix) final
Expose the parameters to a module.
Definition: MCFacetRelationFilter.cc:29
Belle2::TrackFindingCDC::CDCFacet
Class representing a triple of neighboring oriented wire with additional trajectory information.
Definition: CDCFacet.h:42
Belle2::TrackFindingCDC::MCFacetRelationFilter::setAllowReverse
void setAllowReverse(bool allowReverse) override
Setter for the allow reverse parameter.
Definition: MCFacetRelationFilter.h:63
Belle2::ModuleParamList
The Module parameter list class.
Definition: ModuleParamList.h:46
Belle2::TrackFindingCDC::MCFacetFilter
Filter for the constuction of good facets based on monte carlo information.
Definition: MCFacetFilter.h:34
Belle2::TrackFindingCDC::MCSymmetric< BaseFacetRelationFilter >::setAllowReverse
virtual void setAllowReverse(bool allowReverse)
Setter for the allow reverse parameter.
Definition: MCSymmetricFilter.icc.h:79