Belle II Software development
MCSegmentPairRelationFilter.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/segmentPairRelation/BaseSegmentPairRelationFilter.h>
11#include <tracking/trackFindingCDC/filters/segmentPair/MCSegmentPairFilter.h>
12
13#include <tracking/trackFindingCDC/filters/base/MCSymmetricFilter.dcl.h>
14
15namespace Belle2 {
20 namespace TrackFindingCDC {
21
23 class MCSegmentPairRelationFilter : public MCSymmetric<BaseSegmentPairRelationFilter> {
24
25 private:
28
29 public:
31 explicit MCSegmentPairRelationFilter(bool allowReverse = true);
32
34 void exposeParameters(ModuleParamList* moduleParamList, const std::string& prefix) final;
35
37 void initialize() final;
38
39 public:
44 TrackingUtilities::Weight operator()(const TrackingUtilities::CDCSegmentPair& fromSegmentPair,
45 const TrackingUtilities::CDCSegmentPair& toSegmentPair) final;
46
47 public:
49 void setAllowReverse(bool allowReverse) final
50 {
51 Super::setAllowReverse(allowReverse);
52 m_mcSegmentPairFilter.setAllowReverse(allowReverse);
53 }
54
55 private:
58 };
59 }
61}
The Module parameter list class.
Filter for the construction of axial to stereo segment pairs based on MC information.
void setAllowReverse(bool allowReverse) final
Setter for the allow reverse parameter.
MCSymmetric< BaseSegmentPairRelationFilter > Super
Type of the super class.
void initialize() final
Initialize the before event processing.
void exposeParameters(ModuleParamList *moduleParamList, const std::string &prefix) final
Expose the parameters to a module.
MCSegmentPairRelationFilter(bool allowReverse=true)
Constructor setting to default reversal symmetry.
MCSegmentPairFilter m_mcSegmentPairFilter
Instance of the Monte Carlo axial stereo segment filter for rejection of false cells.
Abstract base class for different kinds of events.