src
SimG4CMS
Forward
src
ForwardName.cc
Go to the documentation of this file.
1
#include "
SimG4CMS/Forward/interface/ForwardName.h
"
2
3
std::string
ForwardName::getName
(
const
G4String& namx) {
4
std::string
name
=
static_cast<
std::string
>
(namx);
5
if
(
name
.find(
':'
) == std::string::npos) {
6
return
name
;
7
}
else
{
8
std::size_t
first
=
name
.find(
':'
) + 1;
9
std::size_t
last
=
name
.rfind(
'_'
);
10
std::size_t length = (
last
!= std::string::npos) ? (
last
-
first
) : (
name
.size() -
first
);
11
return
name
.substr(
first
, length);
12
}
13
}
ForwardName.h
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
dqmdumpme.last
last
Definition:
dqmdumpme.py:56
dqmdumpme.first
first
Definition:
dqmdumpme.py:55
ForwardName::getName
std::string getName(const G4String &)
Definition:
ForwardName.cc:3
Skims_PA_cff.name
name
Definition:
Skims_PA_cff.py:17
Generated for CMSSW Reference Manual by
1.8.14