CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Private Attributes
l1t::rctDataBase Class Reference

#include <rctDataBase.h>

Public Types

enum  rctObjectType {
  RCEt, RCTau, RCOf, HFEt,
  HFFg, IEEt, IEReg, IECard,
  NEEt, NEReg, NECard, RCHad,
  nObjects
}
 

Public Member Functions

int GetIndices (rctObjectType t, int firstindex, int secondindex=-1)
 
int GetLength (rctObjectType t)
 
int GetLink (rctObjectType t)
 
void GetLinkMP7 (unsigned int RCTcrate, bool RCTeven, int &linkMP7)
 
void GetLinkRCT (int linkMP7, unsigned int &RCTcrate, bool &RCTeven)
 
 rctDataBase ()
 
 ~rctDataBase ()
 

Private Attributes

int HFEt_start [8]
 
int HFFg_start [8]
 
int IECard_start [4]
 
int IEEt_start [4]
 
int IEReg_start [4]
 
int indexfromMP7toRCT [36]
 
int indexfromoRSCtoMP7 [36]
 
int length [nObjects]
 
int link [nObjects]
 
int NECard_start [4]
 
int NEEt_start [4]
 
int NEReg_start [4]
 
int RCEt_start [7][2]
 
int RCHad_start [7][2]
 
int RCOf_start [7][2]
 
int RCTau_start [7][2]
 

Detailed Description

Definition at line 10 of file rctDataBase.h.

Member Enumeration Documentation

Enumerator
RCEt 
RCTau 
RCOf 
HFEt 
HFFg 
IEEt 
IEReg 
IECard 
NEEt 
NEReg 
NECard 
RCHad 
nObjects 

Definition at line 12 of file rctDataBase.h.

Constructor & Destructor Documentation

l1t::rctDataBase::rctDataBase ( )

Definition at line 4 of file rctDataBase.cc.

References HFEt, HFEt_start, HFFg, HFFg_start, IECard, IECard_start, IEEt, IEEt_start, IEReg, IEReg_start, indexfromMP7toRCT, indexfromoRSCtoMP7, length, link, NECard, NECard_start, NEEt, NEEt_start, NEReg, NEReg_start, RCEt, RCEt_start, RCHad, RCHad_start, RCOf, RCOf_start, RCTau, and RCTau_start.

