Geometry
HGCalCommonData
src
HGCalGeomUtils.cc
Go to the documentation of this file.
1
#include "
Geometry/HGCalCommonData/interface/HGCalGeomUtils.h
"
2
3
std::vector<std::string>
HGCalGeomUtils::splitString
(
const
std::string
& fLine) {
4
std::vector<std::string>
result
;
5
int
start
= 0;
6
bool
empty
=
true
;
7
for
(
unsigned
i
= 0;
i
<= fLine.size();
i
++) {
8
if
(fLine[
i
] ==
' '
||
i
== fLine.size()) {
9
if
(!
empty
) {
10
std::string
item
(fLine,
start
,
i
-
start
);
11
result
.emplace_back(
item
);
12
empty
=
true
;
13
}
14
start
=
i
+ 1;
15
}
else
{
16
if
(
empty
)
17
empty
=
false
;
18
}
19
}
20
return
result
;
21
}
start
Definition:
start.py:1
relativeConstraints.empty
bool empty
Definition:
relativeConstraints.py:46
mps_fire.i
i
Definition:
mps_fire.py:429
mps_fire.result
result
Definition:
mps_fire.py:311
B2GTnPMonitor_cfi.item
item
Definition:
B2GTnPMonitor_cfi.py:148
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
HGCalGeomUtils::splitString
std::vector< std::string > splitString(const std::string &)
Definition:
HGCalGeomUtils.cc:3
HGCalGeomUtils.h
Generated for CMSSW Reference Manual by
1.8.14