6 #include <calobase/RawTower.h>
7 #include <calobase/RawTowerContainer.h>
8 #include <calobase/RawTowerDefs.h>
20 #include <Event/Event.h>
21 #include <Event/packet.h>
50 Event *_event = findNode::getClass<Event>(topNode,
"PRDF");
54 cout <<
"GenericUnpackPRDF::Process_Event - Event not found" << endl;
61 map<int, Packet *> packet_list;
66 const int packet_id =
it->first.first;
68 const int tower_id =
it->second;
70 if (packet_list.find(packet_id) == packet_list.end())
72 packet_list[packet_id] = _event->
getPacket(packet_id);
75 Packet *packet = packet_list[packet_id];
80 cout <<
"GenericUnpackPRDF::process_event - failed to locate packet "
104 for (map<int, Packet *>::iterator
it = packet_list.begin();
105 it != packet_list.end(); ++
it)
120 nodeItr.findFirst(
"PHCompositeNode",
"DST"));
123 cout <<
"PHComposite node created: DST" << endl;
130 nodeItr.findFirst(
"PHCompositeNode",
"RAW_DATA"));
134 cout <<
"PHComposite node created: RAW_DATA" << endl;
155 cout <<
"GenericUnpackPRDF::add_channel - packet " << packet_id
156 <<
", channel " << channel <<
" is already registered as tower "