ATLAS Offline Software
Loading...
Searching...
No Matches
CalibrationDataInternals.cxx
Go to the documentation of this file.
1#include <boost/algorithm/string.hpp>
2
4
5namespace Analysis {
7
8 // local utility function: split string into a vector of substrings separated by a specified separator
9 std::vector<std::string> split(const std::string& str, const char token) {
10 std::vector<std::string> result;
11 boost::split(result, str, [&token] (char c) { return c == token ;});
12 for (std::string& element : result) {
13 boost::trim(element);
14 }
15 return result;
16 }
17
18 }
19}
std::vector< std::string > split(const std::string &str, const char token=';')
local utility function: split string into a vector of substrings separated by a specified separator,...
The namespace of all packages in PhysicsAnalysis/JetTagging.