ATLAS Offline Software
Functions
MuonSimValUtils/MuonSimValUtils/MuonStrToIntName.h File Reference
#include <string>
#include <sstream>
#include <vector>
#include <iostream>
Include dependency graph for MuonSimValUtils/MuonSimValUtils/MuonStrToIntName.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

int convertStrToIntName (const std::string &ChamberName, const std::string &ChamberType)
 

Function Documentation

◆ convertStrToIntName()

int convertStrToIntName ( const std::string &  ChamberName,
const std::string &  ChamberType 
)

Definition at line 9 of file MuonDQA/MuonDQAUtils/src/MuonStrToIntName.cxx.

9  {
10 
11  //Input values
12  const std::string& Name_str = ChamberName;
13 
14  //add type
15  //"MDT","CSC","TGC" go in the same loop while
16  //"RPC" go to a different loop due to the same
17  //naming with "MDT"
18  const std::string& Type=ChamberType;
19 
20 
21  //Set string variables
22  int Name_int;
23 
24 
25 
26  if (Type=="MDT" || Type=="CSC" || Type=="TGC"){
27  //Switch from ATHENA int name to Hardware string name
28  if (Name_str=="BIL") Name_int = 0;
29  else if (Name_str=="BIS") Name_int = 1;
30  else if (Name_str=="BML") Name_int = 2;
31  else if (Name_str=="BMS") Name_int = 3;
32  else if (Name_str=="BOL") Name_int = 4;
33  else if (Name_str=="BOS") Name_int = 5;
34  else if (Name_str=="BEE") Name_int = 6;
35  else if (Name_str=="BIR") Name_int = 7;
36  else if (Name_str=="BMF") Name_int = 8;
37  else if (Name_str=="BOF") Name_int = 9;
38  else if (Name_str=="BOG") Name_int = 10;
39  else if (Name_str=="BME") Name_int = 53;
40  else if (Name_str=="EIC") Name_int = 12;
41  else if (Name_str=="EIL") Name_int = 13;
42  else if (Name_str=="EEL") Name_int = 14;
43  else if (Name_str=="EES") Name_int = 15;
44  else if (Name_str=="EMC") Name_int = 16;
45  else if (Name_str=="EML") Name_int = 17;
46  else if (Name_str=="EMS") Name_int = 18;
47  else if (Name_str=="EOC") Name_int = 19;
48  else if (Name_str=="EOL") Name_int = 20;
49  else if (Name_str=="EOS") Name_int = 21;
50  else if (Name_str=="T1C") Name_int = 22;
51  else if (Name_str=="T1L") Name_int = 23;
52  else if (Name_str=="T1S") Name_int = 24;
53  else if (Name_str=="T2C") Name_int = 25;
54  else if (Name_str=="T2L") Name_int = 26;
55  else if (Name_str=="T2S") Name_int = 27;
56  else if (Name_str=="T3C") Name_int = 28;
57  else if (Name_str=="T3L") Name_int = 29;
58  else if (Name_str=="T3S") Name_int = 30;
59  else if (Name_str=="CI1") Name_int = 31;
60  else if (Name_str=="CI2") Name_int = 32;
61  else if (Name_str=="CI3") Name_int = 33;
62  else if (Name_str=="CI4") Name_int = 34;
63  else if (Name_str=="FIL") Name_int = 35;
64  else if (Name_str=="FIS") Name_int = 36;
65  else if (Name_str=="FML") Name_int = 37;
66  else if (Name_str=="FMS") Name_int = 38;
67  else if (Name_str=="FOL") Name_int = 39;
68  else if (Name_str=="FOS") Name_int = 40;
69  else if (Name_str=="T1F") Name_int = 41;
70  else if (Name_str=="T1E") Name_int = 42;
71  else if (Name_str=="T2F") Name_int = 43;
72  else if (Name_str=="T2E") Name_int = 44;
73  else if (Name_str=="T3F") Name_int = 45;
74  else if (Name_str=="T3E") Name_int = 46;
75  else if (Name_str=="T4F") Name_int = 47;
76  else if (Name_str=="T4E") Name_int = 48;
77  else if (Name_str=="EIS") Name_int = 49;
78  else if (Name_str=="CSS") Name_int = 50;
79  else if (Name_str=="CSL") Name_int = 51;
80  else if (Name_str=="BIM") Name_int = 52;
81  else if (Name_str=="BMG") Name_int = 54;
82  else Name_int = -1;
83 
84  } else if (Type=="RPC") {
85  if (Name_str=="BML") Name_int = 2;
86  else if (Name_str=="BMS") Name_int = 3;
87  else if (Name_str=="BOL") Name_int = 4;
88  else if (Name_str=="BOS") Name_int = 5;
89  else if (Name_str=="BMF") Name_int = 8;
90  else if (Name_str=="BOF") Name_int = 9;
91  else if (Name_str=="BOG") Name_int = 10;
92  else Name_int = -1;
93  } else {Name_int = -1;}
94 
95 
96 
97 
98 
99  //Return int StationName
100 
101  return Name_int;
102 
103 }
xAODType
Definition: ObjectType.h:13