9#include <pxd/modules/pxdHelper/PXDRawHitMaskingModule.h>
11#include <framework/datastore/DataStore.h>
12#include <framework/datastore/RelationArray.h>
13#include <framework/logging/Logger.h>
15#include <vxd/geometry/GeoCache.h>
17#include <pxd/reconstruction/Pixel.h>
18#include <pxd/reconstruction/PXDPixelMasker.h>
38 setDescription(
"This module masks the input collection of PXDRawHits into "
39 "a PXDRawHit output collection");
42 addParam(
"zeroSuppressionCut",
m_0cut,
"Minimum charge for a digit to carry", 0);
65 VxdID sensorID = it.getSensorID();
67 B2WARNING(
"Malformed PXDRawHit, VxdID $" << hex << sensorID.
getID() <<
", dropping. (" << sensorID <<
")");
73 if (it.getCharge() <
m_0cut)
continue;
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...
static PXDPixelMasker & getInstance()
Main (and only) way to access the PXDPixelMasker.
int m_0cut
Minimum charge for a digit to carry.
bool m_trimOutOfRange
Discard out-of-range hits.
StoreArray< PXDRawHit > m_pxdRawHit
Required input for PXDRawHit.
virtual void initialize() override
Initialize the module.
virtual void event() override
do the filtering
PXDRawHitMaskingModule()
Constructor defining the parameters.
std::string m_storeRawHitsNameOut
Name of the collection to use for Output PXDRawHits.
std::string m_storeRawHitsName
Name of the collection to use for PXDRawHits.
bool goodHit(const PXDRawHit &rawhit) const
Utility function to check pixel coordinates.
StoreArray< PXDRawHit > m_pxdRawHitOut
Required output for PXDRawHit.
Class to faciliate easy access to sensor information of the VXD like coordinate transformations or pi...
static GeoCache & getInstance()
Return a reference to the singleton instance.
bool validSensorID(Belle2::VxdID id) const
Check that id is a valid sensor number.
Class to uniquely identify a any structure of the PXD and SVD.
baseType getID() const
Get the unique id.
baseType getSensorNumber() const
Get the sensor id.
baseType getLadderNumber() const
Get the ladder id.
baseType getLayerNumber() const
Get the layer id.
void addParam(const std::string &name, T ¶mVariable, const std::string &description, const T &defaultValue)
Adds a new parameter to the module.
#define REG_MODULE(moduleName)
Register the given module (without 'Module' suffix) with the framework.
Namespace to encapsulate code needed for simulation and reconstrucion of the PXD.
Abstract base class for different kinds of events.