6 #include <calobase/RawTower.h>
7 #include <calobase/RawTowerContainer.h>
8 #include <calobase/RawTowerDefs.h>
20 #include <Event/Event.h>
21 #include <Event/EventTypes.h>
22 #include <Event/packet.h>
51 Event *_event = findNode::getClass<Event>(topNode,
"PRDF");
55 cout <<
"GenericUnpackPRDF::Process_Event - Event not found" << endl;
66 map<int, Packet *> packet_list;
71 const int packet_id =
it->first.first;
73 const int tower_id =
it->second;
75 if (packet_list.find(packet_id) == packet_list.end())
77 packet_list[packet_id] = _event->
getPacket(packet_id);
81 cout <<
"GenericUnpackPRDF::process_event - open packet " << packet_id
84 packet_list[packet_id]->dump(cout);
88 Packet *packet = packet_list[packet_id];
93 cout <<
"GenericUnpackPRDF::process_event - failed to locate packet "
117 for (map<int, Packet *>::iterator
it = packet_list.begin();
118 it != packet_list.end(); ++
it)
133 nodeItr.
findFirst(
"PHCompositeNode",
"DST"));
136 cout <<
"PHComposite node created: DST" << endl;
143 nodeItr.
findFirst(
"PHCompositeNode",
"RAW_DATA"));
147 cout <<
"PHComposite node created: RAW_DATA" << endl;
168 cout <<
"GenericUnpackPRDF::add_channel - packet " << packet_id
169 <<
", channel " << channel <<
" is already registered as tower "