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.h
MTDTopologyMode::MTDStringToEnumParser
Mode MTDStringToEnumParser(const std::string &)
Definition:
MTDTopologyMode.cc:7
MTDTopologyMode::Mode::barphiflat
MTDTopologyMode::Mode::btlv1etlv5
BTLDetId::CrysLayout
CrysLayout
Definition:
BTLDetId.h:70
BTLDetId::CrysLayout::barphiflat
MTDTopologyMode::Mode::barzflat
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
MTDTopologyMode
Definition:
MTDTopologyMode.h:11
MTDTopologyMode::crysLayoutFromTopoMode
BTLDetId::CrysLayout crysLayoutFromTopoMode(const int &topoMode)
Definition:
MTDTopologyMode.h:19
MTDTopologyMode::Mode
Mode
Definition:
MTDTopologyMode.h:13
MTDTopologyMode::Mode::tile
MTDTopologyMode::Mode::bar
Exception.h
MTDTopologyMode::Mode::undefined
MTDTopologyMode::Mode::btlv1etlv4
Generated for CMSSW Reference Manual by
1.8.16