9#include <tracking/modules/roiFinding/svd/SVDShaperDigitFilterModule.h>
10#include <tracking/dataobjects/ROIid.h>
28 setDescription(
"The module produce a StoreArray of SVDShaperDigit inside the ROIs.");
34 std::string(
"SVDShaperDigitsIN"));
36 std::string(
"SVDShaperDigitsOUT"));
53 SVDShaperDigits.isRequired();
67 std::multimap< VxdID, ROIid > ROIids;
70 ROIids.insert(std::pair<VxdID, ROIid> (ROI.getSensorID(), ROI));
73 auto ROIidsRange = ROIids.equal_range(theSVDShaper->
getSensorID()) ;
74 for (
auto theROI = ROIidsRange.first ; theROI != ROIidsRange.second; theROI ++)
75 if (theROI->second.Contains(*theSVDShaper))
83 auto ROIidsRange = ROIids.equal_range(theSVDShaper->
getSensorID()) ;
84 for (
auto theROI = ROIidsRange.first ; theROI != ROIidsRange.second; theROI ++)
85 if (theROI->second.Contains(*theSVDShaper))
void setDescription(const std::string &description)
Sets the description of the module.
SelectSubset< SVDShaperDigit > m_selectorIN
selector of the subset of SVDShaperDigits contained in the ROIs
void initialize() override
register new SVDSShaperDigits store arrays (inside/outside ROIs)
void event() override
Filtering of digits inside/outside ROIs.
~SVDShaperDigitFilterModule()
Destructor.
std::string m_SVDShaperDigitsOutsideROIName
The name of the StoreArray of Filtered SVDShaperDigits.
SelectSubset< SVDShaperDigit > m_selectorOUT
selector of the subset of SVDShaperDigits NOT contained in the ROIs
StoreArray< SVDShaperDigit > m_SVDShaperDigits
The SVDShaperDigits to be filtered.
std::string m_ROIidsName
The name of the StoreArray of ROIs.
SVDShaperDigitFilterModule()
Constructor: Sets the description, the properties and the parameters of the module.
bool m_CreateOutside
if set, create list of outside pixels, too
std::string m_SVDShaperDigitsInsideROIName
The name of the StoreArray of Filtered SVDShaperDigits.
std::string m_SVDShaperDigitsName
The name of the StoreArray of SVDShaperDigits to be filtered.
StoreArray< ROIid > m_ROIs
rois store array
The SVD ShaperDigit class.
VxdID getSensorID() const
Get the sensor ID.
Accessor to arrays stored in the data store.
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.