Belle II Software  release-06-01-15
TrivialOptions Class Reference

Options for the Trivial MVA method. More...

#include <Trivial.h>

Inheritance diagram for TrivialOptions:
Collaboration diagram for TrivialOptions:

Public Member Functions

virtual void load (const boost::property_tree::ptree &pt) override
 Load mechanism to load Options from a xml tree. More...
 
virtual void save (boost::property_tree::ptree &pt) const override
 Save mechanism to store Options in a xml tree. More...
 
virtual po::options_description getDescription () override
 Returns a program options description for all available options.
 
virtual std::string getMethod () const override
 Return method name.
 

Public Attributes

double m_output = 0.5
 Output of the trivial method.
 

Detailed Description

Options for the Trivial MVA method.

Used for debugging and testing

Definition at line 28 of file Trivial.h.

Member Function Documentation

◆ load()

void load ( const boost::property_tree::ptree &  pt)
overridevirtual

Load mechanism to load Options from a xml tree.

Parameters
ptxml tree

Implements Options.

Definition at line 20 of file Trivial.cc.

21  {
22  int version = pt.get<int>("Trivial_version");
23  if (version != 1) {
24  B2ERROR("Unknown weightfile version " << std::to_string(version));
25  throw std::runtime_error("Unknown weightfile version " + std::to_string(version));
26  }
27  m_output = pt.get<double>("Trivial_output");
28  }
double m_output
Output of the trivial method.
Definition: Trivial.h:53

◆ save()

void save ( boost::property_tree::ptree &  pt) const
overridevirtual

Save mechanism to store Options in a xml tree.

Parameters
ptxml tree

Implements Options.

Definition at line 30 of file Trivial.cc.


The documentation for this class was generated from the following files: