 |
Belle II Software
release-05-01-25
|
11 #include <pxd/modules/pxdHelper/PXDRawHitMaskingModule.h>
13 #include <framework/datastore/DataStore.h>
14 #include <framework/datastore/RelationArray.h>
15 #include <framework/logging/Logger.h>
17 #include <vxd/geometry/GeoCache.h>
19 #include <pxd/reconstruction/Pixel.h>
20 #include <pxd/reconstruction/PXDPixelMasker.h>
37 PXDRawHitMaskingModule::PXDRawHitMaskingModule() :
Module()
40 setDescription(
"This module masks the input collection of PXDRawHits into "
41 "a PXDRawHit output collection");
44 addParam(
"zeroSuppressionCut",
m_0cut,
"Minimum charge for a digit to carry", 0);
67 VxdID sensorID = it.getSensorID();
69 B2WARNING(
"Malformed PXDRawHit, VxdID $" << hex << sensorID.
getID() <<
", dropping. (" << sensorID <<
")");
75 if (it.getCharge() <
m_0cut)
continue;
Class to uniquely identify a any structure of the PXD and SVD.
void setDescription(const std::string &description)
Sets the description of the module.
bool goodHit(const PXDRawHit &rawhit) const
Utility function to check pixel coordinates.
#define REG_MODULE(moduleName)
Register the given module (without 'Module' suffix) with the framework.
@ c_ParallelProcessingCertified
This module can be run in parallel processing mode safely (All I/O must be done through the data stor...
baseType getLadderNumber() const
Get the ladder id.
int m_0cut
Minimum charge for a digit to carry.
baseType getID() const
Get the unique id.
bool validSensorID(Belle2::VxdID id) const
Check that id is a valid sensor number.
void setPropertyFlags(unsigned int propertyFlags)
Sets the flags for the module properties.
virtual void event() override
do the filtering
Namespace to encapsulate code needed for simulation and reconstrucion of the PXD.
static GeoCache & getInstance()
Return a reference to the singleton instance.
Abstract base class for different kinds of events.
std::string m_storeRawHitsName
Name of the collection to use for PXDRawHits.
std::string m_storeRawHitsNameOut
Name of the collection to use for Output PXDRawHits.
StoreArray< PXDRawHit > m_pxdRawHitOut
Required output for PXDRawHit.
baseType getSensorNumber() const
Get the sensor id.
void addParam(const std::string &name, T ¶mVariable, const std::string &description, const T &defaultValue)
Adds a new parameter to the module.
Class to faciliate easy access to sensor information of the VXD like coordinate transformations or pi...
virtual void initialize() override
Initialize the module.
baseType getLayerNumber() const
Get the layer id.
StoreArray< PXDRawHit > m_pxdRawHit
Required input for PXDRawHit.
bool m_trimOutOfRange
Discard out-of-range hits.
static PXDPixelMasker & getInstance()
Main (and only) way to access the PXDPixelMasker.