test
Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
L1Trigger
TrackTrigger
interface
classNameFinder.h
Go to the documentation of this file.
1
#ifndef classNameFinder_h
2
#define classNameFinder_h
3
4
#include <string>
5
#include <typeinfo>
6
#include <cxxabi.h>
7
8
template
<
class
T >
9
std::string
classNameFinder
(
std::string
fName
)
10
{
11
int
status2 = 0;
12
char
*dm2 = abi::__cxa_demangle(
typeid
(
T
).
name
(), 0, 0, &status2 );
13
std::string
s2
=
"failed demangle"
;
14
if
( status2 == 0 )
15
{
16
s2 =
std::string
(dm2);
17
}
18
return
( fName+
std::string
(
"< "
) + s2 +
std::string
(
" >"
) );
19
}
20
21
template
<
class
T >
22
std::string
templateNameFinder
()
23
{
24
int
status2 = 0;
25
char
*dm2 = abi::__cxa_demangle(
typeid
(
T
).
name
(), 0, 0, &status2 );
26
std::string
s2
=
"failed demangle"
;
27
if
( status2 == 0 )
28
{
29
s2 =
std::string
(dm2);
30
}
31
return
s2
;
32
}
33
34
#endif
35
templateNameFinder
std::string templateNameFinder()
Definition:
classNameFinder.h:22
mergeVDriftHistosByStation.name
string name
Definition:
mergeVDriftHistosByStation.py:77
classNameFinder
std::string classNameFinder(std::string fName)
Definition:
classNameFinder.h:9
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:255
indexGen.s2
tuple s2
Definition:
indexGen.py:106
MainPageGenerator.fName
tuple fName
Definition:
MainPageGenerator.py:301
T
long double T
Definition:
Basic3DVectorLD.h:57
Generated for CMSSW Reference Manual by
1.8.5