Belle II Software  release-08-01-10
trgcdctsfUnpackerModule.h
1 /**************************************************************************
2  * basf2 (Belle II Analysis Software Framework) *
3  * Author: The Belle II Collaboration *
4  * *
5  * See git log for contributors and copyright holders. *
6  * This file is licensed under LGPL-3.0, see LICENSE.md. *
7  **************************************************************************/
8 
9 #pragma once
10 
11 #include <string>
12 
13 #include "rawdata/dataobjects/RawTRG.h"
14 #include "trg/cdc/dataobjects/TRGCDCTSFUnpackerStore.h"
15 
16 #include <framework/datastore/StoreArray.h>
17 #include <framework/core/Module.h>
18 #include <framework/dataobjects/EventMetaData.h>
19 #include <framework/datastore/StoreObjPtr.h>
20 
21 namespace Belle2 {
27  namespace TRGCDCTSF {
28 
30  const int nLeafs = 283;
32  const int nLeafs_4k15ts = 283 + 3 * 5;
33 // const int nLeafs = 86;
35  const int nLeafsExtra = 4;
37  const int nClks = 48;
39  const int nBits_2k = 2048;
41  const int nBits_4k = 4096;
43  const int nword_2k = 0xC03;
45  const int nword_4k = 6147;
46 
48  const char* LeafNames[nLeafs + nLeafsExtra] = {
49  "c127",
50  "validtracker", "trackercc",
51  "trackerhit0id", "trackerhit0rt", "trackerhit0v",
52  "trackerhit1id", "trackerhit1rt", "trackerhit1v",
53  "trackerhit2id", "trackerhit2rt", "trackerhit2v",
54  "trackerhit3id", "trackerhit3rt", "trackerhit3v",
55  "trackerhit4id", "trackerhit4rt", "trackerhit4v",
56  "trackerhit5id", "trackerhit5rt", "trackerhit5v",
57  "trackerhit6id", "trackerhit6rt", "trackerhit6v",
58  "trackerhit7id", "trackerhit7rt", "trackerhit7v",
59  "trackerhit8id", "trackerhit8rt", "trackerhit8v",
60  "trackerhit9id", "trackerhit9rt", "trackerhit9v",
61  "validetf", "etfcc", "netfhit"
62  "etfhit0", "etfhit1", "etfhit2", "etfhit3", "etfhit4",
63  "etfhit5", "etfhit6", "etfhit7", "etfhit8", "etfhit9",
64  "mgr0", "mgr0cc",
65  "mgr1", "mgr1cc",
66  "mgr2", "mgr2cc",
67  "mgr3", "mgr3cc",
68  "mgr4", "mgr4cc",
69  "mgr5", "mgr5cc",
70  "mgr0ft0", "mgr0ft1", "mgr0ft2", "mgr0ft3", "mgr0ft4", "mgr0ft5", "mgr0ft6", "mgr0ft7",
71  "mgr0ft8", "mgr0ft9", "mgr0ft10", "mgr0ft11", "mgr0ft12", "mgr0ft13", "mgr0ft14", "mgr0ft15",
72  "mgr1ft0", "mgr1ft1", "mgr1ft2", "mgr1ft3", "mgr1ft4", "mgr1ft5", "mgr1ft6", "mgr1ft7",
73  "mgr1ft8", "mgr1ft9", "mgr1ft10", "mgr1ft11", "mgr1ft12", "mgr1ft13", "mgr1ft14", "mgr1ft15",
74  "mgr2ft0", "mgr2ft1", "mgr2ft2", "mgr2ft3", "mgr2ft4", "mgr2ft5", "mgr2ft6", "mgr2ft7",
75  "mgr2ft8", "mgr2ft9", "mgr2ft10", "mgr2ft11", "mgr2ft12", "mgr2ft13", "mgr2ft14", "mgr2ft15",
76  "mgr3ft0", "mgr3ft1", "mgr3ft2", "mgr3ft3", "mgr3ft4", "mgr3ft5", "mgr3ft6", "mgr3ft7",
77  "mgr3ft8", "mgr3ft9", "mgr3ft10", "mgr3ft11", "mgr3ft12", "mgr3ft13", "mgr3ft14", "mgr3ft15",
78  "mgr4ft0", "mgr4ft1", "mgr4ft2", "mgr4ft3", "mgr4ft4", "mgr4ft5", "mgr4ft6", "mgr4ft7",
79  "mgr4ft8", "mgr4ft9", "mgr4ft10", "mgr4ft11", "mgr4ft12", "mgr4ft13", "mgr4ft14", "mgr4ft15",
80  "mgr0pt0", "mgr0pt1", "mgr0pt2", "mgr0pt3", "mgr0pt4", "mgr0pt5", "mgr0pt6", "mgr0pt7",
81  "mgr0pt8", "mgr0pt9", "mgr0pt10", "mgr0pt11", "mgr0pt12", "mgr0pt13", "mgr0pt14", "mgr0pt15",
82  "mgr1pt0", "mgr1pt1", "mgr1pt2", "mgr1pt3", "mgr1pt4", "mgr1pt5", "mgr1pt6", "mgr1pt7",
83  "mgr1pt8", "mgr1pt9", "mgr1pt10", "mgr1pt11", "mgr1pt12", "mgr1pt13", "mgr1pt14", "mgr1pt15",
84  "mgr2pt0", "mgr2pt1", "mgr2pt2", "mgr2pt3", "mgr2pt4", "mgr2pt5", "mgr2pt6", "mgr2pt7",
85  "mgr2pt8", "mgr2pt9", "mgr2pt10", "mgr2pt11", "mgr2pt12", "mgr2pt13", "mgr2pt14", "mgr2pt15",
86  "mgr3pt0", "mgr3pt1", "mgr3pt2", "mgr3pt3", "mgr3pt4", "mgr3pt5", "mgr3pt6", "mgr3pt7",
87  "mgr3pt8", "mgr3pt9", "mgr3pt10", "mgr3pt11", "mgr3pt12", "mgr3pt13", "mgr3pt14", "mgr3pt15",
88  "mgr4pt0", "mgr4pt1", "mgr4pt2", "mgr4pt3", "mgr4pt4", "mgr4pt5", "mgr4pt6", "mgr4pt7",
89  "mgr4pt8", "mgr4pt9", "mgr4pt10", "mgr4pt11", "mgr4pt12", "mgr4pt13", "mgr4pt14", "mgr4pt15",
90  "mgr0l0hit", "mgr0l1hit", "mgr0l2hit", "mgr0l3hit", "mgr0l4hit",
91  "mgr1l0hit", "mgr1l1hit", "mgr1l2hit", "mgr1l3hit", "mgr1l4hit",
92  "mgr2l0hit", "mgr2l1hit", "mgr2l2hit", "mgr2l3hit", "mgr2l4hit",
93  "mgr3l0hit", "mgr3l1hit", "mgr3l2hit", "mgr3l3hit", "mgr3l4hit",
94  "mgr4l0hit", "mgr4l1hit", "mgr4l2hit", "mgr4l3hit", "mgr4l4hit",
95  "mgr0l0", "mgr0l1", "mgr0l2", "mgr0l3", "mgr0l4", "mgr0l5", "mgr0l6", "mgr0l7",
96  "mgr1l0", "mgr1l1", "mgr1l2", "mgr1l3", "mgr1l4", "mgr1l5", "mgr1l6", "mgr1l7",
97  "mgr2l0", "mgr2l1", "mgr2l2", "mgr2l3", "mgr2l4", "mgr2l5", "mgr2l6", "mgr2l7",
98  "mgr3l0", "mgr3l1", "mgr3l2", "mgr3l3", "mgr3l4", "mgr3l5", "mgr3l6", "mgr3l7",
99  "mgr4l0", "mgr4l1", "mgr4l2", "mgr4l3", "mgr4l4", "mgr4l5", "mgr4l6", "mgr4l7",
100  "firmid", "firmver", "evt", "clk"
101  };
102 
104  const char* LeafNames_4k15ts[nLeafs_4k15ts + nLeafsExtra] = {
105  "c127",
106  "validtracker", "trackercc",
107  "trackerhit0id", "trackerhit0rt", "trackerhit0v",
108  "trackerhit1id", "trackerhit1rt", "trackerhit1v",
109  "trackerhit2id", "trackerhit2rt", "trackerhit2v",
110  "trackerhit3id", "trackerhit3rt", "trackerhit3v",
111  "trackerhit4id", "trackerhit4rt", "trackerhit4v",
112  "trackerhit5id", "trackerhit5rt", "trackerhit5v",
113  "trackerhit6id", "trackerhit6rt", "trackerhit6v",
114  "trackerhit7id", "trackerhit7rt", "trackerhit7v",
115  "trackerhit8id", "trackerhit8rt", "trackerhit8v",
116  "trackerhit9id", "trackerhit9rt", "trackerhit9v",
117  "trackerhit10id", "trackerhit10rt", "trackerhit10v",
118  "trackerhit11id", "trackerhit11rt", "trackerhit11v",
119  "trackerhit12id", "trackerhit12rt", "trackerhit12v",
120  "trackerhit13id", "trackerhit13rt", "trackerhit13v",
121  "trackerhit14id", "trackerhit14rt", "trackerhit14v",
122  "validetf", "etfcc", "netfhit"
123  "etfhit0", "etfhit1", "etfhit2", "etfhit3", "etfhit4",
124  "etfhit5", "etfhit6", "etfhit7", "etfhit8", "etfhit9",
125  "mgr0", "mgr0cc",
126  "mgr1", "mgr1cc",
127  "mgr2", "mgr2cc",
128  "mgr3", "mgr3cc",
129  "mgr4", "mgr4cc",
130  "mgr5", "mgr5cc",
131  "mgr0ft0", "mgr0ft1", "mgr0ft2", "mgr0ft3", "mgr0ft4", "mgr0ft5", "mgr0ft6", "mgr0ft7",
132  "mgr0ft8", "mgr0ft9", "mgr0ft10", "mgr0ft11", "mgr0ft12", "mgr0ft13", "mgr0ft14", "mgr0ft15",
133  "mgr1ft0", "mgr1ft1", "mgr1ft2", "mgr1ft3", "mgr1ft4", "mgr1ft5", "mgr1ft6", "mgr1ft7",
134  "mgr1ft8", "mgr1ft9", "mgr1ft10", "mgr1ft11", "mgr1ft12", "mgr1ft13", "mgr1ft14", "mgr1ft15",
135  "mgr2ft0", "mgr2ft1", "mgr2ft2", "mgr2ft3", "mgr2ft4", "mgr2ft5", "mgr2ft6", "mgr2ft7",
136  "mgr2ft8", "mgr2ft9", "mgr2ft10", "mgr2ft11", "mgr2ft12", "mgr2ft13", "mgr2ft14", "mgr2ft15",
137  "mgr3ft0", "mgr3ft1", "mgr3ft2", "mgr3ft3", "mgr3ft4", "mgr3ft5", "mgr3ft6", "mgr3ft7",
138  "mgr3ft8", "mgr3ft9", "mgr3ft10", "mgr3ft11", "mgr3ft12", "mgr3ft13", "mgr3ft14", "mgr3ft15",
139  "mgr4ft0", "mgr4ft1", "mgr4ft2", "mgr4ft3", "mgr4ft4", "mgr4ft5", "mgr4ft6", "mgr4ft7",
140  "mgr4ft8", "mgr4ft9", "mgr4ft10", "mgr4ft11", "mgr4ft12", "mgr4ft13", "mgr4ft14", "mgr4ft15",
141  "mgr0pt0", "mgr0pt1", "mgr0pt2", "mgr0pt3", "mgr0pt4", "mgr0pt5", "mgr0pt6", "mgr0pt7",
142  "mgr0pt8", "mgr0pt9", "mgr0pt10", "mgr0pt11", "mgr0pt12", "mgr0pt13", "mgr0pt14", "mgr0pt15",
143  "mgr1pt0", "mgr1pt1", "mgr1pt2", "mgr1pt3", "mgr1pt4", "mgr1pt5", "mgr1pt6", "mgr1pt7",
144  "mgr1pt8", "mgr1pt9", "mgr1pt10", "mgr1pt11", "mgr1pt12", "mgr1pt13", "mgr1pt14", "mgr1pt15",
145  "mgr2pt0", "mgr2pt1", "mgr2pt2", "mgr2pt3", "mgr2pt4", "mgr2pt5", "mgr2pt6", "mgr2pt7",
146  "mgr2pt8", "mgr2pt9", "mgr2pt10", "mgr2pt11", "mgr2pt12", "mgr2pt13", "mgr2pt14", "mgr2pt15",
147  "mgr3pt0", "mgr3pt1", "mgr3pt2", "mgr3pt3", "mgr3pt4", "mgr3pt5", "mgr3pt6", "mgr3pt7",
148  "mgr3pt8", "mgr3pt9", "mgr3pt10", "mgr3pt11", "mgr3pt12", "mgr3pt13", "mgr3pt14", "mgr3pt15",
149  "mgr4pt0", "mgr4pt1", "mgr4pt2", "mgr4pt3", "mgr4pt4", "mgr4pt5", "mgr4pt6", "mgr4pt7",
150  "mgr4pt8", "mgr4pt9", "mgr4pt10", "mgr4pt11", "mgr4pt12", "mgr4pt13", "mgr4pt14", "mgr4pt15",
151  "mgr0l0hit", "mgr0l1hit", "mgr0l2hit", "mgr0l3hit", "mgr0l4hit",
152  "mgr1l0hit", "mgr1l1hit", "mgr1l2hit", "mgr1l3hit", "mgr1l4hit",
153  "mgr2l0hit", "mgr2l1hit", "mgr2l2hit", "mgr2l3hit", "mgr2l4hit",
154  "mgr3l0hit", "mgr3l1hit", "mgr3l2hit", "mgr3l3hit", "mgr3l4hit",
155  "mgr4l0hit", "mgr4l1hit", "mgr4l2hit", "mgr4l3hit", "mgr4l4hit",
156  "mgr0l0", "mgr0l1", "mgr0l2", "mgr0l3", "mgr0l4", "mgr0l5", "mgr0l6", "mgr0l7",
157  "mgr1l0", "mgr1l1", "mgr1l2", "mgr1l3", "mgr1l4", "mgr1l5", "mgr1l6", "mgr1l7",
158  "mgr2l0", "mgr2l1", "mgr2l2", "mgr2l3", "mgr2l4", "mgr2l5", "mgr2l6", "mgr2l7",
159  "mgr3l0", "mgr3l1", "mgr3l2", "mgr3l3", "mgr3l4", "mgr3l5", "mgr3l6", "mgr3l7",
160  "mgr4l0", "mgr4l1", "mgr4l2", "mgr4l3", "mgr4l4", "mgr4l5", "mgr4l6", "mgr4l7",
161  "firmid", "firmver", "evt", "clk"
162  };
163 
165  enum EBits {
166  e_c127,
167  e_validtracker, e_trackercc,
168  e_trackerhit0id, e_trackerhit0rt, e_trackerhit0v,
169  e_trackerhit1id, e_trackerhit1rt, e_trackerhit1v,
170  e_trackerhit2id, e_trackerhit2rt, e_trackerhit2v,
171  e_trackerhit3id, e_trackerhit3rt, e_trackerhit3v,
172  e_trackerhit4id, e_trackerhit4rt, e_trackerhit4v,
173  e_trackerhit5id, e_trackerhit5rt, e_trackerhit5v,
174  e_trackerhit6id, e_trackerhit6rt, e_trackerhit6v,
175  e_trackerhit7id, e_trackerhit7rt, e_trackerhit7v,
176  e_trackerhit8id, e_trackerhit8rt, e_trackerhit8v,
177  e_trackerhit9id, e_trackerhit9rt, e_trackerhit9v,
178  e_validetf, e_etfcc, e_netfhit,
179  e_etfhit0, e_etfhit1, e_etfhit2, e_etfhit3, e_etfhit4,
180  e_etfhit5, e_etfhit6, e_etfhit7, e_etfhit8, e_etfhit9,
181  e_mgr0, e_mgr0cc,
182  e_mgr1, e_mgr1cc,
183  e_mgr2, e_mgr2cc,
184  e_mgr3, e_mgr3cc,
185  e_mgr4, e_mgr4cc,
186  e_mgr5, e_mgr5cc,
187  e_mgr0ft0, e_mgr0ft1, e_mgr0ft2, e_mgr0ft3, e_mgr0ft4, e_mgr0ft5, e_mgr0ft6, e_mgr0ft7,
188  e_mgr0ft8, e_mgr0ft9, e_mgr0ft10, e_mgr0ft11, e_mgr0ft12, e_mgr0ft13, e_mgr0ft14, e_mgr0ft15,
189  e_mgr1ft0, e_mgr1ft1, e_mgr1ft2, e_mgr1ft3, e_mgr1ft4, e_mgr1ft5, e_mgr1ft6, e_mgr1ft7,
190  e_mgr1ft8, e_mgr1ft9, e_mgr1ft10, e_mgr1ft11, e_mgr1ft12, e_mgr1ft13, e_mgr1ft14, e_mgr1ft15,
191  e_mgr2ft0, e_mgr2ft1, e_mgr2ft2, e_mgr2ft3, e_mgr2ft4, e_mgr2ft5, e_mgr2ft6, e_mgr2ft7,
192  e_mgr2ft8, e_mgr2ft9, e_mgr2ft10, e_mgr2ft11, e_mgr2ft12, e_mgr2ft13, e_mgr2ft14, e_mgr2ft15,
193  e_mgr3ft0, e_mgr3ft1, e_mgr3ft2, e_mgr3ft3, e_mgr3ft4, e_mgr3ft5, e_mgr3ft6, e_mgr3ft7,
194  e_mgr3ft8, e_mgr3ft9, e_mgr3ft10, e_mgr3ft11, e_mgr3ft12, e_mgr3ft13, e_mgr3ft14, e_mgr3ft15,
195  e_mgr4ft0, e_mgr4ft1, e_mgr4ft2, e_mgr4ft3, e_mgr4ft4, e_mgr4ft5, e_mgr4ft6, e_mgr4ft7,
196  e_mgr4ft8, e_mgr4ft9, e_mgr4ft10, e_mgr4ft11, e_mgr4ft12, e_mgr4ft13, e_mgr4ft14, e_mgr4ft15,
197  e_mgr0pt0, e_mgr0pt1, e_mgr0pt2, e_mgr0pt3, e_mgr0pt4, e_mgr0pt5, e_mgr0pt6, e_mgr0pt7,
198  e_mgr0pt8, e_mgr0pt9, e_mgr0pt10, e_mgr0pt11, e_mgr0pt12, e_mgr0pt13, e_mgr0pt14, e_mgr0pt15,
199  e_mgr1pt0, e_mgr1pt1, e_mgr1pt2, e_mgr1pt3, e_mgr1pt4, e_mgr1pt5, e_mgr1pt6, e_mgr1pt7,
200  e_mgr1pt8, e_mgr1pt9, e_mgr1pt10, e_mgr1pt11, e_mgr1pt12, e_mgr1pt13, e_mgr1pt14, e_mgr1pt15,
201  e_mgr2pt0, e_mgr2pt1, e_mgr2pt2, e_mgr2pt3, e_mgr2pt4, e_mgr2pt5, e_mgr2pt6, e_mgr2pt7,
202  e_mgr2pt8, e_mgr2pt9, e_mgr2pt10, e_mgr2pt11, e_mgr2pt12, e_mgr2pt13, e_mgr2pt14, e_mgr2pt15,
203  e_mgr3pt0, e_mgr3pt1, e_mgr3pt2, e_mgr3pt3, e_mgr3pt4, e_mgr3pt5, e_mgr3pt6, e_mgr3pt7,
204  e_mgr3pt8, e_mgr3pt9, e_mgr3pt10, e_mgr3pt11, e_mgr3pt12, e_mgr3pt13, e_mgr3pt14, e_mgr3pt15,
205  e_mgr4pt0, e_mgr4pt1, e_mgr4pt2, e_mgr4pt3, e_mgr4pt4, e_mgr4pt5, e_mgr4pt6, e_mgr4pt7,
206  e_mgr4pt8, e_mgr4pt9, e_mgr4pt10, e_mgr4pt11, e_mgr4pt12, e_mgr4pt13, e_mgr4pt14, e_mgr4pt15,
207  e_mgr0l0hit, e_mgr0l1hit, e_mgr0l2hit, e_mgr0l3hit, e_mgr0l4hit,
208  e_mgr1l0hit, e_mgr1l1hit, e_mgr1l2hit, e_mgr1l3hit, e_mgr1l4hit,
209  e_mgr2l0hit, e_mgr2l1hit, e_mgr2l2hit, e_mgr2l3hit, e_mgr2l4hit,
210  e_mgr3l0hit, e_mgr3l1hit, e_mgr3l2hit, e_mgr3l3hit, e_mgr3l4hit,
211  e_mgr4l0hit, e_mgr4l1hit, e_mgr4l2hit, e_mgr4l3hit, e_mgr4l4hit,
212  e_mgr0l0, e_mgr0l1, e_mgr0l2, e_mgr0l3, e_mgr0l4, e_mgr0l5, e_mgr0l6, e_mgr0l7,
213  e_mgr1l0, e_mgr1l1, e_mgr1l2, e_mgr1l3, e_mgr1l4, e_mgr1l5, e_mgr1l6, e_mgr1l7,
214  e_mgr2l0, e_mgr2l1, e_mgr2l2, e_mgr2l3, e_mgr2l4, e_mgr2l5, e_mgr2l6, e_mgr2l7,
215  e_mgr3l0, e_mgr3l1, e_mgr3l2, e_mgr3l3, e_mgr3l4, e_mgr3l5, e_mgr3l6, e_mgr3l7,
216  e_mgr4l0, e_mgr4l1, e_mgr4l2, e_mgr4l3, e_mgr4l4, e_mgr4l5, e_mgr4l6, e_mgr4l7,
217  e_firmid, e_firmver, e_evt, e_clk
218  };
219 
221  enum EBits_4k15ts {
222  e1_c127,
223  e1_validtracker, e1_trackercc,
224  e1_trackerhit0id, e1_trackerhit0rt, e1_trackerhit0v,
225  e1_trackerhit1id, e1_trackerhit1rt, e1_trackerhit1v,
226  e1_trackerhit2id, e1_trackerhit2rt, e1_trackerhit2v,
227  e1_trackerhit3id, e1_trackerhit3rt, e1_trackerhit3v,
228  e1_trackerhit4id, e1_trackerhit4rt, e1_trackerhit4v,
229  e1_trackerhit5id, e1_trackerhit5rt, e1_trackerhit5v,
230  e1_trackerhit6id, e1_trackerhit6rt, e1_trackerhit6v,
231  e1_trackerhit7id, e1_trackerhit7rt, e1_trackerhit7v,
232  e1_trackerhit8id, e1_trackerhit8rt, e1_trackerhit8v,
233  e1_trackerhit9id, e1_trackerhit9rt, e1_trackerhit9v,
234  e1_trackerhit10id, e1_trackerhit10rt, e1_trackerhit10v,
235  e1_trackerhit11id, e1_trackerhit11rt, e1_trackerhit11v,
236  e1_trackerhit12id, e1_trackerhit12rt, e1_trackerhit12v,
237  e1_trackerhit13id, e1_trackerhit13rt, e1_trackerhit13v,
238  e1_trackerhit14id, e1_trackerhit14rt, e1_trackerhit14v,
239  e1_validetf, e1_etfcc, e1_netfhit,
240  e1_etfhit0, e1_etfhit1, e1_etfhit2, e1_etfhit3, e1_etfhit4,
241  e1_etfhit5, e1_etfhit6, e1_etfhit7, e1_etfhit8, e1_etfhit9,
242  e1_mgr0, e1_mgr0cc,
243  e1_mgr1, e1_mgr1cc,
244  e1_mgr2, e1_mgr2cc,
245  e1_mgr3, e1_mgr3cc,
246  e1_mgr4, e1_mgr4cc,
247  e1_mgr5, e1_mgr5cc,
248  e1_mgr0ft0, e1_mgr0ft1, e1_mgr0ft2, e1_mgr0ft3, e1_mgr0ft4, e1_mgr0ft5, e1_mgr0ft6, e1_mgr0ft7,
249  e1_mgr0ft8, e1_mgr0ft9, e1_mgr0ft10, e1_mgr0ft11, e1_mgr0ft12, e1_mgr0ft13, e1_mgr0ft14, e1_mgr0ft15,
250  e1_mgr1ft0, e1_mgr1ft1, e1_mgr1ft2, e1_mgr1ft3, e1_mgr1ft4, e1_mgr1ft5, e1_mgr1ft6, e1_mgr1ft7,
251  e1_mgr1ft8, e1_mgr1ft9, e1_mgr1ft10, e1_mgr1ft11, e1_mgr1ft12, e1_mgr1ft13, e1_mgr1ft14, e1_mgr1ft15,
252  e1_mgr2ft0, e1_mgr2ft1, e1_mgr2ft2, e1_mgr2ft3, e1_mgr2ft4, e1_mgr2ft5, e1_mgr2ft6, e1_mgr2ft7,
253  e1_mgr2ft8, e1_mgr2ft9, e1_mgr2ft10, e1_mgr2ft11, e1_mgr2ft12, e1_mgr2ft13, e1_mgr2ft14, e1_mgr2ft15,
254  e1_mgr3ft0, e1_mgr3ft1, e1_mgr3ft2, e1_mgr3ft3, e1_mgr3ft4, e1_mgr3ft5, e1_mgr3ft6, e1_mgr3ft7,
255  e1_mgr3ft8, e1_mgr3ft9, e1_mgr3ft10, e1_mgr3ft11, e1_mgr3ft12, e1_mgr3ft13, e1_mgr3ft14, e1_mgr3ft15,
256  e1_mgr4ft0, e1_mgr4ft1, e1_mgr4ft2, e1_mgr4ft3, e1_mgr4ft4, e1_mgr4ft5, e1_mgr4ft6, e1_mgr4ft7,
257  e1_mgr4ft8, e1_mgr4ft9, e1_mgr4ft10, e1_mgr4ft11, e1_mgr4ft12, e1_mgr4ft13, e1_mgr4ft14, e1_mgr4ft15,
258  e1_mgr0pt0, e1_mgr0pt1, e1_mgr0pt2, e1_mgr0pt3, e1_mgr0pt4, e1_mgr0pt5, e1_mgr0pt6, e1_mgr0pt7,
259  e1_mgr0pt8, e1_mgr0pt9, e1_mgr0pt10, e1_mgr0pt11, e1_mgr0pt12, e1_mgr0pt13, e1_mgr0pt14, e1_mgr0pt15,
260  e1_mgr1pt0, e1_mgr1pt1, e1_mgr1pt2, e1_mgr1pt3, e1_mgr1pt4, e1_mgr1pt5, e1_mgr1pt6, e1_mgr1pt7,
261  e1_mgr1pt8, e1_mgr1pt9, e1_mgr1pt10, e1_mgr1pt11, e1_mgr1pt12, e1_mgr1pt13, e1_mgr1pt14, e1_mgr1pt15,
262  e1_mgr2pt0, e1_mgr2pt1, e1_mgr2pt2, e1_mgr2pt3, e1_mgr2pt4, e1_mgr2pt5, e1_mgr2pt6, e1_mgr2pt7,
263  e1_mgr2pt8, e1_mgr2pt9, e1_mgr2pt10, e1_mgr2pt11, e1_mgr2pt12, e1_mgr2pt13, e1_mgr2pt14, e1_mgr2pt15,
264  e1_mgr3pt0, e1_mgr3pt1, e1_mgr3pt2, e1_mgr3pt3, e1_mgr3pt4, e1_mgr3pt5, e1_mgr3pt6, e1_mgr3pt7,
265  e1_mgr3pt8, e1_mgr3pt9, e1_mgr3pt10, e1_mgr3pt11, e1_mgr3pt12, e1_mgr3pt13, e1_mgr3pt14, e1_mgr3pt15,
266  e1_mgr4pt0, e1_mgr4pt1, e1_mgr4pt2, e1_mgr4pt3, e1_mgr4pt4, e1_mgr4pt5, e1_mgr4pt6, e1_mgr4pt7,
267  e1_mgr4pt8, e1_mgr4pt9, e1_mgr4pt10, e1_mgr4pt11, e1_mgr4pt12, e1_mgr4pt13, e1_mgr4pt14, e1_mgr4pt15,
268  e1_mgr0l0hit, e1_mgr0l1hit, e1_mgr0l2hit, e1_mgr0l3hit, e1_mgr0l4hit,
269  e1_mgr1l0hit, e1_mgr1l1hit, e1_mgr1l2hit, e1_mgr1l3hit, e1_mgr1l4hit,
270  e1_mgr2l0hit, e1_mgr2l1hit, e1_mgr2l2hit, e1_mgr2l3hit, e1_mgr2l4hit,
271  e1_mgr3l0hit, e1_mgr3l1hit, e1_mgr3l2hit, e1_mgr3l3hit, e1_mgr3l4hit,
272  e1_mgr4l0hit, e1_mgr4l1hit, e1_mgr4l2hit, e1_mgr4l3hit, e1_mgr4l4hit,
273  e1_mgr0l0, e1_mgr0l1, e1_mgr0l2, e1_mgr0l3, e1_mgr0l4, e1_mgr0l5, e1_mgr0l6, e1_mgr0l7,
274  e1_mgr1l0, e1_mgr1l1, e1_mgr1l2, e1_mgr1l3, e1_mgr1l4, e1_mgr1l5, e1_mgr1l6, e1_mgr1l7,
275  e1_mgr2l0, e1_mgr2l1, e1_mgr2l2, e1_mgr2l3, e1_mgr2l4, e1_mgr2l5, e1_mgr2l6, e1_mgr2l7,
276  e1_mgr3l0, e1_mgr3l1, e1_mgr3l2, e1_mgr3l3, e1_mgr3l4, e1_mgr3l5, e1_mgr3l6, e1_mgr3l7,
277  e1_mgr4l0, e1_mgr4l1, e1_mgr4l2, e1_mgr4l3, e1_mgr4l4, e1_mgr4l5, e1_mgr4l6, e1_mgr4l7,
278  e1_firmid, e1_firmver, e1_evt, e1_clk
279  };
280 
282  const int BitMap_2k[nLeafs][2] = {
283  {2031, 15}, // c127 (2031 downto 2016)
284 // 2015, 159, //tshitmap
285 //+1015 for TSF1
286  {1764, 0}, //trackervalid
287  {1805 - 42, 8}, //trackercc
288  {1796 - 42, 7}, //trackerhit0id
289  {1788 - 42, 8}, //trackerhit0rt
290  {1779 - 42, 3}, //trackerhit0v
291  {1775 - 42, 7}, //trackerhit1id
292  {1767 - 42, 8}, //trackerhit1rt
293  {1758 - 42, 3}, //trackerhit1v
294  {1754 - 42, 7}, //trackerhit2id
295  {1746 - 42, 8}, //trackerhit2rt
296  {1737 - 42, 3}, //trackerhit2v
297  {1733 - 42, 7}, //trackerhit3id
298  {1725 - 42, 8}, //trackerhit3rt
299  {1716 - 42, 3}, //trackerhit3v
300  {1712 - 42, 7}, //trackerhit4id
301  {1704 - 42, 8}, //trackerhit4rt
302  {1695 - 42, 3}, //trackerhit4v
303  {1691 - 42, 7}, //trackerhit5id
304  {1683 - 42, 8}, //trackerhit5rt
305  {1674 - 42, 3}, //trackerhit5v
306  {1670 - 42, 7}, //trackerhit6id
307  {1662 - 42, 8}, //trackerhit6rt
308  {1653 - 42, 3}, //trackerhit6v
309  {1649 - 42, 7}, //trackerhit7id
310  {1641 - 42, 8}, //trackerhit7rt
311  {1632 - 42, 3}, //trackerhit7v
312  {1628 - 42, 7}, //trackerhit8id
313  {1620 - 42, 8}, //trackerhit8rt
314  {1611 - 42, 3}, //trackerhit8v
315  {1607 - 42, 7}, //trackerhit9id
316  {1599 - 42, 8}, //trackerhit9rt
317  {1590 - 42, 3}, //trackerhit9v
318 
319 //+1014 for TSF1
320  {1873, 0}, //validetf
321  {1872, 8}, //etfcc
322  {1863, 8}, //#ofetf
323  {1854, 8}, //etfhit0cc
324  {1845, 8}, //etfhit1cc
325  {1836, 8}, //etfhit2cc
326  {1827, 8}, //etfhit3cc
327  {1818, 8}, //etfhit4cc
328  {1809, 8}, //etfhit5cc
329  {1800, 8}, //etfhit6cc
330  {1791, 8}, //etfhit7cc
331  {1782, 8}, //etfhit8cc
332  {1773, 8}, //etfhit9cc
333 
334  {255, 255}, //mgr0
335  {244, 8}, //mgr0cc
336  {511, 255}, //mgr1
337  {500, 8}, //mgr1cc
338  {767, 255}, //mgr2
339  {756, 8}, //mgr2cc
340  {1023, 255}, //mgr3
341  {1012, 8}, //mgr3cc
342  {1279, 255}, //mgr4
343  {1268, 8}, //mgr4cc
344  {1535, 255}, //mgr5
345  {1524, 8}, //mgr5cc
346 
347  {147, 3}, //mgr0ft0
348  {151, 3}, //mgr0ft1
349  {155, 3}, //mgr0ft2
350  {159, 3}, //mgr0ft3
351  {163, 3}, //mgr0ft4
352  {167, 3}, //mgr0ft5
353  {171, 3}, //mgr0ft6
354  {175, 3}, //mgr0ft7
355  {179, 3}, //mgr0ft8
356  {183, 3}, //mgr0ft9
357  {187, 3}, //mgr0ft10
358  {191, 3}, //mgr0ft11
359  {195, 3}, //mgr0ft12
360  {199, 3}, //mgr0ft13
361  {203, 3}, //mgr0ft14
362  {207, 3}, //mgr0ft15
363 
364  {147 + 256, 3}, //mgr1ft0
365  {151 + 256, 3}, //mgr1ft1
366  {155 + 256, 3}, //mgr1ft2
367  {159 + 256, 3}, //mgr1ft3
368  {163 + 256, 3}, //mgr1ft4
369  {167 + 256, 3}, //mgr1ft5
370  {171 + 256, 3}, //mgr1ft6
371  {175 + 256, 3}, //mgr1ft7
372  {179 + 256, 3}, //mgr1ft8
373  {183 + 256, 3}, //mgr1ft9
374  {187 + 256, 3}, //mgr1ft10
375  {191 + 256, 3}, //mgr1ft11
376  {195 + 256, 3}, //mgr1ft12
377  {199 + 256, 3}, //mgr1ft13
378  {203 + 256, 3}, //mgr1ft14
379  {207 + 256, 3}, //mgr1ft15
380  {147 + 512, 3}, //mgr2ft0
381  {151 + 512, 3}, //mgr2ft1
382  {155 + 512, 3}, //mgr2ft2
383  {159 + 512, 3}, //mgr2ft3
384  {163 + 512, 3}, //mgr2ft4
385  {167 + 512, 3}, //mgr2ft5
386  {171 + 512, 3}, //mgr2ft6
387  {175 + 512, 3}, //mgr2ft7
388  {179 + 512, 3}, //mgr2ft8
389  {183 + 512, 3}, //mgr2ft9
390  {187 + 512, 3}, //mgr2ft10
391  {191 + 512, 3}, //mgr2ft11
392  {195 + 512, 3}, //mgr2ft12
393  {199 + 512, 3}, //mgr2ft13
394  {203 + 512, 3}, //mgr2ft14
395  {207 + 512, 3}, //mgr2ft15
396  {147 + 768, 3}, //mgr3ft0
397  {151 + 768, 3}, //mgr3ft1
398  {155 + 768, 3}, //mgr3ft2
399  {159 + 768, 3}, //mgr3ft3
400  {163 + 768, 3}, //mgr3ft4
401  {167 + 768, 3}, //mgr3ft5
402  {171 + 768, 3}, //mgr3ft6
403  {175 + 768, 3}, //mgr3ft7
404  {179 + 768, 3}, //mgr3ft8
405  {183 + 768, 3}, //mgr3ft9
406  {187 + 768, 3}, //mgr3ft10
407  {191 + 768, 3}, //mgr3ft11
408  {195 + 768, 3}, //mgr3ft12
409  {199 + 768, 3}, //mgr3ft13
410  {203 + 768, 3}, //mgr3ft14
411  {207 + 768, 3}, //mgr3ft15
412 
413  {147 + 1024, 3}, //mgr4ft0
414  {151 + 1024, 3}, //mgr4ft1
415  {155 + 1024, 3}, //mgr4ft2
416  {159 + 1024, 3}, //mgr4ft3
417  {163 + 1024, 3}, //mgr4ft4
418  {167 + 1024, 3}, //mgr4ft5
419  {171 + 1024, 3}, //mgr4ft6
420  {175 + 1024, 3}, //mgr4ft7
421  {179 + 1024, 3}, //mgr4ft8
422  {183 + 1024, 3}, //mgr4ft9
423  {187 + 1024, 3}, //mgr4ft10
424  {191 + 1024, 3}, //mgr4ft11
425  {195 + 1024, 3}, //mgr4ft12
426  {199 + 1024, 3}, //mgr4ft13
427  {203 + 1024, 3}, //mgr4ft14
428  {207 + 1024, 3}, //mgr4ft15
429 
430  {147 - 64, 3}, //mgr0pt0
431  {151 - 64, 3}, //mgr0pt1
432  {155 - 64, 3}, //mgr0pt2
433  {159 - 64, 3}, //mgr0pt3
434  {163 - 64, 3}, //mgr0pt4
435  {167 - 64, 3}, //mgr0pt5
436  {171 - 64, 3}, //mgr0pt6
437  {175 - 64, 3}, //mgr0pt7
438  {179 - 64, 3}, //mgr0pt8
439  {183 - 64, 3}, //mgr0pt9
440  {187 - 64, 3}, //mgr0pt10
441  {191 - 64, 3}, //mgr0pt11
442  {195 - 64, 3}, //mgr0pt12
443  {199 - 64, 3}, //mgr0pt13
444  {203 - 64, 3}, //mgr0pt14
445  {207 - 64, 3}, //mgr0pt15
446 
447  {147 + 256 - 64, 3}, //mgr1ft0
448  {151 + 256 - 64, 3}, //mgr1ft1
449  {155 + 256 - 64, 3}, //mgr1ft2
450  {159 + 256 - 64, 3}, //mgr1ft3
451  {163 + 256 - 64, 3}, //mgr1ft4
452  {167 + 256 - 64, 3}, //mgr1ft5
453  {171 + 256 - 64, 3}, //mgr1ft6
454  {175 + 256 - 64, 3}, //mgr1ft7
455  {179 + 256 - 64, 3}, //mgr1ft8
456  {183 + 256 - 64, 3}, //mgr1ft9
457  {187 + 256 - 64, 3}, //mgr1ft10
458  {191 + 256 - 64, 3}, //mgr1ft11
459  {195 + 256 - 64, 3}, //mgr1ft12
460  {199 + 256 - 64, 3}, //mgr1ft13
461  {203 + 256 - 64, 3}, //mgr1ft14
462  {207 + 256 - 64, 3}, //mgr1ft15
463  {147 + 512 - 64, 3}, //mgr2ft0
464  {151 + 512 - 64, 3}, //mgr2ft1
465  {155 + 512 - 64, 3}, //mgr2ft2
466  {159 + 512 - 64, 3}, //mgr2ft3
467  {163 + 512 - 64, 3}, //mgr2ft4
468  {167 + 512 - 64, 3}, //mgr2ft5
469  {171 + 512 - 64, 3}, //mgr2ft6
470  {175 + 512 - 64, 3}, //mgr2ft7
471  {179 + 512 - 64, 3}, //mgr2ft8
472  {183 + 512 - 64, 3}, //mgr2ft9
473  {187 + 512 - 64, 3}, //mgr2ft10
474  {191 + 512 - 64, 3}, //mgr2ft11
475  {195 + 512 - 64, 3}, //mgr2ft12
476  {199 + 512 - 64, 3}, //mgr2ft13
477  {203 + 512 - 64, 3}, //mgr2ft14
478  {207 + 512 - 64, 3}, //mgr2ft15
479  {147 + 768 - 64, 3}, //mgr3ft0
480  {151 + 768 - 64, 3}, //mgr3ft1
481  {155 + 768 - 64, 3}, //mgr3ft2
482  {159 + 768 - 64, 3}, //mgr3ft3
483  {163 + 768 - 64, 3}, //mgr3ft4
484  {167 + 768 - 64, 3}, //mgr3ft5
485  {171 + 768 - 64, 3}, //mgr3ft6
486  {175 + 768 - 64, 3}, //mgr3ft7
487  {179 + 768 - 64, 3}, //mgr3ft8
488  {183 + 768 - 64, 3}, //mgr3ft9
489  {187 + 768 - 64, 3}, //mgr3ft10
490  {191 + 768 - 64, 3}, //mgr3ft11
491  {195 + 768 - 64, 3}, //mgr3ft12
492  {199 + 768 - 64, 3}, //mgr3ft13
493  {203 + 768 - 64, 3}, //mgr3ft14
494  {207 + 768 - 64, 3}, //mgr3ft15
495  {147 + 1024 - 64, 3}, //mgr4ft0
496  {151 + 1024 - 64, 3}, //mgr4ft1
497  {155 + 1024 - 64, 3}, //mgr4ft2
498  {159 + 1024 - 64, 3}, //mgr4ft3
499  {163 + 1024 - 64, 3}, //mgr4ft4
500  {167 + 1024 - 64, 3}, //mgr4ft5
501  {171 + 1024 - 64, 3}, //mgr4ft6
502  {175 + 1024 - 64, 3}, //mgr4ft7
503  {179 + 1024 - 64, 3}, //mgr4ft8
504  {183 + 1024 - 64, 3}, //mgr4ft9
505  {187 + 1024 - 64, 3}, //mgr4ft10
506  {191 + 1024 - 64, 3}, //mgr4ft11
507  {195 + 1024 - 64, 3}, //mgr4ft12
508  {199 + 1024 - 64, 3}, //mgr4ft13
509  {203 + 1024 - 64, 3}, //mgr4ft14
510  {207 + 1024 - 64, 3}, //mgr4ft15
511 
512 
513  {15, 15}, //mgr0l0hit
514  {31, 15}, //mgr0l1hit
515 // 2031, 15, //mgr0l0hit
516 // 2047, 15, //mgr0l1hit
517  {47, 15}, //mgr0l2hit
518  {63, 15}, //mgr0l3hit
519  {79, 15}, //mgr0l4hit
520  {15 + 256, 15}, //mgr1l0hit
521  {31 + 256, 15}, //mgr1l1hit
522  {47 + 256, 15}, //mgr1l2hit
523  {63 + 256, 15}, //mgr1l3hit
524  {79 + 256, 15}, //mgr1l4hit
525  {15 + 512, 15}, //mgr2l0hit
526  {31 + 512, 15}, //mgr2l1hit
527  {47 + 512, 15}, //mgr2l2hit
528  {63 + 512, 15}, //mgr2l3hit
529  {79 + 512, 15}, //mgr2l4hit
530  {15 + 768, 15}, //mgr3l0hit
531  {31 + 768, 15}, //mgr3l1hit
532  {47 + 768, 15}, //mgr3l2hit
533  {63 + 768, 15}, //mgr3l3hit
534  {79 + 768, 15}, //mgr3l4hit
535  {15 + 1024, 15}, //mgr4l0hit
536  {31 + 1024, 15}, //mgr4l1hit
537  {47 + 1024, 15}, //mgr4l2hit
538  {63 + 1024, 15}, //mgr4l3hit
539  {79 + 1024, 15}, //mgr4l4hit
540 
541 
542  {31, 31},
543  {63, 31},
544  {95, 31},
545  {127, 31},
546  {159, 31},
547  {191, 31},
548  {223, 31},
549  {255, 31},
550 
551  {31 + 256, 31},
552  {63 + 256, 31},
553  {95 + 256, 31},
554  {127 + 256, 31},
555  {159 + 256, 31},
556  {191 + 256, 31},
557  {223 + 256, 31},
558  {255 + 256, 31},
559 
560  {31 + 512, 31},
561  {63 + 512, 31},
562  {95 + 512, 31},
563  {127 + 512, 31},
564  {159 + 512, 31},
565  {191 + 512, 31},
566  {223 + 512, 31},
567  {255 + 512, 31},
568 
569  {31 + 768, 31},
570  {63 + 768, 31},
571  {95 + 768, 31},
572  {127 + 768, 31},
573  {159 + 768, 31},
574  {191 + 768, 31},
575  {223 + 768, 31},
576  {255 + 768, 31},
577 
578  {31 + 1024, 31},
579  {63 + 1024, 31},
580  {95 + 1024, 31},
581  {127 + 1024, 31},
582  {159 + 1024, 31},
583  {191 + 1024, 31},
584  {223 + 1024, 31},
585  {255 + 1024, 31}
586 
587 
588  };
589 
590 
592  const int BitMap_4k[nLeafs][2] = {
593  {2031, 15}, // c127 (2031 downto 2016)
594 // 2015, 159, //tshitmap
595 //+1015 for TSF1
596  {1764 + 1015, 0}, //trackervalid
597  {1805 + 1015 - 42, 8}, //trackercc
598  {1796 + 1015 - 42, 7}, //trackerhit0id
599  {1788 + 1015 - 42, 8}, //trackerhit0rt
600  {1779 + 1015 - 42, 3}, //trackerhit0v
601  {1775 + 1015 - 42, 7}, //trackerhit1id
602  {1767 + 1015 - 42, 8}, //trackerhit1rt
603  {1758 + 1015 - 42, 3}, //trackerhit1v
604  {1754 + 1015 - 42, 7}, //trackerhit2id
605  {1746 + 1015 - 42, 8}, //trackerhit2rt
606  {1737 + 1015 - 42, 3}, //trackerhit2v
607  {1733 + 1015 - 42, 7}, //trackerhit3id
608  {1725 + 1015 - 42, 8}, //trackerhit3rt
609  {1716 + 1015 - 42, 3}, //trackerhit3v
610  {1712 + 1015 - 42, 7}, //trackerhit4id
611  {1704 + 1015 - 42, 8}, //trackerhit4rt
612  {1695 + 1015 - 42, 3}, //trackerhit4v
613  {1691 + 1015 - 42, 7}, //trackerhit5id
614  {1683 + 1015 - 42, 8}, //trackerhit5rt
615  {1674 + 1015 - 42, 3}, //trackerhit5v
616  {1670 + 1015 - 42, 7}, //trackerhit6id
617  {1662 + 1015 - 42, 8}, //trackerhit6rt
618  {1653 + 1015 - 42, 3}, //trackerhit6v
619  {1649 + 1015 - 42, 7}, //trackerhit7id
620  {1641 + 1015 - 42, 8}, //trackerhit7rt
621  {1632 + 1015 - 42, 3}, //trackerhit7v
622  {1628 + 1015 - 42, 7}, //trackerhit8id
623  {1620 + 1015 - 42, 8}, //trackerhit8rt
624  {1611 + 1015 - 42, 3}, //trackerhit8v
625  {1607 + 1015 - 42, 7}, //trackerhit9id
626  {1599 + 1015 - 42, 8}, //trackerhit9rt
627  {1590 + 1015 - 42, 3}, //trackerhit9v
628 
629 //+1014 for TSF1
630  {1873 + 1014, 0}, //validetf
631  {1872 + 1014, 8}, //etfcc
632  {1863 + 1014, 8}, //#ofetf
633  {1854 + 1014, 8}, //etfhit0cc
634  {1845 + 1014, 8}, //etfhit1cc
635  {1836 + 1014, 8}, //etfhit2cc
636  {1827 + 1014, 8}, //etfhit3cc
637  {1818 + 1014, 8}, //etfhit4cc
638  {1809 + 1014, 8}, //etfhit5cc
639  {1800 + 1014, 8}, //etfhit6cc
640  {1791 + 1014, 8}, //etfhit7cc
641  {1782 + 1014, 8}, //etfhit8cc
642  {1773 + 1014, 8}, //etfhit9cc
643 
644  {255, 255}, //mgr0
645  {244, 8}, //mgr0cc
646  {511, 255}, //mgr1
647  {500, 8}, //mgr1cc
648  {767, 255}, //mgr2
649  {756, 8}, //mgr2cc
650  {1023, 255}, //mgr3
651  {1012, 8}, //mgr3cc
652  {1279, 255}, //mgr4
653  {1268, 8}, //mgr4cc
654  {1535, 255}, //mgr5
655  {1524, 8}, //mgr5cc
656 
657  {147, 3}, //mgr0ft0
658  {151, 3}, //mgr0ft1
659  {155, 3}, //mgr0ft2
660  {159, 3}, //mgr0ft3
661  {163, 3}, //mgr0ft4
662  {167, 3}, //mgr0ft5
663  {171, 3}, //mgr0ft6
664  {175, 3}, //mgr0ft7
665  {179, 3}, //mgr0ft8
666  {183, 3}, //mgr0ft9
667  {187, 3}, //mgr0ft10
668  {191, 3}, //mgr0ft11
669  {195, 3}, //mgr0ft12
670  {199, 3}, //mgr0ft13
671  {203, 3}, //mgr0ft14
672  {207, 3}, //mgr0ft15
673 
674  {147 + 256, 3}, //mgr1ft0
675  {151 + 256, 3}, //mgr1ft1
676  {155 + 256, 3}, //mgr1ft2
677  {159 + 256, 3}, //mgr1ft3
678  {163 + 256, 3}, //mgr1ft4
679  {167 + 256, 3}, //mgr1ft5
680  {171 + 256, 3}, //mgr1ft6
681  {175 + 256, 3}, //mgr1ft7
682  {179 + 256, 3}, //mgr1ft8
683  {183 + 256, 3}, //mgr1ft9
684  {187 + 256, 3}, //mgr1ft10
685  {191 + 256, 3}, //mgr1ft11
686  {195 + 256, 3}, //mgr1ft12
687  {199 + 256, 3}, //mgr1ft13
688  {203 + 256, 3}, //mgr1ft14
689  {207 + 256, 3}, //mgr1ft15
690  {147 + 512, 3}, //mgr2ft0
691  {151 + 512, 3}, //mgr2ft1
692  {155 + 512, 3}, //mgr2ft2
693  {159 + 512, 3}, //mgr2ft3
694  {163 + 512, 3}, //mgr2ft4
695  {167 + 512, 3}, //mgr2ft5
696  {171 + 512, 3}, //mgr2ft6
697  {175 + 512, 3}, //mgr2ft7
698  {179 + 512, 3}, //mgr2ft8
699  {183 + 512, 3}, //mgr2ft9
700  {187 + 512, 3}, //mgr2ft10
701  {191 + 512, 3}, //mgr2ft11
702  {195 + 512, 3}, //mgr2ft12
703  {199 + 512, 3}, //mgr2ft13
704  {203 + 512, 3}, //mgr2ft14
705  {207 + 512, 3}, //mgr2ft15
706  {147 + 768, 3}, //mgr3ft0
707  {151 + 768, 3}, //mgr3ft1
708  {155 + 768, 3}, //mgr3ft2
709  {159 + 768, 3}, //mgr3ft3
710  {163 + 768, 3}, //mgr3ft4
711  {167 + 768, 3}, //mgr3ft5
712  {171 + 768, 3}, //mgr3ft6
713  {175 + 768, 3}, //mgr3ft7
714  {179 + 768, 3}, //mgr3ft8
715  {183 + 768, 3}, //mgr3ft9
716  {187 + 768, 3}, //mgr3ft10
717  {191 + 768, 3}, //mgr3ft11
718  {195 + 768, 3}, //mgr3ft12
719  {199 + 768, 3}, //mgr3ft13
720  {203 + 768, 3}, //mgr3ft14
721  {207 + 768, 3}, //mgr3ft15
722 
723  {147 + 1024, 3}, //mgr4ft0
724  {151 + 1024, 3}, //mgr4ft1
725  {155 + 1024, 3}, //mgr4ft2
726  {159 + 1024, 3}, //mgr4ft3
727  {163 + 1024, 3}, //mgr4ft4
728  {167 + 1024, 3}, //mgr4ft5
729  {171 + 1024, 3}, //mgr4ft6
730  {175 + 1024, 3}, //mgr4ft7
731  {179 + 1024, 3}, //mgr4ft8
732  {183 + 1024, 3}, //mgr4ft9
733  {187 + 1024, 3}, //mgr4ft10
734  {191 + 1024, 3}, //mgr4ft11
735  {195 + 1024, 3}, //mgr4ft12
736  {199 + 1024, 3}, //mgr4ft13
737  {203 + 1024, 3}, //mgr4ft14
738  {207 + 1024, 3}, //mgr4ft15
739 
740  {147 - 64, 3}, //mgr0pt0
741  {151 - 64, 3}, //mgr0pt1
742  {155 - 64, 3}, //mgr0pt2
743  {159 - 64, 3}, //mgr0pt3
744  {163 - 64, 3}, //mgr0pt4
745  {167 - 64, 3}, //mgr0pt5
746  {171 - 64, 3}, //mgr0pt6
747  {175 - 64, 3}, //mgr0pt7
748  {179 - 64, 3}, //mgr0pt8
749  {183 - 64, 3}, //mgr0pt9
750  {187 - 64, 3}, //mgr0pt10
751  {191 - 64, 3}, //mgr0pt11
752  {195 - 64, 3}, //mgr0pt12
753  {199 - 64, 3}, //mgr0pt13
754  {203 - 64, 3}, //mgr0pt14
755  {207 - 64, 3}, //mgr0pt15
756 
757  {147 + 256 - 64, 3}, //mgr1ft0
758  {151 + 256 - 64, 3}, //mgr1ft1
759  {155 + 256 - 64, 3}, //mgr1ft2
760  {159 + 256 - 64, 3}, //mgr1ft3
761  {163 + 256 - 64, 3}, //mgr1ft4
762  {167 + 256 - 64, 3}, //mgr1ft5
763  {171 + 256 - 64, 3}, //mgr1ft6
764  {175 + 256 - 64, 3}, //mgr1ft7
765  {179 + 256 - 64, 3}, //mgr1ft8
766  {183 + 256 - 64, 3}, //mgr1ft9
767  {187 + 256 - 64, 3}, //mgr1ft10
768  {191 + 256 - 64, 3}, //mgr1ft11
769  {195 + 256 - 64, 3}, //mgr1ft12
770  {199 + 256 - 64, 3}, //mgr1ft13
771  {203 + 256 - 64, 3}, //mgr1ft14
772  {207 + 256 - 64, 3}, //mgr1ft15
773  {147 + 512 - 64, 3}, //mgr2ft0
774  {151 + 512 - 64, 3}, //mgr2ft1
775  {155 + 512 - 64, 3}, //mgr2ft2
776  {159 + 512 - 64, 3}, //mgr2ft3
777  {163 + 512 - 64, 3}, //mgr2ft4
778  {167 + 512 - 64, 3}, //mgr2ft5
779  {171 + 512 - 64, 3}, //mgr2ft6
780  {175 + 512 - 64, 3}, //mgr2ft7
781  {179 + 512 - 64, 3}, //mgr2ft8
782  {183 + 512 - 64, 3}, //mgr2ft9
783  {187 + 512 - 64, 3}, //mgr2ft10
784  {191 + 512 - 64, 3}, //mgr2ft11
785  {195 + 512 - 64, 3}, //mgr2ft12
786  {199 + 512 - 64, 3}, //mgr2ft13
787  {203 + 512 - 64, 3}, //mgr2ft14
788  {207 + 512 - 64, 3}, //mgr2ft15
789  {147 + 768 - 64, 3}, //mgr3ft0
790  {151 + 768 - 64, 3}, //mgr3ft1
791  {155 + 768 - 64, 3}, //mgr3ft2
792  {159 + 768 - 64, 3}, //mgr3ft3
793  {163 + 768 - 64, 3}, //mgr3ft4
794  {167 + 768 - 64, 3}, //mgr3ft5
795  {171 + 768 - 64, 3}, //mgr3ft6
796  {175 + 768 - 64, 3}, //mgr3ft7
797  {179 + 768 - 64, 3}, //mgr3ft8
798  {183 + 768 - 64, 3}, //mgr3ft9
799  {187 + 768 - 64, 3}, //mgr3ft10
800  {191 + 768 - 64, 3}, //mgr3ft11
801  {195 + 768 - 64, 3}, //mgr3ft12
802  {199 + 768 - 64, 3}, //mgr3ft13
803  {203 + 768 - 64, 3}, //mgr3ft14
804  {207 + 768 - 64, 3}, //mgr3ft15
805  {147 + 1024 - 64, 3}, //mgr4ft0
806  {151 + 1024 - 64, 3}, //mgr4ft1
807  {155 + 1024 - 64, 3}, //mgr4ft2
808  {159 + 1024 - 64, 3}, //mgr4ft3
809  {163 + 1024 - 64, 3}, //mgr4ft4
810  {167 + 1024 - 64, 3}, //mgr4ft5
811  {171 + 1024 - 64, 3}, //mgr4ft6
812  {175 + 1024 - 64, 3}, //mgr4ft7
813  {179 + 1024 - 64, 3}, //mgr4ft8
814  {183 + 1024 - 64, 3}, //mgr4ft9
815  {187 + 1024 - 64, 3}, //mgr4ft10
816  {191 + 1024 - 64, 3}, //mgr4ft11
817  {195 + 1024 - 64, 3}, //mgr4ft12
818  {199 + 1024 - 64, 3}, //mgr4ft13
819  {203 + 1024 - 64, 3}, //mgr4ft14
820  {207 + 1024 - 64, 3}, //mgr4ft15
821 
822 
823  {15, 15}, //mgr0l0hit
824  {31, 15}, //mgr0l1hit
825 // 2031, 15, //mgr0l0hit
826 // 2047, 15, //mgr0l1hit
827  {47, 15}, //mgr0l2hit
828  {63, 15}, //mgr0l3hit
829  {79, 15}, //mgr0l4hit
830  {15 + 256, 15}, //mgr1l0hit
831  {31 + 256, 15}, //mgr1l1hit
832  {47 + 256, 15}, //mgr1l2hit
833  {63 + 256, 15}, //mgr1l3hit
834  {79 + 256, 15}, //mgr1l4hit
835  {15 + 512, 15}, //mgr2l0hit
836  {31 + 512, 15}, //mgr2l1hit
837  {47 + 512, 15}, //mgr2l2hit
838  {63 + 512, 15}, //mgr2l3hit
839  {79 + 512, 15}, //mgr2l4hit
840  {15 + 768, 15}, //mgr3l0hit
841  {31 + 768, 15}, //mgr3l1hit
842  {47 + 768, 15}, //mgr3l2hit
843  {63 + 768, 15}, //mgr3l3hit
844  {79 + 768, 15}, //mgr3l4hit
845  {15 + 1024, 15}, //mgr4l0hit
846  {31 + 1024, 15}, //mgr4l1hit
847  {47 + 1024, 15}, //mgr4l2hit
848  {63 + 1024, 15}, //mgr4l3hit
849  {79 + 1024, 15}, //mgr4l4hit
850 
851 
852  {31, 31},
853  {63, 31},
854  {95, 31},
855  {127, 31},
856  {159, 31},
857  {191, 31},
858  {223, 31},
859  {255, 31},
860 
861  {31 + 256, 31},
862  {63 + 256, 31},
863  {95 + 256, 31},
864  {127 + 256, 31},
865  {159 + 256, 31},
866  {191 + 256, 31},
867  {223 + 256, 31},
868  {255 + 256, 31},
869 
870  {31 + 512, 31},
871  {63 + 512, 31},
872  {95 + 512, 31},
873  {127 + 512, 31},
874  {159 + 512, 31},
875  {191 + 512, 31},
876  {223 + 512, 31},
877  {255 + 512, 31},
878 
879  {31 + 768, 31},
880  {63 + 768, 31},
881  {95 + 768, 31},
882  {127 + 768, 31},
883  {159 + 768, 31},
884  {191 + 768, 31},
885  {223 + 768, 31},
886  {255 + 768, 31},
887 
888  {31 + 1024, 31},
889  {63 + 1024, 31},
890  {95 + 1024, 31},
891  {127 + 1024, 31},
892  {159 + 1024, 31},
893  {191 + 1024, 31},
894  {223 + 1024, 31},
895  {255 + 1024, 31}
896 
897 
898  };
899 
901  const int BitMap_4k15ts[nLeafs_4k15ts][2] = {
902 //if original bit position > 2560, shift to MSB by 105 bit
903  {2031, 15}, // c127 (2031 downto 2016)
904 // 2015, 159, //tshitmap
905 //+1015 for TSF1
906  {1764 + 1015 + 105, 0}, //trackervalid
907  {1805 + 1015 - 42 + 105, 8}, //trackercc
908  {1796 + 1015 - 42 + 105, 7}, //trackerhit0id
909  {1788 + 1015 - 42 + 105, 8}, //trackerhit0rt
910  {1779 + 1015 - 42 + 105, 3}, //trackerhit0v
911  {1775 + 1015 - 42 + 105, 7}, //trackerhit1id
912  {1767 + 1015 - 42 + 105, 8}, //trackerhit1rt
913  {1758 + 1015 - 42 + 105, 3}, //trackerhit1v
914  {1754 + 1015 - 42 + 105, 7}, //trackerhit2id
915  {1746 + 1015 - 42 + 105, 8}, //trackerhit2rt
916  {1737 + 1015 - 42 + 105, 3}, //trackerhit2v
917  {1733 + 1015 - 42 + 105, 7}, //trackerhit3id
918  {1725 + 1015 - 42 + 105, 8}, //trackerhit3rt
919  {1716 + 1015 - 42 + 105, 3}, //trackerhit3v
920  {1712 + 1015 - 42 + 105, 7}, //trackerhit4id
921  {1704 + 1015 - 42 + 105, 8}, //trackerhit4rt
922  {1695 + 1015 - 42 + 105, 3}, //trackerhit4v
923  {1691 + 1015 - 42 + 105, 7}, //trackerhit5id
924  {1683 + 1015 - 42 + 105, 8}, //trackerhit5rt
925  {1674 + 1015 - 42 + 105, 3}, //trackerhit5v
926  {1670 + 1015 - 42 + 105, 7}, //trackerhit6id
927  {1662 + 1015 - 42 + 105, 8}, //trackerhit6rt
928  {1653 + 1015 - 42 + 105, 3}, //trackerhit6v
929  {1649 + 1015 - 42 + 105, 7}, //trackerhit7id
930  {1641 + 1015 - 42 + 105, 8}, //trackerhit7rt
931  {1632 + 1015 - 42 + 105, 3}, //trackerhit7v
932  {1628 + 1015 - 42 + 105, 7}, //trackerhit8id
933  {1620 + 1015 - 42 + 105, 8}, //trackerhit8rt
934  {1611 + 1015 - 42 + 105, 3}, //trackerhit8v
935  {1607 + 1015 - 42 + 105, 7}, //trackerhit9id
936  {1599 + 1015 - 42 + 105, 8}, //trackerhit9rt
937  {1590 + 1015 - 42 + 105, 3}, //trackerhit9v
938 //additional part for 15 TS version
939  {2664, 7}, //trackerhit10id
940  {2656, 8}, //trackerhit10rt
941  {2647, 3}, //trackerhit10v
942  {2643, 7}, //trackerhit11id
943  {2635, 8}, //trackerhit11rt
944  {2626, 3}, //trackerhit11v
945  {2622, 7}, //trackerhit12id
946  {2614, 8}, //trackerhit12rt
947  {2605, 3}, //trackerhit12v
948  {2601, 7}, //trackerhit13id
949  {2593, 8}, //trackerhit13rt
950  {2584, 3}, //trackerhit13v
951  {2580, 7}, //trackerhit14id
952  {2572, 8}, //trackerhit14rt
953  {2563, 3}, //trackerhit14v
954 //+1014 for TSF1
955  {1873 + 1014 + 105, 0}, //validetf
956  {1872 + 1014 + 105, 8}, //etfcc
957  {1863 + 1014 + 105, 8}, //#ofetf
958  {1854 + 1014 + 105, 8}, //etfhit0cc
959  {1845 + 1014 + 105, 8}, //etfhit1cc
960  {1836 + 1014 + 105, 8}, //etfhit2cc
961  {1827 + 1014 + 105, 8}, //etfhit3cc
962  {1818 + 1014 + 105, 8}, //etfhit4cc
963  {1809 + 1014 + 105, 8}, //etfhit5cc
964  {1800 + 1014 + 105, 8}, //etfhit6cc
965  {1791 + 1014 + 105, 8}, //etfhit7cc
966  {1782 + 1014 + 105, 8}, //etfhit8cc
967  {1773 + 1014 + 105, 8}, //etfhit9cc
968 
969  {255, 255}, //mgr0
970  {244, 8}, //mgr0cc
971  {511, 255}, //mgr1
972  {500, 8}, //mgr1cc
973  {767, 255}, //mgr2
974  {756, 8}, //mgr2cc
975  {1023, 255}, //mgr3
976  {1012, 8}, //mgr3cc
977  {1279, 255}, //mgr4
978  {1268, 8}, //mgr4cc
979  {1535, 255}, //mgr5
980  {1524, 8}, //mgr5cc
981 
982  {147, 3}, //mgr0ft0
983  {151, 3}, //mgr0ft1
984  {155, 3}, //mgr0ft2
985  {159, 3}, //mgr0ft3
986  {163, 3}, //mgr0ft4
987  {167, 3}, //mgr0ft5
988  {171, 3}, //mgr0ft6
989  {175, 3}, //mgr0ft7
990  {179, 3}, //mgr0ft8
991  {183, 3}, //mgr0ft9
992  {187, 3}, //mgr0ft10
993  {191, 3}, //mgr0ft11
994  {195, 3}, //mgr0ft12
995  {199, 3}, //mgr0ft13
996  {203, 3}, //mgr0ft14
997  {207, 3}, //mgr0ft15
998 
999  {147 + 256, 3}, //mgr1ft0
1000  {151 + 256, 3}, //mgr1ft1
1001  {155 + 256, 3}, //mgr1ft2
1002  {159 + 256, 3}, //mgr1ft3
1003  {163 + 256, 3}, //mgr1ft4
1004  {167 + 256, 3}, //mgr1ft5
1005  {171 + 256, 3}, //mgr1ft6
1006  {175 + 256, 3}, //mgr1ft7
1007  {179 + 256, 3}, //mgr1ft8
1008  {183 + 256, 3}, //mgr1ft9
1009  {187 + 256, 3}, //mgr1ft10
1010  {191 + 256, 3}, //mgr1ft11
1011  {195 + 256, 3}, //mgr1ft12
1012  {199 + 256, 3}, //mgr1ft13
1013  {203 + 256, 3}, //mgr1ft14
1014  {207 + 256, 3}, //mgr1ft15
1015  {147 + 512, 3}, //mgr2ft0
1016  {151 + 512, 3}, //mgr2ft1
1017  {155 + 512, 3}, //mgr2ft2
1018  {159 + 512, 3}, //mgr2ft3
1019  {163 + 512, 3}, //mgr2ft4
1020  {167 + 512, 3}, //mgr2ft5
1021  {171 + 512, 3}, //mgr2ft6
1022  {175 + 512, 3}, //mgr2ft7
1023  {179 + 512, 3}, //mgr2ft8
1024  {183 + 512, 3}, //mgr2ft9
1025  {187 + 512, 3}, //mgr2ft10
1026  {191 + 512, 3}, //mgr2ft11
1027  {195 + 512, 3}, //mgr2ft12
1028  {199 + 512, 3}, //mgr2ft13
1029  {203 + 512, 3}, //mgr2ft14
1030  {207 + 512, 3}, //mgr2ft15
1031  {147 + 768, 3}, //mgr3ft0
1032  {151 + 768, 3}, //mgr3ft1
1033  {155 + 768, 3}, //mgr3ft2
1034  {159 + 768, 3}, //mgr3ft3
1035  {163 + 768, 3}, //mgr3ft4
1036  {167 + 768, 3}, //mgr3ft5
1037  {171 + 768, 3}, //mgr3ft6
1038  {175 + 768, 3}, //mgr3ft7
1039  {179 + 768, 3}, //mgr3ft8
1040  {183 + 768, 3}, //mgr3ft9
1041  {187 + 768, 3}, //mgr3ft10
1042  {191 + 768, 3}, //mgr3ft11
1043  {195 + 768, 3}, //mgr3ft12
1044  {199 + 768, 3}, //mgr3ft13
1045  {203 + 768, 3}, //mgr3ft14
1046  {207 + 768, 3}, //mgr3ft15
1047 
1048  {147 + 1024, 3}, //mgr4ft0
1049  {151 + 1024, 3}, //mgr4ft1
1050  {155 + 1024, 3}, //mgr4ft2
1051  {159 + 1024, 3}, //mgr4ft3
1052  {163 + 1024, 3}, //mgr4ft4
1053  {167 + 1024, 3}, //mgr4ft5
1054  {171 + 1024, 3}, //mgr4ft6
1055  {175 + 1024, 3}, //mgr4ft7
1056  {179 + 1024, 3}, //mgr4ft8
1057  {183 + 1024, 3}, //mgr4ft9
1058  {187 + 1024, 3}, //mgr4ft10
1059  {191 + 1024, 3}, //mgr4ft11
1060  {195 + 1024, 3}, //mgr4ft12
1061  {199 + 1024, 3}, //mgr4ft13
1062  {203 + 1024, 3}, //mgr4ft14
1063  {207 + 1024, 3}, //mgr4ft15
1064 
1065  {147 - 64, 3}, //mgr0pt0
1066  {151 - 64, 3}, //mgr0pt1
1067  {155 - 64, 3}, //mgr0pt2
1068  {159 - 64, 3}, //mgr0pt3
1069  {163 - 64, 3}, //mgr0pt4
1070  {167 - 64, 3}, //mgr0pt5
1071  {171 - 64, 3}, //mgr0pt6
1072  {175 - 64, 3}, //mgr0pt7
1073  {179 - 64, 3}, //mgr0pt8
1074  {183 - 64, 3}, //mgr0pt9
1075  {187 - 64, 3}, //mgr0pt10
1076  {191 - 64, 3}, //mgr0pt11
1077  {195 - 64, 3}, //mgr0pt12
1078  {199 - 64, 3}, //mgr0pt13
1079  {203 - 64, 3}, //mgr0pt14
1080  {207 - 64, 3}, //mgr0pt15
1081 
1082  {147 + 256 - 64, 3}, //mgr1ft0
1083  {151 + 256 - 64, 3}, //mgr1ft1
1084  {155 + 256 - 64, 3}, //mgr1ft2
1085  {159 + 256 - 64, 3}, //mgr1ft3
1086  {163 + 256 - 64, 3}, //mgr1ft4
1087  {167 + 256 - 64, 3}, //mgr1ft5
1088  {171 + 256 - 64, 3}, //mgr1ft6
1089  {175 + 256 - 64, 3}, //mgr1ft7
1090  {179 + 256 - 64, 3}, //mgr1ft8
1091  {183 + 256 - 64, 3}, //mgr1ft9
1092  {187 + 256 - 64, 3}, //mgr1ft10
1093  {191 + 256 - 64, 3}, //mgr1ft11
1094  {195 + 256 - 64, 3}, //mgr1ft12
1095  {199 + 256 - 64, 3}, //mgr1ft13
1096  {203 + 256 - 64, 3}, //mgr1ft14
1097  {207 + 256 - 64, 3}, //mgr1ft15
1098  {147 + 512 - 64, 3}, //mgr2ft0
1099  {151 + 512 - 64, 3}, //mgr2ft1
1100  {155 + 512 - 64, 3}, //mgr2ft2
1101  {159 + 512 - 64, 3}, //mgr2ft3
1102  {163 + 512 - 64, 3}, //mgr2ft4
1103  {167 + 512 - 64, 3}, //mgr2ft5
1104  {171 + 512 - 64, 3}, //mgr2ft6
1105  {175 + 512 - 64, 3}, //mgr2ft7
1106  {179 + 512 - 64, 3}, //mgr2ft8
1107  {183 + 512 - 64, 3}, //mgr2ft9
1108  {187 + 512 - 64, 3}, //mgr2ft10
1109  {191 + 512 - 64, 3}, //mgr2ft11
1110  {195 + 512 - 64, 3}, //mgr2ft12
1111  {199 + 512 - 64, 3}, //mgr2ft13
1112  {203 + 512 - 64, 3}, //mgr2ft14
1113  {207 + 512 - 64, 3}, //mgr2ft15
1114  {147 + 768 - 64, 3}, //mgr3ft0
1115  {151 + 768 - 64, 3}, //mgr3ft1
1116  {155 + 768 - 64, 3}, //mgr3ft2
1117  {159 + 768 - 64, 3}, //mgr3ft3
1118  {163 + 768 - 64, 3}, //mgr3ft4
1119  {167 + 768 - 64, 3}, //mgr3ft5
1120  {171 + 768 - 64, 3}, //mgr3ft6
1121  {175 + 768 - 64, 3}, //mgr3ft7
1122  {179 + 768 - 64, 3}, //mgr3ft8
1123  {183 + 768 - 64, 3}, //mgr3ft9
1124  {187 + 768 - 64, 3}, //mgr3ft10
1125  {191 + 768 - 64, 3}, //mgr3ft11
1126  {195 + 768 - 64, 3}, //mgr3ft12
1127  {199 + 768 - 64, 3}, //mgr3ft13
1128  {203 + 768 - 64, 3}, //mgr3ft14
1129  {207 + 768 - 64, 3}, //mgr3ft15
1130  {147 + 1024 - 64, 3}, //mgr4ft0
1131  {151 + 1024 - 64, 3}, //mgr4ft1
1132  {155 + 1024 - 64, 3}, //mgr4ft2
1133  {159 + 1024 - 64, 3}, //mgr4ft3
1134  {163 + 1024 - 64, 3}, //mgr4ft4
1135  {167 + 1024 - 64, 3}, //mgr4ft5
1136  {171 + 1024 - 64, 3}, //mgr4ft6
1137  {175 + 1024 - 64, 3}, //mgr4ft7
1138  {179 + 1024 - 64, 3}, //mgr4ft8
1139  {183 + 1024 - 64, 3}, //mgr4ft9
1140  {187 + 1024 - 64, 3}, //mgr4ft10
1141  {191 + 1024 - 64, 3}, //mgr4ft11
1142  {195 + 1024 - 64, 3}, //mgr4ft12
1143  {199 + 1024 - 64, 3}, //mgr4ft13
1144  {203 + 1024 - 64, 3}, //mgr4ft14
1145  {207 + 1024 - 64, 3}, //mgr4ft15
1146 
1147 
1148  {15, 15}, //mgr0l0hit
1149  {31, 15}, //mgr0l1hit
1150 // 2031, 15, //mgr0l0hit
1151 // 2047, 15, //mgr0l1hit
1152  {47, 15}, //mgr0l2hit
1153  {63, 15}, //mgr0l3hit
1154  {79, 15}, //mgr0l4hit
1155  {15 + 256, 15}, //mgr1l0hit
1156  {31 + 256, 15}, //mgr1l1hit
1157  {47 + 256, 15}, //mgr1l2hit
1158  {63 + 256, 15}, //mgr1l3hit
1159  {79 + 256, 15}, //mgr1l4hit
1160  {15 + 512, 15}, //mgr2l0hit
1161  {31 + 512, 15}, //mgr2l1hit
1162  {47 + 512, 15}, //mgr2l2hit
1163  {63 + 512, 15}, //mgr2l3hit
1164  {79 + 512, 15}, //mgr2l4hit
1165  {15 + 768, 15}, //mgr3l0hit
1166  {31 + 768, 15}, //mgr3l1hit
1167  {47 + 768, 15}, //mgr3l2hit
1168  {63 + 768, 15}, //mgr3l3hit
1169  {79 + 768, 15}, //mgr3l4hit
1170  {15 + 1024, 15}, //mgr4l0hit
1171  {31 + 1024, 15}, //mgr4l1hit
1172  {47 + 1024, 15}, //mgr4l2hit
1173  {63 + 1024, 15}, //mgr4l3hit
1174  {79 + 1024, 15}, //mgr4l4hit
1175 
1176 
1177  {31, 31},
1178  {63, 31},
1179  {95, 31},
1180  {127, 31},
1181  {159, 31},
1182  {191, 31},
1183  {223, 31},
1184  {255, 31},
1185 
1186  {31 + 256, 31},
1187  {63 + 256, 31},
1188  {95 + 256, 31},
1189  {127 + 256, 31},
1190  {159 + 256, 31},
1191  {191 + 256, 31},
1192  {223 + 256, 31},
1193  {255 + 256, 31},
1194 
1195  {31 + 512, 31},
1196  {63 + 512, 31},
1197  {95 + 512, 31},
1198  {127 + 512, 31},
1199  {159 + 512, 31},
1200  {191 + 512, 31},
1201  {223 + 512, 31},
1202  {255 + 512, 31},
1203 
1204  {31 + 768, 31},
1205  {63 + 768, 31},
1206  {95 + 768, 31},
1207  {127 + 768, 31},
1208  {159 + 768, 31},
1209  {191 + 768, 31},
1210  {223 + 768, 31},
1211  {255 + 768, 31},
1212 
1213  {31 + 1024, 31},
1214  {63 + 1024, 31},
1215  {95 + 1024, 31},
1216  {127 + 1024, 31},
1217  {159 + 1024, 31},
1218  {191 + 1024, 31},
1219  {223 + 1024, 31},
1220  {255 + 1024, 31}
1221 
1222 
1223  };
1225  void
1226  setLeafPointersArray(TRGCDCTSFUnpackerStore* store, int** bitArray)
1227  {
1228  bitArray[e_c127 ] = &(store->m_c127);
1229 // bitArray[e_tshitmap] = &(store->m_tshitmap);
1230  bitArray[e_validtracker] = &(store->m_validtracker);
1231  bitArray[e_trackercc] = &(store->m_trackercc);
1232  bitArray[e_trackerhit0id] = &(store->m_trackerhit0id);
1233  bitArray[e_trackerhit0rt] = &(store->m_trackerhit0rt);
1234  bitArray[e_trackerhit0v] = &(store->m_trackerhit0v);
1235  bitArray[e_trackerhit1id] = &(store->m_trackerhit1id);
1236  bitArray[e_trackerhit1rt] = &(store->m_trackerhit1rt);
1237  bitArray[e_trackerhit1v] = &(store->m_trackerhit1v);
1238  bitArray[e_trackerhit2id] = &(store->m_trackerhit2id);
1239  bitArray[e_trackerhit2rt] = &(store->m_trackerhit2rt);
1240  bitArray[e_trackerhit2v] = &(store->m_trackerhit2v);
1241  bitArray[e_trackerhit3id] = &(store->m_trackerhit3id);
1242  bitArray[e_trackerhit3rt] = &(store->m_trackerhit3rt);
1243  bitArray[e_trackerhit3v] = &(store->m_trackerhit3v);
1244  bitArray[e_trackerhit4id] = &(store->m_trackerhit4id);
1245  bitArray[e_trackerhit4rt] = &(store->m_trackerhit4rt);
1246  bitArray[e_trackerhit4v] = &(store->m_trackerhit4v);
1247  bitArray[e_trackerhit5id] = &(store->m_trackerhit5id);
1248  bitArray[e_trackerhit5rt] = &(store->m_trackerhit5rt);
1249  bitArray[e_trackerhit5v] = &(store->m_trackerhit5v);
1250  bitArray[e_trackerhit6id] = &(store->m_trackerhit6id);
1251  bitArray[e_trackerhit6rt] = &(store->m_trackerhit6rt);
1252  bitArray[e_trackerhit6v] = &(store->m_trackerhit6v);
1253  bitArray[e_trackerhit7id] = &(store->m_trackerhit7id);
1254  bitArray[e_trackerhit7rt] = &(store->m_trackerhit7rt);
1255  bitArray[e_trackerhit7v] = &(store->m_trackerhit7v);
1256  bitArray[e_trackerhit8id] = &(store->m_trackerhit8id);
1257  bitArray[e_trackerhit8rt] = &(store->m_trackerhit8rt);
1258  bitArray[e_trackerhit8v] = &(store->m_trackerhit8v);
1259  bitArray[e_trackerhit9id] = &(store->m_trackerhit9id);
1260  bitArray[e_trackerhit9rt] = &(store->m_trackerhit9rt);
1261  bitArray[e_trackerhit9v] = &(store->m_trackerhit9v);
1262  bitArray[e_validetf] = & (store->m_validetf);
1263  bitArray[e_etfcc] = &(store->m_etfcc);
1264  bitArray[e_netfhit] = &(store->m_netfhit);
1265  bitArray[e_etfhit0] = &(store->m_etfhit0);
1266  bitArray[e_etfhit1] = &(store->m_etfhit1);
1267  bitArray[e_etfhit2] = &(store->m_etfhit2);
1268  bitArray[e_etfhit3] = &(store->m_etfhit3);
1269  bitArray[e_etfhit4] = &(store->m_etfhit4);
1270  bitArray[e_etfhit5] = &(store->m_etfhit5);
1271  bitArray[e_etfhit6] = &(store->m_etfhit6);
1272  bitArray[e_etfhit7] = &(store->m_etfhit7);
1273  bitArray[e_etfhit8] = &(store->m_etfhit8);
1274  bitArray[e_etfhit9] = &(store->m_etfhit9);
1275  bitArray[e_mgr0] = &(store->m_mgr0);
1276  bitArray[e_mgr0cc] = &(store->m_mgr0cc);
1277  bitArray[e_mgr1] = &(store->m_mgr1);
1278  bitArray[e_mgr1cc] = &(store->m_mgr1cc);
1279  bitArray[e_mgr2] = &(store->m_mgr2);
1280  bitArray[e_mgr2cc] = &(store->m_mgr2cc);
1281  bitArray[e_mgr3] = &(store->m_mgr3);
1282  bitArray[e_mgr3cc] = &(store->m_mgr3cc);
1283  bitArray[e_mgr4] = &(store->m_mgr4);
1284  bitArray[e_mgr4cc] = &(store->m_mgr4cc);
1285  bitArray[e_mgr5] = &(store->m_mgr5);
1286  bitArray[e_mgr5cc] = &(store->m_mgr5cc);
1287  bitArray[e_mgr0ft0] = &(store->m_mgr0ft0);
1288  bitArray[e_mgr0ft1] = &(store->m_mgr0ft1);
1289  bitArray[e_mgr0ft2] = &(store->m_mgr0ft2);
1290  bitArray[e_mgr0ft3] = &(store->m_mgr0ft3);
1291  bitArray[e_mgr0ft4] = &(store->m_mgr0ft4);
1292  bitArray[e_mgr0ft5] = &(store->m_mgr0ft5);
1293  bitArray[e_mgr0ft6] = &(store->m_mgr0ft6);
1294  bitArray[e_mgr0ft7] = &(store->m_mgr0ft7);
1295  bitArray[e_mgr0ft8] = &(store->m_mgr0ft8);
1296  bitArray[e_mgr0ft9] = &(store->m_mgr0ft9);
1297  bitArray[e_mgr0ft10] = &(store->m_mgr0ft10);
1298  bitArray[e_mgr0ft11] = &(store->m_mgr0ft11);
1299  bitArray[e_mgr0ft12] = &(store->m_mgr0ft12);
1300  bitArray[e_mgr0ft13] = &(store->m_mgr0ft13);
1301  bitArray[e_mgr0ft14] = &(store->m_mgr0ft14);
1302  bitArray[e_mgr0ft15] = &(store->m_mgr0ft15);
1303  bitArray[e_mgr1ft0] = &(store->m_mgr1ft0);
1304  bitArray[e_mgr1ft1] = &(store->m_mgr1ft1);
1305  bitArray[e_mgr1ft2] = &(store->m_mgr1ft2);
1306  bitArray[e_mgr1ft3] = &(store->m_mgr1ft3);
1307  bitArray[e_mgr1ft4] = &(store->m_mgr1ft4);
1308  bitArray[e_mgr1ft5] = &(store->m_mgr1ft5);
1309  bitArray[e_mgr1ft6] = &(store->m_mgr1ft6);
1310  bitArray[e_mgr1ft7] = &(store->m_mgr1ft7);
1311  bitArray[e_mgr1ft8] = &(store->m_mgr1ft8);
1312  bitArray[e_mgr1ft9] = &(store->m_mgr1ft9);
1313  bitArray[e_mgr1ft10] = &(store->m_mgr1ft10);
1314  bitArray[e_mgr1ft11] = &(store->m_mgr1ft11);
1315  bitArray[e_mgr1ft12] = &(store->m_mgr1ft12);
1316  bitArray[e_mgr1ft13] = &(store->m_mgr1ft13);
1317  bitArray[e_mgr1ft14] = &(store->m_mgr1ft14);
1318  bitArray[e_mgr1ft15] = &(store->m_mgr1ft15);
1319  bitArray[e_mgr2ft0] = &(store->m_mgr2ft0);
1320  bitArray[e_mgr2ft1] = &(store->m_mgr2ft1);
1321  bitArray[e_mgr2ft2] = &(store->m_mgr2ft2);
1322  bitArray[e_mgr2ft3] = &(store->m_mgr2ft3);
1323  bitArray[e_mgr2ft4] = &(store->m_mgr2ft4);
1324  bitArray[e_mgr2ft5] = &(store->m_mgr2ft5);
1325  bitArray[e_mgr2ft6] = &(store->m_mgr2ft6);
1326  bitArray[e_mgr2ft7] = &(store->m_mgr2ft7);
1327  bitArray[e_mgr2ft8] = &(store->m_mgr2ft8);
1328  bitArray[e_mgr2ft9] = &(store->m_mgr2ft9);
1329  bitArray[e_mgr2ft10] = &(store->m_mgr2ft10);
1330  bitArray[e_mgr2ft11] = &(store->m_mgr2ft11);
1331  bitArray[e_mgr2ft12] = &(store->m_mgr2ft12);
1332  bitArray[e_mgr2ft13] = &(store->m_mgr2ft13);
1333  bitArray[e_mgr2ft14] = &(store->m_mgr2ft14);
1334  bitArray[e_mgr2ft15] = &(store->m_mgr2ft15);
1335  bitArray[e_mgr3ft0] = &(store->m_mgr3ft0);
1336  bitArray[e_mgr3ft1] = &(store->m_mgr3ft1);
1337  bitArray[e_mgr3ft2] = &(store->m_mgr3ft2);
1338  bitArray[e_mgr3ft3] = &(store->m_mgr3ft3);
1339  bitArray[e_mgr3ft4] = &(store->m_mgr3ft4);
1340  bitArray[e_mgr3ft5] = &(store->m_mgr3ft5);
1341  bitArray[e_mgr3ft6] = &(store->m_mgr3ft6);
1342  bitArray[e_mgr3ft7] = &(store->m_mgr3ft7);
1343  bitArray[e_mgr3ft8] = &(store->m_mgr3ft8);
1344  bitArray[e_mgr3ft9] = &(store->m_mgr3ft9);
1345  bitArray[e_mgr3ft10] = &(store->m_mgr3ft10);
1346  bitArray[e_mgr3ft11] = &(store->m_mgr3ft11);
1347  bitArray[e_mgr3ft12] = &(store->m_mgr3ft12);
1348  bitArray[e_mgr3ft13] = &(store->m_mgr3ft13);
1349  bitArray[e_mgr3ft14] = &(store->m_mgr3ft14);
1350  bitArray[e_mgr3ft15] = &(store->m_mgr3ft15);
1351  bitArray[e_mgr4ft0] = &(store->m_mgr4ft0);
1352  bitArray[e_mgr4ft1] = &(store->m_mgr4ft1);
1353  bitArray[e_mgr4ft2] = &(store->m_mgr4ft2);
1354  bitArray[e_mgr4ft3] = &(store->m_mgr4ft3);
1355  bitArray[e_mgr4ft4] = &(store->m_mgr4ft4);
1356  bitArray[e_mgr4ft5] = &(store->m_mgr4ft5);
1357  bitArray[e_mgr4ft6] = &(store->m_mgr4ft6);
1358  bitArray[e_mgr4ft7] = &(store->m_mgr4ft7);
1359  bitArray[e_mgr4ft8] = &(store->m_mgr4ft8);
1360  bitArray[e_mgr4ft9] = &(store->m_mgr4ft9);
1361  bitArray[e_mgr4ft10] = &(store->m_mgr4ft10);
1362  bitArray[e_mgr4ft11] = &(store->m_mgr4ft11);
1363  bitArray[e_mgr4ft12] = &(store->m_mgr4ft12);
1364  bitArray[e_mgr4ft13] = &(store->m_mgr4ft13);
1365  bitArray[e_mgr4ft14] = &(store->m_mgr4ft14);
1366  bitArray[e_mgr4ft15] = &(store->m_mgr4ft15);
1367  bitArray[e_mgr0pt0] = &(store->m_mgr0pt0);
1368  bitArray[e_mgr0pt1] = &(store->m_mgr0pt1);
1369  bitArray[e_mgr0pt2] = &(store->m_mgr0pt2);
1370  bitArray[e_mgr0pt3] = &(store->m_mgr0pt3);
1371  bitArray[e_mgr0pt4] = &(store->m_mgr0pt4);
1372  bitArray[e_mgr0pt5] = &(store->m_mgr0pt5);
1373  bitArray[e_mgr0pt6] = &(store->m_mgr0pt6);
1374  bitArray[e_mgr0pt7] = &(store->m_mgr0pt7);
1375  bitArray[e_mgr0pt8] = &(store->m_mgr0pt8);
1376  bitArray[e_mgr0pt9] = &(store->m_mgr0pt9);
1377  bitArray[e_mgr0pt10] = &(store->m_mgr0pt10);
1378  bitArray[e_mgr0pt11] = &(store->m_mgr0pt11);
1379  bitArray[e_mgr0pt12] = &(store->m_mgr0pt12);
1380  bitArray[e_mgr0pt13] = &(store->m_mgr0pt13);
1381  bitArray[e_mgr0pt14] = &(store->m_mgr0pt14);
1382  bitArray[e_mgr0pt15] = &(store->m_mgr0pt15);
1383  bitArray[e_mgr1pt0] = &(store->m_mgr1pt0);
1384  bitArray[e_mgr1pt1] = &(store->m_mgr1pt1);
1385  bitArray[e_mgr1pt2] = &(store->m_mgr1pt2);
1386  bitArray[e_mgr1pt3] = &(store->m_mgr1pt3);
1387  bitArray[e_mgr1pt4] = &(store->m_mgr1pt4);
1388  bitArray[e_mgr1pt5] = &(store->m_mgr1pt5);
1389  bitArray[e_mgr1pt6] = &(store->m_mgr1pt6);
1390  bitArray[e_mgr1pt7] = &(store->m_mgr1pt7);
1391  bitArray[e_mgr1pt8] = &(store->m_mgr1pt8);
1392  bitArray[e_mgr1pt9] = &(store->m_mgr1pt9);
1393  bitArray[e_mgr1pt10] = &(store->m_mgr1pt10);
1394  bitArray[e_mgr1pt11] = &(store->m_mgr1pt11);
1395  bitArray[e_mgr1pt12] = &(store->m_mgr1pt12);
1396  bitArray[e_mgr1pt13] = &(store->m_mgr1pt13);
1397  bitArray[e_mgr1pt14] = &(store->m_mgr1pt14);
1398  bitArray[e_mgr1pt15] = &(store->m_mgr1pt15);
1399  bitArray[e_mgr2pt0] = &(store->m_mgr2pt0);
1400  bitArray[e_mgr2pt1] = &(store->m_mgr2pt1);
1401  bitArray[e_mgr2pt2] = &(store->m_mgr2pt2);
1402  bitArray[e_mgr2pt3] = &(store->m_mgr2pt3);
1403  bitArray[e_mgr2pt4] = &(store->m_mgr2pt4);
1404  bitArray[e_mgr2pt5] = &(store->m_mgr2pt5);
1405  bitArray[e_mgr2pt6] = &(store->m_mgr2pt6);
1406  bitArray[e_mgr2pt7] = &(store->m_mgr2pt7);
1407  bitArray[e_mgr2pt8] = &(store->m_mgr2pt8);
1408  bitArray[e_mgr2pt9] = &(store->m_mgr2pt9);
1409  bitArray[e_mgr2pt10] = &(store->m_mgr2pt10);
1410  bitArray[e_mgr2pt11] = &(store->m_mgr2pt11);
1411  bitArray[e_mgr2pt12] = &(store->m_mgr2pt12);
1412  bitArray[e_mgr2pt13] = &(store->m_mgr2pt13);
1413  bitArray[e_mgr2pt14] = &(store->m_mgr2pt14);
1414  bitArray[e_mgr2pt15] = &(store->m_mgr2pt15);
1415  bitArray[e_mgr3pt0] = &(store->m_mgr3pt0);
1416  bitArray[e_mgr3pt1] = &(store->m_mgr3pt1);
1417  bitArray[e_mgr3pt2] = &(store->m_mgr3pt2);
1418  bitArray[e_mgr3pt3] = &(store->m_mgr3pt3);
1419  bitArray[e_mgr3pt4] = &(store->m_mgr3pt4);
1420  bitArray[e_mgr3pt5] = &(store->m_mgr3pt5);
1421  bitArray[e_mgr3pt6] = &(store->m_mgr3pt6);
1422  bitArray[e_mgr3pt7] = &(store->m_mgr3pt7);
1423  bitArray[e_mgr3pt8] = &(store->m_mgr3pt8);
1424  bitArray[e_mgr3pt9] = &(store->m_mgr3pt9);
1425  bitArray[e_mgr3pt10] = &(store->m_mgr3pt10);
1426  bitArray[e_mgr3pt11] = &(store->m_mgr3pt11);
1427  bitArray[e_mgr3pt12] = &(store->m_mgr3pt12);
1428  bitArray[e_mgr3pt13] = &(store->m_mgr3pt13);
1429  bitArray[e_mgr3pt14] = &(store->m_mgr3pt14);
1430  bitArray[e_mgr3pt15] = &(store->m_mgr3pt15);
1431  bitArray[e_mgr4pt0] = &(store->m_mgr4pt0);
1432  bitArray[e_mgr4pt1] = &(store->m_mgr4pt1);
1433  bitArray[e_mgr4pt2] = &(store->m_mgr4pt2);
1434  bitArray[e_mgr4pt3] = &(store->m_mgr4pt3);
1435  bitArray[e_mgr4pt4] = &(store->m_mgr4pt4);
1436  bitArray[e_mgr4pt5] = &(store->m_mgr4pt5);
1437  bitArray[e_mgr4pt6] = &(store->m_mgr4pt6);
1438  bitArray[e_mgr4pt7] = &(store->m_mgr4pt7);
1439  bitArray[e_mgr4pt8] = &(store->m_mgr4pt8);
1440  bitArray[e_mgr4pt9] = &(store->m_mgr4pt9);
1441  bitArray[e_mgr4pt10] = &(store->m_mgr4pt10);
1442  bitArray[e_mgr4pt11] = &(store->m_mgr4pt11);
1443  bitArray[e_mgr4pt12] = &(store->m_mgr4pt12);
1444  bitArray[e_mgr4pt13] = &(store->m_mgr4pt13);
1445  bitArray[e_mgr4pt14] = &(store->m_mgr4pt14);
1446  bitArray[e_mgr4pt15] = &(store->m_mgr4pt15);
1447  bitArray[e_mgr0l0hit] = &(store->m_mgr0l0hit);
1448  bitArray[e_mgr0l1hit] = &(store->m_mgr0l1hit);
1449  bitArray[e_mgr0l2hit] = &(store->m_mgr0l2hit);
1450  bitArray[e_mgr0l3hit] = &(store->m_mgr0l3hit);
1451  bitArray[e_mgr0l4hit] = &(store->m_mgr0l4hit);
1452  bitArray[e_mgr1l0hit] = &(store->m_mgr1l0hit);
1453  bitArray[e_mgr1l1hit] = &(store->m_mgr1l1hit);
1454  bitArray[e_mgr1l2hit] = &(store->m_mgr1l2hit);
1455  bitArray[e_mgr1l3hit] = &(store->m_mgr1l3hit);
1456  bitArray[e_mgr1l4hit] = &(store->m_mgr1l4hit);
1457  bitArray[e_mgr2l0hit] = &(store->m_mgr2l0hit);
1458  bitArray[e_mgr2l1hit] = &(store->m_mgr2l1hit);
1459  bitArray[e_mgr2l2hit] = &(store->m_mgr2l2hit);
1460  bitArray[e_mgr2l3hit] = &(store->m_mgr2l3hit);
1461  bitArray[e_mgr2l4hit] = &(store->m_mgr2l4hit);
1462  bitArray[e_mgr3l0hit] = &(store->m_mgr3l0hit);
1463  bitArray[e_mgr3l1hit] = &(store->m_mgr3l1hit);
1464  bitArray[e_mgr3l2hit] = &(store->m_mgr3l2hit);
1465  bitArray[e_mgr3l3hit] = &(store->m_mgr3l3hit);
1466  bitArray[e_mgr3l4hit] = &(store->m_mgr3l4hit);
1467  bitArray[e_mgr4l0hit] = &(store->m_mgr4l0hit);
1468  bitArray[e_mgr4l1hit] = &(store->m_mgr4l1hit);
1469  bitArray[e_mgr4l2hit] = &(store->m_mgr4l2hit);
1470  bitArray[e_mgr4l3hit] = &(store->m_mgr4l3hit);
1471  bitArray[e_mgr4l4hit] = &(store->m_mgr4l4hit);
1472  bitArray[e_mgr0l0] = &(store->m_mgr0l0);
1473  bitArray[e_mgr0l1] = &(store->m_mgr0l1);
1474  bitArray[e_mgr0l2] = &(store->m_mgr0l2);
1475  bitArray[e_mgr0l3] = &(store->m_mgr0l3);
1476  bitArray[e_mgr0l4] = &(store->m_mgr0l4);
1477  bitArray[e_mgr0l5] = &(store->m_mgr0l5);
1478  bitArray[e_mgr0l6] = &(store->m_mgr0l6);
1479  bitArray[e_mgr0l7] = &(store->m_mgr0l7);
1480  bitArray[e_mgr1l0] = &(store->m_mgr1l0);
1481  bitArray[e_mgr1l1] = &(store->m_mgr1l1);
1482  bitArray[e_mgr1l2] = &(store->m_mgr1l2);
1483  bitArray[e_mgr1l3] = &(store->m_mgr1l3);
1484  bitArray[e_mgr1l4] = &(store->m_mgr1l4);
1485  bitArray[e_mgr1l5] = &(store->m_mgr1l5);
1486  bitArray[e_mgr1l6] = &(store->m_mgr1l6);
1487  bitArray[e_mgr1l7] = &(store->m_mgr1l7);
1488  bitArray[e_mgr2l0] = &(store->m_mgr2l0);
1489  bitArray[e_mgr2l1] = &(store->m_mgr2l1);
1490  bitArray[e_mgr2l2] = &(store->m_mgr2l2);
1491  bitArray[e_mgr2l3] = &(store->m_mgr2l3);
1492  bitArray[e_mgr2l4] = &(store->m_mgr2l4);
1493  bitArray[e_mgr2l5] = &(store->m_mgr2l5);
1494  bitArray[e_mgr2l6] = &(store->m_mgr2l6);
1495  bitArray[e_mgr2l7] = &(store->m_mgr2l7);
1496  bitArray[e_mgr3l0] = &(store->m_mgr3l0);
1497  bitArray[e_mgr3l1] = &(store->m_mgr3l1);
1498  bitArray[e_mgr3l2] = &(store->m_mgr3l2);
1499  bitArray[e_mgr3l3] = &(store->m_mgr3l3);
1500  bitArray[e_mgr3l4] = &(store->m_mgr3l4);
1501  bitArray[e_mgr3l5] = &(store->m_mgr3l5);
1502  bitArray[e_mgr3l6] = &(store->m_mgr3l6);
1503  bitArray[e_mgr3l7] = &(store->m_mgr3l7);
1504  bitArray[e_mgr4l0] = &(store->m_mgr4l0);
1505  bitArray[e_mgr4l1] = &(store->m_mgr4l1);
1506  bitArray[e_mgr4l2] = &(store->m_mgr4l2);
1507  bitArray[e_mgr4l3] = &(store->m_mgr4l3);
1508  bitArray[e_mgr4l4] = &(store->m_mgr4l4);
1509  bitArray[e_mgr4l5] = &(store->m_mgr4l5);
1510  bitArray[e_mgr4l6] = &(store->m_mgr4l6);
1511  bitArray[e_mgr4l7] = &(store->m_mgr4l7);
1512  bitArray[e_evt] = &(store->m_evt);
1513  bitArray[e_clk] = &(store->m_clk);
1514  bitArray[e_firmid ] = &(store->m_firmid);
1515  bitArray[e_firmver ] = &(store->m_firmver);
1516  }
1517 
1519  void
1520  setLeafPointersArray_4k15ts(TRGCDCTSFUnpackerStore* store, int** bitArray)
1521  {
1522  bitArray[e1_c127 ] = &(store->m_c127);
1523 // bitArray[e1_tshitmap] = &(store->m_tshitmap);
1524  bitArray[e1_validtracker] = &(store->m_validtracker);
1525  bitArray[e1_trackercc] = &(store->m_trackercc);
1526  bitArray[e1_trackerhit0id] = &(store->m_trackerhit0id);
1527  bitArray[e1_trackerhit0rt] = &(store->m_trackerhit0rt);
1528  bitArray[e1_trackerhit0v] = &(store->m_trackerhit0v);
1529  bitArray[e1_trackerhit1id] = &(store->m_trackerhit1id);
1530  bitArray[e1_trackerhit1rt] = &(store->m_trackerhit1rt);
1531  bitArray[e1_trackerhit1v] = &(store->m_trackerhit1v);
1532  bitArray[e1_trackerhit2id] = &(store->m_trackerhit2id);
1533  bitArray[e1_trackerhit2rt] = &(store->m_trackerhit2rt);
1534  bitArray[e1_trackerhit2v] = &(store->m_trackerhit2v);
1535  bitArray[e1_trackerhit3id] = &(store->m_trackerhit3id);
1536  bitArray[e1_trackerhit3rt] = &(store->m_trackerhit3rt);
1537  bitArray[e1_trackerhit3v] = &(store->m_trackerhit3v);
1538  bitArray[e1_trackerhit4id] = &(store->m_trackerhit4id);
1539  bitArray[e1_trackerhit4rt] = &(store->m_trackerhit4rt);
1540  bitArray[e1_trackerhit4v] = &(store->m_trackerhit4v);
1541  bitArray[e1_trackerhit5id] = &(store->m_trackerhit5id);
1542  bitArray[e1_trackerhit5rt] = &(store->m_trackerhit5rt);
1543  bitArray[e1_trackerhit5v] = &(store->m_trackerhit5v);
1544  bitArray[e1_trackerhit6id] = &(store->m_trackerhit6id);
1545  bitArray[e1_trackerhit6rt] = &(store->m_trackerhit6rt);
1546  bitArray[e1_trackerhit6v] = &(store->m_trackerhit6v);
1547  bitArray[e1_trackerhit7id] = &(store->m_trackerhit7id);
1548  bitArray[e1_trackerhit7rt] = &(store->m_trackerhit7rt);
1549  bitArray[e1_trackerhit7v] = &(store->m_trackerhit7v);
1550  bitArray[e1_trackerhit8id] = &(store->m_trackerhit8id);
1551  bitArray[e1_trackerhit8rt] = &(store->m_trackerhit8rt);
1552  bitArray[e1_trackerhit8v] = &(store->m_trackerhit8v);
1553  bitArray[e1_trackerhit9id] = &(store->m_trackerhit9id);
1554  bitArray[e1_trackerhit9rt] = &(store->m_trackerhit9rt);
1555  bitArray[e1_trackerhit9v] = &(store->m_trackerhit9v);
1556  bitArray[e1_trackerhit10id] = &(store->m_trackerhit10id);
1557  bitArray[e1_trackerhit10rt] = &(store->m_trackerhit10rt);
1558  bitArray[e1_trackerhit10v] = &(store->m_trackerhit10v);
1559  bitArray[e1_trackerhit11id] = &(store->m_trackerhit11id);
1560  bitArray[e1_trackerhit11rt] = &(store->m_trackerhit11rt);
1561  bitArray[e1_trackerhit11v] = &(store->m_trackerhit11v);
1562  bitArray[e1_trackerhit12id] = &(store->m_trackerhit12id);
1563  bitArray[e1_trackerhit12rt] = &(store->m_trackerhit12rt);
1564  bitArray[e1_trackerhit12v] = &(store->m_trackerhit12v);
1565  bitArray[e1_trackerhit13id] = &(store->m_trackerhit13id);
1566  bitArray[e1_trackerhit13rt] = &(store->m_trackerhit13rt);
1567  bitArray[e1_trackerhit13v] = &(store->m_trackerhit13v);
1568  bitArray[e1_trackerhit14id] = &(store->m_trackerhit14id);
1569  bitArray[e1_trackerhit14rt] = &(store->m_trackerhit14rt);
1570  bitArray[e1_trackerhit14v] = &(store->m_trackerhit14v);
1571  bitArray[e1_validetf] = & (store->m_validetf);
1572  bitArray[e1_etfcc] = &(store->m_etfcc);
1573  bitArray[e1_netfhit] = &(store->m_netfhit);
1574  bitArray[e1_etfhit0] = &(store->m_etfhit0);
1575  bitArray[e1_etfhit1] = &(store->m_etfhit1);
1576  bitArray[e1_etfhit2] = &(store->m_etfhit2);
1577  bitArray[e1_etfhit3] = &(store->m_etfhit3);
1578  bitArray[e1_etfhit4] = &(store->m_etfhit4);
1579  bitArray[e1_etfhit5] = &(store->m_etfhit5);
1580  bitArray[e1_etfhit6] = &(store->m_etfhit6);
1581  bitArray[e1_etfhit7] = &(store->m_etfhit7);
1582  bitArray[e1_etfhit8] = &(store->m_etfhit8);
1583  bitArray[e1_etfhit9] = &(store->m_etfhit9);
1584  bitArray[e1_mgr0] = &(store->m_mgr0);
1585  bitArray[e1_mgr0cc] = &(store->m_mgr0cc);
1586  bitArray[e1_mgr1] = &(store->m_mgr1);
1587  bitArray[e1_mgr1cc] = &(store->m_mgr1cc);
1588  bitArray[e1_mgr2] = &(store->m_mgr2);
1589  bitArray[e1_mgr2cc] = &(store->m_mgr2cc);
1590  bitArray[e1_mgr3] = &(store->m_mgr3);
1591  bitArray[e1_mgr3cc] = &(store->m_mgr3cc);
1592  bitArray[e1_mgr4] = &(store->m_mgr4);
1593  bitArray[e1_mgr4cc] = &(store->m_mgr4cc);
1594  bitArray[e1_mgr5] = &(store->m_mgr5);
1595  bitArray[e1_mgr5cc] = &(store->m_mgr5cc);
1596  bitArray[e1_mgr0ft0] = &(store->m_mgr0ft0);
1597  bitArray[e1_mgr0ft1] = &(store->m_mgr0ft1);
1598  bitArray[e1_mgr0ft2] = &(store->m_mgr0ft2);
1599  bitArray[e1_mgr0ft3] = &(store->m_mgr0ft3);
1600  bitArray[e1_mgr0ft4] = &(store->m_mgr0ft4);
1601  bitArray[e1_mgr0ft5] = &(store->m_mgr0ft5);
1602  bitArray[e1_mgr0ft6] = &(store->m_mgr0ft6);
1603  bitArray[e1_mgr0ft7] = &(store->m_mgr0ft7);
1604  bitArray[e1_mgr0ft8] = &(store->m_mgr0ft8);
1605  bitArray[e1_mgr0ft9] = &(store->m_mgr0ft9);
1606  bitArray[e1_mgr0ft10] = &(store->m_mgr0ft10);
1607  bitArray[e1_mgr0ft11] = &(store->m_mgr0ft11);
1608  bitArray[e1_mgr0ft12] = &(store->m_mgr0ft12);
1609  bitArray[e1_mgr0ft13] = &(store->m_mgr0ft13);
1610  bitArray[e1_mgr0ft14] = &(store->m_mgr0ft14);
1611  bitArray[e1_mgr0ft15] = &(store->m_mgr0ft15);
1612  bitArray[e1_mgr1ft0] = &(store->m_mgr1ft0);
1613  bitArray[e1_mgr1ft1] = &(store->m_mgr1ft1);
1614  bitArray[e1_mgr1ft2] = &(store->m_mgr1ft2);
1615  bitArray[e1_mgr1ft3] = &(store->m_mgr1ft3);
1616  bitArray[e1_mgr1ft4] = &(store->m_mgr1ft4);
1617  bitArray[e1_mgr1ft5] = &(store->m_mgr1ft5);
1618  bitArray[e1_mgr1ft6] = &(store->m_mgr1ft6);
1619  bitArray[e1_mgr1ft7] = &(store->m_mgr1ft7);
1620  bitArray[e1_mgr1ft8] = &(store->m_mgr1ft8);
1621  bitArray[e1_mgr1ft9] = &(store->m_mgr1ft9);
1622  bitArray[e1_mgr1ft10] = &(store->m_mgr1ft10);
1623  bitArray[e1_mgr1ft11] = &(store->m_mgr1ft11);
1624  bitArray[e1_mgr1ft12] = &(store->m_mgr1ft12);
1625  bitArray[e1_mgr1ft13] = &(store->m_mgr1ft13);
1626  bitArray[e1_mgr1ft14] = &(store->m_mgr1ft14);
1627  bitArray[e1_mgr1ft15] = &(store->m_mgr1ft15);
1628  bitArray[e1_mgr2ft0] = &(store->m_mgr2ft0);
1629  bitArray[e1_mgr2ft1] = &(store->m_mgr2ft1);
1630  bitArray[e1_mgr2ft2] = &(store->m_mgr2ft2);
1631  bitArray[e1_mgr2ft3] = &(store->m_mgr2ft3);
1632  bitArray[e1_mgr2ft4] = &(store->m_mgr2ft4);
1633  bitArray[e1_mgr2ft5] = &(store->m_mgr2ft5);
1634  bitArray[e1_mgr2ft6] = &(store->m_mgr2ft6);
1635  bitArray[e1_mgr2ft7] = &(store->m_mgr2ft7);
1636  bitArray[e1_mgr2ft8] = &(store->m_mgr2ft8);
1637  bitArray[e1_mgr2ft9] = &(store->m_mgr2ft9);
1638  bitArray[e1_mgr2ft10] = &(store->m_mgr2ft10);
1639  bitArray[e1_mgr2ft11] = &(store->m_mgr2ft11);
1640  bitArray[e1_mgr2ft12] = &(store->m_mgr2ft12);
1641  bitArray[e1_mgr2ft13] = &(store->m_mgr2ft13);
1642  bitArray[e1_mgr2ft14] = &(store->m_mgr2ft14);
1643  bitArray[e1_mgr2ft15] = &(store->m_mgr2ft15);
1644  bitArray[e1_mgr3ft0] = &(store->m_mgr3ft0);
1645  bitArray[e1_mgr3ft1] = &(store->m_mgr3ft1);
1646  bitArray[e1_mgr3ft2] = &(store->m_mgr3ft2);
1647  bitArray[e1_mgr3ft3] = &(store->m_mgr3ft3);
1648  bitArray[e1_mgr3ft4] = &(store->m_mgr3ft4);
1649  bitArray[e1_mgr3ft5] = &(store->m_mgr3ft5);
1650  bitArray[e1_mgr3ft6] = &(store->m_mgr3ft6);
1651  bitArray[e1_mgr3ft7] = &(store->m_mgr3ft7);
1652  bitArray[e1_mgr3ft8] = &(store->m_mgr3ft8);
1653  bitArray[e1_mgr3ft9] = &(store->m_mgr3ft9);
1654  bitArray[e1_mgr3ft10] = &(store->m_mgr3ft10);
1655  bitArray[e1_mgr3ft11] = &(store->m_mgr3ft11);
1656  bitArray[e1_mgr3ft12] = &(store->m_mgr3ft12);
1657  bitArray[e1_mgr3ft13] = &(store->m_mgr3ft13);
1658  bitArray[e1_mgr3ft14] = &(store->m_mgr3ft14);
1659  bitArray[e1_mgr3ft15] = &(store->m_mgr3ft15);
1660  bitArray[e1_mgr4ft0] = &(store->m_mgr4ft0);
1661  bitArray[e1_mgr4ft1] = &(store->m_mgr4ft1);
1662  bitArray[e1_mgr4ft2] = &(store->m_mgr4ft2);
1663  bitArray[e1_mgr4ft3] = &(store->m_mgr4ft3);
1664  bitArray[e1_mgr4ft4] = &(store->m_mgr4ft4);
1665  bitArray[e1_mgr4ft5] = &(store->m_mgr4ft5);
1666  bitArray[e1_mgr4ft6] = &(store->m_mgr4ft6);
1667  bitArray[e1_mgr4ft7] = &(store->m_mgr4ft7);
1668  bitArray[e1_mgr4ft8] = &(store->m_mgr4ft8);
1669  bitArray[e1_mgr4ft9] = &(store->m_mgr4ft9);
1670  bitArray[e1_mgr4ft10] = &(store->m_mgr4ft10);
1671  bitArray[e1_mgr4ft11] = &(store->m_mgr4ft11);
1672  bitArray[e1_mgr4ft12] = &(store->m_mgr4ft12);
1673  bitArray[e1_mgr4ft13] = &(store->m_mgr4ft13);
1674  bitArray[e1_mgr4ft14] = &(store->m_mgr4ft14);
1675  bitArray[e1_mgr4ft15] = &(store->m_mgr4ft15);
1676  bitArray[e1_mgr0pt0] = &(store->m_mgr0pt0);
1677  bitArray[e1_mgr0pt1] = &(store->m_mgr0pt1);
1678  bitArray[e1_mgr0pt2] = &(store->m_mgr0pt2);
1679  bitArray[e1_mgr0pt3] = &(store->m_mgr0pt3);
1680  bitArray[e1_mgr0pt4] = &(store->m_mgr0pt4);
1681  bitArray[e1_mgr0pt5] = &(store->m_mgr0pt5);
1682  bitArray[e1_mgr0pt6] = &(store->m_mgr0pt6);
1683  bitArray[e1_mgr0pt7] = &(store->m_mgr0pt7);
1684  bitArray[e1_mgr0pt8] = &(store->m_mgr0pt8);
1685  bitArray[e1_mgr0pt9] = &(store->m_mgr0pt9);
1686  bitArray[e1_mgr0pt10] = &(store->m_mgr0pt10);
1687  bitArray[e1_mgr0pt11] = &(store->m_mgr0pt11);
1688  bitArray[e1_mgr0pt12] = &(store->m_mgr0pt12);
1689  bitArray[e1_mgr0pt13] = &(store->m_mgr0pt13);
1690  bitArray[e1_mgr0pt14] = &(store->m_mgr0pt14);
1691  bitArray[e1_mgr0pt15] = &(store->m_mgr0pt15);
1692  bitArray[e1_mgr1pt0] = &(store->m_mgr1pt0);
1693  bitArray[e1_mgr1pt1] = &(store->m_mgr1pt1);
1694  bitArray[e1_mgr1pt2] = &(store->m_mgr1pt2);
1695  bitArray[e1_mgr1pt3] = &(store->m_mgr1pt3);
1696  bitArray[e1_mgr1pt4] = &(store->m_mgr1pt4);
1697  bitArray[e1_mgr1pt5] = &(store->m_mgr1pt5);
1698  bitArray[e1_mgr1pt6] = &(store->m_mgr1pt6);
1699  bitArray[e1_mgr1pt7] = &(store->m_mgr1pt7);
1700  bitArray[e1_mgr1pt8] = &(store->m_mgr1pt8);
1701  bitArray[e1_mgr1pt9] = &(store->m_mgr1pt9);
1702  bitArray[e1_mgr1pt10] = &(store->m_mgr1pt10);
1703  bitArray[e1_mgr1pt11] = &(store->m_mgr1pt11);
1704  bitArray[e1_mgr1pt12] = &(store->m_mgr1pt12);
1705  bitArray[e1_mgr1pt13] = &(store->m_mgr1pt13);
1706  bitArray[e1_mgr1pt14] = &(store->m_mgr1pt14);
1707  bitArray[e1_mgr1pt15] = &(store->m_mgr1pt15);
1708  bitArray[e1_mgr2pt0] = &(store->m_mgr2pt0);
1709  bitArray[e1_mgr2pt1] = &(store->m_mgr2pt1);
1710  bitArray[e1_mgr2pt2] = &(store->m_mgr2pt2);
1711  bitArray[e1_mgr2pt3] = &(store->m_mgr2pt3);
1712  bitArray[e1_mgr2pt4] = &(store->m_mgr2pt4);
1713  bitArray[e1_mgr2pt5] = &(store->m_mgr2pt5);
1714  bitArray[e1_mgr2pt6] = &(store->m_mgr2pt6);
1715  bitArray[e1_mgr2pt7] = &(store->m_mgr2pt7);
1716  bitArray[e1_mgr2pt8] = &(store->m_mgr2pt8);
1717  bitArray[e1_mgr2pt9] = &(store->m_mgr2pt9);
1718  bitArray[e1_mgr2pt10] = &(store->m_mgr2pt10);
1719  bitArray[e1_mgr2pt11] = &(store->m_mgr2pt11);
1720  bitArray[e1_mgr2pt12] = &(store->m_mgr2pt12);
1721  bitArray[e1_mgr2pt13] = &(store->m_mgr2pt13);
1722  bitArray[e1_mgr2pt14] = &(store->m_mgr2pt14);
1723  bitArray[e1_mgr2pt15] = &(store->m_mgr2pt15);
1724  bitArray[e1_mgr3pt0] = &(store->m_mgr3pt0);
1725  bitArray[e1_mgr3pt1] = &(store->m_mgr3pt1);
1726  bitArray[e1_mgr3pt2] = &(store->m_mgr3pt2);
1727  bitArray[e1_mgr3pt3] = &(store->m_mgr3pt3);
1728  bitArray[e1_mgr3pt4] = &(store->m_mgr3pt4);
1729  bitArray[e1_mgr3pt5] = &(store->m_mgr3pt5);
1730  bitArray[e1_mgr3pt6] = &(store->m_mgr3pt6);
1731  bitArray[e1_mgr3pt7] = &(store->m_mgr3pt7);
1732  bitArray[e1_mgr3pt8] = &(store->m_mgr3pt8);
1733  bitArray[e1_mgr3pt9] = &(store->m_mgr3pt9);
1734  bitArray[e1_mgr3pt10] = &(store->m_mgr3pt10);
1735  bitArray[e1_mgr3pt11] = &(store->m_mgr3pt11);
1736  bitArray[e1_mgr3pt12] = &(store->m_mgr3pt12);
1737  bitArray[e1_mgr3pt13] = &(store->m_mgr3pt13);
1738  bitArray[e1_mgr3pt14] = &(store->m_mgr3pt14);
1739  bitArray[e1_mgr3pt15] = &(store->m_mgr3pt15);
1740  bitArray[e1_mgr4pt0] = &(store->m_mgr4pt0);
1741  bitArray[e1_mgr4pt1] = &(store->m_mgr4pt1);
1742  bitArray[e1_mgr4pt2] = &(store->m_mgr4pt2);
1743  bitArray[e1_mgr4pt3] = &(store->m_mgr4pt3);
1744  bitArray[e1_mgr4pt4] = &(store->m_mgr4pt4);
1745  bitArray[e1_mgr4pt5] = &(store->m_mgr4pt5);
1746  bitArray[e1_mgr4pt6] = &(store->m_mgr4pt6);
1747  bitArray[e1_mgr4pt7] = &(store->m_mgr4pt7);
1748  bitArray[e1_mgr4pt8] = &(store->m_mgr4pt8);
1749  bitArray[e1_mgr4pt9] = &(store->m_mgr4pt9);
1750  bitArray[e1_mgr4pt10] = &(store->m_mgr4pt10);
1751  bitArray[e1_mgr4pt11] = &(store->m_mgr4pt11);
1752  bitArray[e1_mgr4pt12] = &(store->m_mgr4pt12);
1753  bitArray[e1_mgr4pt13] = &(store->m_mgr4pt13);
1754  bitArray[e1_mgr4pt14] = &(store->m_mgr4pt14);
1755  bitArray[e1_mgr4pt15] = &(store->m_mgr4pt15);
1756  bitArray[e1_mgr0l0hit] = &(store->m_mgr0l0hit);
1757  bitArray[e1_mgr0l1hit] = &(store->m_mgr0l1hit);
1758  bitArray[e1_mgr0l2hit] = &(store->m_mgr0l2hit);
1759  bitArray[e1_mgr0l3hit] = &(store->m_mgr0l3hit);
1760  bitArray[e1_mgr0l4hit] = &(store->m_mgr0l4hit);
1761  bitArray[e1_mgr1l0hit] = &(store->m_mgr1l0hit);
1762  bitArray[e1_mgr1l1hit] = &(store->m_mgr1l1hit);
1763  bitArray[e1_mgr1l2hit] = &(store->m_mgr1l2hit);
1764  bitArray[e1_mgr1l3hit] = &(store->m_mgr1l3hit);
1765  bitArray[e1_mgr1l4hit] = &(store->m_mgr1l4hit);
1766  bitArray[e1_mgr2l0hit] = &(store->m_mgr2l0hit);
1767  bitArray[e1_mgr2l1hit] = &(store->m_mgr2l1hit);
1768  bitArray[e1_mgr2l2hit] = &(store->m_mgr2l2hit);
1769  bitArray[e1_mgr2l3hit] = &(store->m_mgr2l3hit);
1770  bitArray[e1_mgr2l4hit] = &(store->m_mgr2l4hit);
1771  bitArray[e1_mgr3l0hit] = &(store->m_mgr3l0hit);
1772  bitArray[e1_mgr3l1hit] = &(store->m_mgr3l1hit);
1773  bitArray[e1_mgr3l2hit] = &(store->m_mgr3l2hit);
1774  bitArray[e1_mgr3l3hit] = &(store->m_mgr3l3hit);
1775  bitArray[e1_mgr3l4hit] = &(store->m_mgr3l4hit);
1776  bitArray[e1_mgr4l0hit] = &(store->m_mgr4l0hit);
1777  bitArray[e1_mgr4l1hit] = &(store->m_mgr4l1hit);
1778  bitArray[e1_mgr4l2hit] = &(store->m_mgr4l2hit);
1779  bitArray[e1_mgr4l3hit] = &(store->m_mgr4l3hit);
1780  bitArray[e1_mgr4l4hit] = &(store->m_mgr4l4hit);
1781  bitArray[e1_mgr0l0] = &(store->m_mgr0l0);
1782  bitArray[e1_mgr0l1] = &(store->m_mgr0l1);
1783  bitArray[e1_mgr0l2] = &(store->m_mgr0l2);
1784  bitArray[e1_mgr0l3] = &(store->m_mgr0l3);
1785  bitArray[e1_mgr0l4] = &(store->m_mgr0l4);
1786  bitArray[e1_mgr0l5] = &(store->m_mgr0l5);
1787  bitArray[e1_mgr0l6] = &(store->m_mgr0l6);
1788  bitArray[e1_mgr0l7] = &(store->m_mgr0l7);
1789  bitArray[e1_mgr1l0] = &(store->m_mgr1l0);
1790  bitArray[e1_mgr1l1] = &(store->m_mgr1l1);
1791  bitArray[e1_mgr1l2] = &(store->m_mgr1l2);
1792  bitArray[e1_mgr1l3] = &(store->m_mgr1l3);
1793  bitArray[e1_mgr1l4] = &(store->m_mgr1l4);
1794  bitArray[e1_mgr1l5] = &(store->m_mgr1l5);
1795  bitArray[e1_mgr1l6] = &(store->m_mgr1l6);
1796  bitArray[e1_mgr1l7] = &(store->m_mgr1l7);
1797  bitArray[e1_mgr2l0] = &(store->m_mgr2l0);
1798  bitArray[e1_mgr2l1] = &(store->m_mgr2l1);
1799  bitArray[e1_mgr2l2] = &(store->m_mgr2l2);
1800  bitArray[e1_mgr2l3] = &(store->m_mgr2l3);
1801  bitArray[e1_mgr2l4] = &(store->m_mgr2l4);
1802  bitArray[e1_mgr2l5] = &(store->m_mgr2l5);
1803  bitArray[e1_mgr2l6] = &(store->m_mgr2l6);
1804  bitArray[e1_mgr2l7] = &(store->m_mgr2l7);
1805  bitArray[e1_mgr3l0] = &(store->m_mgr3l0);
1806  bitArray[e1_mgr3l1] = &(store->m_mgr3l1);
1807  bitArray[e1_mgr3l2] = &(store->m_mgr3l2);
1808  bitArray[e1_mgr3l3] = &(store->m_mgr3l3);
1809  bitArray[e1_mgr3l4] = &(store->m_mgr3l4);
1810  bitArray[e1_mgr3l5] = &(store->m_mgr3l5);
1811  bitArray[e1_mgr3l6] = &(store->m_mgr3l6);
1812  bitArray[e1_mgr3l7] = &(store->m_mgr3l7);
1813  bitArray[e1_mgr4l0] = &(store->m_mgr4l0);
1814  bitArray[e1_mgr4l1] = &(store->m_mgr4l1);
1815  bitArray[e1_mgr4l2] = &(store->m_mgr4l2);
1816  bitArray[e1_mgr4l3] = &(store->m_mgr4l3);
1817  bitArray[e1_mgr4l4] = &(store->m_mgr4l4);
1818  bitArray[e1_mgr4l5] = &(store->m_mgr4l5);
1819  bitArray[e1_mgr4l6] = &(store->m_mgr4l6);
1820  bitArray[e1_mgr4l7] = &(store->m_mgr4l7);
1821  bitArray[e1_evt] = &(store->m_evt);
1822  bitArray[e1_clk] = &(store->m_clk);
1823  bitArray[e1_firmid ] = &(store->m_firmid);
1824  bitArray[e1_firmver ] = &(store->m_firmver);
1825  }
1826 
1827 
1830 
1831  public:
1832 
1835 
1837  virtual ~TRGCDCTSFUnpackerModule();
1838 
1840  virtual void initialize() override;
1841 
1843  virtual void event() override;
1844 
1846  virtual void terminate() override;
1847 
1849  virtual void beginRun() override;
1850 
1852  virtual void endRun() override;
1853 
1855  std::string version() const;
1856 
1858  virtual void fillTreeCDCTSF(int* buf, int evt);
1859 
1861  virtual void fillTreeCDCTSF_4k15ts(int* buf, int evt);
1862 
1863  private:
1864 
1867 
1869  //int m_BitMap[nLeafs][2];
1871  int m_nBits;
1873  int m_nword;
1874 
1876  unsigned int m_copper_address;
1878  unsigned int m_copper_ab;
1880  unsigned int m_pcie40_address;
1882  unsigned int m_pcie40_ch;
1885 
1888 
1890  unsigned _exp;
1892  unsigned _run;
1893 
1894  };
1895  }
1897 } // end namespace Belle2
Base class for Modules.
Definition: Module.h:72
Accessor to arrays stored in the data store.
Definition: StoreArray.h:113
StoreArray< TRGCDCTSFUnpackerStore > storeAry
StoreArray of TRGCDCTSFUnpackerStore.
virtual void fillTreeCDCTSF(int *buf, int evt)
Unpacker main function.
virtual void initialize() override
Initilizes TRGCDCTSFUnpackerModuel.
virtual void event() override
Called event by event.
virtual void endRun() override
Called when run ended.
unsigned int m_pcie40_ch
channel ID of PCIe40 module
virtual void terminate() override
Called when processing ended.
virtual void beginRun() override
Called when new run started.
unsigned int m_pcie40_address
address of PCIe40 module
unsigned int m_copper_address
address of copper module
std::string version() const
returns version of TRGCDCTSFUnpackerModule.
virtual void fillTreeCDCTSF_4k15ts(int *buf, int evt)
Unpacker main function for 4k, 15 TS version.
unsigned int m_copper_ab
address of copper module
Abstract base class for different kinds of events.