File indexing completed on 2025-02-22 09:39:17
0001
0002
0003 #pragma once
0004
0005 #include "waveform_fit_base.h"
0006
0007 #include <vector>
0008
0009 #include <TF1.h>
0010 #include <TGraph.h>
0011
0012 class crystal_ball_fit : public waveform_fit_base {
0013 public:
0014 crystal_ball_fit();
0015 ~crystal_ball_fit();
0016
0017 void fit() override;
0018 int get_pedestal() override;
0019
0020 private:
0021 double crystal_ball(double *inputs, double *parameters);
0022
0023 TF1 *crystal_ball_function;
0024 TF1 *linear_function;
0025 TGraph *crystal_ball_graph;
0026
0027 };