9 #include <tracking/modules/svdROIFinder/SVDShaperDigitFilterModule.h>
26 setDescription(
"The module produce a StoreArray of SVDShaperDigit inside the ROIs.");
32 std::string(
"SVDShaperDigitsIN"));
34 std::string(
"SVDShaperDigitsOUT"));
51 SVDShaperDigits.isRequired();
65 std::multimap< VxdID, ROIid > ROIids;
68 ROIids.insert(std::pair<VxdID, ROIid> (ROI.getSensorID(), ROI));
71 auto ROIidsRange = ROIids.equal_range(theSVDShaper->
getSensorID()) ;
72 for (
auto theROI = ROIidsRange.first ; theROI != ROIidsRange.second; theROI ++)
73 if (theROI->second.Contains(*theSVDShaper))
81 auto ROIidsRange = ROIids.equal_range(theSVDShaper->
getSensorID()) ;
82 for (
auto theROI = ROIidsRange.first ; theROI != ROIidsRange.second; theROI ++)
83 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/ouside 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.
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.