4  {
5 
6  length[RCEt]=10;
7  length[RCTau]=1;
8  length[RCOf]=1;
9  length[HFEt]=8;
10  length[HFFg]=1;
11  length[IEEt]=6;
12  length[IEReg]=1;
13  length[IECard]=3;
14  length[NEEt]=6;
15  length[NEReg]=1;
16  length[NECard]=3;
17  length[RCHad]=1;
18 
19  link[RCEt]=0;
20  link[RCTau]=0;
21  link[RCOf]=0;
22  link[HFEt]=1;
23  link[HFFg]=1;
24  link[IEEt]=1;
25  link[IEReg]=1;
26  link[IECard]=1;
27  link[NEEt]=1;
28  link[NEReg]=1;
29  link[NECard]=1;
30  link[RCHad]=1;
31 
32 
33  indexfromMP7toRCT[0]=0;
34  indexfromMP7toRCT[1]=1;
35  indexfromMP7toRCT[2]=18;
36  indexfromMP7toRCT[3]=19;
37  indexfromMP7toRCT[4]=16;
38  indexfromMP7toRCT[5]=17;
39  indexfromMP7toRCT[6]=34;
40  indexfromMP7toRCT[7]=35;
41  indexfromMP7toRCT[8]=2;
42  indexfromMP7toRCT[9]=3;
43  indexfromMP7toRCT[10]=20;
44  indexfromMP7toRCT[11]=21;
45  indexfromMP7toRCT[12]=14;
46  indexfromMP7toRCT[13]=15;
47  indexfromMP7toRCT[14]=32;
48  indexfromMP7toRCT[15]=33;
49  indexfromMP7toRCT[16]=4;
50  indexfromMP7toRCT[17]=5;
51  indexfromMP7toRCT[18]=22;
52  indexfromMP7toRCT[19]=23;
53  indexfromMP7toRCT[20]=12;
54  indexfromMP7toRCT[21]=13;
55  indexfromMP7toRCT[22]=30;
56  indexfromMP7toRCT[23]=31;
57  indexfromMP7toRCT[24]=6;
58  indexfromMP7toRCT[25]=7;
59  indexfromMP7toRCT[26]=24;
60  indexfromMP7toRCT[27]=25;
61  indexfromMP7toRCT[28]=10;
62  indexfromMP7toRCT[29]=11;
63  indexfromMP7toRCT[30]=28;
64  indexfromMP7toRCT[31]=29;
65  indexfromMP7toRCT[32]=8;
66  indexfromMP7toRCT[33]=9;
67  indexfromMP7toRCT[34]=26;
68  indexfromMP7toRCT[35]=27;
69 
70  indexfromoRSCtoMP7[0]=0;
71  indexfromoRSCtoMP7[1]=1;
72  indexfromoRSCtoMP7[2]=8;
73  indexfromoRSCtoMP7[3]=9;
74  indexfromoRSCtoMP7[4]=16;
75  indexfromoRSCtoMP7[5]=17;
76  indexfromoRSCtoMP7[6]=24;
77  indexfromoRSCtoMP7[7]=25;
78  indexfromoRSCtoMP7[8]=32;
79  indexfromoRSCtoMP7[9]=33;
80  indexfromoRSCtoMP7[10]=28;
81  indexfromoRSCtoMP7[11]=29;
82  indexfromoRSCtoMP7[12]=20;
83  indexfromoRSCtoMP7[13]=21;
84  indexfromoRSCtoMP7[14]=12;
85  indexfromoRSCtoMP7[15]=13;
86  indexfromoRSCtoMP7[16]=4;
87  indexfromoRSCtoMP7[17]=5;
88  indexfromoRSCtoMP7[18]=2;
89  indexfromoRSCtoMP7[19]=3;
90  indexfromoRSCtoMP7[20]=10;
91  indexfromoRSCtoMP7[21]=11;
92  indexfromoRSCtoMP7[22]=18;
93  indexfromoRSCtoMP7[23]=19;
94  indexfromoRSCtoMP7[24]=26;
95  indexfromoRSCtoMP7[25]=27;
96  indexfromoRSCtoMP7[26]=34;
97  indexfromoRSCtoMP7[27]=35;
98  indexfromoRSCtoMP7[28]=30;
99  indexfromoRSCtoMP7[29]=31;
100  indexfromoRSCtoMP7[30]=22;
101  indexfromoRSCtoMP7[31]=23;
102  indexfromoRSCtoMP7[32]=14;
103  indexfromoRSCtoMP7[33]=15;
104  indexfromoRSCtoMP7[34]=6;
105  indexfromoRSCtoMP7[35]=7;
106 
107  RCEt_start[0][0]=8;
108  RCEt_start[0][1]=18;
109  RCEt_start[1][0]=28;
110  RCEt_start[1][1]=38;
111  RCEt_start[2][0]=48;
112  RCEt_start[2][1]=58;
113  RCEt_start[3][0]=68;
114  RCEt_start[3][1]=78;
115  RCEt_start[4][0]=88;
116  RCEt_start[4][1]=98;
117  RCEt_start[5][0]=108;
118  RCEt_start[5][1]=118;
119  RCEt_start[6][0]=128;
120  RCEt_start[6][1]=138;
121 
122  RCTau_start[0][0]=148;
123  RCTau_start[0][1]=149;
124  RCTau_start[1][0]=150;
125  RCTau_start[1][1]=151;
126  RCTau_start[2][0]=152;
127  RCTau_start[2][1]=153;
128  RCTau_start[3][0]=154;
129  RCTau_start[3][1]=155;
130  RCTau_start[4][0]=156;
131  RCTau_start[4][1]=157;
132  RCTau_start[5][0]=158;
133  RCTau_start[5][1]=159;
134  RCTau_start[6][0]=160;
135  RCTau_start[6][1]=161;
136 
137  RCOf_start[0][0]=162;
138  RCOf_start[0][1]=163;
139  RCOf_start[1][0]=164;
140  RCOf_start[1][1]=165;
141  RCOf_start[2][0]=166;
142  RCOf_start[2][1]=167;
143  RCOf_start[3][0]=168;
144  RCOf_start[3][1]=169;
145  RCOf_start[4][0]=170;
146  RCOf_start[4][1]=171;
147  RCOf_start[5][0]=172;
148  RCOf_start[5][1]=173;
149  RCOf_start[6][0]=174;
150  RCOf_start[6][1]=175;
151 
152 
153  //calo object index 0= ,order in the cable= 0 ,bits= 8,72
154  //calo object index 1= ,order in the cable= 1 ,bits= 16,73
155  //calo object index 2= ,order in the cable= 4 ,bits= 40,76
156  //calo object index 3= ,order in the cable= 5 ,bits= 48,77
157  //calo object index 4= ,order in the cable= 2 ,bits= 24,74
158  //calo object index 5= ,order in the cable= 3 ,bits= 32,75
159  //calo object index 6= ,order in the cable= 6 ,bits= 56,78
160  //calo object index 7= ,order in the cable= 7 ,bits= 64,79
161 
162 
163  HFEt_start[0]=8;
164  HFEt_start[1]=16;
165  HFEt_start[2]=40;
166  HFEt_start[3]=48;
167  HFEt_start[4]=24;
168  HFEt_start[5]=32;
169  HFEt_start[6]=56;
170  HFEt_start[7]=64;
171 
172  HFFg_start[0]=72;
173  HFFg_start[1]=73;
174  HFFg_start[2]=76;
175  HFFg_start[3]=77;
176  HFFg_start[4]=74;
177  HFFg_start[5]=75;
178  HFFg_start[6]=78;
179  HFFg_start[7]=79;
180 
181  IEEt_start[0]=80;
182  IEEt_start[1]=90;
183  IEEt_start[2]=100;
184  IEEt_start[3]=110;
185 
186  IEReg_start[0]=86;
187  IEReg_start[1]=96;
188  IEReg_start[2]=106;
189  IEReg_start[3]=116;
190 
191  IECard_start[0]=87;
192  IECard_start[1]=97;
193  IECard_start[2]=107;
194  IECard_start[3]=117;
195 
196  NEEt_start[0]=120;
197  NEEt_start[1]=130;
198  NEEt_start[2]=140;
199  NEEt_start[3]=150;
200 
201  NEReg_start[0]=126;
202  NEReg_start[1]=136;
203  NEReg_start[2]=146;
204  NEReg_start[3]=156;
205 
206  NECard_start[0]=127;
207  NECard_start[1]=137;
208  NECard_start[2]=147;
209  NECard_start[3]=157;
210 
211 
212  RCHad_start[0][0]=160;
213  RCHad_start[0][1]=161;
214  RCHad_start[1][0]=162;
215  RCHad_start[1][1]=163;
216  RCHad_start[2][0]=164;
217  RCHad_start[2][1]=165;
218  RCHad_start[3][0]=166;
219  RCHad_start[3][1]=167;
220  RCHad_start[4][0]=168;
221  RCHad_start[4][1]=169;
222  RCHad_start[5][0]=170;
223  RCHad_start[5][1]=171;
224  RCHad_start[6][0]=172;
225  RCHad_start[6][1]=173;
226 
227 }
int RCOf_start[7][2]
Definition: rctDataBase.h:31
int RCHad_start[7][2]
Definition: rctDataBase.h:40
int indexfromoRSCtoMP7[36]
Definition: rctDataBase.h:46
int NECard_start[4]
Definition: rctDataBase.h:39
int RCEt_start[7][2]
Definition: rctDataBase.h:29
int NEReg_start[4]
Definition: rctDataBase.h:38
int IECard_start[4]
Definition: rctDataBase.h:36
int IEReg_start[4]
Definition: rctDataBase.h:35
int link[nObjects]
Definition: rctDataBase.h:44
int indexfromMP7toRCT[36]
Definition: rctDataBase.h:45
int length[nObjects]
Definition: rctDataBase.h:42
int RCTau_start[7][2]
Definition: rctDataBase.h:30
l1t::rctDataBase::~rctDataBase ( )
inline

