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

Options for the Reweighter MVA method. More...

#include <Reweighter.h>

Inheritance diagram for ReweighterOptions:
Collaboration diagram for ReweighterOptions:

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

std::string m_weightfile
 Weightfile of the reweighting expert.
 
std::string m_variable
 Variable which decides if the reweighter is applied or not.
 

Detailed Description

Options for the Reweighter MVA method.

Definition at line 28 of file Reweighter.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 Reweighter.cc.

21  {
22  int version = pt.get<int>("Reweighter_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 
28  m_weightfile = pt.get<std::string>(std::string("Reweighter_weightfile"));
29  m_variable = pt.get<std::string>(std::string("Reweighter_variable"));
30 
31  }
std::string m_weightfile
Weightfile of the reweighting expert.
Definition: Reweighter.h:53
std::string m_variable
Variable which decides if the reweighter is applied or not.
Definition: Reweighter.h:54

◆ 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 33 of file Reweighter.cc.


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