ATLAS Offline Software
Public Types | Static Public Member Functions | Private Member Functions | List of all members
PRDDetType Class Reference

#include <PRDDetTypes.h>

Collaboration diagram for PRDDetType:

Public Types

enum  Type {
  Pixel, SCT, TRT, CSC,
  RPC, TGC, MDT, SpacePoints,
  CSCstrip, MM, sTGC
}
 

Static Public Member Functions

static QString typeToString (const Type &)
 
static Type stringToType (const QString &str, bool &status)
 
static qint32 typeToInt (const Type &t)
 
static Type intToType (const qint32 &i, bool &status)
 

Private Member Functions

 PRDDetType ()
 

Detailed Description

Definition at line 10 of file PRDDetTypes.h.

Member Enumeration Documentation

◆ Type

Enumerator
Pixel 
SCT 
TRT 
CSC 
RPC 
TGC 
MDT 
SpacePoints 
CSCstrip 
MM 
sTGC 

Definition at line 12 of file PRDDetTypes.h.

12  {
14  };

Constructor & Destructor Documentation

◆ PRDDetType()

PRDDetType::PRDDetType ( )
private

Member Function Documentation

◆ intToType()

PRDDetType::Type PRDDetType::intToType ( const qint32 &  i,
bool &  status 
)
static

Definition at line 66 of file PRDDetTypes.cxx.

67 {
68  status = true;
69  switch (i) {
70  case 0: return Pixel;
71  case 1: return SCT;
72  case 2: return TRT;
73  case 3: return CSC;
74  case 4: return RPC;
75  case 5: return TGC;
76  case 6: return MDT;
77  case 7: return SpacePoints;
78  case 8: return CSCstrip;
79  case 9: return sTGC;
80  case 10: return MM;
81  default:
82  status = false;
83  return Pixel;//people better watch the return status!
84  }
85 }

◆ stringToType()

PRDDetType::Type PRDDetType::stringToType ( const QString &  str,
bool &  status 
)
static

Definition at line 27 of file PRDDetTypes.cxx.

28 {
29  status = true;
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;
40  if (str=="SpacePoints") return SpacePoints;
41  status = false;
42  return Pixel;//people better watch the return status!
43 }

◆ typeToInt()

qint32 PRDDetType::typeToInt ( const Type t)
static

Definition at line 47 of file PRDDetTypes.cxx.

48 {
49  switch (t) {
50  case Pixel: return 0;
51  case SCT: return 1;
52  case TRT: return 2;
53  case CSC: return 3;
54  case RPC: return 4;
55  case TGC: return 5;
56  case MDT: return 6;
57  case SpacePoints: return 7;
58  case CSCstrip: return 8;
59  case sTGC: return 9;
60  case MM: return 10;
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";
15  case CSCstrip: return "CSCstrip";
16  case RPC: return "RPC";
17  case TGC: return "TGC";
18  case sTGC: return "sTGC";
19  case MDT: return "MDT";
20  case MM: return "MM";
21  case SpacePoints: return "SpacePoints";
22  default: return "UNKNOWN";
23  }
24 }

The documentation for this class was generated from the following files:
PRDDetType::MM
@ MM
Definition: PRDDetTypes.h:13
PRDDetType::CSC
@ CSC
Definition: PRDDetTypes.h:13
PRDDetType::SpacePoints
@ SpacePoints
Definition: PRDDetTypes.h:13
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
PRDDetType::SCT
@ SCT
Definition: PRDDetTypes.h:13
PRDDetType::RPC
@ RPC
Definition: PRDDetTypes.h:13
lumiFormat.i
int i
Definition: lumiFormat.py:92
PRDDetType::CSCstrip
@ CSCstrip
Definition: PRDDetTypes.h:13
PRDDetType::sTGC
@ sTGC
Definition: PRDDetTypes.h:13
PRDDetType::MDT
@ MDT
Definition: PRDDetTypes.h:13
PRDDetType::Pixel
@ Pixel
Definition: PRDDetTypes.h:13
str
Definition: BTagTrackIpAccessor.cxx:11
merge.status
status
Definition: merge.py:17
PRDDetType::TGC
@ TGC
Definition: PRDDetTypes.h:13
PRDDetType::TRT
@ TRT
Definition: PRDDetTypes.h:13