PandaRoot
PndEmcPSAFPGAMLinFitter.h
Go to the documentation of this file.
1 //****************************************************************************
2 //* This file is part of PandaRoot. *
3 //* *
4 //* PandaRoot is distributed under the terms of the *
5 //* GNU General Public License (GPL) version 3, *
6 //* copied verbatim in the file "LICENSE". *
7 //* *
8 //* Copyright (C) 2006 - 2024 FAIR GmbH and copyright holders of PandaRoot *
9 //* The copyright holders are listed in the file "COPYRIGHTHOLDERS". *
10 //* The authors are listed in the file "AUTHORS". *
11 //****************************************************************************
12 
13 #ifndef PNDEMCFPGAMLINFITTER_HH
14 #define PNDEMCFPGAMLINFITTER_HH
15 
16 #include "PndEmcPSAFPGAFilterMA.h"
17 
19  public:
22  void set(int newBufferSize);
23  void putPoint(double ix, double iy);
24  void fit();
25  double offset();
26  double slope();
27  double average();
28 
29  private:
34  double x;
35  double xx;
36  double xy;
37  double y;
38  double a, k;
39  int Np;
40 };
41 
42 #endif
void putPoint(double ix, double iy)