ATLAS Offline Software
Functions
BTaggingTruthTaggingTool.cxx File Reference
#include "xAODBTaggingEfficiency/BTaggingTruthTaggingTool.h"
#include "xAODBTaggingEfficiency/BTaggingEfficiencyTool.h"
#include "xAODBTagging/BTagging.h"
#include "xAODBTagging/BTaggingUtilities.h"
#include "CalibrationDataInterface/CalibrationDataInterfaceROOT.h"
#include "CalibrationDataInterface/CalibrationDataContainer.h"
#include "PATInterfaces/SystematicRegistry.h"
#include "PathResolver/PathResolver.h"
#include "PATCore/AcceptData.h"
#include "TFile.h"
#include <algorithm>
#include <numeric>

Go to the source code of this file.

Functions

std::string trim (const std::string &str, const std::string &whitespace=" \t")
 

Function Documentation

◆ trim()

std::string trim ( const std::string &  str,
const std::string &  whitespace = " \t" 
)

Definition at line 1149 of file BTaggingTruthTaggingTool.cxx.

1150  {
1151  const auto strBegin = str.find_first_not_of(whitespace);
1152  if (strBegin == std::string::npos)
1153  return ""; // no content
1154 
1155  const auto strEnd = str.find_last_not_of(whitespace);
1156  const auto strRange = strEnd - strBegin + 1;
1157 
1158  return str.substr(strBegin, strRange);
1159 }
str
Definition: BTagTrackIpAccessor.cxx:11