ATLAS Offline Software
Loading...
Searching...
No Matches
InnerDetector
InDetDetDescr
InDetServMatGeoModel
src
DetType.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#ifndef DetType_H
6
#define DetType_H
7
8
#include <string>
9
10
namespace
DetType
{
11
//public:
12
13
enum
Type
{
Pixel
,
ShortStrip
,
LongStrip
};
14
enum
Part
{
Barrel
,
Endcap
};
15
16
inline
std::string
name
(
Type
t) {
17
if
(t ==
Pixel
)
return
"Pixel"
;
18
else
return
"Strip"
;
19
}
20
21
inline
std::string
name
(
Part
p) {
22
if
(p ==
Barrel
)
return
"Barrel"
;
23
else
return
"Endcap"
;
24
}
25
26
inline
std::string
name
(
Type
t,
Part
p) {
return
name
(p) +
name
(t);}
27
28
}
29
30
#endif
DetType
Definition
DetType.h:10
DetType::Type
Type
Definition
DetType.h:13
DetType::ShortStrip
@ ShortStrip
Definition
DetType.h:13
DetType::LongStrip
@ LongStrip
Definition
DetType.h:13
DetType::Part
Part
Definition
DetType.h:14
DetType::Endcap
@ Endcap
Definition
DetType.h:14
DetType::Barrel
@ Barrel
Definition
DetType.h:14
DetType::name
std::string name(Type t)
Definition
DetType.h:16
Pixel
Definition
PixelFEUtils.h:15
Generated on
for ATLAS Offline Software by
1.14.0