15 std::vector<TrigConf::L1DataDef::TriggerType> TrigConf::L1DataDef::g_Types;
16 unsigned int TrigConf::L1DataDef::g_l1Version = 0;
58 cout <<
"L1 Version: " << g_l1Version << endl;
59 for(
auto &
x: g_typeConfigs) {
60 cout <<
"Maximum number of thresholds for type " << setw(6) <<
x.second.name <<
" : " <<
x.second.max << endl;
68 typeConfig(
EM).max = 16;
69 typeConfig(TAU).max = 8;
70 typeConfig(
MUON).max = 6;
71 typeConfig(
TH).max = 8;
72 typeConfig(
JET).max = 8;
73 typeConfig(FJET).max = 0;
74 typeConfig(FJ).max = 8;
75 typeConfig(JF).max = 4;
76 typeConfig(JB).max = 4;
77 typeConfig(JE).max = 4;
78 typeConfig(M).max = 6;
79 typeConfig(TE).max = 8;
80 typeConfig(XE).max = 8;
81 typeConfig(XS).max = 8;
82 typeConfig(RNDM).max = 2;
83 typeConfig(PCLK).max = 2;
84 typeConfig(BGRP).max = 8;
85 typeConfig(MBTS).max = 2;
86 typeConfig(MBTSSI).max = 32;
87 typeConfig(NIM).max = 37;
88 typeConfig(BCMCMB).max = 1;
89 typeConfig(CALREQ).max = 3;
90 typeConfig(BPTX).max = 2;
91 typeConfig(LUCID).max = 2;
92 typeConfig(
TRT).max = 1;
93 typeConfig(BCM).max = 3;
94 typeConfig(
ZDC).max = 3;
95 typeConfig(ZB).max = 10;
96 typeConfig(TOPO).max = 0;
97 typeConfig(ALFA).max = 0;
98 }
else if (l1version==1) {
99 typeConfig(
EM).max = 16;
100 typeConfig(TAU).max = 16;
101 typeConfig(
MUON).max = 6;
102 typeConfig(
TH).max = 8;
103 typeConfig(
JET).max = 25;
104 typeConfig(FJET).max = 0;
105 typeConfig(FJ).max = 0;
106 typeConfig(JF).max = 0;
107 typeConfig(JB).max = 0;
108 typeConfig(JE).max = 0;
109 typeConfig(M).max = 6;
110 typeConfig(TE).max = 16;
111 typeConfig(XE).max = 16;
112 typeConfig(XS).max = 8;
113 typeConfig(RNDM).max = 4;
114 typeConfig(PCLK).max = 0;
115 typeConfig(BGRP).max = 16;
116 typeConfig(MBTS).max = 3;
117 typeConfig(MBTSSI).max = 32;
118 typeConfig(NIM).max = 37;
119 typeConfig(BCMCMB).max = 1;
120 typeConfig(CALREQ).max = 3;
121 typeConfig(BPTX).max = 2;
122 typeConfig(LUCID).max = 6;
123 typeConfig(
TRT).max = 1;
124 typeConfig(BCM).max = 6;
125 typeConfig(
ZDC).max = 3;
126 typeConfig(ZB).max = 10;
127 typeConfig(TOPO).max = 128;
128 typeConfig(ALFA).max = 64;
130 cerr <<
"ERROR TrigConf::L1DataDef::setMaxThresholdsFromL1Version() L1Version not known:" << l1version << endl;
131 throw(std::runtime_error(
"Unknown L1 Version"));
134 g_l1Version=l1version;
148 if(
c==g_typeConfigs.end() ) {
149 cerr <<
"Trigger type " <<
tt <<
" is defined in L1DataDef.h but not registered in L1DataDef.cxx" << endl;
150 throw runtime_error(
"TriggerType not registered");
159 typeConfig(TE).max = 4;
160 typeConfig(XE).max = 8;
161 typeConfig(XS).max = 0;
167 typeConfig(TE).max = 8;
168 typeConfig(XE).max = 8;
169 typeConfig(XS).max = 8;