Belle II Software development
TRGGRLUnpackerModule.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#ifndef TRGGRLUNPACKER_H
10#define TRGGRLUNPACKER_H
11
12#include <string>
13#include <vector>
14
15#include "rawdata/dataobjects/RawTRG.h"
16#include "trg/grl/dataobjects/TRGGRLUnpackerStore.h"
17
18#include <framework/core/Module.h>
19#include <framework/datastore/StoreArray.h>
20#include <framework/datastore/StoreObjPtr.h>
21
22namespace Belle2 {
28 namespace TRGGRLUNPACKERSPACE {
29
31 const int nLeafs = 128 + 7 + 32 + 7;
33 const int nLeafsExtra = 7;
35 const int nClks = 1 ;
37 const int nBits = 2048;
39 const char* LeafNames[nLeafs + nLeafsExtra] = {
40 "2GeV_15",
41 "2GeV_14",
42 "2GeV_13",
43 "2GeV_12",
44 "2GeV_11",
45 "2GeV_10",
46 "2GeV_9",
47 "2GeV_8",
48 "2GeV_7",
49 "2GeV_6",
50 "2GeV_5",
51 "2GeV_4",
52 "2GeV_3",
53 "2GeV_2",
54 "2GeV_1",
55 "2GeV_0",
56 "1GeV_15",
57 "1GeV_14",
58 "1GeV_13",
59 "1GeV_12",
60 "1GeV_11",
61 "1GeV_10",
62 "1GeV_9",
63 "1GeV_8",
64 "1GeV_7",
65 "1GeV_6",
66 "1GeV_5",
67 "1GeV_4",
68 "1GeV_3",
69 "1GeV_2",
70 "1GeV_1",
71 "1GeV_0",
72 "wirecnt_tsf8",
73 "wirecnt_tsf7",
74 "wirecnt_tsf6",
75 "wirecnt_tsf5",
76 "wirecnt_tsf4",
77 "wirecnt_tsf3",
78 "wirecnt_tsf2",
79 "wirecnt_tsf1",
80 "wirecnt_tsf0",
81 "theta_11",
82 "phi_11",
83 "t_11",
84 "E_11",
85 "theta_10",
86 "phi_10",
87 "t_10",
88 "E_10",
89 "theta_9",
90 "phi_9",
91 "t_9",
92 "E_9",
93 "theta_8",
94 "phi_8",
95 "t_8",
96 "E_8",
97 "theta_7",
98 "phi_7",
99 "t_7",
100 "E_7",
101 "theta_6",
102 "phi_6",
103 "t_6",
104 "E_6",
105 "X_1",
106 "N_cluster_1",
107 "ECL_trg_1",
108 "theta_5",
109 "phi_5",
110 "t_5",
111 "E_5",
112 "theta_4",
113 "phi_4",
114 "t_4",
115 "E_4",
116 "theta_3",
117 "phi_3",
118 "t_3",
119 "E_3",
120 "theta_2",
121 "phi_2",
122 "t_2",
123 "E_2",
124 "theta_1",
125 "phi_1",
126 "t_1",
127 "E_1",
128 "theta_0",
129 "phi_0",
130 "t_0",
131 "E_0",
132 "X_0",
133 "N_cluster_0",
134 "ECL_trg_0",
135 "N_track_cut",
136 "N_track_3D",
137 "N_track_NN",
138 "CDCL1_count",
139 "phi_CDC_int_1",
140 "phi_CDC_int_0",
141 "phi_i_int_1",
142 "phi_i_int_0",
143 "N_track",
144 "b2b_1to3",
145 "b2b_1to5",
146 "b2b_1to7",
147 "b2b_1to9",
148 "opening",
149 "samehem_1",
150 "opphem_1",
151 "c_b2b_9_1",
152 "c_b2b_7_1",
153 "c_b2b_5_1",
154 "c_b2b_3_1",
155 "tc_b2b_9_1",
156 "tc_b2b_7_1",
157 "tc_b2b_5_1",
158 "tc_b2b_3_1",
159 "TOPL1_count",
160 "KLML1_count",
161 "sector_KLM_int",
162 "sector_CDC_int",
163 "N_KLMmatch",
164 "samehem_0",
165 "opphem_0",
166 "N_match_2GeV_0",
167 "N_match_0",
168 "N_g_1GeV_0",
169 "N_g_2GeV_0",
170 "ECLL1_count",
171 "c_b2b_9_0",
172 "c_b2b_7_0",
173 "c_b2b_5_0",
174 "c_b2b_3_0",
175 "tc_b2b_9_0",
176 "tc_b2b_7_0",
177 "tc_b2b_5_0",
178 "tc_b2b_3_0",
179 "CDC3DL1_count",
180 "CDCNNL1_count",
181 "slot_CDC_int",
182 "slot_TOP_int",
183 "N_TOPmatch",
184 "N_match_2GeV_1",
185 "N_match_1",
186 "N_g_1GeV_1",
187 "N_g_2GeV_1",
188 "TSFL1_count",
189 "slot64b_TOP_int_1",
190 "slot64b_TOP_int_0",
191 "map_TSF3_int_1",
192 "map_TSF3_int_0",
193 "map_TSF1_int_1",
194 "map_TSF1_int_0",
195 "map_N_ST",
196 "map_ST2_int_1",
197 "map_ST2_int_0",
198 "map_ST_int_1",
199 "map_ST_int_0",
200 "map_veto_int_1",
201 "map_veto_int_0",
202 "map_TSF4_int_1",
203 "map_TSF4_int_0",
204 "map_TSF2_int_1",
205 "map_TSF2_int_0",
206 "map_TSF0_int_1",
207 "map_TSF0_int_0",
208 "charge_flag",
209 "charge_sum",
210 "revoclk",
211 "aaaa",
212 "firmid", "firmver", "evt", "clk", "coml1", "b2ldly", "maxrvc"
213 };
214
215
217 enum EBits {
218 e_2GeV_15,
219 e_2GeV_14,
220 e_2GeV_13,
221 e_2GeV_12,
222 e_2GeV_11,
223 e_2GeV_10,
224 e_2GeV_9,
225 e_2GeV_8,
226 e_2GeV_7,
227 e_2GeV_6,
228 e_2GeV_5,
229 e_2GeV_4,
230 e_2GeV_3,
231 e_2GeV_2,
232 e_2GeV_1,
233 e_2GeV_0,
234 e_1GeV_15,
235 e_1GeV_14,
236 e_1GeV_13,
237 e_1GeV_12,
238 e_1GeV_11,
239 e_1GeV_10,
240 e_1GeV_9,
241 e_1GeV_8,
242 e_1GeV_7,
243 e_1GeV_6,
244 e_1GeV_5,
245 e_1GeV_4,
246 e_1GeV_3,
247 e_1GeV_2,
248 e_1GeV_1,
249 e_1GeV_0,
250 e_wirecnt_tsf8,
251 e_wirecnt_tsf7,
252 e_wirecnt_tsf6,
253 e_wirecnt_tsf5,
254 e_wirecnt_tsf4,
255 e_wirecnt_tsf3,
256 e_wirecnt_tsf2,
257 e_wirecnt_tsf1,
258 e_wirecnt_tsf0,
259 e_theta_11,
260 e_phi_11,
261 e_t_11,
262 e_E_11,
263 e_theta_10,
264 e_phi_10,
265 e_t_10,
266 e_E_10,
267 e_theta_9,
268 e_phi_9,
269 e_t_9,
270 e_E_9,
271 e_theta_8,
272 e_phi_8,
273 e_t_8,
274 e_E_8,
275 e_theta_7,
276 e_phi_7,
277 e_t_7,
278 e_E_7,
279 e_theta_6,
280 e_phi_6,
281 e_t_6,
282 e_E_6,
283 e_X_1,
284 e_N_cluster_1,
285 e_ECL_trg_1,
286 e_theta_5,
287 e_phi_5,
288 e_t_5,
289 e_E_5,
290 e_theta_4,
291 e_phi_4,
292 e_t_4,
293 e_E_4,
294 e_theta_3,
295 e_phi_3,
296 e_t_3,
297 e_E_3,
298 e_theta_2,
299 e_phi_2,
300 e_t_2,
301 e_E_2,
302 e_theta_1,
303 e_phi_1,
304 e_t_1,
305 e_E_1,
306 e_theta_0,
307 e_phi_0,
308 e_t_0,
309 e_E_0,
310 e_X_0,
311 e_N_cluster_0,
312 e_ECL_trg_0,
313 e_ECL_trg,
314 e_ECL_trg_delay,
315 e_N_track_cut,
316 e_N_track_NN,
317 e_N_track_3D,
318 e_CDCL1_count,
319 e_phi_CDC_int_1,
320 e_phi_CDC_int_0,
321 e_phi_i_int_1,
322 e_phi_i_int_0,
323 e_N_track,
324 e_b2b_1to3,
325 e_b2b_1to5,
326 e_b2b_1to7,
327 e_b2b_1to9,
328 e_opening,
329 e_samehem_1,
330 e_opphem_1,
331 e_c_b2b_1to9_1,
332 e_c_b2b_1to7_1,
333 e_c_b2b_1to5_1,
334 e_c_b2b_1to3_1,
335 e_tc_b2b_1to9_1,
336 e_tc_b2b_1to7_1,
337 e_tc_b2b_1to5_1,
338 e_tc_b2b_1to3_1,
339 e_TOPL1_count,
340 e_KLML1_count,
341 e_sector_KLM_int,
342 e_sector_CDC_int,
343 e_N_KLMmatch,
344 e_samehem_0,
345 e_opphem_0,
346 e_N_match_2GeV_0,
347 e_N_match_0,
348 e_N_g_1GeV_0,
349 e_N_g_2GeV_0,
350 e_ECLL1_count,
351 e_c_b2b_1to9_0,
352 e_c_b2b_1to7_0,
353 e_c_b2b_1to5_0,
354 e_c_b2b_1to3_0,
355 e_tc_b2b_1to9_0,
356 e_tc_b2b_1to7_0,
357 e_tc_b2b_1to5_0,
358 e_tc_b2b_1to3_0,
359 e_CDC3DL1_count,
360 e_CDCNNL1_count,
361 e_slot_CDC_int,
362 e_slot_TOP_int,
363 e_N_TOPmatch,
364 e_N_match_2GeV_1,
365 e_N_match_1,
366 e_N_g_1GeV_1,
367 e_N_g_2GeV_1,
368 e_TSFL1_count,
369 e_slot64b_TOP_int_1,
370 e_slot64b_TOP_int_0,
371 e_map_TSF3_int_1,
372 e_map_TSF3_int_0,
373 e_map_TSF1_int_1,
374 e_map_TSF1_int_0,
375 e_N_ST,
376 e_map_ST2_int_1,
377 e_map_ST2_int_0,
378 e_map_ST_int_1,
379 e_map_ST_int_0,
380 e_map_veto_int_1,
381 e_map_veto_int_0,
382 e_map_TSF4_int_1,
383 e_map_TSF4_int_0,
384 e_map_TSF2_int_1,
385 e_map_TSF2_int_0,
386 e_map_TSF0_int_1,
387 e_map_TSF0_int_0,
388 e_charge_flag,
389 e_charge_sum,
390 e_revoclk,
391 e_aaaa,
392 e_firmid, e_firmver, e_evt, e_clk, e_coml1, e_b2ldly, e_maxrvc
393 };
394
396 const int BitMap[nLeafs][2] = {
397
398 {2023, 0}, // 2GeV_15
399 {2022, 0}, // 2GeV_14
400 {2021, 0}, // 2GeV_13
401 {2020, 0}, // 2GeV_12
402 {2019, 0}, // 2GeV_11
403 {2018, 0}, // 2GeV_10
404 {2017, 0}, // 2GeV_9
405 {2016, 0}, // 2GeV_8
406 {2015, 0}, // 2GeV_7
407 {2014, 0}, // 2GeV_6
408 {2013, 0}, // 2GeV_5
409 {2012, 0}, // 2GeV_4
410 {2011, 0}, // 2GeV_3
411 {2010, 0}, // 2GeV_2
412 {2009, 0}, // 2GeV_1
413 {2008, 0}, // 2GeV_0
414 {2007, 0}, // 1GeV_15
415 {2006, 0}, // 1GeV_14
416 {2005, 0}, // 1GeV_13
417 {2004, 0}, // 1GeV_12
418 {2003, 0}, // 1GeV_11
419 {2002, 0}, // 1GeV_10
420 {2001, 0}, // 1GeV_9
421 {2000, 0}, // 1GeV_8
422 {1999, 0}, // 1GeV_7
423 {1998, 0}, // 1GeV_6
424 {1997, 0}, // 1GeV_5
425 {1996, 0}, // 1GeV_4
426 {1995, 0}, // 1GeV_3
427 {1994, 0}, // 1GeV_2
428 {1993, 0}, // 1GeV_1
429 {1992, 0}, // 1GeV_0
430
431 {1563, 11}, // wirecnt_tsf8
432 {1551, 11}, // wirecnt_tsf7
433 {1539, 11}, // wirecnt_tsf6
434 {1527, 11}, // wirecnt_tsf5
435 {1515, 11}, // wirecnt_tsf4
436 {1503, 11}, // wirecnt_tsf3
437 {1491, 11}, // wirecnt_tsf2
438 {1479, 11}, // wirecnt_tsf1
439 {1467, 11}, // wirecnt_tsf0
440
441 {1671 - 216, 6}, // theta_11
442 {1664 - 216, 7}, // phi_11
443 {1656 - 216, 7}, // t_11
444 {1648 - 216, 11}, // E_11
445
446 {1636 - 216, 6}, // theta_10
447 {1629 - 216, 7}, // phi_10
448 {1621 - 216, 7}, // t_10
449 {1613 - 216, 11}, // E_10
450
451 {1601 - 216, 6}, // theta_9
452 {1594 - 216, 7}, // phi_9
453 {1586 - 216, 7}, // t_9
454 {1578 - 216, 11}, // E_9
455
456 {1566 - 216, 6}, // theta_8
457 {1559 - 216, 7}, // phi_8
458 {1551 - 216, 7}, // t_8
459 {1543 - 216, 11}, // E_8
460
461 {1531 - 216, 6}, // theta_7
462 {1524 - 216, 7}, // phi_7
463 {1516 - 216, 7}, // t_7
464 {1508 - 216, 11}, // E_7
465
466 {1496 - 216, 6}, // theta_6
467 {1489 - 216, 7}, // phi_6
468 {1481 - 216, 7}, // t_6
469 {1473 - 216, 11}, // E_6
470
471 {1461 - 216, 1}, // X_1
472 {1459 - 216, 2}, // N_cluster_1
473 {1456 - 216, 0}, // ECL_trg_1
474
475 {1671 - 216 * 2, 6}, // theta_5
476 {1664 - 216 * 2, 7}, // phi_5
477 {1656 - 216 * 2, 7}, // t_5
478 {1648 - 216 * 2, 11}, // E_5
479
480 {1636 - 216 * 2, 6}, // theta_4
481 {1629 - 216 * 2, 7}, // phi_4
482 {1621 - 216 * 2, 7}, // t_4
483 {1613 - 216 * 2, 11}, // E_4
484
485 {1601 - 216 * 2, 6}, // theta_3
486 {1594 - 216 * 2, 7}, // phi_3
487 {1586 - 216 * 2, 7}, // t_3
488 {1578 - 216 * 2, 11}, // E_3
489
490 {1566 - 216 * 2, 6}, // theta_2
491 {1559 - 216 * 2, 7}, // phi_2
492 {1551 - 216 * 2, 7}, // t_2
493 {1543 - 216 * 2, 11}, // E_2
494
495 {1531 - 216 * 2, 6}, // theta_1
496 {1524 - 216 * 2, 7}, // phi_1
497 {1516 - 216 * 2, 7}, // t_1
498 {1508 - 216 * 2, 11}, // E_1
499
500 {1496 - 216 * 2, 6}, // theta_0
501 {1489 - 216 * 2, 7}, // phi_0
502 {1481 - 216 * 2, 7}, // t_0
503 {1473 - 216 * 2, 11}, // E_0
504
505 {1461 - 216 * 2, 1}, // X_0
506 {1459 - 216 * 2, 2}, // N_cluster_0
507 {1456 - 216 * 2, 0}, // ECL_trg_0
508
509
510 {991, 0}, // ECL_trg (991)
511 {990, 0}, // ECL_trg_delay (990)
512 {998, 2}, // N_track_cut (998 downto 996)
513 {995, 2}, // N_track_NN (995 downto 993)
514 {992, 2}, // N_track_3D (992 downto 990)
515 {989, 9}, // CDCL1_count (989 downto 980)
516 {979, 3}, // phi_CDC_int_1 (979 downto 976)
517 {975, 31}, // phi_CDC_int_0 (975 downto 943)
518 {943, 3}, // phi_i_int_1 (943 downto 940)
519 {939, 31}, // phi_i_int_0 (939 downto 908)
520 {907, 2}, // N_track (907 downto 905)
521 {904, 0}, // b2b_1to3 (904 downto 904)
522 {903, 0}, // b2b_1to5 (903 downto 903)
523 {902, 0}, // b2b_1to7 (902 downto 902)
524 {901, 0}, // b2b_1to9 (901 downto 901)
525 {900, 0}, // opening (900 downto 900)
526 {899, 0}, // samehem_1 (899)
527 {898, 0}, // opphem_1 (898)
528 {897, 0}, // c_b2b_1to9_1 (897)
529 {896, 0}, // c_b2b_1to7_1 (896)
530 {895, 0}, // c_b2b_1to5_1 (895)
531 {894, 0}, // c_b2b_1to3_1 (894)
532 {893, 0}, // tc_b2b_1to9_1 (893)
533 {892, 0}, // tc_b2b_1to7_1 (892)
534 {891, 0}, // tc_b2b_1to5_1 (891)
535 {890, 0}, // tc_b2b_1to3_1 (890)
536 {887, 9}, // TOPL1_count (887 downto 878)
537 {877, 9}, // KLML1_count (877 downto 868)
538 {867, 7}, // sector_KLM_int (867 downto 860)
539 {859, 7}, // sector_CDC_int (859 downto 852)
540 {851, 2}, // N_KLMmatch (851 downto 849)
541 {848, 0}, // samehem_0 (848)
542 {847, 0}, // opphem_0 (847)
543 {846, 2}, // N_match_2GeV_0 (846 downto 844)
544 {843, 2}, // N_match_0 (843 downto 841)
545 {840, 2}, // N_g_1GeV_0 (840 downto 838)
546 {837, 2}, // N_g_2GeV_0 (837 downto 835)
547 {834, 9}, // ECLL1_count (834 downto 825)
548 {824, 0}, // c_b2b_1to9_0 (824)
549 {823, 0}, // c_b2b_1to7_0 (823)
550 {822, 0}, // c_b2b_1to5_0 (822)
551 {821, 0}, // c_b2b_1to3_0 (821)
552 {820, 0}, // tc_b2b_1to9_0 (820)
553 {819, 0}, // tc_b2b_1to7_0 (819)
554 {818, 0}, // tc_b2b_1to5_0 (818)
555 {817, 0}, // tc_b2b_1to3_0 (817)
556 {816, 9}, // CDC3DL1_count (816 downto 807)
557 {806, 9}, // CDCNNL1_count (806 downto 797)
558 {796, 15}, // slot_CDC_int
559 {780, 15}, // slot_TOP_int
560 {764, 2}, // N_TOPmatch
561 {761, 2}, // N_match_2GeV_1
562 {758, 2}, // N_match_1
563 {755, 2}, // N_g_1GeV_1
564 {752, 2}, // N_g_2GeV_1
565 {749, 9}, // TSFL1_count
566 {739, 31}, // slot64b_TOP_int_1
567 {708, 31}, // slot64b_TOP_int_0
568 {546, 31}, // map_TSF3_int_1 (63 downto 32)
569 {514, 31}, // map_TSF3_int_0 (31 downto 0)
570 {482, 31}, // map_TSF1_int_1 (63 downto 32)
571 {450, 31}, // map_TSF1_int_0 (31 downto 0)
572 {418, 2}, // N_ST
573 {415, 31}, // map_ST2_int_1 (63 downto 32)
574 {383, 31}, // map_ST2_int_0 (31 downto 0)
575 {351, 31}, // map_ST_int_1 (63 downto 32)
576 {319, 31}, // map_ST_int_0 (31 downto 0)
577 {287, 31}, // map_veto_int_1 (63 downto 32)
578 {255, 31}, // map_veto_int_0 (31 downto 0)
579 {223, 31}, // map_TSF4_int_1 (63 downto 32)
580 {191, 31}, // map_TSF4_int_0 (31 downto 0)
581 {159, 31}, // map_TSF2_int_1 (63 downto 32)
582 {127, 31}, // map_TSF2_int_0 (31 downto 0)
583 {95, 31}, // map_TSF0_int_1 (63 downto 32)
584 {63, 31}, // map_TSF0_int_0 (31 downto 0)
585
586 {31, 1}, // charge_flag (31 downto 30)
587 {29, 2}, // charge_sum (31 downto 30)
588
589 {26, 10}, // revoclk (26 downto 16)
590 {15, 15} // aaaa (15 downto 0)
591 };
592
593 int
594 GetStoreLeaf(TRGGRLUnpackerStore* store, int leafID)
595 {
596 if (leafID == e_2GeV_15) return store->get_2GeV_ECL(15);
597 if (leafID == e_2GeV_14) return store->get_2GeV_ECL(14);
598 if (leafID == e_2GeV_13) return store->get_2GeV_ECL(13);
599 if (leafID == e_2GeV_12) return store->get_2GeV_ECL(12);
600 if (leafID == e_2GeV_11) return store->get_2GeV_ECL(11);
601 if (leafID == e_2GeV_10) return store->get_2GeV_ECL(10);
602 if (leafID == e_2GeV_9) return store->get_2GeV_ECL(9);
603 if (leafID == e_2GeV_8) return store->get_2GeV_ECL(8);
604 if (leafID == e_2GeV_7) return store->get_2GeV_ECL(7);
605 if (leafID == e_2GeV_6) return store->get_2GeV_ECL(6);
606 if (leafID == e_2GeV_5) return store->get_2GeV_ECL(5);
607 if (leafID == e_2GeV_4) return store->get_2GeV_ECL(4);
608 if (leafID == e_2GeV_3) return store->get_2GeV_ECL(3);
609 if (leafID == e_2GeV_2) return store->get_2GeV_ECL(2);
610 if (leafID == e_2GeV_1) return store->get_2GeV_ECL(1);
611 if (leafID == e_2GeV_0) return store->get_2GeV_ECL(0);
612 if (leafID == e_1GeV_15) return store->get_1GeV_ECL(15);
613 if (leafID == e_1GeV_14) return store->get_1GeV_ECL(14);
614 if (leafID == e_1GeV_13) return store->get_1GeV_ECL(13);
615 if (leafID == e_1GeV_12) return store->get_1GeV_ECL(12);
616 if (leafID == e_1GeV_11) return store->get_1GeV_ECL(11);
617 if (leafID == e_1GeV_10) return store->get_1GeV_ECL(10);
618 if (leafID == e_1GeV_9) return store->get_1GeV_ECL(9);
619 if (leafID == e_1GeV_8) return store->get_1GeV_ECL(8);
620 if (leafID == e_1GeV_7) return store->get_1GeV_ECL(7);
621 if (leafID == e_1GeV_6) return store->get_1GeV_ECL(6);
622 if (leafID == e_1GeV_5) return store->get_1GeV_ECL(5);
623 if (leafID == e_1GeV_4) return store->get_1GeV_ECL(4);
624 if (leafID == e_1GeV_3) return store->get_1GeV_ECL(3);
625 if (leafID == e_1GeV_2) return store->get_1GeV_ECL(2);
626 if (leafID == e_1GeV_1) return store->get_1GeV_ECL(1);
627 if (leafID == e_1GeV_0) return store->get_1GeV_ECL(0);
628
629 if (leafID == e_wirecnt_tsf0) return store->get_wirecnt_tsf0();
630 if (leafID == e_wirecnt_tsf1) return store->get_wirecnt_tsf1();
631 if (leafID == e_wirecnt_tsf2) return store->get_wirecnt_tsf2();
632 if (leafID == e_wirecnt_tsf3) return store->get_wirecnt_tsf3();
633 if (leafID == e_wirecnt_tsf4) return store->get_wirecnt_tsf4();
634 if (leafID == e_wirecnt_tsf5) return store->get_wirecnt_tsf5();
635 if (leafID == e_wirecnt_tsf6) return store->get_wirecnt_tsf6();
636 if (leafID == e_wirecnt_tsf7) return store->get_wirecnt_tsf7();
637 if (leafID == e_wirecnt_tsf8) return store->get_wirecnt_tsf8();
638
639 if (leafID == e_theta_11) return store->get_theta_ECL(11);
640 if (leafID == e_phi_11) return store->get_phi_ECL(11);
641 if (leafID == e_t_11) return store->get_t_ECL(11);
642 if (leafID == e_E_11) return store->get_E_ECL(11);
643 if (leafID == e_theta_10) return store->get_theta_ECL(10);
644 if (leafID == e_phi_10) return store->get_phi_ECL(10);
645 if (leafID == e_t_10) return store->get_t_ECL(10);
646 if (leafID == e_E_10) return store->get_E_ECL(10);
647 if (leafID == e_theta_9) return store->get_theta_ECL(9);
648 if (leafID == e_phi_9) return store->get_phi_ECL(9);
649 if (leafID == e_t_9) return store->get_t_ECL(9);
650 if (leafID == e_E_9) return store->get_E_ECL(9);
651 if (leafID == e_theta_8) return store->get_theta_ECL(8);
652 if (leafID == e_phi_8) return store->get_phi_ECL(8);
653 if (leafID == e_t_8) return store->get_t_ECL(8);
654 if (leafID == e_E_8) return store->get_E_ECL(8);
655 if (leafID == e_theta_7) return store->get_theta_ECL(7);
656 if (leafID == e_phi_7) return store->get_phi_ECL(7);
657 if (leafID == e_t_7) return store->get_t_ECL(7);
658 if (leafID == e_E_7) return store->get_E_ECL(7);
659 if (leafID == e_theta_6) return store->get_theta_ECL(6);
660 if (leafID == e_phi_6) return store->get_phi_ECL(6);
661 if (leafID == e_t_6) return store->get_t_ECL(6);
662 if (leafID == e_E_6) return store->get_E_ECL(6);
663 if (leafID == e_X_1) return store->get_X_1();
664 if (leafID == e_N_cluster_1) return store->get_N_cluster_1();
665 if (leafID == e_ECL_trg_1) return store->get_ECL_trg_1();
666 if (leafID == e_theta_5) return store->get_theta_ECL(5);
667 if (leafID == e_phi_5) return store->get_phi_ECL(5);
668 if (leafID == e_t_5) return store->get_t_ECL(5);
669 if (leafID == e_E_5) return store->get_E_ECL(5);
670 if (leafID == e_theta_4) return store->get_theta_ECL(4);
671 if (leafID == e_phi_4) return store->get_phi_ECL(4);
672 if (leafID == e_t_4) return store->get_t_ECL(4);
673 if (leafID == e_E_4) return store->get_E_ECL(4);
674 if (leafID == e_theta_3) return store->get_theta_ECL(3);
675 if (leafID == e_phi_3) return store->get_phi_ECL(3);
676 if (leafID == e_t_3) return store->get_t_ECL(3);
677 if (leafID == e_E_3) return store->get_E_ECL(3);
678 if (leafID == e_theta_2) return store->get_theta_ECL(2);
679 if (leafID == e_phi_2) return store->get_phi_ECL(2);
680 if (leafID == e_t_2) return store->get_t_ECL(2);
681 if (leafID == e_E_2) return store->get_E_ECL(2);
682 if (leafID == e_theta_1) return store->get_theta_ECL(1);
683 if (leafID == e_phi_1) return store->get_phi_ECL(1);
684 if (leafID == e_t_1) return store->get_t_ECL(1);
685 if (leafID == e_E_1) return store->get_E_ECL(1);
686 if (leafID == e_theta_0) return store->get_theta_ECL(0);
687 if (leafID == e_phi_0) return store->get_phi_ECL(0);
688 if (leafID == e_t_0) return store->get_t_ECL(0);
689 if (leafID == e_E_0) return store->get_E_ECL(0);
690 if (leafID == e_X_0) return store->get_X_0();
691 if (leafID == e_N_cluster_0) return store->get_N_cluster_0();
692 if (leafID == e_ECL_trg_0) return store->get_ECL_trg_0();
693 if (leafID == e_ECL_trg) return store->get_ECL_trg();
694 if (leafID == e_ECL_trg_delay) return store->get_ECL_trg_delay();
695 if (leafID == e_N_track_cut) return store->get_N_track_cut();
696 if (leafID == e_N_track_NN) return store->get_N_track_NN();
697 if (leafID == e_N_track_3D) return store->get_N_track_3D();
698 if (leafID == e_CDCL1_count) return store->get_CDCL1_count();
699 if (leafID == e_phi_CDC_int_1) return store->get_phi_CDC_int(1);
700 if (leafID == e_phi_CDC_int_0) return store->get_phi_CDC_int(0);
701 if (leafID == e_phi_i_int_1) return store->get_phi_i_int(1);
702 if (leafID == e_phi_i_int_0) return store->get_phi_i_int(0);
703 if (leafID == e_N_track) return store->get_N_track();
704 if (leafID == e_b2b_1to3) return store->get_b2b_1to3();
705 if (leafID == e_b2b_1to5) return store->get_b2b_1to5();
706 if (leafID == e_b2b_1to7) return store->get_b2b_1to7();
707 if (leafID == e_b2b_1to9) return store->get_b2b_1to9();
708 if (leafID == e_opening) return store->get_opening();
709 if (leafID == e_samehem_1) return store->get_samehem(1);
710 if (leafID == e_opphem_1) return store->get_opphem(1);
711 if (leafID == e_c_b2b_1to9_1) return store->get_c_b2b_1to9(1);
712 if (leafID == e_c_b2b_1to7_1) return store->get_c_b2b_1to7(1);
713 if (leafID == e_c_b2b_1to5_1) return store->get_c_b2b_1to5(1);
714 if (leafID == e_c_b2b_1to3_1) return store->get_c_b2b_1to3(1);
715 if (leafID == e_tc_b2b_1to9_1) return store->get_tc_b2b_1to9(1);
716 if (leafID == e_tc_b2b_1to7_1) return store->get_tc_b2b_1to7(1);
717 if (leafID == e_tc_b2b_1to5_1) return store->get_tc_b2b_1to5(1);
718 if (leafID == e_tc_b2b_1to3_1) return store->get_tc_b2b_1to3(1);
719 if (leafID == e_TOPL1_count) return store->get_TOPL1_count();
720 if (leafID == e_KLML1_count) return store->get_KLML1_count();
721 if (leafID == e_sector_KLM_int) return store->get_sector_KLM_int();
722 if (leafID == e_sector_CDC_int) return store->get_sector_CDC_int();
723 if (leafID == e_N_KLMmatch) return store->get_N_KLMmatch();
724 if (leafID == e_samehem_0) return store->get_samehem(0);
725 if (leafID == e_opphem_0) return store->get_opphem(0);
726 if (leafID == e_N_match_2GeV_0) return store->get_N_match_2GeV(0);
727 if (leafID == e_N_match_0) return store->get_N_match(0);
728 if (leafID == e_N_g_1GeV_0) return store->get_N_g_1GeV(0);
729 if (leafID == e_N_g_2GeV_0) return store->get_N_g_2GeV(0);
730 if (leafID == e_ECLL1_count) return store->get_ECLL1_count();
731 if (leafID == e_c_b2b_1to9_0) return store->get_c_b2b_1to9(0);
732 if (leafID == e_c_b2b_1to7_0) return store->get_c_b2b_1to7(0);
733 if (leafID == e_c_b2b_1to5_0) return store->get_c_b2b_1to5(0);
734 if (leafID == e_c_b2b_1to3_0) return store->get_c_b2b_1to3(0);
735 if (leafID == e_tc_b2b_1to9_0) return store->get_tc_b2b_1to9(0);
736 if (leafID == e_tc_b2b_1to7_0) return store->get_tc_b2b_1to7(0);
737 if (leafID == e_tc_b2b_1to5_0) return store->get_tc_b2b_1to5(0);
738 if (leafID == e_tc_b2b_1to3_0) return store->get_tc_b2b_1to3(0);
739 if (leafID == e_CDC3DL1_count) return store->get_CDC3DL1_count();
740 if (leafID == e_CDCNNL1_count) return store->get_CDCNNL1_count();
741 if (leafID == e_slot_CDC_int) return store->get_slot_CDC_int();
742 if (leafID == e_slot_TOP_int) return store->get_slot_TOP_int();
743 if (leafID == e_N_TOPmatch) return store->get_N_TOPmatch();
744 if (leafID == e_N_match_2GeV_1) return store->get_N_match_2GeV(1);
745 if (leafID == e_N_match_1) return store->get_N_match(1);
746 if (leafID == e_N_g_1GeV_1) return store->get_N_g_1GeV(1);
747 if (leafID == e_N_g_2GeV_1) return store->get_N_g_2GeV(1);
748 if (leafID == e_TSFL1_count) return store->get_TSFL1_count();
749 if (leafID == e_slot64b_TOP_int_1) return store->get_slot64b_TOP_int_1();
750 if (leafID == e_slot64b_TOP_int_0) return store->get_slot64b_TOP_int_0();
751 if (leafID == e_map_TSF3_int_1) return store->get_map_TSF3_int(1);
752 if (leafID == e_map_TSF3_int_0) return store->get_map_TSF3_int(0);
753 if (leafID == e_map_TSF1_int_1) return store->get_map_TSF1_int(1);
754 if (leafID == e_map_TSF1_int_0) return store->get_map_TSF1_int(0);
755 if (leafID == e_N_ST) return store->get_N_ST();
756 if (leafID == e_map_ST2_int_1) return store->get_map_ST2_int(1);
757 if (leafID == e_map_ST2_int_0) return store->get_map_ST2_int(0);
758 if (leafID == e_map_ST_int_1) return store->get_map_ST_int(1);
759 if (leafID == e_map_ST_int_0) return store->get_map_ST_int(0);
760 if (leafID == e_map_veto_int_1) return store->get_map_veto_int(1);
761 if (leafID == e_map_veto_int_0) return store->get_map_veto_int(0);
762 if (leafID == e_map_TSF4_int_1) return store->get_map_TSF4_int(1);
763 if (leafID == e_map_TSF4_int_0) return store->get_map_TSF4_int(0);
764 if (leafID == e_map_TSF2_int_1) return store->get_map_TSF2_int(1);
765 if (leafID == e_map_TSF2_int_0) return store->get_map_TSF2_int(0);
766 if (leafID == e_map_TSF0_int_1) return store->get_map_TSF0_int(1);
767 if (leafID == e_map_TSF0_int_0) return store->get_map_TSF0_int(0);
768 if (leafID == e_charge_flag) return store->get_charge_flag();
769 if (leafID == e_charge_sum) return store->get_charge_sum();
770 if (leafID == e_revoclk) return store->get_revoclk();
771 if (leafID == e_aaaa) return store->get_aaaa();
772 if (leafID == e_evt) return store->get_evt();
773 if (leafID == e_clk) return store->get_clk();
774 if (leafID == e_firmid) return store->get_firmid();
775 if (leafID == e_firmver) return store->get_firmver();
776 if (leafID == e_coml1) return store->get_coml1();
777 if (leafID == e_b2ldly) return store->get_b2ldly();
778 if (leafID == e_maxrvc) return store->get_maxrvc();
779 else {
780 B2WARNING("!!!getting leaf out of list!!!");
781 return 0;
782 }
783 };
784
785 void
786 SetStoreLeaf(TRGGRLUnpackerStore* store, int leafID, int value)
787 {
788 if (leafID == e_2GeV_15) store->set_2GeV_ECL(15, value);
789 if (leafID == e_2GeV_14) store->set_2GeV_ECL(14, value);
790 if (leafID == e_2GeV_13) store->set_2GeV_ECL(13, value);
791 if (leafID == e_2GeV_12) store->set_2GeV_ECL(12, value);
792 if (leafID == e_2GeV_11) store->set_2GeV_ECL(11, value);
793 if (leafID == e_2GeV_10) store->set_2GeV_ECL(10, value);
794 if (leafID == e_2GeV_9) store->set_2GeV_ECL(9, value);
795 if (leafID == e_2GeV_8) store->set_2GeV_ECL(8, value);
796 if (leafID == e_2GeV_7) store->set_2GeV_ECL(7, value);
797 if (leafID == e_2GeV_6) store->set_2GeV_ECL(6, value);
798 if (leafID == e_2GeV_5) store->set_2GeV_ECL(5, value);
799 if (leafID == e_2GeV_4) store->set_2GeV_ECL(4, value);
800 if (leafID == e_2GeV_3) store->set_2GeV_ECL(3, value);
801 if (leafID == e_2GeV_2) store->set_2GeV_ECL(2, value);
802 if (leafID == e_2GeV_1) store->set_2GeV_ECL(1, value);
803 if (leafID == e_2GeV_0) store->set_2GeV_ECL(0, value);
804 if (leafID == e_1GeV_15) store->set_1GeV_ECL(15, value);
805 if (leafID == e_1GeV_14) store->set_1GeV_ECL(14, value);
806 if (leafID == e_1GeV_13) store->set_1GeV_ECL(13, value);
807 if (leafID == e_1GeV_12) store->set_1GeV_ECL(12, value);
808 if (leafID == e_1GeV_11) store->set_1GeV_ECL(11, value);
809 if (leafID == e_1GeV_10) store->set_1GeV_ECL(10, value);
810 if (leafID == e_1GeV_9) store->set_1GeV_ECL(9, value);
811 if (leafID == e_1GeV_8) store->set_1GeV_ECL(8, value);
812 if (leafID == e_1GeV_7) store->set_1GeV_ECL(7, value);
813 if (leafID == e_1GeV_6) store->set_1GeV_ECL(6, value);
814 if (leafID == e_1GeV_5) store->set_1GeV_ECL(5, value);
815 if (leafID == e_1GeV_4) store->set_1GeV_ECL(4, value);
816 if (leafID == e_1GeV_3) store->set_1GeV_ECL(3, value);
817 if (leafID == e_1GeV_2) store->set_1GeV_ECL(2, value);
818 if (leafID == e_1GeV_1) store->set_1GeV_ECL(1, value);
819 if (leafID == e_1GeV_0) store->set_1GeV_ECL(0, value);
820
821 if (leafID == e_wirecnt_tsf0) store->set_wirecnt_tsf0(value);
822 if (leafID == e_wirecnt_tsf1) store->set_wirecnt_tsf1(value);
823 if (leafID == e_wirecnt_tsf2) store->set_wirecnt_tsf2(value);
824 if (leafID == e_wirecnt_tsf3) store->set_wirecnt_tsf3(value);
825 if (leafID == e_wirecnt_tsf4) store->set_wirecnt_tsf4(value);
826 if (leafID == e_wirecnt_tsf5) store->set_wirecnt_tsf5(value);
827 if (leafID == e_wirecnt_tsf6) store->set_wirecnt_tsf6(value);
828 if (leafID == e_wirecnt_tsf7) store->set_wirecnt_tsf7(value);
829 if (leafID == e_wirecnt_tsf8) store->set_wirecnt_tsf8(value);
830
831 if (leafID == e_theta_11) store->set_theta_ECL(11, value);
832 if (leafID == e_phi_11) store->set_phi_ECL(11, value);
833 if (leafID == e_t_11) store->set_t_ECL(11, value);
834 if (leafID == e_E_11) store->set_E_ECL(11, value);
835 if (leafID == e_theta_10) store->set_theta_ECL(10, value);
836 if (leafID == e_phi_10) store->set_phi_ECL(10, value);
837 if (leafID == e_t_10) store->set_t_ECL(10, value);
838 if (leafID == e_E_10) store->set_E_ECL(10, value);
839 if (leafID == e_theta_9) store->set_theta_ECL(9, value);
840 if (leafID == e_phi_9) store->set_phi_ECL(9, value);
841 if (leafID == e_t_9) store->set_t_ECL(9, value);
842 if (leafID == e_E_9) store->set_E_ECL(9, value);
843 if (leafID == e_theta_8) store->set_theta_ECL(8, value);
844 if (leafID == e_phi_8) store->set_phi_ECL(8, value);
845 if (leafID == e_t_8) store->set_t_ECL(8, value);
846 if (leafID == e_E_8) store->set_E_ECL(8, value);
847 if (leafID == e_theta_7) store->set_theta_ECL(7, value);
848 if (leafID == e_phi_7) store->set_phi_ECL(7, value);
849 if (leafID == e_t_7) store->set_t_ECL(7, value);
850 if (leafID == e_E_7) store->set_E_ECL(7, value);
851 if (leafID == e_theta_6) store->set_theta_ECL(6, value);
852 if (leafID == e_phi_6) store->set_phi_ECL(6, value);
853 if (leafID == e_t_6) store->set_t_ECL(6, value);
854 if (leafID == e_E_6) store->set_E_ECL(6, value);
855 if (leafID == e_X_1) store->set_X_1(value);
856 if (leafID == e_N_cluster_1) store->set_N_cluster_1(value);
857 if (leafID == e_ECL_trg_1) store->set_ECL_trg_1(value);
858 if (leafID == e_theta_5) store->set_theta_ECL(5, value);
859 if (leafID == e_phi_5) store->set_phi_ECL(5, value);
860 if (leafID == e_t_5) store->set_t_ECL(5, value);
861 if (leafID == e_E_5) store->set_E_ECL(5, value);
862 if (leafID == e_theta_4) store->set_theta_ECL(4, value);
863 if (leafID == e_phi_4) store->set_phi_ECL(4, value);
864 if (leafID == e_t_4) store->set_t_ECL(4, value);
865 if (leafID == e_E_4) store->set_E_ECL(4, value);
866 if (leafID == e_theta_3) store->set_theta_ECL(3, value);
867 if (leafID == e_phi_3) store->set_phi_ECL(3, value);
868 if (leafID == e_t_3) store->set_t_ECL(3, value);
869 if (leafID == e_E_3) store->set_E_ECL(3, value);
870 if (leafID == e_theta_2) store->set_theta_ECL(2, value);
871 if (leafID == e_phi_2) store->set_phi_ECL(2, value);
872 if (leafID == e_t_2) store->set_t_ECL(2, value);
873 if (leafID == e_E_2) store->set_E_ECL(2, value);
874 if (leafID == e_theta_1) store->set_theta_ECL(1, value);
875 if (leafID == e_phi_1) store->set_phi_ECL(1, value);
876 if (leafID == e_t_1) store->set_t_ECL(1, value);
877 if (leafID == e_E_1) store->set_E_ECL(1, value);
878 if (leafID == e_theta_0) store->set_theta_ECL(0, value);
879 if (leafID == e_phi_0) store->set_phi_ECL(0, value);
880 if (leafID == e_t_0) store->set_t_ECL(0, value);
881 if (leafID == e_E_0) store->set_E_ECL(0, value);
882 if (leafID == e_X_0) store->set_X_0(value);
883 if (leafID == e_N_cluster_0) store->set_N_cluster_0(value);
884 if (leafID == e_ECL_trg_0) store->set_ECL_trg_0(value);
885 if (leafID == e_ECL_trg) store->set_ECL_trg(value);
886 if (leafID == e_ECL_trg_delay) store->set_ECL_trg_delay(value);
887 if (leafID == e_N_track_cut) store->set_N_track_cut(value);
888 if (leafID == e_N_track_NN) store->set_N_track_NN(value);
889 if (leafID == e_N_track_3D) store->set_N_track_3D(value);
890 if (leafID == e_CDCL1_count) store->set_CDCL1_count(value);
891 if (leafID == e_phi_CDC_int_1) store->set_phi_CDC_int(1, value);
892 if (leafID == e_phi_CDC_int_0) store->set_phi_CDC_int(0, value);
893 if (leafID == e_phi_i_int_1) store->set_phi_i_int(1, value);
894 if (leafID == e_phi_i_int_0) store->set_phi_i_int(0, value);
895 if (leafID == e_N_track) store->set_N_track(value);
896 if (leafID == e_b2b_1to3) store->set_b2b_1to3(value);
897 if (leafID == e_b2b_1to5) store->set_b2b_1to5(value);
898 if (leafID == e_b2b_1to7) store->set_b2b_1to7(value);
899 if (leafID == e_b2b_1to9) store->set_b2b_1to9(value);
900 if (leafID == e_opening) store->set_opening(value);
901 if (leafID == e_samehem_1) store->set_samehem(1, value);
902 if (leafID == e_opphem_1) store->set_opphem(1, value);
903 if (leafID == e_c_b2b_1to9_1) store->set_c_b2b_1to9(1, value);
904 if (leafID == e_c_b2b_1to7_1) store->set_c_b2b_1to7(1, value);
905 if (leafID == e_c_b2b_1to5_1) store->set_c_b2b_1to5(1, value);
906 if (leafID == e_c_b2b_1to3_1) store->set_c_b2b_1to3(1, value);
907 if (leafID == e_tc_b2b_1to9_1) store->set_tc_b2b_1to9(1, value);
908 if (leafID == e_tc_b2b_1to7_1) store->set_tc_b2b_1to7(1, value);
909 if (leafID == e_tc_b2b_1to5_1) store->set_tc_b2b_1to5(1, value);
910 if (leafID == e_tc_b2b_1to3_1) store->set_tc_b2b_1to3(1, value);
911 if (leafID == e_TOPL1_count) store->set_TOPL1_count(value);
912 if (leafID == e_KLML1_count) store->set_KLML1_count(value);
913 if (leafID == e_sector_KLM_int) store->set_sector_KLM_int(value);
914 if (leafID == e_sector_CDC_int) store->set_sector_CDC_int(value);
915 if (leafID == e_N_KLMmatch) store->set_N_KLMmatch(value);
916 if (leafID == e_samehem_0) store->set_samehem(0, value);
917 if (leafID == e_opphem_0) store->set_opphem(0, value);
918 if (leafID == e_N_match_2GeV_0) store->set_N_match_2GeV(0, value);
919 if (leafID == e_N_match_0) store->set_N_match(0, value);
920 if (leafID == e_N_g_1GeV_0) store->set_N_g_1GeV(0, value);
921 if (leafID == e_N_g_2GeV_0) store->set_N_g_2GeV(0, value);
922 if (leafID == e_ECLL1_count) store->set_ECLL1_count(value);
923 if (leafID == e_c_b2b_1to9_0) store->set_c_b2b_1to9(0, value);
924 if (leafID == e_c_b2b_1to7_0) store->set_c_b2b_1to7(0, value);
925 if (leafID == e_c_b2b_1to5_0) store->set_c_b2b_1to5(0, value);
926 if (leafID == e_c_b2b_1to3_0) store->set_c_b2b_1to3(0, value);
927 if (leafID == e_tc_b2b_1to9_0) store->set_tc_b2b_1to9(0, value);
928 if (leafID == e_tc_b2b_1to7_0) store->set_tc_b2b_1to7(0, value);
929 if (leafID == e_tc_b2b_1to5_0) store->set_tc_b2b_1to5(0, value);
930 if (leafID == e_tc_b2b_1to3_0) store->set_tc_b2b_1to3(0, value);
931 if (leafID == e_CDC3DL1_count) store->set_CDC3DL1_count(value);
932 if (leafID == e_CDCNNL1_count) store->set_CDCNNL1_count(value);
933 if (leafID == e_slot_CDC_int) store->set_slot_CDC_int(value);
934 if (leafID == e_slot_TOP_int) store->set_slot_TOP_int(value);
935 if (leafID == e_N_TOPmatch) store->set_N_TOPmatch(value);
936 if (leafID == e_N_match_2GeV_1) store->set_N_match_2GeV(1, value);
937 if (leafID == e_N_match_1) store->set_N_match(1, value);
938 if (leafID == e_N_g_1GeV_1) store->set_N_g_1GeV(1, value);
939 if (leafID == e_N_g_2GeV_1) store->set_N_g_2GeV(1, value);
940 if (leafID == e_TSFL1_count) store->set_TSFL1_count(value);
941 if (leafID == e_slot64b_TOP_int_1) store->set_slot64b_TOP_int_1(value);
942 if (leafID == e_slot64b_TOP_int_0) store->set_slot64b_TOP_int_0(value);
943 if (leafID == e_map_TSF3_int_1) store->set_map_TSF3_int(1, value);
944 if (leafID == e_map_TSF3_int_0) store->set_map_TSF3_int(0, value);
945 if (leafID == e_map_TSF1_int_1) store->set_map_TSF1_int(1, value);
946 if (leafID == e_map_TSF1_int_0) store->set_map_TSF1_int(0, value);
947 if (leafID == e_N_ST) store->set_N_ST(value);
948 if (leafID == e_map_ST2_int_1) store->set_map_ST2_int(1, value);
949 if (leafID == e_map_ST2_int_0) store->set_map_ST2_int(0, value);
950 if (leafID == e_map_ST_int_1) store->set_map_ST_int(1, value);
951 if (leafID == e_map_ST_int_0) store->set_map_ST_int(0, value);
952 if (leafID == e_map_veto_int_1) store->set_map_veto_int(1, value);
953 if (leafID == e_map_veto_int_0) store->set_map_veto_int(0, value);
954 if (leafID == e_map_TSF4_int_1) store->set_map_TSF4_int(1, value);
955 if (leafID == e_map_TSF4_int_0) store->set_map_TSF4_int(0, value);
956 if (leafID == e_map_TSF2_int_1) store->set_map_TSF2_int(1, value);
957 if (leafID == e_map_TSF2_int_0) store->set_map_TSF2_int(0, value);
958 if (leafID == e_map_TSF0_int_1) store->set_map_TSF0_int(1, value);
959 if (leafID == e_map_TSF0_int_0) store->set_map_TSF0_int(0, value);
960 if (leafID == e_charge_flag) store->set_charge_flag(value);
961 if (leafID == e_charge_sum) store->set_charge_sum(value);
962 if (leafID == e_revoclk) store->set_revoclk(value);
963 if (leafID == e_aaaa) store->set_aaaa(value);
964 if (leafID == e_evt) store->set_evt(value);
965 if (leafID == e_clk) store->set_clk(value);
966 if (leafID == e_firmid) store->set_firmid(value);
967 if (leafID == e_firmver) store->set_firmver(value);
968 if (leafID == e_coml1) store->set_coml1(value);
969 if (leafID == e_b2ldly) store->set_b2ldly(value);
970 if (leafID == e_maxrvc) store->set_maxrvc(value);
971 };
972
975
976 public:
977
980
982 virtual ~TRGGRLUnpackerModule();
983
985 virtual void initialize() override;
986
988 virtual void event() override;
989
991 virtual void terminate() override;
992
994 virtual void beginRun() override;
995
997 virtual void endRun() override;
998
1000 std::string version() const;
1001
1003 virtual void fillTreeTRGGRLUnpacker(int* buf, int evt);
1004
1005 private:
1006
1009
1010 };
1011 }
1013} // end namespace Belle2
1014#endif // TRGGRLUNPACKER_H
Base class for Modules.
Definition: Module.h:72
virtual void initialize() override
Initilizes TRGGRLUnpackerUnpackerModule.
virtual void event() override
Called event by event.
virtual void endRun() override
Called when run ended.
virtual void terminate() override
Called when processing ended.
virtual void beginRun() override
Called when new run started.
std::string version() const
returns version of TRGGRLUnpackerModule.
virtual void fillTreeTRGGRLUnpacker(int *buf, int evt)
Unpacker main function.
Abstract base class for different kinds of events.