Belle II Software  release-08-01-10
MVARealisticSegmentPairFilter.cc
1 
2 /**************************************************************************
3  * basf2 (Belle II Analysis Software Framework) *
4  * Author: The Belle II Collaboration *
5  * *
6  * See git log for contributors and copyright holders. *
7  * This file is licensed under LGPL-3.0, see LICENSE.md. *
8  **************************************************************************/
9 #include <tracking/trackFindingCDC/filters/segmentPair/MVARealisticSegmentPairFilter.h>
10 
11 #include <tracking/trackFindingCDC/filters/base/MVAFilter.icc.h>
12 
13 using namespace Belle2;
14 using namespace TrackFindingCDC;
15 
17 
19  : Super("trackfindingcdc_RealisticSegmentPairFilter", 0.02, "trackfindingcdc_RealisticSegmentPairFilterParameters")
20 {
22 }
23 
25 {
26  double isFeasibleWeight = m_feasibleSegmentPairFilter(segmentPair);
27  if (std::isnan(isFeasibleWeight)) {
28  return NAN;
29  } else {
30  return Super::operator()(segmentPair);
31  }
32 }
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:97
Abstract base class for different kinds of events.