Belle II Software  release-08-01-10
MVAExpert.h
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 #pragma once
9 
10 #include <tracking/trackFindingCDC/utilities/Named.h>
11 
12 #include <RtypesCore.h>
13 
14 #include <vector>
15 #include <memory>
16 #include <string>
17 
18 namespace Belle2 {
23  namespace TrackFindingCDC {
24 
26  class MVAExpert {
27 
28  public:
35  MVAExpert(const std::string& identifier, std::vector<Named<Float_t*>> namedVariables);
36 
39 
41  void initialize();
42 
44  void beginRun();
45 
47  double predict();
48 
49  private:
51  class Impl;
52 
54  std::unique_ptr<Impl> m_impl;
55  };
56  }
58 }
Implementation of the class to interact with the MVA package.
Definition: MVAExpert.cc:31
Class to interact with the MVA package.
Definition: MVAExpert.h:26
void initialize()
Initialise the mva method.
Definition: MVAExpert.cc:178
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...
void beginRun()
Update the mva method to the new run.
Definition: MVAExpert.cc:183
std::unique_ptr< Impl > m_impl
Pointer to implementation hiding the details.
Definition: MVAExpert.h:51
~MVAExpert()
Destructor must be defined in cpp because of PImpl pointer.
double predict()
Evaluate the MVA method and return the MVAOutput.
Definition: MVAExpert.cc:188
Abstract base class for different kinds of events.