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