9#include <tracking/modules/roiFinding/pxd/PXDRawHitFilterModule.h>
10#include <tracking/dataobjects/ROIid.h>
28 setDescription(
"The module produce a StoreArray of PXDRawHit inside the ROIs.");
32 addParam(
"PXDRawHitsName",
m_PXDRawHitsName,
"The name of the StoreArray of PXDRawHits to be filtered", std::string(
""));
34 std::string(
"PXDRawHitsIN"));
36 std::string(
"PXDRawHitsOUT"));
66 std::multimap< VxdID, ROIid > ROIids;
69 ROIids.insert(std::pair<VxdID, ROIid> (ROI.getSensorID(), ROI));
72 auto ROIidsRange = ROIids.equal_range(thePxdRawHit->
getSensorID()) ;
73 for (
auto theROI = ROIidsRange.first ; theROI != ROIidsRange.second; theROI ++)
74 if (theROI->second.Contains(*thePxdRawHit))
82 auto ROIidsRange = ROIids.equal_range(thePxdRawHit->
getSensorID()) ;
83 for (
auto theROI = ROIidsRange.first ; theROI != ROIidsRange.second; theROI ++)
84 if (theROI->second.Contains(*thePxdRawHit))
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...
std::string m_PXDRawHitsName
The name of the StoreArray of PXDRawHits to be filtered.
void initialize() override final
Initialize all necessary variables.
StoreArray< PXDRawHit > m_PXDRawHits
PXDRawHits StoreArray.
SelectSubset< PXDRawHit > m_selectorIN
selector of the subset of PXDRawHits contained in the ROIs
void event() override final
Event function.
std::string m_ROIidsName
The name of the StoreArray of ROIs.
std::string m_PXDRawHitsInsideROIName
The name of the StoreArray of Filtered PXDRawHits.
PXDRawHitFilterModule()
Constructor: Sets the description, the properties and the parameters of the module.
std::string m_PXDRawHitsOutsideROIName
The name of the StoreArray of Filtered PXDRawHits.
bool m_CreateOutside
if set, create list of outside pixels, too
SelectSubset< PXDRawHit > m_selectorOUT
selector of the subset of PXDRawHits NOT contained in the ROIs
StoreArray< ROIid > m_ROIs
ROIs StoreArray.
The PXD Raw Hit class This class stores information about PXD Pixel hits and makes them available in ...
VxdID getSensorID() const
Get the sensor 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.