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 TrackFindingCDC {
22 class CDCFacet;
23
25 class MCFacetRelationFilter : public MCSymmetric<BaseFacetRelationFilter> {
26
27 private:
30
31 public:
36 explicit MCFacetRelationFilter(bool allowReverse = false);
37
39 void exposeParameters(ModuleParamList* moduleParamList, const std::string& prefix) final;
40
42 void initialize() final;
43
44 public:
49 Weight operator()(const CDCFacet& fromFacet, const CDCFacet& toFacet) final;
50
51 public:
53 void setAllowReverse(bool allowReverse) override
54 {
55 Super::setAllowReverse(allowReverse);
56 m_mcFacetFilter.setAllowReverse(allowReverse);
57 }
58
59 private:
62 };
63 }
65}
The Module parameter list class.
Class representing a triple of neighboring oriented wire with additional trajectory information.
Definition CDCFacet.h:32
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...
Abstract base class for different kinds of events.