Definition at line 51 of file rctDataBase.h.

51 {};

Member Function Documentation

int l1t::rctDataBase::GetIndices ( rctObjectType  t,
int  firstindex,
int  secondindex = -1 
)
inline

Definition at line 73 of file rctDataBase.h.

References HFEt, HFFg, IECard, IEEt, IEReg, NECard, NEEt, NEReg, RCEt, RCHad, RCOf, and RCTau.

Referenced by l1t::PhysicsToBitConverter::GetObject(), and l1t::PhysicsToBitConverter::SetObject().

74  {
75  switch (t){
76  case RCEt:
77  return RCEt_start[firstindex][secondindex];
78  case RCTau:
79  return RCTau_start[firstindex][secondindex];
80  case RCOf:
81  return RCOf_start[firstindex][secondindex];
82  case HFEt:
83  return HFEt_start[firstindex];
84  case HFFg:
85  return HFFg_start[firstindex];
86  case IEEt:
87  return IEEt_start[firstindex];
88  case IEReg:
89  return IEReg_start[firstindex];
90  case IECard:
91  return IECard_start[firstindex];
92  case NEEt:
93  return NEEt_start[firstindex];
94  case NEReg:
95  return NEReg_start[firstindex];
96  case NECard:
97  return NECard_start[firstindex];
98  case RCHad:
99  return RCHad_start[firstindex][secondindex];
100  default:
101  return -1;
102  }
103  }
int RCOf_start[7][2]
Definition: rctDataBase.h:31
int RCHad_start[7][2]
Definition: rctDataBase.h:40
int NECard_start[4]
Definition: rctDataBase.h:39
int RCEt_start[7][2]
Definition: rctDataBase.h:29
int NEReg_start[4]
Definition: rctDataBase.h:38
int IECard_start[4]
Definition: rctDataBase.h:36
int IEReg_start[4]
Definition: rctDataBase.h:35
int RCTau_start[7][2]
Definition: rctDataBase.h:30
int l1t::rctDataBase::GetLength ( rctObjectType  t)
inline

