9#ifndef TRGGRLUNPACKER_H
10#define TRGGRLUNPACKER_H
15#include "rawdata/dataobjects/RawTRG.h"
16#include "trg/grl/dataobjects/TRGGRLUnpackerStore.h"
18#include <framework/core/Module.h>
19#include <framework/datastore/StoreArray.h>
20#include <framework/datastore/StoreObjPtr.h>
28 namespace TRGGRLUNPACKERSPACE {
31 const int nLeafs = 128 + 7 + 32 + 7;
33 const int nLeafsExtra = 7;
37 const int nBits = 2048;
39 const char* LeafNames[nLeafs + nLeafsExtra] = {
212 "firmid",
"firmver",
"evt",
"clk",
"coml1",
"b2ldly",
"maxrvc"
392 e_firmid, e_firmver, e_evt, e_clk, e_coml1, e_b2ldly, e_maxrvc
396 const int BitMap[nLeafs][2] = {
478 {1648 - 216 * 2, 11},
483 {1613 - 216 * 2, 11},
488 {1578 - 216 * 2, 11},
493 {1543 - 216 * 2, 11},
498 {1508 - 216 * 2, 11},
503 {1473 - 216 * 2, 11},
594 GetStoreLeaf(TRGGRLUnpackerStore* store,
int leafID)
596 if (leafID == e_2GeV_15)
return store->get_2GeV_ECL(15);
597 if (leafID == e_2GeV_14)
return store->get_2GeV_ECL(14);
598 if (leafID == e_2GeV_13)
return store->get_2GeV_ECL(13);
599 if (leafID == e_2GeV_12)
return store->get_2GeV_ECL(12);
600 if (leafID == e_2GeV_11)
return store->get_2GeV_ECL(11);
601 if (leafID == e_2GeV_10)
return store->get_2GeV_ECL(10);
602 if (leafID == e_2GeV_9)
return store->get_2GeV_ECL(9);
603 if (leafID == e_2GeV_8)
return store->get_2GeV_ECL(8);
604 if (leafID == e_2GeV_7)
return store->get_2GeV_ECL(7);
605 if (leafID == e_2GeV_6)
return store->get_2GeV_ECL(6);
606 if (leafID == e_2GeV_5)
return store->get_2GeV_ECL(5);
607 if (leafID == e_2GeV_4)
return store->get_2GeV_ECL(4);
608 if (leafID == e_2GeV_3)
return store->get_2GeV_ECL(3);
609 if (leafID == e_2GeV_2)
return store->get_2GeV_ECL(2);
610 if (leafID == e_2GeV_1)
return store->get_2GeV_ECL(1);
611 if (leafID == e_2GeV_0)
return store->get_2GeV_ECL(0);
612 if (leafID == e_1GeV_15)
return store->get_1GeV_ECL(15);
613 if (leafID == e_1GeV_14)
return store->get_1GeV_ECL(14);
614 if (leafID == e_1GeV_13)
return store->get_1GeV_ECL(13);
615 if (leafID == e_1GeV_12)
return store->get_1GeV_ECL(12);
616 if (leafID == e_1GeV_11)
return store->get_1GeV_ECL(11);
617 if (leafID == e_1GeV_10)
return store->get_1GeV_ECL(10);
618 if (leafID == e_1GeV_9)
return store->get_1GeV_ECL(9);
619 if (leafID == e_1GeV_8)
return store->get_1GeV_ECL(8);
620 if (leafID == e_1GeV_7)
return store->get_1GeV_ECL(7);
621 if (leafID == e_1GeV_6)
return store->get_1GeV_ECL(6);
622 if (leafID == e_1GeV_5)
return store->get_1GeV_ECL(5);
623 if (leafID == e_1GeV_4)
return store->get_1GeV_ECL(4);
624 if (leafID == e_1GeV_3)
return store->get_1GeV_ECL(3);
625 if (leafID == e_1GeV_2)
return store->get_1GeV_ECL(2);
626 if (leafID == e_1GeV_1)
return store->get_1GeV_ECL(1);
627 if (leafID == e_1GeV_0)
return store->get_1GeV_ECL(0);
629 if (leafID == e_wirecnt_tsf0)
return store->get_wirecnt_tsf0();
630 if (leafID == e_wirecnt_tsf1)
return store->get_wirecnt_tsf1();
631 if (leafID == e_wirecnt_tsf2)
return store->get_wirecnt_tsf2();
632 if (leafID == e_wirecnt_tsf3)
return store->get_wirecnt_tsf3();
633 if (leafID == e_wirecnt_tsf4)
return store->get_wirecnt_tsf4();
634 if (leafID == e_wirecnt_tsf5)
return store->get_wirecnt_tsf5();
635 if (leafID == e_wirecnt_tsf6)
return store->get_wirecnt_tsf6();
636 if (leafID == e_wirecnt_tsf7)
return store->get_wirecnt_tsf7();
637 if (leafID == e_wirecnt_tsf8)
return store->get_wirecnt_tsf8();
639 if (leafID == e_theta_11)
return store->get_theta_ECL(11);
640 if (leafID == e_phi_11)
return store->get_phi_ECL(11);
641 if (leafID == e_t_11)
return store->get_t_ECL(11);
642 if (leafID == e_E_11)
return store->get_E_ECL(11);
643 if (leafID == e_theta_10)
return store->get_theta_ECL(10);
644 if (leafID == e_phi_10)
return store->get_phi_ECL(10);
645 if (leafID == e_t_10)
return store->get_t_ECL(10);
646 if (leafID == e_E_10)
return store->get_E_ECL(10);
647 if (leafID == e_theta_9)
return store->get_theta_ECL(9);
648 if (leafID == e_phi_9)
return store->get_phi_ECL(9);
649 if (leafID == e_t_9)
return store->get_t_ECL(9);
650 if (leafID == e_E_9)
return store->get_E_ECL(9);
651 if (leafID == e_theta_8)
return store->get_theta_ECL(8);
652 if (leafID == e_phi_8)
return store->get_phi_ECL(8);
653 if (leafID == e_t_8)
return store->get_t_ECL(8);
654 if (leafID == e_E_8)
return store->get_E_ECL(8);
655 if (leafID == e_theta_7)
return store->get_theta_ECL(7);
656 if (leafID == e_phi_7)
return store->get_phi_ECL(7);
657 if (leafID == e_t_7)
return store->get_t_ECL(7);
658 if (leafID == e_E_7)
return store->get_E_ECL(7);
659 if (leafID == e_theta_6)
return store->get_theta_ECL(6);
660 if (leafID == e_phi_6)
return store->get_phi_ECL(6);
661 if (leafID == e_t_6)
return store->get_t_ECL(6);
662 if (leafID == e_E_6)
return store->get_E_ECL(6);
663 if (leafID == e_X_1)
return store->get_X_1();
664 if (leafID == e_N_cluster_1)
return store->get_N_cluster_1();
665 if (leafID == e_ECL_trg_1)
return store->get_ECL_trg_1();
666 if (leafID == e_theta_5)
return store->get_theta_ECL(5);
667 if (leafID == e_phi_5)
return store->get_phi_ECL(5);
668 if (leafID == e_t_5)
return store->get_t_ECL(5);
669 if (leafID == e_E_5)
return store->get_E_ECL(5);
670 if (leafID == e_theta_4)
return store->get_theta_ECL(4);
671 if (leafID == e_phi_4)
return store->get_phi_ECL(4);
672 if (leafID == e_t_4)
return store->get_t_ECL(4);
673 if (leafID == e_E_4)
return store->get_E_ECL(4);
674 if (leafID == e_theta_3)
return store->get_theta_ECL(3);
675 if (leafID == e_phi_3)
return store->get_phi_ECL(3);
676 if (leafID == e_t_3)
return store->get_t_ECL(3);
677 if (leafID == e_E_3)
return store->get_E_ECL(3);
678 if (leafID == e_theta_2)
return store->get_theta_ECL(2);
679 if (leafID == e_phi_2)
return store->get_phi_ECL(2);
680 if (leafID == e_t_2)
return store->get_t_ECL(2);
681 if (leafID == e_E_2)
return store->get_E_ECL(2);
682 if (leafID == e_theta_1)
return store->get_theta_ECL(1);
683 if (leafID == e_phi_1)
return store->get_phi_ECL(1);
684 if (leafID == e_t_1)
return store->get_t_ECL(1);
685 if (leafID == e_E_1)
return store->get_E_ECL(1);
686 if (leafID == e_theta_0)
return store->get_theta_ECL(0);
687 if (leafID == e_phi_0)
return store->get_phi_ECL(0);
688 if (leafID == e_t_0)
return store->get_t_ECL(0);
689 if (leafID == e_E_0)
return store->get_E_ECL(0);
690 if (leafID == e_X_0)
return store->get_X_0();
691 if (leafID == e_N_cluster_0)
return store->get_N_cluster_0();
692 if (leafID == e_ECL_trg_0)
return store->get_ECL_trg_0();
693 if (leafID == e_ECL_trg)
return store->get_ECL_trg();
694 if (leafID == e_ECL_trg_delay)
return store->get_ECL_trg_delay();
695 if (leafID == e_N_track_cut)
return store->get_N_track_cut();
696 if (leafID == e_N_track_NN)
return store->get_N_track_NN();
697 if (leafID == e_N_track_3D)
return store->get_N_track_3D();
698 if (leafID == e_CDCL1_count)
return store->get_CDCL1_count();
699 if (leafID == e_phi_CDC_int_1)
return store->get_phi_CDC_int(1);
700 if (leafID == e_phi_CDC_int_0)
return store->get_phi_CDC_int(0);
701 if (leafID == e_phi_i_int_1)
return store->get_phi_i_int(1);
702 if (leafID == e_phi_i_int_0)
return store->get_phi_i_int(0);
703 if (leafID == e_N_track)
return store->get_N_track();
704 if (leafID == e_b2b_1to3)
return store->get_b2b_1to3();
705 if (leafID == e_b2b_1to5)
return store->get_b2b_1to5();
706 if (leafID == e_b2b_1to7)
return store->get_b2b_1to7();
707 if (leafID == e_b2b_1to9)
return store->get_b2b_1to9();
708 if (leafID == e_opening)
return store->get_opening();
709 if (leafID == e_samehem_1)
return store->get_samehem(1);
710 if (leafID == e_opphem_1)
return store->get_opphem(1);
711 if (leafID == e_c_b2b_1to9_1)
return store->get_c_b2b_1to9(1);
712 if (leafID == e_c_b2b_1to7_1)
return store->get_c_b2b_1to7(1);
713 if (leafID == e_c_b2b_1to5_1)
return store->get_c_b2b_1to5(1);
714 if (leafID == e_c_b2b_1to3_1)
return store->get_c_b2b_1to3(1);
715 if (leafID == e_tc_b2b_1to9_1)
return store->get_tc_b2b_1to9(1);
716 if (leafID == e_tc_b2b_1to7_1)
return store->get_tc_b2b_1to7(1);
717 if (leafID == e_tc_b2b_1to5_1)
return store->get_tc_b2b_1to5(1);
718 if (leafID == e_tc_b2b_1to3_1)
return store->get_tc_b2b_1to3(1);
719 if (leafID == e_TOPL1_count)
return store->get_TOPL1_count();
720 if (leafID == e_KLML1_count)
return store->get_KLML1_count();
721 if (leafID == e_sector_KLM_int)
return store->get_sector_KLM_int();
722 if (leafID == e_sector_CDC_int)
return store->get_sector_CDC_int();
723 if (leafID == e_N_KLMmatch)
return store->get_N_KLMmatch();
724 if (leafID == e_samehem_0)
return store->get_samehem(0);
725 if (leafID == e_opphem_0)
return store->get_opphem(0);
726 if (leafID == e_N_match_2GeV_0)
return store->get_N_match_2GeV(0);
727 if (leafID == e_N_match_0)
return store->get_N_match(0);
728 if (leafID == e_N_g_1GeV_0)
return store->get_N_g_1GeV(0);
729 if (leafID == e_N_g_2GeV_0)
return store->get_N_g_2GeV(0);
730 if (leafID == e_ECLL1_count)
return store->get_ECLL1_count();
731 if (leafID == e_c_b2b_1to9_0)
return store->get_c_b2b_1to9(0);
732 if (leafID == e_c_b2b_1to7_0)
return store->get_c_b2b_1to7(0);
733 if (leafID == e_c_b2b_1to5_0)
return store->get_c_b2b_1to5(0);
734 if (leafID == e_c_b2b_1to3_0)
return store->get_c_b2b_1to3(0);
735 if (leafID == e_tc_b2b_1to9_0)
return store->get_tc_b2b_1to9(0);
736 if (leafID == e_tc_b2b_1to7_0)
return store->get_tc_b2b_1to7(0);
737 if (leafID == e_tc_b2b_1to5_0)
return store->get_tc_b2b_1to5(0);
738 if (leafID == e_tc_b2b_1to3_0)
return store->get_tc_b2b_1to3(0);
739 if (leafID == e_CDC3DL1_count)
return store->get_CDC3DL1_count();
740 if (leafID == e_CDCNNL1_count)
return store->get_CDCNNL1_count();
741 if (leafID == e_slot_CDC_int)
return store->get_slot_CDC_int();
742 if (leafID == e_slot_TOP_int)
return store->get_slot_TOP_int();
743 if (leafID == e_N_TOPmatch)
return store->get_N_TOPmatch();
744 if (leafID == e_N_match_2GeV_1)
return store->get_N_match_2GeV(1);
745 if (leafID == e_N_match_1)
return store->get_N_match(1);
746 if (leafID == e_N_g_1GeV_1)
return store->get_N_g_1GeV(1);
747 if (leafID == e_N_g_2GeV_1)
return store->get_N_g_2GeV(1);
748 if (leafID == e_TSFL1_count)
return store->get_TSFL1_count();
749 if (leafID == e_slot64b_TOP_int_1)
return store->get_slot64b_TOP_int_1();
750 if (leafID == e_slot64b_TOP_int_0)
return store->get_slot64b_TOP_int_0();
751 if (leafID == e_map_TSF3_int_1)
return store->get_map_TSF3_int(1);
752 if (leafID == e_map_TSF3_int_0)
return store->get_map_TSF3_int(0);
753 if (leafID == e_map_TSF1_int_1)
return store->get_map_TSF1_int(1);
754 if (leafID == e_map_TSF1_int_0)
return store->get_map_TSF1_int(0);
755 if (leafID == e_N_ST)
return store->get_N_ST();
756 if (leafID == e_map_ST2_int_1)
return store->get_map_ST2_int(1);
757 if (leafID == e_map_ST2_int_0)
return store->get_map_ST2_int(0);
758 if (leafID == e_map_ST_int_1)
return store->get_map_ST_int(1);
759 if (leafID == e_map_ST_int_0)
return store->get_map_ST_int(0);
760 if (leafID == e_map_veto_int_1)
return store->get_map_veto_int(1);
761 if (leafID == e_map_veto_int_0)
return store->get_map_veto_int(0);
762 if (leafID == e_map_TSF4_int_1)
return store->get_map_TSF4_int(1);
763 if (leafID == e_map_TSF4_int_0)
return store->get_map_TSF4_int(0);
764 if (leafID == e_map_TSF2_int_1)
return store->get_map_TSF2_int(1);
765 if (leafID == e_map_TSF2_int_0)
return store->get_map_TSF2_int(0);
766 if (leafID == e_map_TSF0_int_1)
return store->get_map_TSF0_int(1);
767 if (leafID == e_map_TSF0_int_0)
return store->get_map_TSF0_int(0);
768 if (leafID == e_charge_flag)
return store->get_charge_flag();
769 if (leafID == e_charge_sum)
return store->get_charge_sum();
770 if (leafID == e_revoclk)
return store->get_revoclk();
771 if (leafID == e_aaaa)
return store->get_aaaa();
772 if (leafID == e_evt)
return store->get_evt();
773 if (leafID == e_clk)
return store->get_clk();
774 if (leafID == e_firmid)
return store->get_firmid();
775 if (leafID == e_firmver)
return store->get_firmver();
776 if (leafID == e_coml1)
return store->get_coml1();
777 if (leafID == e_b2ldly)
return store->get_b2ldly();
778 if (leafID == e_maxrvc)
return store->get_maxrvc();
780 B2WARNING(
"!!!getting leaf out of list!!!");
786 SetStoreLeaf(TRGGRLUnpackerStore* store,
int leafID,
int value)
788 if (leafID == e_2GeV_15) store->set_2GeV_ECL(15, value);
789 if (leafID == e_2GeV_14) store->set_2GeV_ECL(14, value);
790 if (leafID == e_2GeV_13) store->set_2GeV_ECL(13, value);
791 if (leafID == e_2GeV_12) store->set_2GeV_ECL(12, value);
792 if (leafID == e_2GeV_11) store->set_2GeV_ECL(11, value);
793 if (leafID == e_2GeV_10) store->set_2GeV_ECL(10, value);
794 if (leafID == e_2GeV_9) store->set_2GeV_ECL(9, value);
795 if (leafID == e_2GeV_8) store->set_2GeV_ECL(8, value);
796 if (leafID == e_2GeV_7) store->set_2GeV_ECL(7, value);
797 if (leafID == e_2GeV_6) store->set_2GeV_ECL(6, value);
798 if (leafID == e_2GeV_5) store->set_2GeV_ECL(5, value);
799 if (leafID == e_2GeV_4) store->set_2GeV_ECL(4, value);
800 if (leafID == e_2GeV_3) store->set_2GeV_ECL(3, value);
801 if (leafID == e_2GeV_2) store->set_2GeV_ECL(2, value);
802 if (leafID == e_2GeV_1) store->set_2GeV_ECL(1, value);
803 if (leafID == e_2GeV_0) store->set_2GeV_ECL(0, value);
804 if (leafID == e_1GeV_15) store->set_1GeV_ECL(15, value);
805 if (leafID == e_1GeV_14) store->set_1GeV_ECL(14, value);
806 if (leafID == e_1GeV_13) store->set_1GeV_ECL(13, value);
807 if (leafID == e_1GeV_12) store->set_1GeV_ECL(12, value);
808 if (leafID == e_1GeV_11) store->set_1GeV_ECL(11, value);
809 if (leafID == e_1GeV_10) store->set_1GeV_ECL(10, value);
810 if (leafID == e_1GeV_9) store->set_1GeV_ECL(9, value);
811 if (leafID == e_1GeV_8) store->set_1GeV_ECL(8, value);
812 if (leafID == e_1GeV_7) store->set_1GeV_ECL(7, value);
813 if (leafID == e_1GeV_6) store->set_1GeV_ECL(6, value);
814 if (leafID == e_1GeV_5) store->set_1GeV_ECL(5, value);
815 if (leafID == e_1GeV_4) store->set_1GeV_ECL(4, value);
816 if (leafID == e_1GeV_3) store->set_1GeV_ECL(3, value);
817 if (leafID == e_1GeV_2) store->set_1GeV_ECL(2, value);
818 if (leafID == e_1GeV_1) store->set_1GeV_ECL(1, value);
819 if (leafID == e_1GeV_0) store->set_1GeV_ECL(0, value);
821 if (leafID == e_wirecnt_tsf0) store->set_wirecnt_tsf0(value);
822 if (leafID == e_wirecnt_tsf1) store->set_wirecnt_tsf1(value);
823 if (leafID == e_wirecnt_tsf2) store->set_wirecnt_tsf2(value);
824 if (leafID == e_wirecnt_tsf3) store->set_wirecnt_tsf3(value);
825 if (leafID == e_wirecnt_tsf4) store->set_wirecnt_tsf4(value);
826 if (leafID == e_wirecnt_tsf5) store->set_wirecnt_tsf5(value);
827 if (leafID == e_wirecnt_tsf6) store->set_wirecnt_tsf6(value);
828 if (leafID == e_wirecnt_tsf7) store->set_wirecnt_tsf7(value);
829 if (leafID == e_wirecnt_tsf8) store->set_wirecnt_tsf8(value);
831 if (leafID == e_theta_11) store->set_theta_ECL(11, value);
832 if (leafID == e_phi_11) store->set_phi_ECL(11, value);
833 if (leafID == e_t_11) store->set_t_ECL(11, value);
834 if (leafID == e_E_11) store->set_E_ECL(11, value);
835 if (leafID == e_theta_10) store->set_theta_ECL(10, value);
836 if (leafID == e_phi_10) store->set_phi_ECL(10, value);
837 if (leafID == e_t_10) store->set_t_ECL(10, value);
838 if (leafID == e_E_10) store->set_E_ECL(10, value);
839 if (leafID == e_theta_9) store->set_theta_ECL(9, value);
840 if (leafID == e_phi_9) store->set_phi_ECL(9, value);
841 if (leafID == e_t_9) store->set_t_ECL(9, value);
842 if (leafID == e_E_9) store->set_E_ECL(9, value);
843 if (leafID == e_theta_8) store->set_theta_ECL(8, value);
844 if (leafID == e_phi_8) store->set_phi_ECL(8, value);
845 if (leafID == e_t_8) store->set_t_ECL(8, value);
846 if (leafID == e_E_8) store->set_E_ECL(8, value);
847 if (leafID == e_theta_7) store->set_theta_ECL(7, value);
848 if (leafID == e_phi_7) store->set_phi_ECL(7, value);
849 if (leafID == e_t_7) store->set_t_ECL(7, value);
850 if (leafID == e_E_7) store->set_E_ECL(7, value);
851 if (leafID == e_theta_6) store->set_theta_ECL(6, value);
852 if (leafID == e_phi_6) store->set_phi_ECL(6, value);
853 if (leafID == e_t_6) store->set_t_ECL(6, value);
854 if (leafID == e_E_6) store->set_E_ECL(6, value);
855 if (leafID == e_X_1) store->set_X_1(value);
856 if (leafID == e_N_cluster_1) store->set_N_cluster_1(value);
857 if (leafID == e_ECL_trg_1) store->set_ECL_trg_1(value);
858 if (leafID == e_theta_5) store->set_theta_ECL(5, value);
859 if (leafID == e_phi_5) store->set_phi_ECL(5, value);
860 if (leafID == e_t_5) store->set_t_ECL(5, value);
861 if (leafID == e_E_5) store->set_E_ECL(5, value);
862 if (leafID == e_theta_4) store->set_theta_ECL(4, value);
863 if (leafID == e_phi_4) store->set_phi_ECL(4, value);
864 if (leafID == e_t_4) store->set_t_ECL(4, value);
865 if (leafID == e_E_4) store->set_E_ECL(4, value);
866 if (leafID == e_theta_3) store->set_theta_ECL(3, value);
867 if (leafID == e_phi_3) store->set_phi_ECL(3, value);
868 if (leafID == e_t_3) store->set_t_ECL(3, value);
869 if (leafID == e_E_3) store->set_E_ECL(3, value);
870 if (leafID == e_theta_2) store->set_theta_ECL(2, value);
871 if (leafID == e_phi_2) store->set_phi_ECL(2, value);
872 if (leafID == e_t_2) store->set_t_ECL(2, value);
873 if (leafID == e_E_2) store->set_E_ECL(2, value);
874 if (leafID == e_theta_1) store->set_theta_ECL(1, value);
875 if (leafID == e_phi_1) store->set_phi_ECL(1, value);
876 if (leafID == e_t_1) store->set_t_ECL(1, value);
877 if (leafID == e_E_1) store->set_E_ECL(1, value);
878 if (leafID == e_theta_0) store->set_theta_ECL(0, value);
879 if (leafID == e_phi_0) store->set_phi_ECL(0, value);
880 if (leafID == e_t_0) store->set_t_ECL(0, value);
881 if (leafID == e_E_0) store->set_E_ECL(0, value);
882 if (leafID == e_X_0) store->set_X_0(value);
883 if (leafID == e_N_cluster_0) store->set_N_cluster_0(value);
884 if (leafID == e_ECL_trg_0) store->set_ECL_trg_0(value);
885 if (leafID == e_ECL_trg) store->set_ECL_trg(value);
886 if (leafID == e_ECL_trg_delay) store->set_ECL_trg_delay(value);
887 if (leafID == e_N_track_cut) store->set_N_track_cut(value);
888 if (leafID == e_N_track_NN) store->set_N_track_NN(value);
889 if (leafID == e_N_track_3D) store->set_N_track_3D(value);
890 if (leafID == e_CDCL1_count) store->set_CDCL1_count(value);
891 if (leafID == e_phi_CDC_int_1) store->set_phi_CDC_int(1, value);
892 if (leafID == e_phi_CDC_int_0) store->set_phi_CDC_int(0, value);
893 if (leafID == e_phi_i_int_1) store->set_phi_i_int(1, value);
894 if (leafID == e_phi_i_int_0) store->set_phi_i_int(0, value);
895 if (leafID == e_N_track) store->set_N_track(value);
896 if (leafID == e_b2b_1to3) store->set_b2b_1to3(value);
897 if (leafID == e_b2b_1to5) store->set_b2b_1to5(value);
898 if (leafID == e_b2b_1to7) store->set_b2b_1to7(value);
899 if (leafID == e_b2b_1to9) store->set_b2b_1to9(value);
900 if (leafID == e_opening) store->set_opening(value);
901 if (leafID == e_samehem_1) store->set_samehem(1, value);
902 if (leafID == e_opphem_1) store->set_opphem(1, value);
903 if (leafID == e_c_b2b_1to9_1) store->set_c_b2b_1to9(1, value);
904 if (leafID == e_c_b2b_1to7_1) store->set_c_b2b_1to7(1, value);
905 if (leafID == e_c_b2b_1to5_1) store->set_c_b2b_1to5(1, value);
906 if (leafID == e_c_b2b_1to3_1) store->set_c_b2b_1to3(1, value);
907 if (leafID == e_tc_b2b_1to9_1) store->set_tc_b2b_1to9(1, value);
908 if (leafID == e_tc_b2b_1to7_1) store->set_tc_b2b_1to7(1, value);
909 if (leafID == e_tc_b2b_1to5_1) store->set_tc_b2b_1to5(1, value);
910 if (leafID == e_tc_b2b_1to3_1) store->set_tc_b2b_1to3(1, value);
911 if (leafID == e_TOPL1_count) store->set_TOPL1_count(value);
912 if (leafID == e_KLML1_count) store->set_KLML1_count(value);
913 if (leafID == e_sector_KLM_int) store->set_sector_KLM_int(value);
914 if (leafID == e_sector_CDC_int) store->set_sector_CDC_int(value);
915 if (leafID == e_N_KLMmatch) store->set_N_KLMmatch(value);
916 if (leafID == e_samehem_0) store->set_samehem(0, value);
917 if (leafID == e_opphem_0) store->set_opphem(0, value);
918 if (leafID == e_N_match_2GeV_0) store->set_N_match_2GeV(0, value);
919 if (leafID == e_N_match_0) store->set_N_match(0, value);
920 if (leafID == e_N_g_1GeV_0) store->set_N_g_1GeV(0, value);
921 if (leafID == e_N_g_2GeV_0) store->set_N_g_2GeV(0, value);
922 if (leafID == e_ECLL1_count) store->set_ECLL1_count(value);
923 if (leafID == e_c_b2b_1to9_0) store->set_c_b2b_1to9(0, value);
924 if (leafID == e_c_b2b_1to7_0) store->set_c_b2b_1to7(0, value);
925 if (leafID == e_c_b2b_1to5_0) store->set_c_b2b_1to5(0, value);
926 if (leafID == e_c_b2b_1to3_0) store->set_c_b2b_1to3(0, value);
927 if (leafID == e_tc_b2b_1to9_0) store->set_tc_b2b_1to9(0, value);
928 if (leafID == e_tc_b2b_1to7_0) store->set_tc_b2b_1to7(0, value);
929 if (leafID == e_tc_b2b_1to5_0) store->set_tc_b2b_1to5(0, value);
930 if (leafID == e_tc_b2b_1to3_0) store->set_tc_b2b_1to3(0, value);
931 if (leafID == e_CDC3DL1_count) store->set_CDC3DL1_count(value);
932 if (leafID == e_CDCNNL1_count) store->set_CDCNNL1_count(value);
933 if (leafID == e_slot_CDC_int) store->set_slot_CDC_int(value);
934 if (leafID == e_slot_TOP_int) store->set_slot_TOP_int(value);
935 if (leafID == e_N_TOPmatch) store->set_N_TOPmatch(value);
936 if (leafID == e_N_match_2GeV_1) store->set_N_match_2GeV(1, value);
937 if (leafID == e_N_match_1) store->set_N_match(1, value);
938 if (leafID == e_N_g_1GeV_1) store->set_N_g_1GeV(1, value);
939 if (leafID == e_N_g_2GeV_1) store->set_N_g_2GeV(1, value);
940 if (leafID == e_TSFL1_count) store->set_TSFL1_count(value);
941 if (leafID == e_slot64b_TOP_int_1) store->set_slot64b_TOP_int_1(value);
942 if (leafID == e_slot64b_TOP_int_0) store->set_slot64b_TOP_int_0(value);
943 if (leafID == e_map_TSF3_int_1) store->set_map_TSF3_int(1, value);
944 if (leafID == e_map_TSF3_int_0) store->set_map_TSF3_int(0, value);
945 if (leafID == e_map_TSF1_int_1) store->set_map_TSF1_int(1, value);
946 if (leafID == e_map_TSF1_int_0) store->set_map_TSF1_int(0, value);
947 if (leafID == e_N_ST) store->set_N_ST(value);
948 if (leafID == e_map_ST2_int_1) store->set_map_ST2_int(1, value);
949 if (leafID == e_map_ST2_int_0) store->set_map_ST2_int(0, value);
950 if (leafID == e_map_ST_int_1) store->set_map_ST_int(1, value);
951 if (leafID == e_map_ST_int_0) store->set_map_ST_int(0, value);
952 if (leafID == e_map_veto_int_1) store->set_map_veto_int(1, value);
953 if (leafID == e_map_veto_int_0) store->set_map_veto_int(0, value);
954 if (leafID == e_map_TSF4_int_1) store->set_map_TSF4_int(1, value);
955 if (leafID == e_map_TSF4_int_0) store->set_map_TSF4_int(0, value);
956 if (leafID == e_map_TSF2_int_1) store->set_map_TSF2_int(1, value);
957 if (leafID == e_map_TSF2_int_0) store->set_map_TSF2_int(0, value);
958 if (leafID == e_map_TSF0_int_1) store->set_map_TSF0_int(1, value);
959 if (leafID == e_map_TSF0_int_0) store->set_map_TSF0_int(0, value);
960 if (leafID == e_charge_flag) store->set_charge_flag(value);
961 if (leafID == e_charge_sum) store->set_charge_sum(value);
962 if (leafID == e_revoclk) store->set_revoclk(value);
963 if (leafID == e_aaaa) store->set_aaaa(value);
964 if (leafID == e_evt) store->set_evt(value);
965 if (leafID == e_clk) store->set_clk(value);
966 if (leafID == e_firmid) store->set_firmid(value);
967 if (leafID == e_firmver) store->set_firmver(value);
968 if (leafID == e_coml1) store->set_coml1(value);
969 if (leafID == e_b2ldly) store->set_b2ldly(value);
970 if (leafID == e_maxrvc) store->set_maxrvc(value);
988 virtual void event()
override;
997 virtual void endRun()
override;
A module of TRGGRLUnpacker.
TRGGRLUnpackerModule()
Constructor.
bool m_pciedata
PCIe40 data or copper data.
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.
virtual ~TRGGRLUnpackerModule()
Destructor.
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.