Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
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
}
first
auto first
Definition:
CAHitNtupletGeneratorKernelsImpl.h:125
ForwardName.h
mergeVDriftHistosByStation.name
string name
Definition:
mergeVDriftHistosByStation.py:78
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
ForwardName::getName
std::string getName(const G4String &)
Definition:
ForwardName.cc:3
dqmdumpme.last
tuple last
Definition:
dqmdumpme.py:56
Generated for CMSSW Reference Manual by
1.8.5