Belle II Software  release-06-02-00
MVARealisticSegmentPairFilter.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/segmentPair/MVARealisticSegmentPairFilter.h>
9 
10 #include <tracking/trackFindingCDC/filters/base/MVAFilter.icc.h>
11 
12 using namespace Belle2;
13 using namespace TrackFindingCDC;
14 
16 
18  : Super("trackfindingcdc_RealisticSegmentPairFilter", 0.02)
19 {
21 }
22 
24 {
25  double isFeasibleWeight = m_feasibleSegmentPairFilter(segmentPair);
26  if (std::isnan(isFeasibleWeight)) {
27  return NAN;
28  } else {
29  return Super::operator()(segmentPair);
30  }
31 }
Class representing a pair of one reconstructed axial segement and one stereo segment in adjacent supe...
void addProcessingSignalListener(ProcessingSignalListener *psl)
Register a processing signal listener to be notified.
Weight operator()(const CDCSegmentPair &segmentPair) final
Function to object for its signalness.
MVAFeasibleSegmentPairFilter m_feasibleSegmentPairFilter
Feasibility filter applied first before invoking the main cut.
MVARealisticSegmentPairFilter()
Constructor initialising the MVAFilter with standard training name for this filter.
Weight operator()(const Object &obj) override
Function to object for its signalness.
Definition: MVAFilter.icc.h:81
Abstract base class for different kinds of events.