Belle II Software  release-05-01-25
MVAFacetRelationFilter.cc
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2015 - Belle II Collaboration *
4  * *
5  * Author: The Belle II Collaboration *
6  * Contributors: Nils Braun, Oliver Frost *
7  * *
8  * This software is provided "as is" without any warranty. *
9  **************************************************************************/
10 #include <tracking/trackFindingCDC/filters/facetRelation/MVAFacetRelationFilter.h>
11 
12 
13 #include <tracking/trackFindingCDC/filters/base/MVAFilter.icc.h>
14 
15 using namespace Belle2;
16 using namespace TrackFindingCDC;
17 
19 
21  : Super(std::make_unique<MVAFacetRelationVarSet>(), "FacetRelationFilter", -2.19)
22 {
23 }
24 
26 {
27  return -2 - 0.2 * (1 - Super::predict(facetRelation));
28 }
Belle2::TrackFindingCDC::BasicFacetRelationVarSet
Class to compute floating point variables from a facet relation which can be recorded as a flat TNtup...
Definition: BasicFacetRelationVarSet.h:58
Belle2::TrackFindingCDC::Relation
Type for two related objects.
Definition: CDCSegment2D.h:37
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::TrackFindingCDC::MVA< BaseFacetRelationFilter >
Belle2::TrackFindingCDC::MVA< BaseFacetRelationFilter >::predict
virtual double predict(const Object &obj)
Evaluate the mva method.
Definition: MVAFilter.icc.h:98
Belle2::TrackFindingCDC::MVAFacetRelationFilter::MVAFacetRelationFilter
MVAFacetRelationFilter()
Constructor initialising the MVAFilter with standard training name for this filter.
Definition: MVAFacetRelationFilter.cc:20
Belle2::TrackFindingCDC::MVAFacetRelationFilter::predict
Weight predict(const Relation< const CDCFacet > &facetRelation) final
Main filter method returning the weight of the facet relation.
Definition: MVAFacetRelationFilter.cc:25