11#include <framework/core/Module.h>
12#include <framework/datastore/StoreArray.h>
13#include <framework/datastore/StoreObjPtr.h>
14#include <pxd/dataobjects/PXDRawHit.h>
15#include <pxd/dataobjects/PXDDigit.h>
16#include <pxd/dataobjects/PXDDAQStatus.h>
43 virtual void event()
override;
57 bool goodU = (u == std::min(std::max(u,
short(0)),
short(249)));
58 short v = rawhit->
getRow();
59 bool goodV = (v == std::min(std::max(v,
short(0)),
short(767)));
60 return (goodU && goodV);
The PXD Raw Hit class This class stores information about PXD Pixel hits and makes them available in ...
short getColumn() const
Get u cell id of hit position.
short getRow() const
Get v cell id of hit position.
The PXDRawHitSorter module.
int m_0cut
Minimum charge for a digit to carry.
bool m_trimOutOfRange
Discard out-of-range hits.
virtual void initialize() override
Initialize the module.
bool m_mergeDuplicates
Mode: if true, merge duplicate pixels, otherwise only keep the first.
virtual void event() override
do the sorting
StoreObjPtr< PXDDAQStatus > m_storeDaqStatus
Required input for PXD Daq Status.
std::string m_storeRawHitsName
Name of the collection to use for PXDRawHits.
bool goodHit(const PXDRawHit *const rawhit) const
Utility function to check pixel coordinates.
PXDRawHitSorterModule()
Constructor defining the parameters.
std::string m_storeDigitsName
Name of the collection to use for the PXDDigits.
StoreArray< PXDRawHit > m_storeRawHits
Required input for PXDRawHit.
StoreArray< PXDDigit > m_storeDigits
Output array for PXDDigits.
Accessor to arrays stored in the data store.
Type-safe access to single objects in the data store.
Abstract base class for different kinds of events.