 |
Belle II Software
release-05-02-19
|
13 #include <framework/core/Module.h>
14 #include <framework/datastore/SelectSubset.h>
15 #include <pxd/dataobjects/PXDCluster.h>
16 #include <tracking/dataobjects/ROIid.h>
17 #include <framework/database/DBObjPtr.h>
18 #include <simulation/dbobjects/ROIParameters.h>
34 class PXDclusterFilterModule :
public Module {
52 void event() override;
SelectSubset< PXDCluster > m_selectorOUT
selector of the subset of PXDClusters NOT contained in the ROIs
void event() override
This method is the core of the module.
Class to create a subset of a given StoreArray together with the relations with other StoreArrays.
PXDclusterFilterModule()
Constructor: Sets the description, the properties and the parameters of the module.
SelectSubset< PXDCluster > m_selectorIN
selector of the subset of PXDClusters contained in the ROIs
void initialize() override
Initialize the Module.
DBObjPtr< ROIParameters > m_roiParameters
Configuration parameters for ROIs.
bool m_CreateOutside
if set, create list of outside pixels, too
int m_countNthEvent
Event counter to be able to disable data reduction for every Nth event.
Class for accessing objects in the database.
void beginRun() override final
Called when entering a new run.
void filterClusters()
all the actual work is done here
ROIid stores the U and V ids and the sensor id of the Region Of Interest.
Abstract base class for different kinds of events.
std::string m_ROIidsName
The name of the StoreArray of ROIs.
int m_skipEveryNth
Parameter from DB for how many events to skip data reduction.
std::string m_PXDClustersName
The name of the StoreArray of PXDClusters to be filtered.
The PXD Cluster class This class stores all information about reconstructed PXD clusters The position...
std::string m_PXDClustersOutsideROIName
The name of the StoreArray of Filtered PXDClusters.
The payload containing all PXD ROI parameters.
bool m_overrideDB
if set, overwrites ROI-finding settings in DB
bool Overlaps(const ROIid &theROI, const PXDCluster &thePXDCluster)
Check for cluster overlaps - a pixel shared with two or more clusters.
void copyClusters()
all the actual work is done here
std::string m_PXDClustersInsideROIName
The name of the StoreArray of Filtered PXDClusters.
bool m_enableFiltering
enables/disables ROI-finding if overwriteDB=True