Belle II Software  release-08-01-10
MVAFacetRelationFilter.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/facetRelation/MVAFacetRelationFilter.h>
9 
10 
11 #include <tracking/trackFindingCDC/filters/base/MVAFilter.icc.h>
12 
13 using namespace Belle2;
14 using namespace TrackFindingCDC;
15 
17 
19  : Super(std::make_unique<MVAFacetRelationVarSet>(), "FacetRelationFilter", -2.19)
20 {
21 }
22 
24 {
25  return -2 - 0.2 * (1 - Super::predict(facetRelation));
26 }
Class to compute floating point variables from a facet relation which can be recorded as a flat TNtup...
MVAFacetRelationFilter()
Constructor initialising the MVAFilter with standard training name for this filter.
Weight predict(const Relation< const CDCFacet > &facetRelation) final
Main filter method returning the weight of the facet relation.
virtual double predict(const Object &obj)
Evaluate the mva method.
AFilter Super
Type of the base class.
Type for two related objects.
Definition: Relation.h:21
Abstract base class for different kinds of events.