Project
Loading...
Searching...
No Matches
TimeCalibrationSlewingParams.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
17
18#ifndef TIMECALIBRATIONSLEWINGPARAMS_H_
19#define TIMECALIBRATIONSLEWINGPARAMS_H_
20
21#include <array>
22#include <cmath>
23#include <numeric>
24#include <cfloat>
25#include <Rtypes.h>
26
27namespace o2
28{
29
30namespace emcal
31{
32
34{
35
36 public:
39
42 TimeCalibrationSlewingParams(std::array<double, 4> arr);
43
46
50
53 void addTimeSlewingParam(const std::array<double, 4> arr);
54
57 double getTimeSlewingParam(const unsigned int index) const;
58
61 double eval(const double energy) const;
62
63 private:
64 std::array<double, 4> arrParams;
65
66 // ClassDefOverride(TimeCalibrationSlewingParams, 1);
67 ClassDefNV(TimeCalibrationSlewingParams, 1);
68};
69
70} // namespace emcal
71
72} // namespace o2
73#endif // TIMECALIBRATIONSLEWINGPARAMS_H_
bool operator==(const TimeCalibrationSlewingParams &other) const
Comparison of two time calibration coefficients.
~TimeCalibrationSlewingParams()=default
Destructor.
double eval(const double energy) const
Get value of time calib slewing for a given energy.
void addTimeSlewingParam(const std::array< double, 4 > arr)
Add time calibration slewing function to the container.
double getTimeSlewingParam(const unsigned int index) const
Get time calibration slewing parameter index of function.
TimeCalibrationSlewingParams()=default
Constructor.
GLuint index
Definition glcorearb.h:781
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...
VectorOfTObjectPtrs other