Belle II Software  release-05-01-25
Utility.h
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2016 - Belle II Collaboration *
4  * *
5  * Author: The Belle II Collaboration *
6  * Contributors: Thomas Keck *
7  * *
8  * This software is provided "as is" without any warranty. *
9  **************************************************************************/
10 
11 #pragma once
12 
13 #include <mva/interface/Interface.h>
14 #include <mva/interface/Options.h>
15 #include <mva/interface/Weightfile.h>
16 
17 namespace Belle2 {
22  namespace MVA {
23 
29  void loadRootDictionary();
30 
39  void download(const std::string& identifier, const std::string& filename, int experiment = 0, int run = 0, int event = 0);
40 
50  void upload(const std::string& filename, const std::string& identifier, int exp1 = 0, int run1 = 0, int exp2 = -1, int run2 = -1);
51 
61  void upload_array(std::vector<std::string>& filenames, const std::string& identifier, int exp1 = 0, int run1 = 0, int exp2 = -1,
62  int run2 = -1);
63 
71  bool available(const std::string& filename, int experiment = 0, int run = 0, int event = 0);
72 
78  void extract(const std::string& filename, const std::string& directory);
79 
84  std::string info(const std::string& filename);
85 
93  void save_custom_weightfile(const GeneralOptions& general_options, const SpecificOptions& specific_options,
94  const std::string& custom_weightfile, const std::string& output_identifier = "");
95 
102  void teacher(const GeneralOptions& general_options, const SpecificOptions& specific_options,
103  const MetaOptions& meta_options = MetaOptions());
104 
117  void expert(const std::vector<std::string>& filenames, const std::vector<std::string>& datafile, const std::string& treename,
118  const std::string& outputfile, int experiment = 0, int run = 0, int event = 0, bool copy_target = true);
119 
126  std::unique_ptr<Belle2::MVA::Expert> teacher_dataset(GeneralOptions general_options, const SpecificOptions& specific_options,
127  Dataset& data);
128 
135  std::unique_ptr<Belle2::MVA::Expert> teacher_splot(const GeneralOptions& general_options, const SpecificOptions& specific_options,
136  const MetaOptions& meta_options);
137 
144  std::unique_ptr<Belle2::MVA::Expert> teacher_sideband_substraction(const GeneralOptions& general_options,
145  const SpecificOptions& specific_options,
146  const MetaOptions& meta_options);
147 
154  std::unique_ptr<Belle2::MVA::Expert> teacher_reweighting(const GeneralOptions& general_options,
155  const SpecificOptions& specific_options,
156  const MetaOptions& meta_options);
157 
158 
159  }
161 }
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19