Belle II Software  release-05-02-19
TOPXTalkChargeShareSetterModule.h
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2018 - Belle II Collaboration *
4  * *
5  * Author: The Belle II Collaboration *
6  * Contributors: Rikuya Okuto *
7  * *
8  * This software is provided "as is" without any warranty. *
9  **************************************************************************/
10 
11 #pragma once
12 
13 #include <framework/core/Module.h>
14 
15 #include <framework/datastore/StoreArray.h>
16 #include <top/dataobjects/TOPDigit.h>
17 
18 namespace Belle2 {
31  class TOPXTalkChargeShareSetterModule : public Module {
32 
33  public:
37  enum { c_NPixelsPerRow = 64 };
38 
43 
45  virtual ~TOPXTalkChargeShareSetterModule() override;
46 
48  virtual void initialize() override;
49 
51  virtual void beginRun() override;
52 
54  virtual void event() override;
55 
57  virtual void endRun() override;
58 
60  virtual void terminate() override;
61 
70  bool isCrossTalk(std::vector<short> wfm, int iRawTime, short height);
71 
72 
73  private:
74 
75  bool m_sumChargeShare = false;
76  float m_timeCut = 1;
78  0;
79  int m_preValleyDepthLoose = 20;
81  50;
83  30;
85  0.2;
86  int m_nSampleBefore =
87  5;
89  10;
92  true;
95  true;
96  };
98 };
Belle2::TOPXTalkChargeShareSetterModule::m_checkPreValleyForXTalkId
bool m_checkPreValleyForXTalkId
require existence of pre-valley.
Definition: TOPXTalkChargeShareSetterModule.h:99
Belle2::TOPXTalkChargeShareSetterModule::m_sumChargeShare
bool m_sumChargeShare
sum charge of PrimaryChargeShare and SecondaryChargeShare
Definition: TOPXTalkChargeShareSetterModule.h:83
Belle2::TOPXTalkChargeShareSetterModule::event
virtual void event() override
event
Definition: TOPXTalkChargeShareSetterModule.cc:82
Belle2::TOPXTalkChargeShareSetterModule::endRun
virtual void endRun() override
endRun
Definition: TOPXTalkChargeShareSetterModule.cc:181
Belle2::TOPXTalkChargeShareSetterModule::m_2ndPeakAmplitudeLoose
int m_2ndPeakAmplitudeLoose
loose threshold for amplitude of the second peak [ADC counts] for cross talk identification.
Definition: TOPXTalkChargeShareSetterModule.h:90
Belle2::TOPXTalkChargeShareSetterModule::m_2ndPeakAmplitudeRatioTight
double m_2ndPeakAmplitudeRatioTight
tight threshold for amplitude ratio of the second peak to the main peak height [ADC counts]
Definition: TOPXTalkChargeShareSetterModule.h:92
Belle2::TOPXTalkChargeShareSetterModule::initialize
virtual void initialize() override
initialize
Definition: TOPXTalkChargeShareSetterModule.cc:69
Belle2::TOPXTalkChargeShareSetterModule::TOPXTalkChargeShareSetterModule
TOPXTalkChargeShareSetterModule()
Constructor: Sets the description, the properties and the parameters of the module.
Definition: TOPXTalkChargeShareSetterModule.cc:37
Belle2::TOPXTalkChargeShareSetterModule::~TOPXTalkChargeShareSetterModule
virtual ~TOPXTalkChargeShareSetterModule() override
destructor
Definition: TOPXTalkChargeShareSetterModule.cc:67
Belle2::TOPXTalkChargeShareSetterModule::terminate
virtual void terminate() override
terminate
Definition: TOPXTalkChargeShareSetterModule.cc:185
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::TOPXTalkChargeShareSetterModule::m_checkPostValleyForXTalkId
bool m_checkPostValleyForXTalkId
require existence of post-valley and 2nd peak.
Definition: TOPXTalkChargeShareSetterModule.h:102
Belle2::TOPXTalkChargeShareSetterModule::isCrossTalk
bool isCrossTalk(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...
Definition: TOPXTalkChargeShareSetterModule.cc:190
Belle2::TOPXTalkChargeShareSetterModule::beginRun
virtual void beginRun() override
beginRun
Definition: TOPXTalkChargeShareSetterModule.cc:78
Belle2::TOPXTalkChargeShareSetterModule::m_preValleyDepthTight
int m_preValleyDepthTight
tight threshold for depth of pre valley [ADC counts], identified as cross talk with loose threshold f...
Definition: TOPXTalkChargeShareSetterModule.h:88
Belle2::TOPXTalkChargeShareSetterModule::m_nCrossTalkRingingSamples
double m_nCrossTalkRingingSamples
the number of samples to identify the hit as a cross talk hit when there is another cross talk hit in...
Definition: TOPXTalkChargeShareSetterModule.h:85
Belle2::TOPXTalkChargeShareSetterModule::m_nSampleAfter
int m_nSampleAfter
the number of samples by which the second peak should exist from the CFD timing, used for cross talk ...
Definition: TOPXTalkChargeShareSetterModule.h:96
Belle2::TOPXTalkChargeShareSetterModule::m_preValleyDepthLoose
int m_preValleyDepthLoose
loose threshold for depth of pre valley [ADC counts], for corss talk identification
Definition: TOPXTalkChargeShareSetterModule.h:87
Belle2::TOPXTalkChargeShareSetterModule::m_nSampleBefore
int m_nSampleBefore
the number of samples by which the pre-valley should exist from the CFD timing, used for cross talk i...
Definition: TOPXTalkChargeShareSetterModule.h:94
Belle2::TOPXTalkChargeShareSetterModule::m_timeCut
float m_timeCut
cut range of hittiming for chargeshare
Definition: TOPXTalkChargeShareSetterModule.h:84