9 #include <tracking/modules/pxdDataReduction/ROIGeneratorModule.h>
10 #include <framework/datastore/StoreArray.h>
27 setDescription(
"This module is used to generate a certain number of ROIs");
33 addParam(
"TrigDivider",
m_divider,
"Generates one ROI every TrigDivider events", 2);
39 addParam(
"MaxU",
m_maxU,
" max U (pixel column hopefully) ", 250 - 1);
43 addParam(
"MaxV",
m_maxV,
" max v (pixel column hopefully) ", 768 - 1);
45 addParam(
"Random",
m_random,
"dont use fix position, move pseudo randomly",
false);
128 m_ROIs.appendNew(tmp_ROIid);
135 for (
int iROI = 1; iROI <
m_nROIs; iROI++) {
137 minU =
m_minU + dU * iROI;
139 minV =
m_minV + dV * iROI;
148 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.
REG_MODULE(arichBtest)
Register the Module.
void addParam(const std::string &name, T ¶mVariable, const std::string &description, const T &defaultValue)
Adds a new parameter to the module.
Abstract base class for different kinds of events.