11#include <framework/core/Module.h>
12#include <pxd/dataobjects/PXDDigit.h>
40 virtual void event()
override;
47 bool goodU = (u == std::min(std::max(u,
short(0)),
short(249)));
49 bool goodV = (v == std::min(std::max(v,
short(0)),
short(767)));
50 return (goodU && goodV);
unsigned short getVCellID() const
Get cell ID in v.
unsigned short getUCellID() const
Get cell ID in u.
The PXDDigitSorter module.
PXDDigitSorterModule()
Constructor defining the parameters.
virtual void initialize() override
Initialize the module.
bool m_mergeDuplicates
Mode: if true, merge duplicate pixels, otherwise delete all but the first occurence.
std::string m_relDigitMCParticleName
Name of the relation between PXDDigits and MCParticles.
virtual void event() override
do the sorting
std::string m_storeTrueHitsName
Name of the collection to use for the PXDTrueHits.
std::string m_storeMCParticlesName
Name of the collection to use for the MCParticles.
std::vector< PXDDigit > m_digitcopy
Copy of the Digits needed for sorting.
std::string m_storeDigitsName
Name of the collection to use for the PXDDigits.
bool goodDigit(const PXDDigit *const digit) const
Utility function to check pixel coordinates.
std::string m_relDigitTrueHitName
Name of the relation between PXDDigits and PXDTrueHits.
bool m_trimDigits
if true, check digit data and discard malformed digits.
Abstract base class for different kinds of events.