8#include <ecl/digitization/algorithms.h>
18 double WaveFuncTwoComponent(
double* x,
double* par)
30 const double time = x[0] - par[0];
31 const double PhotonScale = par[24];
32 const double HadronScale = par[25];
34 double GammaComponent = 0;
35 double HadronComponent = 0;
36 double photonTemplate10[10];
37 double hadronTemplate10[10];
38 for (
int k = 0; k < 10; k++) {
39 photonTemplate10[k] = par[4 + k];
40 hadronTemplate10[k] = par[10 + 4 + k];
42 GammaComponent = Belle2::ECL::ShaperDSPofflineFit(time, photonTemplate10, PhotonScale);
43 HadronComponent = Belle2::ECL::ShaperDSPofflineFit(time, hadronTemplate10, HadronScale);
44 return (par[2] * GammaComponent + par[3] * HadronComponent) + par[1];
Abstract base class for different kinds of events.