11 #include <framework/datastore/StoreObjPtr.h>
12 #include <tracking/modules/pxdDataReduction/ROIReadTestModule.h>
13 #include <tracking/dataobjects/ROIpayload.h>
31 setDescription(
"check the payload produced by the ROIPayloadAssembler Module");
34 addParam(
"outfileName", m_outfileName,
"name of the output file", std::string(
"ROIpayload.txt"));
35 addParam(
"ROIpayloadName", m_ROIpayloadName,
"name of the payload of ROIs", std::string(
""));
40 void ROIReadTestModule::initialize()
44 roiPayloads.isRequired(m_ROIpayloadName);
46 m_pFile = fopen(m_outfileName.c_str(),
"w+");
48 B2FATAL(
"Could not open " << m_outfileName);
53 void ROIReadTestModule::event()
57 int length = payloadPtr->getLength();
58 unsigned char* rootdata = (
unsigned char*) payloadPtr->getRootdata();
62 for (
int i = 0; i < 4 * length; i++) {
65 fputc(rootdata[i], m_pFile);
73 void ROIReadTestModule::terminate()