Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
Geometry
MTDNumberingBuilder
interface
CmsMTDStringToEnum.h
Go to the documentation of this file.
1
#ifndef Geometry_MTDNumberingBuilder_CmsMTDStringToEnum_H
2
#define Geometry_MTDNumberingBuilder_CmsMTDStringToEnum_H
3
4
#include "
Geometry/MTDNumberingBuilder/interface/GeometricTimingDet.h
"
5
#include <string>
6
#include <map>
10
class
CmsMTDStringToEnum
{
11
public
:
12
static
constexpr
size_t
kModStrLen
= 7;
13
14
using
MapEnumType
= std::map<std::string, GeometricTimingDet::GeometricTimingEnumType>;
15
16
GeometricTimingDet::GeometricTimingEnumType
type
(
std::string
const
&)
const
;
17
18
private
:
19
static
MapEnumType
const
&
map
() {
return
m_impl
.
map_
; }
20
21
// a quick fix
22
struct
Impl
{
23
Impl
();
24
MapEnumType
map_
;
25
};
26
27
static
const
Impl
m_impl
;
28
};
29
#endif
CmsMTDStringToEnum::type
GeometricTimingDet::GeometricTimingEnumType type(std::string const &) const
Definition:
CmsMTDStringToEnum.cc:18
CmsMTDStringToEnum::m_impl
static const Impl m_impl
Definition:
CmsMTDStringToEnum.h:27
CmsMTDStringToEnum::Impl
Definition:
CmsMTDStringToEnum.h:22
CmsMTDStringToEnum::Impl::map_
MapEnumType map_
Definition:
CmsMTDStringToEnum.h:24
CmsMTDStringToEnum::kModStrLen
static constexpr size_t kModStrLen
Definition:
CmsMTDStringToEnum.h:12
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
CmsMTDStringToEnum::MapEnumType
std::map< std::string, GeometricTimingDet::GeometricTimingEnumType > MapEnumType
Definition:
CmsMTDStringToEnum.h:14
CmsMTDStringToEnum
Definition:
CmsMTDStringToEnum.h:10
CmsMTDStringToEnum::Impl::Impl
Impl()
Definition:
CmsMTDStringToEnum.cc:5
CmsMTDStringToEnum::map
static MapEnumType const & map()
Definition:
CmsMTDStringToEnum.h:19
GeometricTimingDet.h
GeometricTimingDet::GeometricTimingEnumType
enum GTDEnumType{unknown=100, MTD=0, BTL=1, BTLLayer=2, BTLTray=3, BTLModule=4, BTLSensor=5, BTLCrystal=6, ETL=7, ETLDisc=8, ETLRing=9, ETLModule=10, ETLSensor=11} GeometricTimingEnumType
Definition:
GeometricTimingDet.h:63
Generated for CMSSW Reference Manual by
1.8.5