Belle II Software  release-06-02-00
EclConfigurationPure.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 #ifndef ECLCONFIGURATIONPURE_H
10 #define ECLCONFIGURATIONPURE_H
11 
12 #include <ecl/digitization/EclConfiguration.h>
13 
14 class TH1F;
15 
16 namespace Belle2 {
21  namespace ECL {
22 
25  public:
26  static constexpr int m_nch = 72 * 16;
27  static constexpr int m_nsmp = EclConfiguration::m_nsmp;
28  static constexpr double m_tmin = -15;
29  static constexpr int m_ntrg = EclConfiguration::m_ntrg;
30  static double m_tickPure;
31  static constexpr int m_nlPure = EclConfiguration::m_nl * 15;
32  static constexpr int m_ns = EclConfiguration::m_ns;
34  static constexpr int m_ndtPure = m_ns;
39  double m_sumscale;
40  double m_ft[m_nlPure * m_ns];
41  double m_ft1[m_nlPure * m_ns];
42 
43  void InitSample(const TH1F*, const TH1F*);
44  double Accumulate(const double, const double, double*) const;
45  };
46 
48  struct adccountspure_t {
49  double total;
50  double c[m_nsmp];
51  void AddHit(const double a, const double t0, const signalsamplepure_t& q);
52  };
53 
55  struct fitparamspure_t {
56  typedef double double_matrix[16][2 * m_ndtPure];
57  typedef double fine_array[2 * m_ndtPure];
58  double invC[16][16];
59  double_matrix f, f1;
60  double_matrix c100, c010;
61  fine_array c110, c200, c020, c101, c011;
62  double c002;
63  double c001[16];
64  };
65 
66  };
67 
68  }
70 }
71 
72 #endif
class to hole the ECL configuration for pure CsI calorimeter
static constexpr double m_tmin
lower range of the signal fitting region in ADC clocks
static constexpr int m_ndtPure
number of points per ADC tick where signal fit procedure parameters are evaluated
static constexpr int m_ns
number of samples per ADC clock
static constexpr int m_nlPure
length of samples signal in number of ADC clocks
static constexpr int m_nch
total number of electronic channels (crystals) in fwd endcap calorimeter
static constexpr int m_ntrg
number of trigger counts per ADC clock tick
static constexpr int m_nsmp
number of ADC measurements for signal fitting
static constexpr int m_nl
length of samples signal in number of ADC clocks
static constexpr int m_ns
number of samples per ADC clock
static constexpr int m_ntrg
number of trigger counts per ADC clock tick
static constexpr int m_nsmp
number of ADC measurements for signal fitting
Abstract base class for different kinds of events.
a struct for the fit parameters for the pure CsI calorimeter
double total
total deposition (sum of m_s array)
a struct for the fit parameters for the pure CsI calorimeter
a struct for a signal sample for the pure CsI calorimeter
double m_sumscale
energy deposit in fitting window scale factor