Belle II Software  light-2205-abys
utility.py
1 
8 
9 '''
10 Wrappers around functions defined as static methods of the Belle2::MVA::Utility class.
11 '''
12 
13 
14 def available(filename, experiment=0, run=0, event=0):
15  '''
16  Wrapper around bool Belle2::MVA::Utility::available(
17  const std::string& filename, int experiment = 0, int run = 0, int event = 0)
18  '''
19  import ROOT # noqa
20  return ROOT.Belle2.MVA.Utility.available(filename, experiment, run, event)
21 
22 
23 def download(identifier, filename, experiment=0, run=0, event=0):
24  '''
25  Wrapper around Belle2::MVA::Utility::download(
26  const std::string& identifier, const std::string& filename, int experiment = 0, int run = 0, int event = 0)
27  '''
28  import ROOT # noqa
29  ROOT.Belle2.MVA.Utility.download(identifier, filename, experiment, run, event)
30 
31 
32 def expert(*args):
33  '''
34  Wrapper around Belle2::MVA::Utility::expert(
35  const std::vector<std::string>& filenames, const std::vector<std::string>& datafiles,
36  const std::string& treename, const std::string& outputfile, int experiment = 0, int run = 0, int event = 0,
37  bool copy_target = true);
38  '''
39  import ROOT # noqa
40  ROOT.Belle2.MVA.Utility.expert(*args)
41 
42 
43 def extract(filename, directory):
44  '''
45  Wrapper around Belle2::MVA::Utility::extract(const std::string& filename, const std::string& directory)
46  '''
47  import ROOT # noqa
48  ROOT.Belle2.MVA.Utility.extract(filename, directory)
49 
50 
51 def info(filename):
52  '''
53  Wrapper around std::string Belle2::MVA::Utility::info(const std::string& filename)
54  '''
55  import ROOT # noqa
56  return ROOT.Belle2.MVA.Utility.info(filename)
57 
58 
59 def save_custom_weightfile(*args):
60  '''
61  Wrapper around Belle2::MVA::Utility::save_custom_weightfile(
62  const GeneralOptions& general_options, const SpecificOptions& specific_options,
63  const std::string& custom_weightfile, const std::string& output_identifier = "")
64  '''
65  import ROOT # noqa
66  ROOT.Belle2.MVA.Utility.save_custom_weightfile(*args)
67 
68 
69 def teacher(*args):
70  '''
71  Wrapper around Belle2::MVA::Utility::teacher(
72  const GeneralOptions& general_options, const SpecificOptions& specific_options,
73  const MetaOptions& meta_options = MetaOptions())
74  '''
75  import ROOT # noqa
76  ROOT.Belle2.MVA.Utility.teacher(*args)
77 
78 
79 def teacher_dataset(*args):
80  '''
81  Wrapper around std::unique_ptr<Belle2::MVA::Expert> Belle2::MVA::Utility::teacher_dataset(
82  GeneralOptions general_options, const SpecificOptions& specific_options, Dataset& data)
83  '''
84  import ROOT # noqa
85  return ROOT.Belle2.MVA.Utility.teacher_dataset(*args)
86 
87 
88 def teacher_sideband_subtraction(*args):
89  '''
90  Wrapper around std::unique_ptr<Belle2::MVA::Expert> Belle2::MVA::Utility::teacher_sideband_subtraction(
91  GeneralOptions general_options, const SpecificOptions& specific_options, const MetaOptions& meta_options)
92  '''
93  import ROOT # noqa
94  return ROOT.Belle2.MVA.Utility.teacher_sideband_subtraction(*args)
95 
96 
97 def teacher_splot(*args):
98  '''
99  Wrapper around std::unique_ptr<Belle2::MVA::Expert> Belle2::MVA::Utility::teacher_splot(
100  GeneralOptions general_options, const SpecificOptions& specific_options, const MetaOptions& meta_options)
101  '''
102  import ROOT # noqa
103  return ROOT.Belle2.MVA.Utility.teacher_splot(*args)
104 
105 
106 def teacher_reweighting(*args):
107  '''
108  Wrapper around std::unique_ptr<Belle2::MVA::Expert> Belle2::MVA::Utility::teacher_reweighting(
109  GeneralOptions general_options, const SpecificOptions& specific_options, const MetaOptions& meta_options)
110  '''
111  import ROOT # noqa
112  return ROOT.Belle2.MVA.Utility.teacher_reweighting(*args)
113 
114 
115 def upload(filename, identifier, exp1=0, run1=0, exp2=-1, run2=-1):
116  '''
117  Wrapper around Belle2::MVA::Utility::upload(
118  const std::string& filename, const std::string& identifier, int exp1 = 0, int run1 = 0, int exp2 = -1,
119  int run2 = -1)
120  '''
121  import ROOT # noqa
122  ROOT.Belle2.MVA.Utility.upload(filename, identifier, exp1, run1, exp2, run2)
123 
124 
125 def upload_array(*args):
126  '''
127  Wrapper around Belle2::MVA::Utility::upload_array(
128  const std::vector<std::string>& filenames, const std::string& identifier, int exp1 = 0, int run1 = 0,
129  int exp2 = -1, int run2 = -1)
130  '''
131  import ROOT # noqa
132  ROOT.Belle2.MVA.Utility.upload_array(*args)