7 #include <phparameter/PHParameters.h>
9 #include <pdbcalbase/PdbParameterMap.h>
21 #include <Event/Event.h>
22 #include <Event/EventTypes.h>
23 #include <Event/packet.h>
35 , runinfo_node_name(
"RUN_INFO")
49 Event *
event = findNode::getClass<Event>(topNode,
"PRDF");
53 cout <<
"RunInfoUnpackPRDF::Process_Event - Event not found" << endl;
59 findNode::getClass<EventHeaderv1>(topNode,
"EventHeader");
79 cout <<
"RunInfoUnpackPRDF::process_event - with BEGRUNEVENT events ";
83 map<int, Packet *> packet_list;
90 int has_new_EMCal = 0;
103 for (typ_channel_map::const_iterator
it =
channel_map.begin();
106 const string &
name =
it->first;
109 if (packet_list.find(info.
packet_id) == packet_list.end())
119 cout <<
"RunInfoUnpackPRDF::process_event - failed to locate packet "
133 cout <<
"RunInfoUnpackPRDF::process_event - " << name <<
" = " << dvalue
134 <<
", raw = " << ivalue <<
" @ packet " << info.
packet_id
135 <<
", offset " << info.
offset << endl;
141 for (map<int, Packet *>::iterator
it = packet_list.begin();
142 it != packet_list.end(); ++
it)
162 nodeItr.
findFirst(
"PHCompositeNode",
"RUN"));
165 cout <<
"PHComposite node created: RUN" << endl;
180 nodeItr.
findFirst(
"PHCompositeNode",
"DST"));
183 cout <<
"PHComposite node created: DST" << endl;
190 eventheader,
"EventHeader",
"PHObject");
191 dst_node->
addNode(EventHeaderNode);
197 const unsigned int offset,
198 const double calibration_const
203 make_pair(name,
channel_info(packet_id, offset, calibration_const)));