ATLAS Offline Software
Loading...
Searching...
No Matches
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
10namespace DetType {
11 //public:
12
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
@ ShortStrip
Definition DetType.h:13
@ LongStrip
Definition DetType.h:13
@ Endcap
Definition DetType.h:14
@ Barrel
Definition DetType.h:14
std::string name(Type t)
Definition DetType.h:16