Project
Loading...
Searching...
No Matches
SlewingCoef.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 ALICEO2_FT0_SLEWINGCOEF_H_
13#define ALICEO2_FT0_SLEWINGCOEF_H_
15// Slewing coefficients for FT0
17#include "TGraph.h"
18#include "Rtypes.h"
19
20#include <vector>
21#include <array>
22#include <utility>
23
24namespace o2
25{
26namespace ft0
27{
28
30 constexpr static int sNCHANNELS = 208;
31 constexpr static int sNAdc = 2;
32 using VecPoints_t = std::vector<Double_t>; // Set of points
33 using VecPlot_t = std::pair<VecPoints_t, VecPoints_t>; // Plot as pair of two set of points
34 using VecSlewingCoefs_t = std::array<std::array<VecPlot_t, sNCHANNELS>, sNAdc>; // 0 - adc0, 1 - adc1
35 typedef std::array<std::array<TGraph, sNCHANNELS>, sNAdc> SlewingPlots_t;
38 constexpr static const char* getObjectPath()
39 {
40 return "FT0/Calib/SlewingCoef";
41 }
42 ClassDefNV(SlewingCoef, 1)
43};
44} // namespace ft0
45} // namespace o2
46
47#endif
struct o2::upgrades_utils::@462 ft0
structure to keep V0C information
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...
VecSlewingCoefs_t mSlewingCoefs
Definition SlewingCoef.h:36
static constexpr int sNAdc
Definition SlewingCoef.h:31
SlewingPlots_t makeSlewingPlots() const
std::vector< Double_t > VecPoints_t
Definition SlewingCoef.h:32
std::pair< VecPoints_t, VecPoints_t > VecPlot_t
Definition SlewingCoef.h:33
static constexpr const char * getObjectPath()
Definition SlewingCoef.h:38
std::array< std::array< TGraph, sNCHANNELS >, sNAdc > SlewingPlots_t
Definition SlewingCoef.h:35
static constexpr int sNCHANNELS
Definition SlewingCoef.h:30
std::array< std::array< VecPlot_t, sNCHANNELS >, sNAdc > VecSlewingCoefs_t
Definition SlewingCoef.h:34