7 #include <Event/A_Event.h>
8 #include <Event/Event.h>
9 #include <Event/oEvent.h>
10 #include <Event/packet.h>
11 #include <Event/phenixTypes.h>
52 std::queue<int> savepacket;
53 unsigned int size = 0;
69 std::map<int, boost::numeric::interval<int> >::const_iterator dropiter;
79 if (packetid < dropiter->first)
97 if (packetid < dropiter->first)
117 std::cout <<
"Fun4AllEventOutStream: dropping packet " <<
i
130 while (!savepacket.empty())
132 int index = savepacket.front();
133 new_event.addPacket(
plist[index]);
162 boost::numeric::interval<int> newinterval;
165 newinterval.assign(minpacket, maxpacket);
167 catch (std::exception &
e)
169 std::cout <<
"Exception thrown: " << e.what() << std::endl;
170 std::cout <<
"for interval[" << minpacket <<
"," << maxpacket <<
"]" << std::endl;
171 std::cout <<
"exiting" << std::endl;
177 std::cout <<
PHWHERE <<
" boost interval does not cover minpacket " << minpacket << std::endl;
178 std::cout <<
"that is seriously wrong, exiting" << std::endl;
183 std::cout <<
PHWHERE <<
" boost interval does not cover maxpacket " << maxpacket << std::endl;
184 std::cout <<
"that is seriously wrong, exiting" << std::endl;
194 boost::numeric::interval<int> newinterval;
197 newinterval.assign(minpacket, maxpacket);
199 catch (std::exception &
e)
201 std::cout <<
"Exception thrown: " << e.what() << std::endl;
202 std::cout <<
"for interval[" << minpacket <<
"," << maxpacket <<
"]" << std::endl;
203 std::cout <<
"exiting" << std::endl;
209 std::cout <<
PHWHERE <<
" boost interval does not cover minpacket " << minpacket << std::endl;
210 std::cout <<
"that is seriously wrong, exiting" << std::endl;
215 std::cout <<
PHWHERE <<
" boost interval does not cover maxpacket " << maxpacket << std::endl;
216 std::cout <<
"that is seriously wrong, exiting" << std::endl;