Belle II Software development
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
13using namespace Belle2;
14using namespace TrackFindingCDC;
15
17
19 : Super("trackfindingcdc_RealisticSegmentPairFilter", 0.02, "trackfindingcdc_RealisticSegmentPairFilterParameters")
20{
21 this->addProcessingSignalListener(&m_feasibleSegmentPairFilter);
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 segment and one stereo segment in adjacent super...
Convenience template to create a mva filter for a set of variables.
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 extracting the variables of the object into the variable set.
Abstract base class for different kinds of events.