File indexing completed on 2024-04-06 11:57:47
0001
0002
0003
0004
0005 #ifndef PulseFitWithShape_H
0006 #define PulseFitWithShape_H
0007 #include "TObject.h"
0008 #include <vector>
0009
0010 class PulseFitWithShape : public TObject {
0011 public:
0012
0013 PulseFitWithShape();
0014
0015
0016 ~PulseFitWithShape() override;
0017
0018
0019 virtual void init(int, int, int, int, int, const std::vector<double> &, double);
0020
0021
0022
0023 virtual double doFit(double *, double *cova = nullptr);
0024
0025 double fAmp_fitted_max;
0026 double fTim_fitted_max;
0027
0028 double getAmpl() { return fAmp_fitted_max; }
0029 double getTime() { return fTim_fitted_max; }
0030
0031 private:
0032 int fNsamples;
0033 int fNsamplesShape;
0034 double fNoise;
0035
0036 std::vector<double> pshape;
0037 std::vector<double> dshape;
0038
0039 int fNb_iter;
0040 int fNum_samp_bef_max;
0041 int fNum_samp_after_max;
0042
0043 ClassDefOverride(PulseFitWithShape, 0)
0044 };
0045
0046 #endif
0047
0048
0049