CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 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 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, 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 
71  RCEt_start[0][0]=8;
72  RCEt_start[0][1]=18;
73  RCEt_start[1][0]=28;
74  RCEt_start[1][1]=38;
75  RCEt_start[2][0]=48;
76  RCEt_start[2][1]=58;
77  RCEt_start[3][0]=68;
78  RCEt_start[3][1]=78;
79  RCEt_start[4][0]=88;
80  RCEt_start[4][1]=98;
81  RCEt_start[5][0]=108;
82  RCEt_start[5][1]=118;
83  RCEt_start[6][0]=128;
84  RCEt_start[6][1]=138;
85 
86  RCTau_start[0][0]=148;
87  RCTau_start[0][1]=149;
88  RCTau_start[1][0]=150;
89  RCTau_start[1][1]=151;
90  RCTau_start[2][0]=152;
91  RCTau_start[2][1]=153;
92  RCTau_start[3][0]=154;
93  RCTau_start[3][1]=155;
94  RCTau_start[4][0]=156;
95  RCTau_start[4][1]=157;
96  RCTau_start[5][0]=158;
97  RCTau_start[5][1]=159;
98  RCTau_start[6][0]=160;
99  RCTau_start[6][1]=161;
100 
101  RCOf_start[0][0]=162;
102  RCOf_start[0][1]=163;
103  RCOf_start[1][0]=164;
104  RCOf_start[1][1]=165;
105  RCOf_start[2][0]=166;
106  RCOf_start[2][1]=167;
107  RCOf_start[3][0]=168;
108  RCOf_start[3][1]=169;
109  RCOf_start[4][0]=170;
110  RCOf_start[4][1]=171;
111  RCOf_start[5][0]=172;
112  RCOf_start[5][1]=173;
113  RCOf_start[6][0]=174;
114  RCOf_start[6][1]=175;
115 
116  HFEt_start[0]=8;
117  HFEt_start[1]=16;
118  HFEt_start[2]=24;
119  HFEt_start[3]=32;
120  HFEt_start[4]=40;
121  HFEt_start[5]=48;
122  HFEt_start[6]=56;
123  HFEt_start[7]=64;
124 
125  HFFg_start[0]=72;
126  HFFg_start[1]=73;
127  HFFg_start[2]=74;
128  HFFg_start[3]=75;
129  HFFg_start[4]=76;
130  HFFg_start[5]=77;
131  HFFg_start[6]=78;
132  HFFg_start[7]=79;
133 
134  IEEt_start[0]=80;
135  IEEt_start[1]=90;
136  IEEt_start[2]=100;
137  IEEt_start[3]=110;
138 
139  IEReg_start[0]=86;
140  IEReg_start[1]=96;
141  IEReg_start[2]=106;
142  IEReg_start[3]=116;
143 
144  IECard_start[0]=87;
145  IECard_start[1]=97;
146  IECard_start[2]=107;
147  IECard_start[3]=117;
148 
149  NEEt_start[0]=120;
150  NEEt_start[1]=130;
151  NEEt_start[2]=140;
152  NEEt_start[3]=150;
153 
154  NEReg_start[0]=126;
155  NEReg_start[1]=136;
156  NEReg_start[2]=146;
157  NEReg_start[3]=156;
158 
159  NECard_start[0]=127;
160  NECard_start[1]=137;
161  NECard_start[2]=147;
162  NECard_start[3]=157;
163 
164 
165  RCHad_start[0][0]=160;
166  RCHad_start[0][1]=161;
167  RCHad_start[1][0]=162;
168  RCHad_start[1][1]=163;
169  RCHad_start[2][0]=164;
170  RCHad_start[2][1]=165;
171  RCHad_start[3][0]=166;
172  RCHad_start[3][1]=167;
173  RCHad_start[4][0]=168;
174  RCHad_start[4][1]=169;
175  RCHad_start[5][0]=170;
176  RCHad_start[5][1]=171;
177  RCHad_start[6][0]=172;
178  RCHad_start[6][1]=173;
179 
180 }
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 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 49 of file rctDataBase.h.

49 {};

Member Function Documentation

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

Definition at line 69 of file rctDataBase.h.

References 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, and RCTau_start.

Referenced by l1t::PhysicsToBitConverter::GetObject().

70  {
71  switch (t){
72  case RCEt:
73  return RCEt_start[firstindex][secondindex];
74  case RCTau:
75  return RCTau_start[firstindex][secondindex];
76  case RCOf:
77  return RCOf_start[firstindex][secondindex];
78  case HFEt:
79  return HFEt_start[firstindex];
80  case HFFg:
81  return HFFg_start[firstindex];
82  case IEEt:
83  return IEEt_start[firstindex];
84  case IEReg:
85  return IEReg_start[firstindex];
86  case IECard:
87  return IECard_start[firstindex];
88  case NEEt:
89  return NEEt_start[firstindex];
90  case NEReg:
91  return NEReg_start[firstindex];
92  case NECard:
93  return NECard_start[firstindex];
94  case RCHad:
95  return RCHad_start[firstindex][secondindex];
96  default:
97  return -1;
98  }
99  }
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 51 of file rctDataBase.h.

References length, and edmStreamStallGrapher::t.

Referenced by l1t::PhysicsToBitConverter::GetObject().

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

Definition at line 56 of file rctDataBase.h.

References link, and edmStreamStallGrapher::t.

Referenced by l1t::PhysicsToBitConverter::GetObject().

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

Definition at line 61 of file rctDataBase.h.

References indexfromMP7toRCT.

Referenced by l1t::stage1::RCTEmUnpacker::unpack(), and l1t::stage1::RCTRegionUnpacker::unpack().

61  {
62  int oRSClink=indexfromMP7toRCT[linkMP7];
63  RCTcrate=(int)(oRSClink/2);
64  if (oRSClink%2==0) RCTeven=true;
65  else RCTeven=false;
66  }
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 GetIndices(), and rctDataBase().

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

Definition at line 33 of file rctDataBase.h.

Referenced by GetIndices(), and rctDataBase().

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

Definition at line 36 of file rctDataBase.h.

Referenced by GetIndices(), and rctDataBase().

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

Definition at line 34 of file rctDataBase.h.

Referenced by GetIndices(), and rctDataBase().

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

Definition at line 35 of file rctDataBase.h.

Referenced by GetIndices(), and rctDataBase().

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

Definition at line 45 of file rctDataBase.h.

Referenced by GetLinkRCT(), and rctDataBase().

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

Definition at line 44 of file rctDataBase.h.

Referenced by GetLink(), and rctDataBase().

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

Definition at line 39 of file rctDataBase.h.

Referenced by GetIndices(), and rctDataBase().

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

Definition at line 37 of file rctDataBase.h.

Referenced by GetIndices(), and rctDataBase().

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

Definition at line 38 of file rctDataBase.h.

Referenced by GetIndices(), and rctDataBase().

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

Definition at line 29 of file rctDataBase.h.

Referenced by GetIndices(), and rctDataBase().

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

Definition at line 40 of file rctDataBase.h.

Referenced by GetIndices(), and rctDataBase().

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

Definition at line 31 of file rctDataBase.h.

Referenced by GetIndices(), and rctDataBase().

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

Definition at line 30 of file rctDataBase.h.

Referenced by GetIndices(), and rctDataBase().