 |
Belle II Software
release-05-02-19
|
12 #ifndef ECLCONFIGURATION_H_
13 #define ECLCONFIGURATION_H_
22 class EclConfiguration {
25 static EclConfiguration&
get()
27 static EclConfiguration instance;
35 static constexpr
int m_nch = 8736;
36 static constexpr
double m_rf = 508.887;
37 static constexpr
double m_tick = 24.*12. /
m_rf;
38 static constexpr
double m_step = 0.5;
39 static constexpr
double s_clock = 24.*12.;
43 static constexpr
double m_tmin = -15;
45 static constexpr
int m_nl = 48;
46 static constexpr
int m_ns = 32;
48 static constexpr
int m_ndt = 96;
57 void InitSample(
const float*,
double);
58 void InitSample(
const double*,
double);
59 double Accumulate(
const double,
const double,
double*)
const;
68 void AddHit(
const double a,
const double t0,
const signalsample_t& q);
81 typedef int int_array_192x16_t[2 *
m_ndt][16];
82 typedef int int_array_24x16_t[
m_ndt / 4][16];
83 int_array_192x16_t f, f1, fg31, fg32, fg33;
84 int_array_24x16_t fg41, fg43;
89 typedef short int shortint_array_16_t[16];
90 typedef unsigned char uchar_array_32_t[32];
92 shortint_array_16_t id;
static constexpr int m_nch
total number of electronic channels (crystals) in 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
a struct for the parameters of the algorithm
a struct for a signal sample
bool background() const
return the background flag
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
double flighttime
simulated time weighted by true deposited energy
singleton class to hold the ECL configuration
static EclConfiguration & get()
return this instance
a struct for the fit parameters
Abstract base class for different kinds of events.
double total
total deposition (sum of m_s array)
bool m_background
constructor
static constexpr double m_tick
== 72/127 digitization clock tick (in microseconds ???)
static constexpr double s_clock
digitization clock in RF units
static constexpr double m_rf
accelerating RF, http://ptep.oxfordjournals.org/content/2013/3/03A006.full.pdf
static constexpr int m_ndt
number of points per ADC tick where signal fit procedure parameters are evaluated
void AddHit(const double a, const double t0, const signalsample_t &q)
add hit method
void setBackground(bool val)
set the background flag
double energyConversion
energy conversion factor
static constexpr double m_step
time between points in internal units t_{asrto}*m_rf/2.
double m_sumscale
energy deposit in fitting window scale factor
static constexpr double m_tmin
lower range of the signal fitting region in ADC clocks
double totalDep
total true energy deposition
double totalHadronDep
total true hadron energy deposition
double timetosensor
simulated time to sensor
double c[m_nsmp]
flash ADC measurements
double timeshift
simulated time shift