ATLAS Offline Software
Trigger
TrigT1
Global
GlobalSimulation
src
Utilities
trim.cxx
Go to the documentation of this file.
1
// Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
2
3
4
#include "
trim.h
"
5
6
namespace
GlobalSim
{
7
std::string
trim
(std::string
s
){
8
const
char
*
t
=
" \t\n\r\f\v"
;
9
10
// trim from right
11
auto
l_rtrim = [&
t
](std::string&
str
){
12
str
.erase(
str
.find_last_not_of(
t
) + 1);
13
return
str
;
14
};
15
16
// trim from left
17
auto
l_ltrim = [&
t
] (std::string&
str
){
18
str
.erase(0,
str
.find_first_not_of(
t
));
19
return
str
;
20
};
21
22
auto
rs = l_rtrim(
s
);
23
return
l_ltrim(rs);
24
}
25
}
read_hist_ntuple.t
t
Definition:
read_hist_ntuple.py:5
GlobalSim
AlgTool that to test whether expected the TIP values generated by data supplied by eEmMultTestBench c...
Definition:
CommonSelector.cxx:8
python.CaloAddPedShiftConfig.str
str
Definition:
CaloAddPedShiftConfig.py:42
GlobalSim::trim
std::string trim(std::string s)
Definition:
trim.cxx:7
trim.h
python.SystemOfUnits.s
float s
Definition:
SystemOfUnits.py:147
str
Definition:
BTagTrackIpAccessor.cxx:11
Generated on Sat Nov 22 2025 21:21:48 for ATLAS Offline Software by
1.8.18