Belle II Software  release-05-01-25
MVAExpert.h
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2016 - Belle II Collaboration *
4  * *
5  * Author: The Belle II Collaboration *
6  * Contributors: Oliver Frost, *
7  * *
8  * This software is provided "as is" without any warranty. *
9  **************************************************************************/
10 #pragma once
11 
12 #include <tracking/trackFindingCDC/utilities/Named.h>
13 
14 #include <RtypesCore.h>
15 
16 #include <vector>
17 #include <memory>
18 #include <string>
19 
20 namespace Belle2 {
25  namespace TrackFindingCDC {
26 
28  class MVAExpert {
29 
30  public:
37  MVAExpert(const std::string& identifier, std::vector<Named<Float_t*>> namedVariables);
38 
40  ~MVAExpert();
41 
43  void initialize();
44 
46  void beginRun();
47 
49  double predict();
50 
51  private:
53  class Impl;
54 
56  std::unique_ptr<Impl> m_impl;
57  };
58  }
60 }
Belle2::TrackFindingCDC::MVAExpert::~MVAExpert
~MVAExpert()
Destructor must be defined in cpp because of PImpl pointer.
Belle2::TrackFindingCDC::MVAExpert::MVAExpert
MVAExpert(const std::string &identifier, std::vector< Named< Float_t * >> namedVariables)
Construct the Expert with the specified weight folder and the name of the training that was used in t...
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::TrackFindingCDC::MVAExpert::predict
double predict()
Evaluate the MVA method and return the MVAOutput.
Belle2::TrackFindingCDC::MVAExpert::m_impl
std::unique_ptr< Impl > m_impl
Pointer to implementation hiding the details.
Definition: MVAExpert.h:61
Belle2::TrackFindingCDC::MVAExpert::beginRun
void beginRun()
Update the mva method to the new run.
Belle2::TrackFindingCDC::MVAExpert::initialize
void initialize()
Initialise the mva method.