9 #include <tracking/modules/pxdDataReduction/PXDRawHitFilterModule.h>
26 setDescription(
"The module produce a StoreArray of PXDRawHit inside the ROIs.");
30 addParam(
"PXDRawHitsName",
m_PXDRawHitsName,
"The name of the StoreArray of PXDRawHits to be filtered", std::string(
""));
32 std::string(
"PXDRawHitsIN"));
34 std::string(
"PXDRawHitsOUT"));
64 std::multimap< VxdID, ROIid > ROIids;
67 ROIids.insert(std::pair<VxdID, ROIid> (ROI.getSensorID(), ROI));
70 auto ROIidsRange = ROIids.equal_range(thePxdRawHit->
getSensorID()) ;
71 for (
auto theROI = ROIidsRange.first ; theROI != ROIidsRange.second; theROI ++)
72 if (theROI->second.Contains(*thePxdRawHit))
80 auto ROIidsRange = ROIids.equal_range(thePxdRawHit->
getSensorID()) ;
81 for (
auto theROI = ROIidsRange.first ; theROI != ROIidsRange.second; theROI ++)
82 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.
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.