Geometry
MTDCommonData
interface
MTDTopologyMode.h
Go to the documentation of this file.
1
#ifndef Geometry_MTDCommonData_MTDTopologyMode_H
2
#define Geometry_MTDCommonData_MTDTopologyMode_H
3
4
#include "
FWCore/Utilities/interface/Exception.h
"
5
#include <map>
6
#include <string>
7
#include <algorithm>
8
9
#include "
DataFormats/ForwardDetId/interface/BTLDetId.h
"
10
11
namespace
MTDTopologyMode
{
12
13
enum class
Mode
{
undefined
= 0,
tile
= 1,
bar
= 2,
barzflat
= 3,
barphiflat
= 4,
btlv1etlv4
= 5,
btlv1etlv5
= 6 };
14
15
Mode
MTDStringToEnumParser
(
const
std::string
&);
16
19
inline
BTLDetId::CrysLayout
crysLayoutFromTopoMode
(
const
int
& topoMode) {
20
return
(topoMode <= static_cast<int>(
BTLDetId::CrysLayout::barphiflat
) ? static_cast<BTLDetId::CrysLayout>(topoMode)
21
:
BTLDetId::CrysLayout::barphiflat
);
22
}
23
24
}
// namespace MTDTopologyMode
25
26
#endif // Geometry_MTDCommonData_MTDTopologyMode_H
BTLDetId::CrysLayout
CrysLayout
Definition:
BTLDetId.h:70
MTDTopologyMode::Mode::tile
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
MTDTopologyMode::Mode::bar
MTDTopologyMode::Mode::undefined
MTDTopologyMode::MTDStringToEnumParser
Mode MTDStringToEnumParser(const std::string &)
Definition:
MTDTopologyMode.cc:7
MTDTopologyMode::Mode::btlv1etlv4
BTLDetId::CrysLayout::barphiflat
MTDTopologyMode::Mode
Mode
Definition:
MTDTopologyMode.h:13
MTDTopologyMode
Definition:
MTDTopologyMode.h:11
Exception.h
MTDTopologyMode::Mode::barphiflat
MTDTopologyMode::Mode::btlv1etlv5
MTDTopologyMode::crysLayoutFromTopoMode
BTLDetId::CrysLayout crysLayoutFromTopoMode(const int &topoMode)
Definition:
MTDTopologyMode.h:19
BTLDetId.h
MTDTopologyMode::Mode::barzflat
Generated for CMSSW Reference Manual by
1.8.14