Belle II Software development
MCFacetRelationFilter.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/filters/facet/MCFacetFilter.h>
13
14#include <tracking/trackFindingCDC/filters/base/MCSymmetricFilter.dcl.h>
15
16namespace Belle2 {
21 namespace TrackingUtilities {
22 class CDCFacet;
23 }
24 namespace TrackFindingCDC {
25
27 class MCFacetRelationFilter : public MCSymmetric<BaseFacetRelationFilter> {
28
29 private:
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 TrackingUtilities::Weight operator()(const TrackingUtilities::CDCFacet& fromFacet,
52 const TrackingUtilities::CDCFacet& toFacet) final;
53
54 public:
56 void setAllowReverse(bool allowReverse) override
57 {
58 Super::setAllowReverse(allowReverse);
59 m_mcFacetFilter.setAllowReverse(allowReverse);
60 }
61
62 private:
65 };
66 }
68}
The Module parameter list class.
Filter for the construction of good facets based on Monte Carlo information.
MCFacetFilter m_mcFacetFilter
Monte Carlo cell filter to reject neighborhoods have false cells.
void initialize() final
Initialize the before event processing.
MCSymmetric< BaseFacetRelationFilter > Super
Type of the super class.
void exposeParameters(ModuleParamList *moduleParamList, const std::string &prefix) final
Expose the parameters to a module.
void setAllowReverse(bool allowReverse) override
Setter for the allow reverse parameter.
MCFacetRelationFilter(bool allowReverse=false)
Constructor also setting the switch if the reversed version of a facet (in comparison to MC truth) sh...
Class representing a triple of neighboring oriented wire with additional trajectory information.
Definition CDCFacet.h:32
Abstract base class for different kinds of events.