 |
Belle II Software
release-05-02-19
|
11 #ifndef PXDDigitSorterModule_H
12 #define PXDDigitSorterModule_H
14 #include <framework/core/Module.h>
15 #include <pxd/dataobjects/PXDDigit.h>
37 class PXDDigitSorterModule :
public Module {
46 virtual void event()
override;
50 inline bool goodDigit(
const PXDDigit*
const digit)
const
52 short u = digit->getUCellID();
53 bool goodU = (
u == std::min(std::max(u,
short(0)),
short(249)));
54 short v = digit->getVCellID();
55 bool goodV = (v == std::min(std::max(v,
short(0)),
short(767)));
56 return (goodU && goodV);
82 #endif // PXDDigitSorterModule_H
virtual void initialize() override
Initialize the module.
PXDDigitSorterModule()
Constructor defining the parameters.
std::string m_relDigitMCParticleName
Name of the relation between PXDDigits and MCParticles.
std::string m_storeTrueHitsName
Name of the collection to use for the PXDTrueHits.
std::string m_storeDigitsName
Name of the collection to use for the PXDDigits.
std::string m_relDigitTrueHitName
Name of the relation between PXDDigits and PXDTrueHits.
bool goodDigit(const PXDDigit *const digit) const
Utility function to check pixel coordinates.
std::vector< PXDDigit > m_digitcopy
Copy of the Digits needed for sorting.
virtual void event() override
do the sorting
Abstract base class for different kinds of events.
bool m_trimDigits
if true, check digit data and discard malformed digits.
bool m_mergeDuplicates
Mode: if true, merge duplicate pixels, otherwise delete all but the first occurence.
std::string m_storeMCParticlesName
Name of the collection to use for the MCParticles.