11#include <framework/core/Module.h>
13#include <framework/datastore/StoreArray.h>
14#include <top/dataobjects/TOPDigit.h>
32 enum { c_NPixelsPerRow = 64 };
43 virtual void event()
override;
53 bool isCrossTalk(
const std::vector<short>& wfm,
int iRawTime,
short height);
int m_nSampleAfter
the number of samples by which the second peak should exist from the CFD timing, used for cross talk ...
virtual void initialize() override
initialize
double m_nCrossTalkRingingSamples
the number of samples to identify the hit as a cross talk hit when there is another cross talk hit in...
bool m_checkPreValleyForXTalkId
require existence of pre-valley.
virtual void event() override
event
int m_preValleyDepthLoose
loose threshold for depth of pre valley [ADC counts], for cross talk identification
TOPXTalkChargeShareSetterModule()
Constructor: Sets the description, the properties and the parameters of the module.
int m_2ndPeakAmplitudeLoose
loose threshold for amplitude of the second peak [ADC counts] for cross talk identification.
bool isCrossTalk(const std::vector< short > &wfm, int iRawTime, short height)
Examine whether the give hit is cross talk hits using waveform information Thresholds for such as pre...
float m_timeCut
cut range of hittiming for chargeshare
int m_preValleyDepthTight
tight threshold for depth of pre valley [ADC counts], identified as cross talk with loose threshold f...
double m_2ndPeakAmplitudeRatioTight
tight threshold for amplitude ratio of the second peak to the main peak height [ADC counts]
bool m_sumChargeShare
sum charge of PrimaryChargeShare and SecondaryChargeShare
bool m_checkPostValleyForXTalkId
require existence of post-valley and 2nd peak.
int m_nSampleBefore
the number of samples by which the pre-valley should exist from the CFD timing, used for cross talk i...
Abstract base class for different kinds of events.