/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
Geometry/HGCalCommonData/src/HGCalGeomUtils.cc
21 строка
554 B
Sunanda
Add a test suit to investigate why some of the SimHits are declared invalid in Geometry/HGCalCommonData
27 окт 2022, 09:45
27 окт 2022, 09:45
a230323
Код
Авторство
О чём код?
#include "Geometry/HGCalCommonData/interface/HGCalGeomUtils.h" std::vector<std::string> HGCalGeomUtils::splitString(const std::string& fLine) { std::vector<std::string> result; int start = 0; bool empty = true; for (unsigned i = 0; i <= fLine.size(); i++) { if (fLine[i] == ' ' || i == fLine.size()) { if (!empty) { std::string item(fLine, start, i - start); result.emplace_back(item); empty = true; } start = i + 1; } else { if (empty) empty = false; } } return result; }