 |
Belle II Software
release-05-02-19
|
13 #include <framework/core/Module.h>
14 #include <framework/datastore/SelectSubset.h>
15 #include <pxd/dataobjects/PXDDigit.h>
16 #include <framework/database/DBObjPtr.h>
17 #include <simulation/dbobjects/ROIParameters.h>
33 class PXDdigiFilterModule :
public Module {
51 void event() override final;
SelectSubset< PXDDigit > m_selectorIN
selector of the subset of PXDDigits contained in the ROIs
std::string m_PXDDigitsOutsideROIName
The name of the StoreArray of Filtered PXDDigits.
bool m_CreateOutside
if set, create list of outside pixels, too
DBObjPtr< ROIParameters > m_roiParameters
Configuration parameters for ROIs.
Class to create a subset of a given StoreArray together with the relations with other StoreArrays.
std::string m_ROIidsName
The name of the StoreArray of ROIs.
Class for accessing objects in the database.
bool m_overrideDB
if set, overwrites ROI-finding settings in DB
Abstract base class for different kinds of events.
PXDdigiFilterModule()
Constructor: Sets the description, the properties and the parameters of the module.
int m_skipEveryNth
Parameter from DB for how many events to skip data reduction.
std::string m_PXDDigitsName
The name of the StoreArray of PXDDigits to be filtered.
bool m_usePXDDataReduction
enables/disables ROI-finding if overwriteDB=True
void copyDigits()
all the actual work is done here
int m_countNthEvent
Event counter to be able to disable data reduction for every Nth event.
The payload containing all PXD ROI parameters.
std::string m_PXDDigitsInsideROIName
The name of the StoreArray of Filtered PXDDigits.
void event() override final
This method is the core of the module.
void beginRun() override final
Called when entering a new run.
void filterDigits()
all the actual work is done here
void initialize() override final
Initialize the Module.
SelectSubset< PXDDigit > m_selectorOUT
selector of the subset of PXDDigits NOT contained in the ROIs