ATLAS Offline Software
CalibrationDataInternals.cxx
Go to the documentation of this file.
1 #include <boost/algorithm/string.hpp>
2 
4 
5 namespace Analysis {
6  namespace CalibrationDataInterface {
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 }
get_generator_info.result
result
Definition: get_generator_info.py:21
Analysis::CalibrationDataInterface::split
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,...
Definition: CalibrationDataInternals.cxx:9
Analysis
The namespace of all packages in PhysicsAnalysis/JetTagging.
Definition: BTaggingCnvAlg.h:20
GRLStrUtil::trim
void trim(std::string &input)
Definition: StrUtil.cxx:12
CalibrationDataInternals.h
str
Definition: BTagTrackIpAccessor.cxx:11
python.compressB64.c
def c
Definition: compressB64.py:93
Trk::split
@ split
Definition: LayerMaterialProperties.h:38