Main Page
Namespaces
Classes
Package Documentation
GIT Directory
WorkBook
Offline Guide
Release schedule
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
FWCore
Utilities
src
stemFromPath.cc
Go to the documentation of this file.
1
#include "
FWCore/Utilities/interface/stemFromPath.h
"
2
3
namespace
edm {
4
std::string
stemFromPath
(
const
std::string
&
path
) {
5
auto
begin
= path.rfind(
"/"
);
6
if
(
begin
== std::string::npos) {
7
begin
= path.rfind(
":"
);
8
if
(
begin
== std::string::npos) {
9
// shouldn't really happen?
10
begin
= 0;
11
}
else
{
12
begin
+= 1;
13
}
14
}
else
{
15
begin
+= 1;
16
}
17
auto
end
= path.find(
"."
,
begin
);
18
return
path.substr(
begin
,
end
-
begin
);
19
}
20
}
// namespace edm
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:255
cmsHarvester.path
tuple path
else: Piece not in the list, fine.
Definition:
cmsHarvester.py:1591
end
#define end
Definition:
vmac.h:37
edm::stemFromPath
std::string stemFromPath(const std::string &path)
Definition:
stemFromPath.cc:4
begin
#define begin
Definition:
vmac.h:30
stemFromPath.h
Generated for CMSSW Reference Manual by
1.8.5