Belle II Software development
MCSegmentTripleRelationFilter.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/segmentTripleRelation/BaseSegmentTripleRelationFilter.h>
11#include <tracking/trackFindingCDC/filters/segmentTriple/MCSegmentTripleFilter.h>
12#include <tracking/trackFindingCDC/filters/base/MCSymmetricFilter.dcl.h>
13
14namespace Belle2 {
19 namespace TrackingUtilities {
20 class CDCSegmentTriple;
21 }
22 namespace TrackFindingCDC {
23
25 class MCSegmentTripleRelationFilter : public MCSymmetric<BaseSegmentTripleRelationFilter> {
26
27 private:
30
31 public:
33 explicit MCSegmentTripleRelationFilter(bool allowReverse = true);
34
36 void exposeParameters(ModuleParamList* moduleParamList, const std::string& prefix) final;
37
39 void initialize() final;
40
41 public:
46 TrackingUtilities::Weight operator()(const TrackingUtilities::CDCSegmentTriple& fromTriple,
47 const TrackingUtilities::CDCSegmentTriple& toTriple) final;
48
49 public:
51 void setAllowReverse(bool allowReverse) override
52 {
53 Super::setAllowReverse(allowReverse);
54 m_mcSegmentTripleFilter.setAllowReverse(allowReverse);
55 }
56
57 private:
60 };
61 }
63}
The Module parameter list class.
Filter for the construction of segment triples based on Monte Carlo information.
MCSegmentTripleFilter m_mcSegmentTripleFilter
Instance of the Monte Carlo segment triple filter for rejection of false cells.
void initialize() final
Initialize the before event processing.
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.
MCSymmetric< BaseSegmentTripleRelationFilter > Super
Type of the super class.
Class representing a triple of reconstructed segments in adjacent superlayer.
Abstract base class for different kinds of events.