PandaRoot
BSEmcPSAFPGALinFitter.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 BSEMCPSAFPGALINFITTER_HH
14 #define BSEMCPSAFPGALINFITTER_HH
15 #include "RtypesCore.h"
16 
18  public:
21  void reset();
22  void putPoint(Double_t t_x, Double_t t_y);
23  void fit();
24  Double_t offset();
25  Double_t slope();
26  Double_t average();
27  Double_t averageX();
28 
29  private:
30  Double_t x{0};
31  Double_t xx{0};
32  Double_t xy{0};
33  Double_t y{0};
34  Double_t a{0};
35  Double_t k{0};
36  UInt_t Np{0};
37 };
38 
39 #endif /*BSEMCPSAFPGALINFITTER_HH*/
void putPoint(Double_t t_x, Double_t t_y)