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

◆ rctObjectType

Constructor & Destructor Documentation

◆ rctDataBase()

l1t::rctDataBase::rctDataBase ( )

Definition at line 3 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.

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

◆ ~rctDataBase()

l1t::rctDataBase::~rctDataBase ( )
inline

Definition at line 36 of file rctDataBase.h.

36 {}

Member Function Documentation

◆ GetIndices()

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

Definition at line 54 of file rctDataBase.h.

References dqmiodumpindices::firstindex, HFEt, HFEt_start, HFFg, HFFg_start, IECard, IECard_start, IEEt, IEEt_start, IEReg, IEReg_start, NECard, NECard_start, NEEt, NEEt_start, NEReg, NEReg_start, RCEt, RCEt_start, RCHad, RCHad_start, RCOf, RCOf_start, RCTau, RCTau_start, and submitPVValidationJobs::t.

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

54  {
55  switch (t) {
56  case RCEt:
57  return RCEt_start[firstindex][secondindex];
58  case RCTau:
59  return RCTau_start[firstindex][secondindex];
60  case RCOf:
61  return RCOf_start[firstindex][secondindex];
62  case HFEt:
63  return HFEt_start[firstindex];
64  case HFFg:
65  return HFFg_start[firstindex];
66  case IEEt:
67  return IEEt_start[firstindex];
68  case IEReg:
69  return IEReg_start[firstindex];
70  case IECard:
71  return IECard_start[firstindex];
72  case NEEt:
73  return NEEt_start[firstindex];
74  case NEReg:
75  return NEReg_start[firstindex];
76  case NECard:
77  return NECard_start[firstindex];
78  case RCHad:
79  return RCHad_start[firstindex][secondindex];
80  default:
81  return -1;
82  }
83  }
int RCOf_start[7][2]
Definition: rctDataBase.h:17
int RCHad_start[7][2]
Definition: rctDataBase.h:26
int NECard_start[4]
Definition: rctDataBase.h:25
int RCEt_start[7][2]
Definition: rctDataBase.h:15
int NEReg_start[4]
Definition: rctDataBase.h:24
int IECard_start[4]
Definition: rctDataBase.h:22
int IEReg_start[4]
Definition: rctDataBase.h:21
int RCTau_start[7][2]
Definition: rctDataBase.h:16

◆ GetLength()

int l1t::rctDataBase::GetLength ( rctObjectType  t)
inline

◆ GetLink()

int l1t::rctDataBase::GetLink ( rctObjectType  t)
inline

◆ GetLinkMP7()

void l1t::rctDataBase::GetLinkMP7 ( unsigned int  RCTcrate,
bool  RCTeven,
int &  linkMP7 
)
inline

Definition at line 50 of file rctDataBase.h.

References indexfromoRSCtoMP7, and createfilelist::int.

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

50  {
51  linkMP7 = indexfromoRSCtoMP7[RCTcrate * 2 + (1 - (int)RCTeven)];
52  }
int indexfromoRSCtoMP7[36]
Definition: rctDataBase.h:32

◆ GetLinkRCT()

void l1t::rctDataBase::GetLinkRCT ( int  linkMP7,
unsigned int &  RCTcrate,
bool &  RCTeven 
)
inline

Definition at line 42 of file rctDataBase.h.

References indexfromMP7toRCT, and createfilelist::int.

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

42  {
43  int oRSClink = indexfromMP7toRCT[linkMP7];
44  RCTcrate = (int)(oRSClink / 2);
45  if (oRSClink % 2 == 0)
46  RCTeven = true;
47  else
48  RCTeven = false;
49  }
int indexfromMP7toRCT[36]
Definition: rctDataBase.h:31

Member Data Documentation

◆ HFEt_start

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

Definition at line 18 of file rctDataBase.h.

Referenced by GetIndices(), and rctDataBase().

◆ HFFg_start

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

Definition at line 19 of file rctDataBase.h.

Referenced by GetIndices(), and rctDataBase().

◆ IECard_start

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

Definition at line 22 of file rctDataBase.h.

Referenced by GetIndices(), and rctDataBase().

◆ IEEt_start

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

Definition at line 20 of file rctDataBase.h.

Referenced by GetIndices(), and rctDataBase().

◆ IEReg_start

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

Definition at line 21 of file rctDataBase.h.

Referenced by GetIndices(), and rctDataBase().

◆ indexfromMP7toRCT

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

Definition at line 31 of file rctDataBase.h.

Referenced by GetLinkRCT(), and rctDataBase().

◆ indexfromoRSCtoMP7

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

Definition at line 32 of file rctDataBase.h.

Referenced by GetLinkMP7(), and rctDataBase().

◆ length

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

Definition at line 28 of file rctDataBase.h.

Referenced by GetLength(), and rctDataBase().

◆ link

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

Definition at line 30 of file rctDataBase.h.

Referenced by GetLink(), and rctDataBase().

◆ NECard_start

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

Definition at line 25 of file rctDataBase.h.

Referenced by GetIndices(), and rctDataBase().

◆ NEEt_start

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

Definition at line 23 of file rctDataBase.h.

Referenced by GetIndices(), and rctDataBase().

◆ NEReg_start

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

Definition at line 24 of file rctDataBase.h.

Referenced by GetIndices(), and rctDataBase().

◆ RCEt_start

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

Definition at line 15 of file rctDataBase.h.

Referenced by GetIndices(), and rctDataBase().

◆ RCHad_start

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

Definition at line 26 of file rctDataBase.h.

Referenced by GetIndices(), and rctDataBase().

◆ RCOf_start

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

Definition at line 17 of file rctDataBase.h.

Referenced by GetIndices(), and rctDataBase().

◆ RCTau_start

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

Definition at line 16 of file rctDataBase.h.

Referenced by GetIndices(), and rctDataBase().