Belle II Software  release-08-01-10
TOPWaveformFeatureExtractorModule.h
1 /**************************************************************************
2  * basf2 (Belle II Analysis Software Framework) *
3  * Author: The Belle II Collaboration *
4  * *
5  * See git log for contributors and copyright holders. *
6  * This file is licensed under LGPL-3.0, see LICENSE.md. *
7  **************************************************************************/
8 
9 #pragma once
10 
11 #include <framework/core/Module.h>
12 #include <string>
13 
14 namespace Belle2 {
29 
30  public:
31 
36 
41 
46  virtual void initialize() override;
47 
52  virtual void beginRun() override;
53 
57  virtual void event() override;
58 
63  virtual void endRun() override;
64 
69  virtual void terminate() override;
70 
71  private:
72 
73  std::string m_inputRawDigitsName;
74  int m_threshold = 0;
75  int m_hysteresis = 0;
76  int m_thresholdCount = 0;
77  bool m_setIntegral = false;
79  };
80 
82 } // Belle2 namespace
83 
Base class for Modules.
Definition: Module.h:72
Waveform feature extractor: module adds rawDigits that are found in waveforms by feature extraction b...
int m_hysteresis
pulse height threshold hysteresis [ADC counts]
int m_threshold
pulse height threshold [ADC counts]
bool m_setIntegral
calculate and set integral for FW-extracted hits
std::string m_inputRawDigitsName
name of TOPRawDigit store array
int m_thresholdCount
minimal number of samples above threshold
virtual void initialize() override
Initialize the Module.
virtual void endRun() override
End-of-run action.
virtual void terminate() override
Termination action.
virtual void beginRun() override
Called when entering a new run.
Abstract base class for different kinds of events.