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

Options for the Combination MVA method. More...

#include <Combination.h>

Inheritance diagram for CombinationOptions:
Collaboration diagram for CombinationOptions:

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::vector< std::string > m_weightfiles
 Weightfiles of all methods we want to combine.
 

Detailed Description

Options for the Combination MVA method.

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

22  {
23  int version = pt.get<int>("Combination_version");
24  if (version != 1) {
25  B2ERROR("Unknown weightfile version " << std::to_string(version));
26  throw std::runtime_error("Unknown weightfile version " + std::to_string(version));
27  }
28 
29  auto numberOfWeightfiles = pt.get<unsigned int>("Combination_number_of_weightfiles");
30  m_weightfiles.resize(numberOfWeightfiles);
31  for (unsigned int i = 0; i < numberOfWeightfiles; ++i) {
32  m_weightfiles[i] = pt.get<std::string>(std::string("Combination_weightfile") + std::to_string(i));
33  }
34 
35  }
std::vector< std::string > m_weightfiles
Weightfiles of all methods we want to combine.
Definition: Combination.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 37 of file Combination.cc.


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