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" ; }
180 double& pedestal,
double& amplitudePhoton,
double& signalTime,
181 double& amplitudeHadron,
double& chi2);
194 double& pedestal,
double& amplitudePhoton,
double& signalTime,
195 double& amplitudeHadron,
double& amplitudeBackgroundPhoton,
196 double& timeBackgroundPhoton,
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.
float m_covMatPacked[31 *(31+1)/2]
Packed matrix.
const float & operator[](int i) const
Rvalue access by index.
float & operator[](int i)
Lvalue access by index.
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.
static constexpr int c_ntail
Number of tail steps.
double m_FunctionInterpolation[c_nt *c_ndt+c_ntail]
Function values.
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.
static constexpr int c_nt
Signal function is sampled in c_nt time steps with c_ndt substeps and c_ntail steps.
static constexpr double c_idt
Inverted time step.
double m_DerivativeInterpolation[c_nt *c_ndt+c_ntail]
Derivative values.
static constexpr double c_idtn
Inverted time substep.
static constexpr double c_dt
Time step.
static constexpr int c_ndt
Number of substeps.
static constexpr double c_dtn
Time substep.