Project
Loading...
Searching...
No Matches
CaloRawFitterGamma2.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
12#ifndef __CALORAWFITTERGAMMA2_H__
13#define __CALORAWFITTERGAMMA2_H__
14
15#include <iosfwd>
16#include <array>
17#include <optional>
18#include <Rtypes.h>
23
24namespace o2
25{
26
27namespace emcal
28{
29
40
42{
43
44 public:
47
49 ~CaloRawFitterGamma2() final = default;
50
51 void setNiterationsMax(int n) { mNiterationsMax = n; }
52 int getNiterations() { return mNiter; }
53 int getNiterationsMax() { return mNiterationsMax; }
54
61 CaloFitResults evaluate(const gsl::span<const Bunch> bunchvector) final;
62
63 private:
64 int mNiter = 0;
65 int mNiterationsMax = 15;
66
76 float doFit_1peak(int firstTimeBin, int nSamples, float& ampl, float& time);
77
83 std::tuple<float, float> doParabolaFit(int maxTimeBin) const;
84
85 ClassDefNV(CaloRawFitterGamma2, 1);
86}; // End of CaloRawFitterGamma2
87
88} // namespace emcal
89
90} // namespace o2
91#endif
int16_t time
Definition RawEventData.h:4
Container class to hold results from fitting.
Raw data fitting: Gamma-2 function.
~CaloRawFitterGamma2() final=default
Destructor.
CaloFitResults evaluate(const gsl::span< const Bunch > bunchvector) final
Evaluation Amplitude and TOF.
GLdouble n
Definition glcorearb.h:1982
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...