12 #include <ecl/dataobjects/ECLDigit.h>
13 #include <ecl/dataobjects/ECLDsp.h>
14 #include <ecl/dbobjects/ECLAutoCovariance.h>
15 #include <ecl/dbobjects/ECLCrystalCalib.h>
16 #include <ecl/dbobjects/ECLDigitWaveformParameters.h>
17 #include <ecl/dbobjects/ECLDigitWaveformParametersForMC.h>
20 #include <framework/core/Module.h>
21 #include <framework/database/DBObjPtr.h>
22 #include <framework/datastore/StoreArray.h>
63 constexpr
static int c_nt = 12;
72 constexpr
static double c_dt = 0.5;
120 void getShape(
double t0,
double*
function,
double* derivatives)
const;
147 virtual void event()
override;
150 virtual void endRun()
override;
157 {
return "ECLDigits" ; }
161 {
return "ECLDsps" ; }
174 void Fit2h(
double& b,
double& a0,
double& t0,
double& a1,
double& chi2);
181 double& A2,
double& T2,
double& chi2);
Class for accessing objects in the database.
Accessor to arrays stored in the data store.
const int c_NCrystals
Number of crystals.
Abstract base class for different kinds of events.
Struct to keep upper triangle of the covariance matrix.
const float & operator[](int i) const
Rvalue access by index.
float & operator[](int i)
Lvalue access by index.
float m_covMatPacked[31 *(31+1)/2]
Packed matrix.
Interpolation of signal shape using function values and the first derivative.
double m_r0
Assuming exponential drop of the signal function far away from 0, extrapolate it to +inf.
double m_FunctionInterpolation[c_nt *c_ndt+c_ntail]
Function values.
constexpr static double c_idt
Inverted time step.
SignalInterpolation2()
Default constructor.
void getShape(double t0, double *function, double *derivatives) const
Returns signal shape and derivatives in 31 equidistant time points starting from t0.
constexpr static int c_ntail
Number of tail steps.
constexpr static double c_dtn
Time substep.
constexpr static double c_idtn
Inverted time substep.
double m_DerivativeInterpolation[c_nt *c_ndt+c_ntail]
Derivative values.
constexpr static int c_nt
Signal function is sampled in c_nt time steps with c_ndt substeps and c_ntail steps.
constexpr static double c_dt
Time step.
constexpr static int c_ndt
Number of substeps.