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 Weight operator()(const CDCSegmentPair& fromSegmentPair, const CDCSegmentPair& toSegmentPair) final;
45
46 public:
48 void setAllowReverse(bool allowReverse) final {
49 Super::setAllowReverse(allowReverse);
50 m_mcSegmentPairFilter.setAllowReverse(allowReverse);
51 }
52
53 private:
56 };
57 }
59}
The Module parameter list class.
Class representing a pair of one reconstructed axial segment and one stereo segment in adjacent super...
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.