#include <PRDDetTypes.h>
|
| enum | Type {
Pixel
, SCT
, TRT
, CSC
,
RPC
, TGC
, MDT
, SpacePoints
,
CSCstrip
, MM
, sTGC
} |
Definition at line 10 of file PRDDetTypes.h.
◆ Type
| Enumerator |
|---|
| Pixel | |
| SCT | |
| TRT | |
| CSC | |
| RPC | |
| TGC | |
| MDT | |
| SpacePoints | |
| CSCstrip | |
| MM | |
| sTGC | |
Definition at line 12 of file PRDDetTypes.h.
12 {
13 Pixel,
SCT,
TRT,
CSC,
RPC,
TGC,
MDT,
SpacePoints,
CSCstrip,
MM,
sTGC
14 };
◆ PRDDetType()
| PRDDetType::PRDDetType |
( |
| ) |
|
|
private |
◆ intToType()
Definition at line 66 of file PRDDetTypes.cxx.
67{
69 switch (i) {
81 default:
84 }
85}
◆ stringToType()
| PRDDetType::Type PRDDetType::stringToType |
( |
const QString & | str, |
|
|
bool & | status ) |
|
static |
Definition at line 27 of file PRDDetTypes.cxx.
28{
30 if (str==
"Pixel")
return Pixel;
31 if (str==
"SCT")
return SCT;
32 if (str==
"TRT")
return TRT;
33 if (str==
"CSC")
return CSC;
34 if (str==
"CSCstrip")
return CSCstrip;
35 if (str==
"RPC")
return RPC;
36 if (str==
"TGC")
return TGC;
37 if (str==
"sTGC")
return sTGC;
38 if (str==
"MDT")
return MDT;
39 if (str==
"MM")
return MM;
43}
◆ typeToInt()
| qint32 PRDDetType::typeToInt |
( |
const Type & | t | ) |
|
|
static |
Definition at line 47 of file PRDDetTypes.cxx.
48{
49 switch (t) {
61 default: return -1;
62 }
63}
◆ typeToString()
| QString PRDDetType::typeToString |
( |
const Type & | t | ) |
|
|
static |
Definition at line 8 of file PRDDetTypes.cxx.
9{
10 switch (t) {
11 case Pixel:
return "Pixel";
12 case SCT:
return "SCT";
13 case TRT:
return "TRT";
14 case CSC:
return "CSC";
16 case RPC:
return "RPC";
17 case TGC:
return "TGC";
18 case sTGC:
return "sTGC";
19 case MDT:
return "MDT";
22 default: return "UNKNOWN";
23 }
24}
The documentation for this class was generated from the following files: