Belle II Software  release-08-01-10
ECLDspEmulator.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 <vector>
12 
13 namespace Belle2 {
18  namespace ECL {
20  typedef struct ECLShapeFit {
22  int amp;
24  int time;
26  int quality;
28  int pedestal;
30  bool hit_thr;
32  bool skip_thr;
34  bool low_amp;
36  std::vector<long long> fit;
38  unsigned long long chi2;
39  } ECLShapeFit;
40 
77  template <typename INT>
78  ECLShapeFit lftda_(const INT* f, const INT* f1, const INT* fg41,
79  const INT* fg43, const INT* fg31, const INT* fg32,
80  const INT* fg33, int* y, int ttrig2, int la_thr,
81  int hit_thr, int skip_thr, int k_a, int k_b,
82  int k_c, int k_16, int k1_chi, int k2_chi,
83  int chi_thres, bool adjusted_timing = false);
84 
85  }
87 }
Abstract base class for different kinds of events.
ShaperDSP fit results from _lftda function.
bool low_amp
(Peak < LA_THR) => true
int time
Fit time, -2048..2047 (with reference to trigger time), ADC ticks (1 tick ~= 0.5 ns)
bool skip_thr
(Peak < SKIP_THR) => true
bool hit_thr
(Peak < HIT_THR) => true
int amp
Fit amplitude, -128..262015, ADC units (20 ADC units ~= 1 MeV)
std::vector< long long > fit
Shape of the fitted function.
unsigned long long chi2
Chi^2 from the fit.
int quality
Quality flag, see enum QualityFlag in emulator implementation.