EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
CbmDetectorList.cxx
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file CbmDetectorList.cxx
1 
6 #include "CbmDetectorList.h"
7 
8 #include "TString.h"
9 
10 
11 // ----- Constructor ---------------------------------------------------
13 }
14 // -------------------------------------------------------------------------
15 
16 
17 
18 // ----- GetSystemName -------------------------------------------------
20 
21  switch(det) {
22 
23  case kREF: name = "ref"; break;
24  case kMVD: name = "mvd"; break;
25  case kSTS: name = "sts"; break;
26  case kRICH: name = "rich"; break;
27  case kMUCH: name = "much"; break;
28  case kTRD: name = "trd"; break;
29  case kTOF: name = "tof"; break;
30  case kECAL: name = "ecal"; break;
31  case kPSD: name = "psd"; break;
32  default: name = "unknown"; break;
33 
34  }
35 
36 }
37 // -------------------------------------------------------------------------
38 
39 
40 
41 // ----- GetSystemName -------------------------------------------------
42 void CbmDetectorList::GetSystemName(Int_t det, TString& name) {
43 
44  if ( det < kNOFDETS ) GetSystemName(DetectorId(det), name);
45  else name = "unknown";
46 
47 }
48 // -------------------------------------------------------------------------
49 
50 
51 
52 // ----- GetSystemNameCaps ---------------------------------------------
54 
55  switch(det) {
56 
57  case kREF: name = "REF"; break;
58  case kMVD: name = "MVD"; break;
59  case kSTS: name = "STS"; break;
60  case kRICH: name = "RICH"; break;
61  case kMUCH: name = "MUCH"; break;
62  case kTRD: name = "TRD"; break;
63  case kTOF: name = "TOF"; break;
64  case kECAL: name = "ECAL"; break;
65  case kPSD: name = "PSD"; break;
66  default: name = "UNKNOWN"; break;
67 
68  }
69 
70 }
71 // -------------------------------------------------------------------------
72 
73 
74 
75 // ----- GetSystemNameCaps ---------------------------------------------
76 void CbmDetectorList::GetSystemNameCaps(Int_t det, TString& name) {
77 
78  if ( det < kNOFDETS ) GetSystemNameCaps(DetectorId(det), name);
79  else name = "unknown";
80 
81 }
82 // -------------------------------------------------------------------------
83 
84 
86