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_ml_tau_nn_output_2,
391 e_ml_tau_nn_output_1,
392 e_map_ST_int_1,
393 e_map_ST_int_0,
394 e_map_veto_int_1,
395 e_map_veto_int_0,
396 e_map_TSF4_int_1,
397 e_map_TSF4_int_0,
398 e_map_TSF2_int_1,
399 e_map_TSF2_int_0,
400 e_map_TSF0_int_1,
401 e_map_TSF0_int_0,
402 e_charge_flag,
403 e_charge_sum,
404 e_revoclk,
405 e_aaaa,
406 e_firmid, e_firmver, e_evt, e_clk, e_coml1, e_b2ldly, e_maxrvc
407 };
408
410 const int BitMap[nLeafs][2] = {
411
412 {2023, 0}, // 2GeV_15
413 {2022, 0}, // 2GeV_14
414 {2021, 0}, // 2GeV_13
415 {2020, 0}, // 2GeV_12
416 {2019, 0}, // 2GeV_11
417 {2018, 0}, // 2GeV_10
418 {2017, 0}, // 2GeV_9
419 {2016, 0}, // 2GeV_8
420 {2015, 0}, // 2GeV_7
421 {2014, 0}, // 2GeV_6
422 {2013, 0}, // 2GeV_5
423 {2012, 0}, // 2GeV_4
424 {2011, 0}, // 2GeV_3
425 {2010, 0}, // 2GeV_2
426 {2009, 0}, // 2GeV_1
427 {2008, 0}, // 2GeV_0
428 {2007, 0}, // 1GeV_15
429 {2006, 0}, // 1GeV_14
430 {2005, 0}, // 1GeV_13
431 {2004, 0}, // 1GeV_12
432 {2003, 0}, // 1GeV_11
433 {2002, 0}, // 1GeV_10
434 {2001, 0}, // 1GeV_9
435 {2000, 0}, // 1GeV_8
436 {1999, 0}, // 1GeV_7
437 {1998, 0}, // 1GeV_6
438 {1997, 0}, // 1GeV_5
439 {1996, 0}, // 1GeV_4
440 {1995, 0}, // 1GeV_3
441 {1994, 0}, // 1GeV_2
442 {1993, 0}, // 1GeV_1
443 {1992, 0}, // 1GeV_0
444
445 {1563, 11}, // wirecnt_tsf8
446 {1551, 11}, // wirecnt_tsf7
447 {1539, 11}, // wirecnt_tsf6
448 {1527, 11}, // wirecnt_tsf5
449 {1515, 11}, // wirecnt_tsf4
450 {1503, 11}, // wirecnt_tsf3
451 {1491, 11}, // wirecnt_tsf2
452 {1479, 11}, // wirecnt_tsf1
453 {1467, 11}, // wirecnt_tsf0
454
455 {1975, 14}, // ml_tau_nn_output_0
456 {1960, 14}, // ml_tau_nn_output_9
457 {1945, 14}, // ml_tau_nn_output_8
458 {1930, 14}, // ml_tau_nn_output_7
459 {1915, 14}, // ml_tau_nn_output_6
460 {1900, 14}, // ml_tau_nn_output_5
461 {1851, 287}, // ml_tau_nn_input
462
463 {1671 - 216, 6}, // theta_11
464 {1664 - 216, 7}, // phi_11
465 {1656 - 216, 7}, // t_11
466 {1648 - 216, 11}, // E_11
467
468 {1636 - 216, 6}, // theta_10
469 {1629 - 216, 7}, // phi_10
470 {1621 - 216, 7}, // t_10
471 {1613 - 216, 11}, // E_10
472
473 {1601 - 216, 6}, // theta_9
474 {1594 - 216, 7}, // phi_9
475 {1586 - 216, 7}, // t_9
476 {1578 - 216, 11}, // E_9
477
478 {1566 - 216, 6}, // theta_8
479 {1559 - 216, 7}, // phi_8
480 {1551 - 216, 7}, // t_8
481 {1543 - 216, 11}, // E_8
482
483 {1531 - 216, 6}, // theta_7
484 {1524 - 216, 7}, // phi_7
485 {1516 - 216, 7}, // t_7
486 {1508 - 216, 11}, // E_7
487
488 {1496 - 216, 6}, // theta_6
489 {1489 - 216, 7}, // phi_6
490 {1481 - 216, 7}, // t_6
491 {1473 - 216, 11}, // E_6
492
493 {1461 - 216, 1}, // X_1
494 {1459 - 216, 2}, // N_cluster_1
495 {1456 - 216, 0}, // ECL_trg_1
496
497 {1671 - 216 * 2, 6}, // theta_5
498 {1664 - 216 * 2, 7}, // phi_5
499 {1656 - 216 * 2, 7}, // t_5
500 {1648 - 216 * 2, 11}, // E_5
501
502 {1636 - 216 * 2, 6}, // theta_4
503 {1629 - 216 * 2, 7}, // phi_4
504 {1621 - 216 * 2, 7}, // t_4
505 {1613 - 216 * 2, 11}, // E_4
506
507 {1601 - 216 * 2, 6}, // theta_3
508 {1594 - 216 * 2, 7}, // phi_3
509 {1586 - 216 * 2, 7}, // t_3
510 {1578 - 216 * 2, 11}, // E_3
511
512 {1566 - 216 * 2, 6}, // theta_2
513 {1559 - 216 * 2, 7}, // phi_2
514 {1551 - 216 * 2, 7}, // t_2
515 {1543 - 216 * 2, 11}, // E_2
516
517 {1531 - 216 * 2, 6}, // theta_1
518 {1524 - 216 * 2, 7}, // phi_1
519 {1516 - 216 * 2, 7}, // t_1
520 {1508 - 216 * 2, 11}, // E_1
521
522 {1496 - 216 * 2, 6}, // theta_0
523 {1489 - 216 * 2, 7}, // phi_0
524 {1481 - 216 * 2, 7}, // t_0
525 {1473 - 216 * 2, 11}, // E_0
526
527 {1461 - 216 * 2, 1}, // X_0
528 {1459 - 216 * 2, 2}, // N_cluster_0
529 {1456 - 216 * 2, 0}, // ECL_trg_0
530
531
532 {991, 0}, // ECL_trg (991)
533 {990, 0}, // ECL_trg_delay (990)
534 {998, 2}, // N_track_cut (998 downto 996)
535 {995, 2}, // N_track_NN (995 downto 993)
536 {992, 2}, // N_track_3D (992 downto 990)
537 {989, 9}, // CDCL1_count (989 downto 980)
538 {979, 3}, // phi_CDC_int_1 (979 downto 976)
539 {975, 31}, // phi_CDC_int_0 (975 downto 943)
540 {943, 3}, // phi_i_int_1 (943 downto 940)
541 {939, 31}, // phi_i_int_0 (939 downto 908)
542 {907, 2}, // N_track (907 downto 905)
543 {904, 0}, // b2b_1to3 (904 downto 904)
544 {903, 0}, // b2b_1to5 (903 downto 903)
545 {902, 0}, // b2b_1to7 (902 downto 902)
546 {901, 0}, // b2b_1to9 (901 downto 901)
547 {900, 0}, // opening (900 downto 900)
548 {899, 0}, // samehem_1 (899)
549 {898, 0}, // opphem_1 (898)
550 {897, 0}, // c_b2b_1to9_1 (897)
551 {896, 0}, // c_b2b_1to7_1 (896)
552 {895, 0}, // c_b2b_1to5_1 (895)
553 {894, 0}, // c_b2b_1to3_1 (894)
554 {893, 0}, // tc_b2b_1to9_1 (893)
555 {892, 0}, // tc_b2b_1to7_1 (892)
556 {891, 0}, // tc_b2b_1to5_1 (891)
557 {890, 0}, // tc_b2b_1to3_1 (890)
558 {887, 9}, // TOPL1_count (887 downto 878)
559 {877, 9}, // KLML1_count (877 downto 868)
560 {867, 7}, // sector_KLM_int (867 downto 860)
561 {859, 7}, // sector_CDC_int (859 downto 852)
562 {851, 2}, // N_KLMmatch (851 downto 849)
563 {848, 0}, // samehem_0 (848)
564 {847, 0}, // opphem_0 (847)
565 {846, 2}, // N_match_2GeV_0 (846 downto 844)
566 {843, 2}, // N_match_0 (843 downto 841)
567 {840, 2}, // N_g_1GeV_0 (840 downto 838)
568 {837, 2}, // N_g_2GeV_0 (837 downto 835)
569 {834, 9}, // ECLL1_count (834 downto 825)
570 {824, 0}, // c_b2b_1to9_0 (824)
571 {823, 0}, // c_b2b_1to7_0 (823)
572 {822, 0}, // c_b2b_1to5_0 (822)
573 {821, 0}, // c_b2b_1to3_0 (821)
574 {820, 0}, // tc_b2b_1to9_0 (820)
575 {819, 0}, // tc_b2b_1to7_0 (819)
576 {818, 0}, // tc_b2b_1to5_0 (818)
577 {817, 0}, // tc_b2b_1to3_0 (817)
578 {816, 9}, // CDC3DL1_count (816 downto 807)
579 {806, 9}, // CDCNNL1_count (806 downto 797)
580 {796, 15}, // slot_CDC_int
581 {780, 15}, // slot_TOP_int
582 {764, 2}, // N_TOPmatch
583 {761, 2}, // N_match_2GeV_1
584 {758, 2}, // N_match_1
585 {755, 2}, // N_g_1GeV_1
586 {752, 2}, // N_g_2GeV_1
587 {749, 9}, // TSFL1_count
588 {731, 14}, // ml_tau_nn_output_4
589 {716, 14}, // ml_tau_nn_output_3
590 {546, 31}, // map_TSF3_int_1 (63 downto 32)
591 {514, 31}, // map_TSF3_int_0 (31 downto 0)
592 {482, 31}, // map_TSF1_int_1 (63 downto 32)
593 {450, 31}, // map_TSF1_int_0 (31 downto 0)
594 {418, 2}, // N_ST
595 {415, 14}, // ml_tau_nn_output_2
596 {400, 14}, // ml_tau_nn_output_1
597 {351, 31}, // map_ST_int_1 (63 downto 32)
598 {319, 31}, // map_ST_int_0 (31 downto 0)
599 {287, 31}, // map_veto_int_1 (63 downto 32)
600 {255, 31}, // map_veto_int_0 (31 downto 0)
601 {223, 31}, // map_TSF4_int_1 (63 downto 32)
602 {191, 31}, // map_TSF4_int_0 (31 downto 0)
603 {159, 31}, // map_TSF2_int_1 (63 downto 32)
604 {127, 31}, // map_TSF2_int_0 (31 downto 0)
605 {95, 31}, // map_TSF0_int_1 (63 downto 32)
606 {63, 31}, // map_TSF0_int_0 (31 downto 0)
607
608 {31, 1}, // charge_flag (31 downto 30)
609 {29, 2}, // charge_sum (31 downto 30)
610
611 {26, 10}, // revoclk (26 downto 16)
612 {15, 15} // aaaa (15 downto 0)
613 };
614
615 int
616 GetStoreLeaf(TRGGRLUnpackerStore* store, int leafID)
617 {
618 if (leafID == e_2GeV_15) return store->get_2GeV_ECL(15);
619 if (leafID == e_2GeV_14) return store->get_2GeV_ECL(14);
620 if (leafID == e_2GeV_13) return store->get_2GeV_ECL(13);
621 if (leafID == e_2GeV_12) return store->get_2GeV_ECL(12);
622 if (leafID == e_2GeV_11) return store->get_2GeV_ECL(11);
623 if (leafID == e_2GeV_10) return store->get_2GeV_ECL(10);
624 if (leafID == e_2GeV_9) return store->get_2GeV_ECL(9);
625 if (leafID == e_2GeV_8) return store->get_2GeV_ECL(8);
626 if (leafID == e_2GeV_7) return store->get_2GeV_ECL(7);
627 if (leafID == e_2GeV_6) return store->get_2GeV_ECL(6);
628 if (leafID == e_2GeV_5) return store->get_2GeV_ECL(5);
629 if (leafID == e_2GeV_4) return store->get_2GeV_ECL(4);
630 if (leafID == e_2GeV_3) return store->get_2GeV_ECL(3);
631 if (leafID == e_2GeV_2) return store->get_2GeV_ECL(2);
632 if (leafID == e_2GeV_1) return store->get_2GeV_ECL(1);
633 if (leafID == e_2GeV_0) return store->get_2GeV_ECL(0);
634 if (leafID == e_1GeV_15) return store->get_1GeV_ECL(15);
635 if (leafID == e_1GeV_14) return store->get_1GeV_ECL(14);
636 if (leafID == e_1GeV_13) return store->get_1GeV_ECL(13);
637 if (leafID == e_1GeV_12) return store->get_1GeV_ECL(12);
638 if (leafID == e_1GeV_11) return store->get_1GeV_ECL(11);
639 if (leafID == e_1GeV_10) return store->get_1GeV_ECL(10);
640 if (leafID == e_1GeV_9) return store->get_1GeV_ECL(9);
641 if (leafID == e_1GeV_8) return store->get_1GeV_ECL(8);
642 if (leafID == e_1GeV_7) return store->get_1GeV_ECL(7);
643 if (leafID == e_1GeV_6) return store->get_1GeV_ECL(6);
644 if (leafID == e_1GeV_5) return store->get_1GeV_ECL(5);
645 if (leafID == e_1GeV_4) return store->get_1GeV_ECL(4);
646 if (leafID == e_1GeV_3) return store->get_1GeV_ECL(3);
647 if (leafID == e_1GeV_2) return store->get_1GeV_ECL(2);
648 if (leafID == e_1GeV_1) return store->get_1GeV_ECL(1);
649 if (leafID == e_1GeV_0) return store->get_1GeV_ECL(0);
650
651 if (leafID == e_wirecnt_tsf0) return store->get_wirecnt_tsf0();
652 if (leafID == e_wirecnt_tsf1) return store->get_wirecnt_tsf1();
653 if (leafID == e_wirecnt_tsf2) return store->get_wirecnt_tsf2();
654 if (leafID == e_wirecnt_tsf3) return store->get_wirecnt_tsf3();
655 if (leafID == e_wirecnt_tsf4) return store->get_wirecnt_tsf4();
656 if (leafID == e_wirecnt_tsf5) return store->get_wirecnt_tsf5();
657 if (leafID == e_wirecnt_tsf6) return store->get_wirecnt_tsf6();
658 if (leafID == e_wirecnt_tsf7) return store->get_wirecnt_tsf7();
659 if (leafID == e_wirecnt_tsf8) return store->get_wirecnt_tsf8();
660
661 if (leafID == e_ml_tau_nn_output_0) return store->get_ml_tau_nn_output_0();
662 if (leafID == e_ml_tau_nn_output_1) return store->get_ml_tau_nn_output_1();
663 if (leafID == e_ml_tau_nn_output_2) return store->get_ml_tau_nn_output_2();
664 if (leafID == e_ml_tau_nn_output_3) return store->get_ml_tau_nn_output_3();
665 if (leafID == e_ml_tau_nn_output_4) return store->get_ml_tau_nn_output_4();
666 if (leafID == e_ml_tau_nn_output_5) return store->get_ml_tau_nn_output_5();
667 if (leafID == e_ml_tau_nn_output_6) return store->get_ml_tau_nn_output_6();
668 if (leafID == e_ml_tau_nn_output_7) return store->get_ml_tau_nn_output_7();
669 if (leafID == e_ml_tau_nn_output_8) return store->get_ml_tau_nn_output_8();
670 if (leafID == e_ml_tau_nn_output_9) return store->get_ml_tau_nn_output_9();
671 if (leafID == e_ml_tau_nn_input) return store->get_ml_tau_nn_input();
672
673 if (leafID == e_theta_11) return store->get_theta_ECL(11);
674 if (leafID == e_phi_11) return store->get_phi_ECL(11);
675 if (leafID == e_t_11) return store->get_t_ECL(11);
676 if (leafID == e_E_11) return store->get_E_ECL(11);
677 if (leafID == e_theta_10) return store->get_theta_ECL(10);
678 if (leafID == e_phi_10) return store->get_phi_ECL(10);
679 if (leafID == e_t_10) return store->get_t_ECL(10);
680 if (leafID == e_E_10) return store->get_E_ECL(10);
681 if (leafID == e_theta_9) return store->get_theta_ECL(9);
682 if (leafID == e_phi_9) return store->get_phi_ECL(9);
683 if (leafID == e_t_9) return store->get_t_ECL(9);
684 if (leafID == e_E_9) return store->get_E_ECL(9);
685 if (leafID == e_theta_8) return store->get_theta_ECL(8);
686 if (leafID == e_phi_8) return store->get_phi_ECL(8);
687 if (leafID == e_t_8) return store->get_t_ECL(8);
688 if (leafID == e_E_8) return store->get_E_ECL(8);
689 if (leafID == e_theta_7) return store->get_theta_ECL(7);
690 if (leafID == e_phi_7) return store->get_phi_ECL(7);
691 if (leafID == e_t_7) return store->get_t_ECL(7);
692 if (leafID == e_E_7) return store->get_E_ECL(7);
693 if (leafID == e_theta_6) return store->get_theta_ECL(6);
694 if (leafID == e_phi_6) return store->get_phi_ECL(6);
695 if (leafID == e_t_6) return store->get_t_ECL(6);
696 if (leafID == e_E_6) return store->get_E_ECL(6);
697 if (leafID == e_X_1) return store->get_X_1();
698 if (leafID == e_N_cluster_1) return store->get_N_cluster_1();
699 if (leafID == e_ECL_trg_1) return store->get_ECL_trg_1();
700 if (leafID == e_theta_5) return store->get_theta_ECL(5);
701 if (leafID == e_phi_5) return store->get_phi_ECL(5);
702 if (leafID == e_t_5) return store->get_t_ECL(5);
703 if (leafID == e_E_5) return store->get_E_ECL(5);
704 if (leafID == e_theta_4) return store->get_theta_ECL(4);
705 if (leafID == e_phi_4) return store->get_phi_ECL(4);
706 if (leafID == e_t_4) return store->get_t_ECL(4);
707 if (leafID == e_E_4) return store->get_E_ECL(4);
708 if (leafID == e_theta_3) return store->get_theta_ECL(3);
709 if (leafID == e_phi_3) return store->get_phi_ECL(3);
710 if (leafID == e_t_3) return store->get_t_ECL(3);
711 if (leafID == e_E_3) return store->get_E_ECL(3);
712 if (leafID == e_theta_2) return store->get_theta_ECL(2);
713 if (leafID == e_phi_2) return store->get_phi_ECL(2);
714 if (leafID == e_t_2) return store->get_t_ECL(2);
715 if (leafID == e_E_2) return store->get_E_ECL(2);
716 if (leafID == e_theta_1) return store->get_theta_ECL(1);
717 if (leafID == e_phi_1) return store->get_phi_ECL(1);
718 if (leafID == e_t_1) return store->get_t_ECL(1);
719 if (leafID == e_E_1) return store->get_E_ECL(1);
720 if (leafID == e_theta_0) return store->get_theta_ECL(0);
721 if (leafID == e_phi_0) return store->get_phi_ECL(0);
722 if (leafID == e_t_0) return store->get_t_ECL(0);
723 if (leafID == e_E_0) return store->get_E_ECL(0);
724 if (leafID == e_X_0) return store->get_X_0();
725 if (leafID == e_N_cluster_0) return store->get_N_cluster_0();
726 if (leafID == e_ECL_trg_0) return store->get_ECL_trg_0();
727 if (leafID == e_ECL_trg) return store->get_ECL_trg();
728 if (leafID == e_ECL_trg_delay) return store->get_ECL_trg_delay();
729 if (leafID == e_N_track_cut) return store->get_N_track_cut();
730 if (leafID == e_N_track_NN) return store->get_N_track_NN();
731 if (leafID == e_N_track_3D) return store->get_N_track_3D();
732 if (leafID == e_CDCL1_count) return store->get_CDCL1_count();
733 if (leafID == e_phi_CDC_int_1) return store->get_phi_CDC_int(1);
734 if (leafID == e_phi_CDC_int_0) return store->get_phi_CDC_int(0);
735 if (leafID == e_phi_i_int_1) return store->get_phi_i_int(1);
736 if (leafID == e_phi_i_int_0) return store->get_phi_i_int(0);
737 if (leafID == e_N_track) return store->get_N_track();
738 if (leafID == e_b2b_1to3) return store->get_b2b_1to3();
739 if (leafID == e_b2b_1to5) return store->get_b2b_1to5();
740 if (leafID == e_b2b_1to7) return store->get_b2b_1to7();
741 if (leafID == e_b2b_1to9) return store->get_b2b_1to9();
742 if (leafID == e_opening) return store->get_opening();
743 if (leafID == e_samehem_1) return store->get_samehem(1);
744 if (leafID == e_opphem_1) return store->get_opphem(1);
745 if (leafID == e_c_b2b_1to9_1) return store->get_c_b2b_1to9(1);
746 if (leafID == e_c_b2b_1to7_1) return store->get_c_b2b_1to7(1);
747 if (leafID == e_c_b2b_1to5_1) return store->get_c_b2b_1to5(1);
748 if (leafID == e_c_b2b_1to3_1) return store->get_c_b2b_1to3(1);
749 if (leafID == e_tc_b2b_1to9_1) return store->get_tc_b2b_1to9(1);
750 if (leafID == e_tc_b2b_1to7_1) return store->get_tc_b2b_1to7(1);
751 if (leafID == e_tc_b2b_1to5_1) return store->get_tc_b2b_1to5(1);
752 if (leafID == e_tc_b2b_1to3_1) return store->get_tc_b2b_1to3(1);
753 if (leafID == e_TOPL1_count) return store->get_TOPL1_count();
754 if (leafID == e_KLML1_count) return store->get_KLML1_count();
755 if (leafID == e_sector_KLM_int) return store->get_sector_KLM_int();
756 if (leafID == e_sector_CDC_int) return store->get_sector_CDC_int();
757 if (leafID == e_N_KLMmatch) return store->get_N_KLMmatch();
758 if (leafID == e_samehem_0) return store->get_samehem(0);
759 if (leafID == e_opphem_0) return store->get_opphem(0);
760 if (leafID == e_N_match_2GeV_0) return store->get_N_match_2GeV(0);
761 if (leafID == e_N_match_0) return store->get_N_match(0);
762 if (leafID == e_N_g_1GeV_0) return store->get_N_g_1GeV(0);
763 if (leafID == e_N_g_2GeV_0) return store->get_N_g_2GeV(0);
764 if (leafID == e_ECLL1_count) return store->get_ECLL1_count();
765 if (leafID == e_c_b2b_1to9_0) return store->get_c_b2b_1to9(0);
766 if (leafID == e_c_b2b_1to7_0) return store->get_c_b2b_1to7(0);
767 if (leafID == e_c_b2b_1to5_0) return store->get_c_b2b_1to5(0);
768 if (leafID == e_c_b2b_1to3_0) return store->get_c_b2b_1to3(0);
769 if (leafID == e_tc_b2b_1to9_0) return store->get_tc_b2b_1to9(0);
770 if (leafID == e_tc_b2b_1to7_0) return store->get_tc_b2b_1to7(0);
771 if (leafID == e_tc_b2b_1to5_0) return store->get_tc_b2b_1to5(0);
772 if (leafID == e_tc_b2b_1to3_0) return store->get_tc_b2b_1to3(0);
773 if (leafID == e_CDC3DL1_count) return store->get_CDC3DL1_count();
774 if (leafID == e_CDCNNL1_count) return store->get_CDCNNL1_count();
775 if (leafID == e_slot_CDC_int) return store->get_slot_CDC_int();
776 if (leafID == e_slot_TOP_int) return store->get_slot_TOP_int();
777 if (leafID == e_N_TOPmatch) return store->get_N_TOPmatch();
778 if (leafID == e_N_match_2GeV_1) return store->get_N_match_2GeV(1);
779 if (leafID == e_N_match_1) return store->get_N_match(1);
780 if (leafID == e_N_g_1GeV_1) return store->get_N_g_1GeV(1);
781 if (leafID == e_N_g_2GeV_1) return store->get_N_g_2GeV(1);
782 if (leafID == e_TSFL1_count) return store->get_TSFL1_count();
783 if (leafID == e_map_TSF3_int_1) return store->get_map_TSF3_int(1);
784 if (leafID == e_map_TSF3_int_0) return store->get_map_TSF3_int(0);
785 if (leafID == e_map_TSF1_int_1) return store->get_map_TSF1_int(1);
786 if (leafID == e_map_TSF1_int_0) return store->get_map_TSF1_int(0);
787 if (leafID == e_N_ST) return store->get_N_ST();
788 if (leafID == e_map_ST_int_1) return store->get_map_ST_int(1);
789 if (leafID == e_map_ST_int_0) return store->get_map_ST_int(0);
790 if (leafID == e_map_veto_int_1) return store->get_map_veto_int(1);
791 if (leafID == e_map_veto_int_0) return store->get_map_veto_int(0);
792 if (leafID == e_map_TSF4_int_1) return store->get_map_TSF4_int(1);
793 if (leafID == e_map_TSF4_int_0) return store->get_map_TSF4_int(0);
794 if (leafID == e_map_TSF2_int_1) return store->get_map_TSF2_int(1);
795 if (leafID == e_map_TSF2_int_0) return store->get_map_TSF2_int(0);
796 if (leafID == e_map_TSF0_int_1) return store->get_map_TSF0_int(1);
797 if (leafID == e_map_TSF0_int_0) return store->get_map_TSF0_int(0);
798 if (leafID == e_charge_flag) return store->get_charge_flag();
799 if (leafID == e_charge_sum) return store->get_charge_sum();
800 if (leafID == e_revoclk) return store->get_revoclk();
801 if (leafID == e_aaaa) return store->get_aaaa();
802 if (leafID == e_evt) return store->get_evt();
803 if (leafID == e_clk) return store->get_clk();
804 if (leafID == e_firmid) return store->get_firmid();
805 if (leafID == e_firmver) return store->get_firmver();
806 if (leafID == e_coml1) return store->get_coml1();
807 if (leafID == e_b2ldly) return store->get_b2ldly();
808 if (leafID == e_maxrvc) return store->get_maxrvc();
809 else {
810 B2WARNING("!!!getting leaf out of list!!!");
811 return 0;
812 }
813 };
814
815 void
816 SetStoreLeaf(TRGGRLUnpackerStore* store, int leafID, int value)
817 {
818 if (leafID == e_2GeV_15) store->set_2GeV_ECL(15, value);
819 if (leafID == e_2GeV_14) store->set_2GeV_ECL(14, value);
820 if (leafID == e_2GeV_13) store->set_2GeV_ECL(13, value);
821 if (leafID == e_2GeV_12) store->set_2GeV_ECL(12, value);
822 if (leafID == e_2GeV_11) store->set_2GeV_ECL(11, value);
823 if (leafID == e_2GeV_10) store->set_2GeV_ECL(10, value);
824 if (leafID == e_2GeV_9) store->set_2GeV_ECL(9, value);
825 if (leafID == e_2GeV_8) store->set_2GeV_ECL(8, value);
826 if (leafID == e_2GeV_7) store->set_2GeV_ECL(7, value);
827 if (leafID == e_2GeV_6) store->set_2GeV_ECL(6, value);
828 if (leafID == e_2GeV_5) store->set_2GeV_ECL(5, value);
829 if (leafID == e_2GeV_4) store->set_2GeV_ECL(4, value);
830 if (leafID == e_2GeV_3) store->set_2GeV_ECL(3, value);
831 if (leafID == e_2GeV_2) store->set_2GeV_ECL(2, value);
832 if (leafID == e_2GeV_1) store->set_2GeV_ECL(1, value);
833 if (leafID == e_2GeV_0) store->set_2GeV_ECL(0, value);
834 if (leafID == e_1GeV_15) store->set_1GeV_ECL(15, value);
835 if (leafID == e_1GeV_14) store->set_1GeV_ECL(14, value);
836 if (leafID == e_1GeV_13) store->set_1GeV_ECL(13, value);
837 if (leafID == e_1GeV_12) store->set_1GeV_ECL(12, value);
838 if (leafID == e_1GeV_11) store->set_1GeV_ECL(11, value);
839 if (leafID == e_1GeV_10) store->set_1GeV_ECL(10, value);
840 if (leafID == e_1GeV_9) store->set_1GeV_ECL(9, value);
841 if (leafID == e_1GeV_8) store->set_1GeV_ECL(8, value);
842 if (leafID == e_1GeV_7) store->set_1GeV_ECL(7, value);
843 if (leafID == e_1GeV_6) store->set_1GeV_ECL(6, value);
844 if (leafID == e_1GeV_5) store->set_1GeV_ECL(5, value);
845 if (leafID == e_1GeV_4) store->set_1GeV_ECL(4, value);
846 if (leafID == e_1GeV_3) store->set_1GeV_ECL(3, value);
847 if (leafID == e_1GeV_2) store->set_1GeV_ECL(2, value);
848 if (leafID == e_1GeV_1) store->set_1GeV_ECL(1, value);
849 if (leafID == e_1GeV_0) store->set_1GeV_ECL(0, value);
850
851 if (leafID == e_wirecnt_tsf0) store->set_wirecnt_tsf0(value);
852 if (leafID == e_wirecnt_tsf1) store->set_wirecnt_tsf1(value);
853 if (leafID == e_wirecnt_tsf2) store->set_wirecnt_tsf2(value);
854 if (leafID == e_wirecnt_tsf3) store->set_wirecnt_tsf3(value);
855 if (leafID == e_wirecnt_tsf4) store->set_wirecnt_tsf4(value);
856 if (leafID == e_wirecnt_tsf5) store->set_wirecnt_tsf5(value);
857 if (leafID == e_wirecnt_tsf6) store->set_wirecnt_tsf6(value);
858 if (leafID == e_wirecnt_tsf7) store->set_wirecnt_tsf7(value);
859 if (leafID == e_wirecnt_tsf8) store->set_wirecnt_tsf8(value);
860
861 if (leafID == e_ml_tau_nn_output_0) store->set_ml_tau_nn_output_0(value);
862 if (leafID == e_ml_tau_nn_output_1) store->set_ml_tau_nn_output_1(value);
863 if (leafID == e_ml_tau_nn_output_2) store->set_ml_tau_nn_output_2(value);
864 if (leafID == e_ml_tau_nn_output_3) store->set_ml_tau_nn_output_3(value);
865 if (leafID == e_ml_tau_nn_output_4) store->set_ml_tau_nn_output_4(value);
866 if (leafID == e_ml_tau_nn_output_5) store->set_ml_tau_nn_output_5(value);
867 if (leafID == e_ml_tau_nn_output_6) store->set_ml_tau_nn_output_6(value);
868 if (leafID == e_ml_tau_nn_output_7) store->set_ml_tau_nn_output_7(value);
869 if (leafID == e_ml_tau_nn_output_8) store->set_ml_tau_nn_output_8(value);
870 if (leafID == e_ml_tau_nn_output_9) store->set_ml_tau_nn_output_9(value);
871 if (leafID == e_ml_tau_nn_input) store->set_ml_tau_nn_input(value);
872
873 if (leafID == e_theta_11) store->set_theta_ECL(11, value);
874 if (leafID == e_phi_11) store->set_phi_ECL(11, value);
875 if (leafID == e_t_11) store->set_t_ECL(11, value);
876 if (leafID == e_E_11) store->set_E_ECL(11, value);
877 if (leafID == e_theta_10) store->set_theta_ECL(10, value);
878 if (leafID == e_phi_10) store->set_phi_ECL(10, value);
879 if (leafID == e_t_10) store->set_t_ECL(10, value);
880 if (leafID == e_E_10) store->set_E_ECL(10, value);
881 if (leafID == e_theta_9) store->set_theta_ECL(9, value);
882 if (leafID == e_phi_9) store->set_phi_ECL(9, value);
883 if (leafID == e_t_9) store->set_t_ECL(9, value);
884 if (leafID == e_E_9) store->set_E_ECL(9, value);
885 if (leafID == e_theta_8) store->set_theta_ECL(8, value);
886 if (leafID == e_phi_8) store->set_phi_ECL(8, value);
887 if (leafID == e_t_8) store->set_t_ECL(8, value);
888 if (leafID == e_E_8) store->set_E_ECL(8, value);
889 if (leafID == e_theta_7) store->set_theta_ECL(7, value);
890 if (leafID == e_phi_7) store->set_phi_ECL(7, value);
891 if (leafID == e_t_7) store->set_t_ECL(7, value);
892 if (leafID == e_E_7) store->set_E_ECL(7, value);
893 if (leafID == e_theta_6) store->set_theta_ECL(6, value);
894 if (leafID == e_phi_6) store->set_phi_ECL(6, value);
895 if (leafID == e_t_6) store->set_t_ECL(6, value);
896 if (leafID == e_E_6) store->set_E_ECL(6, value);
897 if (leafID == e_X_1) store->set_X_1(value);
898 if (leafID == e_N_cluster_1) store->set_N_cluster_1(value);
899 if (leafID == e_ECL_trg_1) store->set_ECL_trg_1(value);
900 if (leafID == e_theta_5) store->set_theta_ECL(5, value);
901 if (leafID == e_phi_5) store->set_phi_ECL(5, value);
902 if (leafID == e_t_5) store->set_t_ECL(5, value);
903 if (leafID == e_E_5) store->set_E_ECL(5, value);
904 if (leafID == e_theta_4) store->set_theta_ECL(4, value);
905 if (leafID == e_phi_4) store->set_phi_ECL(4, value);
906 if (leafID == e_t_4) store->set_t_ECL(4, value);
907 if (leafID == e_E_4) store->set_E_ECL(4, value);
908 if (leafID == e_theta_3) store->set_theta_ECL(3, value);
909 if (leafID == e_phi_3) store->set_phi_ECL(3, value);
910 if (leafID == e_t_3) store->set_t_ECL(3, value);
911 if (leafID == e_E_3) store->set_E_ECL(3, value);
912 if (leafID == e_theta_2) store->set_theta_ECL(2, value);
913 if (leafID == e_phi_2) store->set_phi_ECL(2, value);
914 if (leafID == e_t_2) store->set_t_ECL(2, value);
915 if (leafID == e_E_2) store->set_E_ECL(2, value);
916 if (leafID == e_theta_1) store->set_theta_ECL(1, value);
917 if (leafID == e_phi_1) store->set_phi_ECL(1, value);
918 if (leafID == e_t_1) store->set_t_ECL(1, value);
919 if (leafID == e_E_1) store->set_E_ECL(1, value);
920 if (leafID == e_theta_0) store->set_theta_ECL(0, value);
921 if (leafID == e_phi_0) store->set_phi_ECL(0, value);
922 if (leafID == e_t_0) store->set_t_ECL(0, value);
923 if (leafID == e_E_0) store->set_E_ECL(0, value);
924 if (leafID == e_X_0) store->set_X_0(value);
925 if (leafID == e_N_cluster_0) store->set_N_cluster_0(value);
926 if (leafID == e_ECL_trg_0) store->set_ECL_trg_0(value);
927 if (leafID == e_ECL_trg) store->set_ECL_trg(value);
928 if (leafID == e_ECL_trg_delay) store->set_ECL_trg_delay(value);
929 if (leafID == e_N_track_cut) store->set_N_track_cut(value);
930 if (leafID == e_N_track_NN) store->set_N_track_NN(value);
931 if (leafID == e_N_track_3D) store->set_N_track_3D(value);
932 if (leafID == e_CDCL1_count) store->set_CDCL1_count(value);
933 if (leafID == e_phi_CDC_int_1) store->set_phi_CDC_int(1, value);
934 if (leafID == e_phi_CDC_int_0) store->set_phi_CDC_int(0, value);
935 if (leafID == e_phi_i_int_1) store->set_phi_i_int(1, value);
936 if (leafID == e_phi_i_int_0) store->set_phi_i_int(0, value);
937 if (leafID == e_N_track) store->set_N_track(value);
938 if (leafID == e_b2b_1to3) store->set_b2b_1to3(value);
939 if (leafID == e_b2b_1to5) store->set_b2b_1to5(value);
940 if (leafID == e_b2b_1to7) store->set_b2b_1to7(value);
941 if (leafID == e_b2b_1to9) store->set_b2b_1to9(value);
942 if (leafID == e_opening) store->set_opening(value);
943 if (leafID == e_samehem_1) store->set_samehem(1, value);
944 if (leafID == e_opphem_1) store->set_opphem(1, value);
945 if (leafID == e_c_b2b_1to9_1) store->set_c_b2b_1to9(1, value);
946 if (leafID == e_c_b2b_1to7_1) store->set_c_b2b_1to7(1, value);
947 if (leafID == e_c_b2b_1to5_1) store->set_c_b2b_1to5(1, value);
948 if (leafID == e_c_b2b_1to3_1) store->set_c_b2b_1to3(1, value);
949 if (leafID == e_tc_b2b_1to9_1) store->set_tc_b2b_1to9(1, value);
950 if (leafID == e_tc_b2b_1to7_1) store->set_tc_b2b_1to7(1, value);
951 if (leafID == e_tc_b2b_1to5_1) store->set_tc_b2b_1to5(1, value);
952 if (leafID == e_tc_b2b_1to3_1) store->set_tc_b2b_1to3(1, value);
953 if (leafID == e_TOPL1_count) store->set_TOPL1_count(value);
954 if (leafID == e_KLML1_count) store->set_KLML1_count(value);
955 if (leafID == e_sector_KLM_int) store->set_sector_KLM_int(value);
956 if (leafID == e_sector_CDC_int) store->set_sector_CDC_int(value);
957 if (leafID == e_N_KLMmatch) store->set_N_KLMmatch(value);
958 if (leafID == e_samehem_0) store->set_samehem(0, value);
959 if (leafID == e_opphem_0) store->set_opphem(0, value);
960 if (leafID == e_N_match_2GeV_0) store->set_N_match_2GeV(0, value);
961 if (leafID == e_N_match_0) store->set_N_match(0, value);
962 if (leafID == e_N_g_1GeV_0) store->set_N_g_1GeV(0, value);
963 if (leafID == e_N_g_2GeV_0) store->set_N_g_2GeV(0, value);
964 if (leafID == e_ECLL1_count) store->set_ECLL1_count(value);
965 if (leafID == e_c_b2b_1to9_0) store->set_c_b2b_1to9(0, value);
966 if (leafID == e_c_b2b_1to7_0) store->set_c_b2b_1to7(0, value);
967 if (leafID == e_c_b2b_1to5_0) store->set_c_b2b_1to5(0, value);
968 if (leafID == e_c_b2b_1to3_0) store->set_c_b2b_1to3(0, value);
969 if (leafID == e_tc_b2b_1to9_0) store->set_tc_b2b_1to9(0, value);
970 if (leafID == e_tc_b2b_1to7_0) store->set_tc_b2b_1to7(0, value);
971 if (leafID == e_tc_b2b_1to5_0) store->set_tc_b2b_1to5(0, value);
972 if (leafID == e_tc_b2b_1to3_0) store->set_tc_b2b_1to3(0, value);
973 if (leafID == e_CDC3DL1_count) store->set_CDC3DL1_count(value);
974 if (leafID == e_CDCNNL1_count) store->set_CDCNNL1_count(value);
975 if (leafID == e_slot_CDC_int) store->set_slot_CDC_int(value);
976 if (leafID == e_slot_TOP_int) store->set_slot_TOP_int(value);
977 if (leafID == e_N_TOPmatch) store->set_N_TOPmatch(value);
978 if (leafID == e_N_match_2GeV_1) store->set_N_match_2GeV(1, value);
979 if (leafID == e_N_match_1) store->set_N_match(1, value);
980 if (leafID == e_N_g_1GeV_1) store->set_N_g_1GeV(1, value);
981 if (leafID == e_N_g_2GeV_1) store->set_N_g_2GeV(1, value);
982 if (leafID == e_TSFL1_count) store->set_TSFL1_count(value);
983 if (leafID == e_map_TSF3_int_1) store->set_map_TSF3_int(1, value);
984 if (leafID == e_map_TSF3_int_0) store->set_map_TSF3_int(0, value);
985 if (leafID == e_map_TSF1_int_1) store->set_map_TSF1_int(1, value);
986 if (leafID == e_map_TSF1_int_0) store->set_map_TSF1_int(0, value);
987 if (leafID == e_N_ST) store->set_N_ST(value);
988 if (leafID == e_map_ST_int_1) store->set_map_ST_int(1, value);
989 if (leafID == e_map_ST_int_0) store->set_map_ST_int(0, value);
990 if (leafID == e_map_veto_int_1) store->set_map_veto_int(1, value);
991 if (leafID == e_map_veto_int_0) store->set_map_veto_int(0, value);
992 if (leafID == e_map_TSF4_int_1) store->set_map_TSF4_int(1, value);
993 if (leafID == e_map_TSF4_int_0) store->set_map_TSF4_int(0, value);
994 if (leafID == e_map_TSF2_int_1) store->set_map_TSF2_int(1, value);
995 if (leafID == e_map_TSF2_int_0) store->set_map_TSF2_int(0, value);
996 if (leafID == e_map_TSF0_int_1) store->set_map_TSF0_int(1, value);
997 if (leafID == e_map_TSF0_int_0) store->set_map_TSF0_int(0, value);
998 if (leafID == e_charge_flag) store->set_charge_flag(value);
999 if (leafID == e_charge_sum) store->set_charge_sum(value);
1000 if (leafID == e_revoclk) store->set_revoclk(value);
1001 if (leafID == e_aaaa) store->set_aaaa(value);
1002 if (leafID == e_evt) store->set_evt(value);
1003 if (leafID == e_clk) store->set_clk(value);
1004 if (leafID == e_firmid) store->set_firmid(value);
1005 if (leafID == e_firmver) store->set_firmver(value);
1006 if (leafID == e_coml1) store->set_coml1(value);
1007 if (leafID == e_b2ldly) store->set_b2ldly(value);
1008 if (leafID == e_maxrvc) store->set_maxrvc(value);
1009 };
1010
1013
1014 public:
1015
1018
1020 virtual ~TRGGRLUnpackerModule();
1021
1023 virtual void initialize() override;
1024
1026 virtual void event() override;
1027
1029 virtual void terminate() override;
1030
1032 virtual void beginRun() override;
1033
1035 virtual void endRun() override;
1036
1038 std::string version() const;
1039
1041 virtual void fillTreeTRGGRLUnpacker(int* buf, int evt);
1042
1043 private:
1044
1047
1048 };
1049 }
1051} // end namespace Belle2
1052#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.