Belle II Software  release-05-02-19
PXDdigiFilterModule.h
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2013 - Belle II Collaboration *
4  * *
5  * Author: The Belle II Collaboration *
6  * Contributors: Eugenio Paoloni, Giulia Casarosa *
7  * *
8  * This software is provided "as is" without any warranty. *
9  **************************************************************************/
10 
11 #pragma once
12 
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>
18 
19 namespace Belle2 {
33  class PXDdigiFilterModule : public Module {
34 
35  public:
36 
41 
42  private:
43 
45  void initialize() override final;
46 
48  void beginRun() override final;
49 
51  void event() override final;
52 
54  void filterDigits();
55 
57  void copyDigits();
58 
59 
60  bool m_CreateOutside = false;
61  std::string m_PXDDigitsName;
62  std::string m_PXDDigitsInsideROIName;
63  std::string m_PXDDigitsOutsideROIName;
64  std::string m_ROIidsName;
65  bool m_overrideDB = false;
66  bool m_usePXDDataReduction = false;
69  int m_countNthEvent = 0;
71  int m_skipEveryNth = -1;
76  };
78 }
Belle2::PXDdigiFilterModule::m_selectorIN
SelectSubset< PXDDigit > m_selectorIN
selector of the subset of PXDDigits contained in the ROIs
Definition: PXDdigiFilterModule.h:81
Belle2::PXDdigiFilterModule::m_PXDDigitsOutsideROIName
std::string m_PXDDigitsOutsideROIName
The name of the StoreArray of Filtered PXDDigits.
Definition: PXDdigiFilterModule.h:71
Belle2::PXDdigiFilterModule::m_CreateOutside
bool m_CreateOutside
if set, create list of outside pixels, too
Definition: PXDdigiFilterModule.h:68
Belle2::PXDdigiFilterModule::m_roiParameters
DBObjPtr< ROIParameters > m_roiParameters
Configuration parameters for ROIs.
Definition: PXDdigiFilterModule.h:78
Belle2::SelectSubset
Class to create a subset of a given StoreArray together with the relations with other StoreArrays.
Definition: SelectSubset.h:203
Belle2::PXDdigiFilterModule::m_ROIidsName
std::string m_ROIidsName
The name of the StoreArray of ROIs.
Definition: PXDdigiFilterModule.h:72
Belle2::PXDDigit
The PXD digit class.
Definition: PXDDigit.h:38
Belle2::DBObjPtr
Class for accessing objects in the database.
Definition: DBObjPtr.h:31
Belle2::PXDdigiFilterModule::m_overrideDB
bool m_overrideDB
if set, overwrites ROI-finding settings in DB
Definition: PXDdigiFilterModule.h:73
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::PXDdigiFilterModule::PXDdigiFilterModule
PXDdigiFilterModule()
Constructor: Sets the description, the properties and the parameters of the module.
Definition: PXDdigiFilterModule.cc:27
Belle2::PXDdigiFilterModule::m_skipEveryNth
int m_skipEveryNth
Parameter from DB for how many events to skip data reduction.
Definition: PXDdigiFilterModule.h:79
Belle2::PXDdigiFilterModule::m_PXDDigitsName
std::string m_PXDDigitsName
The name of the StoreArray of PXDDigits to be filtered.
Definition: PXDdigiFilterModule.h:69
Belle2::PXDdigiFilterModule::m_usePXDDataReduction
bool m_usePXDDataReduction
enables/disables ROI-finding if overwriteDB=True
Definition: PXDdigiFilterModule.h:74
Belle2::PXDdigiFilterModule::copyDigits
void copyDigits()
all the actual work is done here
Definition: PXDdigiFilterModule.cc:150
Belle2::PXDdigiFilterModule::m_countNthEvent
int m_countNthEvent
Event counter to be able to disable data reduction for every Nth event.
Definition: PXDdigiFilterModule.h:77
Belle2::ROIParameters
The payload containing all PXD ROI parameters.
Definition: ROIParameters.h:32
Belle2::PXDdigiFilterModule::m_PXDDigitsInsideROIName
std::string m_PXDDigitsInsideROIName
The name of the StoreArray of Filtered PXDDigits.
Definition: PXDdigiFilterModule.h:70
Belle2::PXDdigiFilterModule::event
void event() override final
This method is the core of the module.
Definition: PXDdigiFilterModule.cc:83
Belle2::PXDdigiFilterModule::beginRun
void beginRun() override final
Called when entering a new run.
Definition: PXDdigiFilterModule.cc:71
Belle2::PXDdigiFilterModule::filterDigits
void filterDigits()
all the actual work is done here
Definition: PXDdigiFilterModule.cc:119
Belle2::PXDdigiFilterModule::initialize
void initialize() override final
Initialize the Module.
Definition: PXDdigiFilterModule.cc:46
Belle2::PXDdigiFilterModule::m_selectorOUT
SelectSubset< PXDDigit > m_selectorOUT
selector of the subset of PXDDigits NOT contained in the ROIs
Definition: PXDdigiFilterModule.h:82