Belle II Software development
MVARealisticAxialSegmentPairFilter.cc
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#include <tracking/trackFindingCDC/filters/axialSegmentPair/MVARealisticAxialSegmentPairFilter.h>
9
10#include <tracking/trackFindingCDC/filters/base/MVAFilter.icc.h>
11
12using namespace Belle2;
13using namespace TrackFindingCDC;
14
16 : Super(std::make_unique<VarSet>(),
17 "trackfindingcdc_RealisticAxialSegmentPairFilter",
18 0.49,
19 "trackfindingcdc_RealisticAxialSegmentPairFilterParameters")
20{
21 this->addProcessingSignalListener(&m_feasibleAxialSegmentPairFilter);
22}
23
25{
26 double isFeasibleWeight = m_feasibleAxialSegmentPairFilter(axialSegmentPair);
27 if (std::isnan(isFeasibleWeight)) {
28 return NAN;
29 } else {
30 return Super::operator()(axialSegmentPair);
31 }
32}
Class representing a pair of reconstructed axial segments in adjacent superlayer.
VariadicUnionVarSet< BasicAxialSegmentPairVarSet, FitlessAxialSegmentPairVarSet, FitAxialSegmentPairVarSet > VarSet
Type of the VarSet the filter is working on.
MVARealisticAxialSegmentPairFilter()
Constructor initialising the MVAFilter with standard training name for this filter.
MVAFeasibleAxialSegmentPairFilter m_feasibleAxialSegmentPairFilter
Feasibility filter applied first before invoking the main cut.
MVA< BaseAxialSegmentPairFilter > Super
Type of the base class.
Weight operator()(const CDCAxialSegmentPair &axialSegmentPair) override
Function to object for its signalness.
Abstract base class for different kinds of events.
STL namespace.