 |
Belle II Software
release-05-02-19
|
13 #include <framework/core/Module.h>
14 #include <framework/datastore/StoreArray.h>
15 #include <pxd/dataobjects/PXDRawHit.h>
36 class PXDRawHitMaskingModule :
public Module {
45 virtual void event()
override;
51 inline bool goodHit(
const PXDRawHit& rawhit)
const
53 short u = rawhit.getColumn();
54 bool goodU = (
u == std::min(std::max(u,
short(0)),
short(249)));
55 short v = rawhit.getRow();
56 bool goodV = (v == std::min(std::max(v,
short(0)),
short(767)));
57 return (goodU && goodV);
bool goodHit(const PXDRawHit &rawhit) const
Utility function to check pixel coordinates.
int m_0cut
Minimum charge for a digit to carry.
virtual void event() override
do the filtering
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.
virtual void initialize() override
Initialize the module.
StoreArray< PXDRawHit > m_pxdRawHit
Required input for PXDRawHit.
bool m_trimOutOfRange
Discard out-of-range hits.
PXDRawHitMaskingModule()
Constructor defining the parameters.