Belle II Software  release-08-01-10
PDFOptions Class Reference

Options for the PDF MVA method. More...

#include <PDF.h>

Inheritance diagram for PDFOptions:
Collaboration diagram for PDFOptions:

Public Member Functions

virtual void load (const boost::property_tree::ptree &pt) override
 Load mechanism (used by Weightfile) to load Options from a xml tree. More...
 
virtual void save (boost::property_tree::ptree &pt) const override
 Save mechanism (used by Weightfile) 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

std::string m_binning = "frequency"
 which type of binning is performed e.g. More...
 
std::string m_mode = "probability"
 mode which defines the final output e.g. More...
 
unsigned int m_nBins = 100
 number of bins used to bin the data
 

Detailed Description

Options for the PDF MVA method.

Definition at line 29 of file PDF.h.

Member Function Documentation

◆ load()

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

Load mechanism (used by Weightfile) to load Options from a xml tree.

Parameters
ptxml tree

Implements Options.

Definition at line 19 of file PDF.cc.

20  {
21  int version = pt.get<int>("PDF_version");
22  if (version != 1) {
23  B2ERROR("Unknown weightfile version " << std::to_string(version));
24  throw std::runtime_error("Unknown weightfile version " + std::to_string(version));
25  }
26  m_binning = pt.get<std::string>("PDF_binning");
27  m_mode = pt.get<std::string>("PDF_mode");
28  m_nBins = pt.get<unsigned int>("PDF_nBins");
29 
30  }
unsigned int m_nBins
number of bins used to bin the data
Definition: PDF.h:56
std::string m_binning
which type of binning is performed e.g.
Definition: PDF.h:54
std::string m_mode
mode which defines the final output e.g.
Definition: PDF.h:55

◆ save()

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

Save mechanism (used by Weightfile) to store Options in a xml tree.

Parameters
ptxml tree

Implements Options.

Definition at line 32 of file PDF.cc.

Member Data Documentation

◆ m_binning

std::string m_binning = "frequency"

which type of binning is performed e.g.

frequency or equidistant

Definition at line 54 of file PDF.h.

◆ m_mode

std::string m_mode = "probability"

mode which defines the final output e.g.

probability

Definition at line 55 of file PDF.h.


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