Belle II Software  release-05-01-25
ECLDspEmulator.h
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2019 - Belle II Collaboration *
4  * *
5  * Author: The Belle II Collaboration *
6  * Contributors: Mikhail Remnev *
7  * *
8  * This software is provided "as is" without any warranty. *
9  **************************************************************************/
10 
11 #pragma once
12 
13 #include <vector>
14 
15 namespace Belle2 {
20  namespace ECL {
22  typedef struct ECLShapeFit {
24  int amp;
26  int time;
28  int quality;
30  int pedestal;
32  bool hit_thr;
34  bool skip_thr;
36  bool low_amp;
38  std::vector<long long> fit;
40  unsigned long long chi2;
41  } ECLShapeFit;
42 
79  template <typename INT>
80  ECLShapeFit lftda_(INT* f, INT* f1, INT* fg41,
81  INT* fg43, INT* fg31, INT* fg32,
82  INT* fg33, int* y, int& ttrig2, int& la_thr,
83  int& hit_thr, int& skip_thr, int& k_a, int& k_b,
84  int& k_c, int& k_16, int& k1_chi, int& k2_chi,
85  int& chi_thres, bool adjusted_timing = false);
86 
87  }
89 }
Belle2::ECL::ECLShapeFit::amp
int amp
Fit amplitude, -128..262015, ADC units (20 ADC units ~= 1 MeV)
Definition: ECLDspEmulator.h:32
Belle2::ECL::ECLShapeFit
ShaperDSP fit results from _lftda function.
Definition: ECLDspEmulator.h:30
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::ECL::ECLShapeFit::fit
std::vector< long long > fit
Shape of the fitted function.
Definition: ECLDspEmulator.h:46
Belle2::ECL::ECLShapeFit::quality
int quality
Quality flag, see enum QualityFlag in emulator implementation.
Definition: ECLDspEmulator.h:36
Belle2::ECL::ECLShapeFit::low_amp
bool low_amp
(Peak < LA_THR) => true
Definition: ECLDspEmulator.h:44
Belle2::ECL::ECLShapeFit::time
int time
Fit time, -2048..2047 (with reference to trigger time), ADC ticks (1 tick ~= 0.5 ns)
Definition: ECLDspEmulator.h:34
Belle2::ECL::ECLShapeFit::skip_thr
bool skip_thr
(Peak < SKIP_THR) => true
Definition: ECLDspEmulator.h:42
Belle2::ECL::ECLShapeFit::pedestal
int pedestal
Pedestal.
Definition: ECLDspEmulator.h:38
Belle2::ECL::ECLShapeFit::chi2
unsigned long long chi2
Chi^2 from the fit.
Definition: ECLDspEmulator.h:48
Belle2::ECL::ECLShapeFit::hit_thr
bool hit_thr
(Peak < HIT_THR) => true
Definition: ECLDspEmulator.h:40