Definition at line 53 of file rctDataBase.h.

References lumiQTWidget::t.

Referenced by l1t::PhysicsToBitConverter::GetObject(), and l1t::PhysicsToBitConverter::SetObject().

54  {
55  return length[t];
56  }
int length[nObjects]
Definition: rctDataBase.h:42
int l1t::rctDataBase::GetLink ( rctObjectType  t)
inline

Definition at line 58 of file rctDataBase.h.

References lumiQTWidget::t.

Referenced by l1t::PhysicsToBitConverter::GetObject(), and l1t::PhysicsToBitConverter::SetObject().

59  {
60  return link[t];
61  }
int link[nObjects]
Definition: rctDataBase.h:44
void l1t::rctDataBase::GetLinkMP7 ( unsigned int  RCTcrate,
bool  RCTeven,
int &  linkMP7 
)
inline

Definition at line 69 of file rctDataBase.h.

References createfilelist::int.

Referenced by l1t::stage1::RCTEmRegionPacker::pack().

69  {
70  linkMP7=indexfromoRSCtoMP7[RCTcrate*2+(1-(int)RCTeven)];
71  }
int indexfromoRSCtoMP7[36]
Definition: rctDataBase.h:46
void l1t::rctDataBase::GetLinkRCT ( int  linkMP7,
unsigned int &  RCTcrate,
bool &  RCTeven 
)
inline

Definition at line 63 of file rctDataBase.h.

References createfilelist::int.

Referenced by l1t::stage1::unpack_em(), and l1t::stage1::unpack_region().

63  {
64  int oRSClink=indexfromMP7toRCT[linkMP7];
65  RCTcrate=(int)(oRSClink/2);
66  if (oRSClink%2==0) RCTeven=true;
67  else RCTeven=false;
68  }
int indexfromMP7toRCT[36]
Definition: rctDataBase.h:45

Member Data Documentation

int l1t::rctDataBase::HFEt_start[8]
private

Definition at line 32 of file rctDataBase.h.

Referenced by rctDataBase().

int l1t::rctDataBase::HFFg_start[8]
private

Definition at line 33 of file rctDataBase.h.

Referenced by rctDataBase().

int l1t::rctDataBase::IECard_start[4]
private

Definition at line 36 of file rctDataBase.h.

Referenced by rctDataBase().

int l1t::rctDataBase::IEEt_start[4]
private

Definition at line 34 of file rctDataBase.h.

Referenced by rctDataBase().

int l1t::rctDataBase::IEReg_start[4]
private

Definition at line 35 of file rctDataBase.h.

Referenced by rctDataBase().

int l1t::rctDataBase::indexfromMP7toRCT[36]
private

Definition at line 45 of file rctDataBase.h.

Referenced by rctDataBase().

int l1t::rctDataBase::indexfromoRSCtoMP7[36]
private

Definition at line 46 of file rctDataBase.h.

Referenced by rctDataBase().

int l1t::rctDataBase::length[nObjects]
private
int l1t::rctDataBase::link[nObjects]
private

Definition at line 44 of file rctDataBase.h.

Referenced by rctDataBase().

int l1t::rctDataBase::NECard_start[4]
private

Definition at line 39 of file rctDataBase.h.

Referenced by rctDataBase().

int l1t::rctDataBase::NEEt_start[4]
private

Definition at line 37 of file rctDataBase.h.

Referenced by rctDataBase().

int l1t::rctDataBase::NEReg_start[4]
private

Definition at line 38 of file rctDataBase.h.

Referenced by rctDataBase().

int l1t::rctDataBase::RCEt_start[7][2]
private

Definition at line 29 of file rctDataBase.h.

Referenced by rctDataBase().

int l1t::rctDataBase::RCHad_start[7][2]
private

Definition at line 40 of file rctDataBase.h.

Referenced by rctDataBase().

int l1t::rctDataBase::RCOf_start[7][2]
private

Definition at line 31 of file rctDataBase.h.

Referenced by rctDataBase().

int l1t::rctDataBase::RCTau_start[7][2]
private

Definition at line 30 of file rctDataBase.h.

Referenced by rctDataBase().