11#include <framework/core/Module.h>
12#include <framework/datastore/SelectSubset.h>
13#include <pxd/dataobjects/PXDDigit.h>
14#include <framework/database/DBObjPtr.h>
22 class ROISimulationParameters;
52 void event()
override final;
Class for accessing objects in the database.
The module produce a StoreArray of PXDDigit inside the ROIs, thus simulating "ONSEN" ROI selection.
void initialize() override final
Initializer.
bool m_overrideDB
if set, overwrites ROI-finding settings in DB
int m_countNthEvent
Event counter to be able to disable data reduction for every Nth event.
int m_skipEveryNth
Parameter from DB for how many events to skip data reduction.
void copyDigits()
all the actual work is done here
DBObjPtr< ROISimulationParameters > m_ROISimulationParameters
Configuration parameters for ROIs.
SelectSubset< PXDDigit > m_selectorIN
selector of the subset of PXDDigits contained in the ROIs
bool m_usePXDDataReduction
enables/disables ROI-finding if overwriteDB=True
void event() override final
This method is called for each event.
std::string m_PXDDigitsOutsideROIName
The name of the StoreArray of Filtered PXDDigits.
std::string m_ROIidsName
The name of the StoreArray of ROIs.
StoreArray< PXDDigit > m_PXDDigits
StoreArray containing the input PXDDigits.
void beginRun() override final
Called when entering a new run.
std::string m_PXDDigitsName
The name of the StoreArray of PXDDigits to be filtered.
void filterDigits()
all the actual work is done here
PXDdigiFilterModule()
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_PXDDigitsInsideROIName
The name of the StoreArray of Filtered PXDDigits.
SelectSubset< PXDDigit > m_selectorOUT
selector of the subset of PXDDigits NOT contained in the ROIs
StoreArray< ROIid > m_ROIs
StoreArray containing the ROIs.
Class to create a subset of a given StoreArray together with the relations with other StoreArrays.
Accessor to arrays stored in the data store.
Abstract base class for different kinds of events.