Project
Loading...
Searching...
No Matches
SlewingCoef.cxx
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
13#include <cassert>
14using namespace o2::ft0;
15
17{
19 for (int iAdc = 0; iAdc < sNAdc; iAdc++) {
20 const auto& slewingCoefs = mSlewingCoefs[iAdc];
21 auto& plotsAdc = plots[iAdc];
22 for (int iCh = 0; iCh < sNCHANNELS; iCh++) {
23 const auto& points_x = slewingCoefs[iCh].first;
24 const auto& points_y = slewingCoefs[iCh].second;
25 assert(points_x.size() == points_y.size());
26 const int nPoints = points_x.size();
27 auto& plot = plotsAdc[iCh];
28 plot = TGraph(nPoints, points_x.data(), points_y.data());
29 }
30 }
31 return plots;
32}
VecSlewingCoefs_t mSlewingCoefs
Definition SlewingCoef.h:36
static constexpr int sNAdc
Definition SlewingCoef.h:31
SlewingPlots_t makeSlewingPlots() const
std::array< std::array< TGraph, sNCHANNELS >, sNAdc > SlewingPlots_t
Definition SlewingCoef.h:35
static constexpr int sNCHANNELS
Definition SlewingCoef.h:30