Project
Loading...
Searching...
No Matches
CaloRawFitterGS.h
Go to the documentation of this file.
1// Copyright 2019-2020 CERN and copyright holders of ALICE O2.
2// See https://alice-o2.web.cern.ch/copyright for details of the copyright holders.
3// All rights not expressly granted are reserved.
4//
5// This software is distributed under the terms of the GNU General Public
6// License v3 (GPL Version 3), copied verbatim in the file "COPYING".
7//
8// In applying this license CERN does not waive the privileges and immunities
9// granted to it by virtue of its status as an Intergovernmental Organization
10// or submit itself to any jurisdiction.
11
22
23#ifndef PHOSRAWFITTERGS_H
24#define PHOSRAWFITTERGS_H
26
27namespace o2
28{
29
30namespace phos
31{
32
34{
35
36 public:
37 static constexpr int NMAXSAMPLES = 40;
40
42 ~CaloRawFitterGS() final = default;
43
45 FitStatus evaluate(gsl::span<short unsigned int> signal) final;
46
48 void init();
49 FitStatus evalFit(gsl::span<short unsigned int> signal);
50
51 private:
52 short mMinTimeCalc = 10;
53 float mDecTime = 0.058823529;
54 float mQAccuracy = 1.e-3;
55 float mexp[NMAXSAMPLES];
56 float ma0[NMAXSAMPLES];
57 float ma1[NMAXSAMPLES];
58 float ma2[NMAXSAMPLES];
59 float ma3[NMAXSAMPLES];
60 float ma4[NMAXSAMPLES];
61
62 ClassDef(CaloRawFitterGS, 2);
63}; // End of CaloRawFitterGS
64
65} // namespace phos
66
67} // namespace o2
68#endif
#define protected
FitStatus evaluate(gsl::span< short unsigned int > signal) final
Evaluation Amplitude and TOF.
~CaloRawFitterGS() final=default
Destructor.
FitStatus evalFit(gsl::span< short unsigned int > signal)
static constexpr int NMAXSAMPLES
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...