9#include <tracking/modules/roiFinding/pxd/ROIGeneratorModule.h>
10#include <framework/dataobjects/EventMetaData.h>
11#include <tracking/dataobjects/ROIid.h>
12#include <framework/datastore/StoreArray.h>
29 setDescription(
"This module is used to generate a certain number of ROIs");
35 addParam(
"TrigDivider",
m_divider,
"Generates one ROI every TrigDivider events", 2);
41 addParam(
"MaxU",
m_maxU,
" max U (pixel column hopefully) ", 250 - 1);
45 addParam(
"MaxV",
m_maxV,
" max v (pixel column hopefully) ", 768 - 1);
47 addParam(
"Random",
m_random,
"dont use fix position, move pseudo randomly",
false);
130 m_ROIs.appendNew(tmp_ROIid);
137 for (
int iROI = 1; iROI <
m_nROIs; iROI++) {
139 minU =
m_minU + dU * iROI;
141 minV =
m_minV + dV * iROI;
150 m_ROIs.appendNew(tmp_ROIid);
void setDescription(const std::string &description)
Sets the description of the module.
void setPropertyFlags(unsigned int propertyFlags)
Sets the flags for the module properties.
@ c_ParallelProcessingCertified
This module can be run in parallel processing mode safely (All I/O must be done through the data stor...
void initialize() override final
Initializer.
std::string m_ROIListName
ROi list name.
int m_nROIs
number of ROIs per event
bool m_random
move single roi pseudo randomly
StoreObjPtr< EventMetaData > m_eventMetaData
EventMetaData DataStore pointer.
void event() override final
This method is called for each event.
int m_divider
generate one ROI every m_divider event
ROIGeneratorModule()
Constructor of the module.
StoreArray< ROIid > m_ROIs
ROIs StoreArray.
ROIid stores the U and V ids and the sensor id of the Region Of Interest.
void setMaxUid(double user_maxUid)
set the maximum U id of the ROI
void setMinUid(double user_minUid)
set the minimum U id of the ROI
void setMaxVid(double user_maxVid)
set the maximum V id of the ROI
void setSensorID(VxdID::baseType user_sensorID)
set the sensor ID of the ROI
void setMinVid(double user_minVid)
set the minimum V id of the ROI
Class to uniquely identify a any structure of the PXD and SVD.
void setSensorNumber(baseType sensor)
Set the sensor id.
void setLadderNumber(baseType ladder)
Set the ladder id.
void setLayerNumber(baseType layer)
Set the layer id.
void addParam(const std::string &name, T ¶mVariable, const std::string &description, const T &defaultValue)
Adds a new parameter to the module.
#define REG_MODULE(moduleName)
Register the given module (without 'Module' suffix) with the framework.
Abstract base class for different kinds of events.