9 #include <framework/datastore/StoreObjPtr.h>
10 #include <tracking/modules/pxdDataReduction/ROIReadTestModule.h>
11 #include <tracking/dataobjects/ROIpayload.h>
29 setDescription(
"check the payload produced by the ROIPayloadAssembler Module");
32 addParam(
"outfileName", m_outfileName,
"name of the output file", std::string(
"ROIpayload.txt"));
33 addParam(
"ROIpayloadName", m_ROIpayloadName,
"name of the payload of ROIs", std::string(
""));
38 void ROIReadTestModule::initialize()
44 m_pFile = fopen(m_outfileName.c_str(),
"w+");
46 B2FATAL(
"Could not open " << m_outfileName);
51 void ROIReadTestModule::event()
55 int length = payloadPtr->getLength();
56 unsigned char* rootdata = (
unsigned char*) payloadPtr->getRootdata();
60 for (
int i = 0; i < 4 * length; i++) {
63 fputc(rootdata[i], m_pFile);
71 void ROIReadTestModule::terminate()
bool isRequired(const std::string &name="")
Ensure this array/object has been registered previously.
Type-safe access to single objects in the data store.
#define REG_MODULE(moduleName)
Register the given module (without 'Module' suffix) with the framework.
Abstract base class for different kinds of events.