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