Belle II Software development
MVARealisticTrackRelationFilter.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/trackRelation/MVARealisticTrackRelationFilter.h>
9
10#include <tracking/trackFindingCDC/filters/base/MVAFilter.icc.h>
11
12using namespace Belle2;
13using namespace TrackFindingCDC;
14
16
18 : Super(std::make_unique<VarSet>(), "trackfindingcdc_RealisticTrackRelationFilter", 0.80,
19 "trackfindingcdc_RealisticTrackRelationFilterParameters")
20{
21 this->addProcessingSignalListener(&m_feasibleTrackRelationFilter);
22}
23
25{
26 double isFeasibleWeight = m_feasibleTrackRelationFilter(trackRelation);
27 if (std::isnan(isFeasibleWeight)) {
28 return NAN;
29 } else {
30 return Super::operator()(trackRelation);
31 }
32}
MVAFeasibleTrackRelationFilter m_feasibleTrackRelationFilter
Feasibility filter applied first before invoking the main cut.
MVARealisticTrackRelationFilter()
Constructor initialising the MVAFilter with standard training name for this filter.
Weight operator()(const Relation< const CDCTrack > &trackRelation) final
Function to object for its signalness.
Filter based on a mva method.
Definition: MVAFilter.dcl.h:36
Weight operator()(const Object &obj) override
Function to object for its signalness.
Type for two related objects.
Definition: Relation.h:21
Class that accommodates many variable sets and presents them as on set of variables.
Abstract base class for different kinds of events.
STL namespace.