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>
31 , hcalin_temperature(nullptr)
32 , hcalout_temperature(nullptr)
33 , emcal_temperature(nullptr)
47 Event *
event = findNode::getClass<Event>(topNode,
"PRDF");
51 cout <<
"TempInfoUnpackPRDF::Process_Event - Event not found" << endl;
67 p_hcalin =
event->getPacket(974);
68 p_hcalout =
event->getPacket(975);
69 p_emcal =
event->getPacket(982);
73 p_hcalin =
event->getPacket(1074);
74 p_hcalout =
event->getPacket(1075);
75 p_emcal =
event->getPacket(1082);
78 time_t etime =
event->getTime();
79 int evtnr =
event->getEvtSequence();
83 cout <<
"TempInfoUnpackPRDF::found temperature packet in Event - ";
116 const time_t etime,
const int evtnr)
122 if (packetid == 974 || packetid == 1074)
138 p->
iValue(ibinz * PROTOTYPE4_FEM::NCH_IHCAL_COLUMNS + ibinphi) /
144 else if (packetid == 975 || packetid == 1075)
160 p->
iValue(ibinz * PROTOTYPE4_FEM::NCH_OHCAL_COLUMNS + ibinphi) /
166 else if (packetid == 982 || packetid == 1082)
185 p->
iValue(63 - (ibinz * PROTOTYPE4_FEM::NCH_EMCAL_COLUMNS +
200 nodeItr.
findFirst(
"PHCompositeNode",
"RUN"));
205 cout <<
"PHComposite node created: RUN" << endl;