Belle II Software  release-05-01-25
Utilities.cc
1 #include <calibration/Utilities.h>
2 
3 #include <vector>
4 #include <boost/algorithm/string/split.hpp>
5 #include <boost/algorithm/string/classification.hpp>
6 
7 using namespace std;
8 
9 namespace Belle2 {
14  namespace Calibration {
15  string encodeExpRun(const ExpRun& expRun)
16  {
17  return to_string(expRun.first) + "." + to_string(expRun.second);
18  }
19 
20  ExpRun decodeExpRun(const string& expRunString)
21  {
22  vector<string> strs;
23  boost::split(strs, expRunString, boost::is_any_of("."));
24  return make_pair(stoi(strs[0]), stoi(strs[1]));
25  }
26  }
28 }
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19