PandaRoot
PndEmcPSAFPGALinFitter.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 PNDEMCFPGALINFITTER_HH
14 #define PNDEMCFPGALINFITTER_HH
15 
17  public:
20  void reset();
21  void putPoint(double ix, double iy);
22  void fit();
23  double offset();
24  double slope();
25  double average();
26  double averageX();
27 
28  private:
29  double x;
30  double xx;
31  double xy;
32  double y;
33  double a, k;
34  unsigned int Np;
35 };
36 
37 #endif
void putPoint(double ix, double iy)