9#include <pxd/modules/pxdHelper/PXDBadSensorTagModule.h>
10#include <framework/core/ModuleParam.templateDetails.h>
16using namespace Belle2::PXD::PXDError;
28 addParam(
"zeroSuppressionCut",
m_0cut,
"Minimum charge for a raw hit to carry", 0);
29 addParam(
"nrHitsCut",
m_nrHitsCut,
"Cut on nr hits per module [[id1,cut1],[id1,cut2],...]");
39 if (m.size() != 2) { B2ERROR(
"Wrong nr of Parameter " << m.size());
continue;}
46 std::map <VxdID, int> freq;
48 if (p.getCharge() <
m_0cut)
continue;
49 freq[p.getSensorID()]++;
55 if (freq[e.getSensorID()] >
m_cut[e.getSensorID()]) {
void setDescription(const std::string &description)
Sets the description of the module.
void setPropertyFlags(unsigned int propertyFlags)
Sets the flags for the module properties.
@ c_ParallelProcessingCertified
This module can be run in parallel processing mode safely (All I/O must be done through the data stor...
std::string m_PXDRawHitsName
The name of the StoreArray of PXDRawHits to be generated.
void initialize() override final
Initialize the module.
int m_0cut
Minimum charge for a digit to carry.
std::map< VxdID, int > m_cut
Cuts fore each module.
PXDBadSensorTagModule()
Constructor.
StoreObjPtr< PXDDAQStatus > m_storeDAQEvtStats
Output array for DAQ Status.
std::string m_PXDDAQEvtStatsName
The name of the StoreObjPtr of PXDDAQStatus to be generated.
void event() override final
Event.
std::vector< std::vector< int > > m_nrHitsCut
Cuts parameter fore each module.
StoreArray< PXDRawHit > m_storeRawHits
Input array for PXD Raw Hits.
Class to uniquely identify a any structure of the PXD and SVD.
void addParam(const std::string &name, T ¶mVariable, const std::string &description, const T &defaultValue)
Adds a new parameter to the module.
#define REG_MODULE(moduleName)
Register the given module (without 'Module' suffix) with the framework.
Namespace to encapsulate code needed for simulation and reconstrucion of the PXD.
Abstract base class for different kinds of events.