14 #include <Event/Event.h>
15 #include <Event/EventTypes.h>
16 #include <Event/Eventiterator.h>
39 std::cout <<
"deleting intt pool for id " << (iter.second)->getIdentifier() << std::endl;
76 std::cout <<
"Fetching next Event" << evt->
getEvtSequence() << std::endl;
99 for (
int i = 0;
i < npackets;
i++)
110 std::cout <<
"starting new intt pool for packet " <<
plist[
i]->
getIdentifier() << std::endl;
128 int num_hits = pool->
iValue(0,
"NR_HITS");
131 std::cout <<
"Number of Hits: " << num_hits <<
" for packet "
134 std::set<uint64_t> bclk_set;
135 for (
int j = 0;
j < num_hits;
j++)
138 int FEE = pool->
iValue(
j,
"FEE");
139 uint64_t gtm_bco = pool->
lValue(
j,
"BCO");
153 bclk_set.insert(gtm_bco);
157 gtm_bco += 0x10000000000;
164 std::cout <<
"evtno: " << EventSequence
166 <<
", nr_hits: " << num_hits
168 <<
", bco: 0x" << std::hex << gtm_bco << std::dec
187 if (what ==
"ALL" || what ==
"FEE")
191 std::cout <<
"Beam clock 0x" << std::hex << bcliter.first << std::dec << std::endl;
192 for (
auto feeiter : bcliter.second)
194 std::cout <<
"FEM: " << feeiter << std::endl;
198 if (what ==
"ALL" || what ==
"FEEBCLK")
200 std::cout <<
"Printing last beamclock for every FEE" << std::endl;
203 std::cout <<
"FEE" << bcliter.first <<
" bclk: 0x"
204 << std::hex << bcliter.second << std::dec << std::endl;
207 if (what ==
"ALL" || what ==
"STORAGE")
211 std::cout <<
"Beam clock 0x" << std::hex << bcliter.first << std::dec << std::endl;
212 for (
auto feeiter : bcliter.second)
214 std::cout <<
"fee: " << feeiter->get_fee()
215 <<
" at " << std::hex << feeiter << std::dec << std::endl;
219 if (what ==
"ALL" || what ==
"STACK")
223 std::cout <<
"stacked bclk: 0x" << std::hex << iter << std::dec << std::endl;
230 std::vector<uint64_t> toclearbclk;
233 if (iter.first <= bclk)
235 for (
auto pktiter : iter.second)
239 toclearbclk.push_back(iter.first);
246 for (
auto iter : toclearbclk)
250 m_InttRawHitMap.erase(iter);
260 std::cout <<
"my bclk 0x" << std::hex << iter.second
261 <<
" req: 0x" << bclk << std::dec << std::endl;
263 if (iter.second < bclk)
267 std::cout <<
"FEE " << iter.first <<
" beamclock 0x" << std::hex << iter.second
268 <<
" smaller than req bclk: 0x" << bclk << std::dec << std::endl;
297 uint64_t localbclk = ibclk;
309 if (bcliter.second <= localbclk)
336 InttRawHitContainer *intthitcont = findNode::getClass<InttRawHitContainer>(detNode,
"INTTRAWHIT");
341 detNode->addNode(newNode);