Project
Loading...
Searching...
No Matches
ZDCEnergyParam.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 O2_ZDC_ENERGYPARAM_H
13#define O2_ZDC_ENERGYPARAM_H
14
15#include "ZDCBase/Constants.h"
16#include <Rtypes.h>
17#include <array>
18
22
23namespace o2
24{
25namespace zdc
26{
28 float energy_calib[NChannels] = {0}; // Energy calibration coefficients
29 float adc_offset[NChannels] = {0}; // Compensation of ADC offset
30 void setEnergyCalib(uint32_t ich, float val);
31 float getEnergyCalib(uint32_t ich) const;
32 void setOffset(uint32_t ich, float val);
33 float getOffset(uint32_t ich) const;
34 void print() const;
36};
37} // namespace zdc
38} // namespace o2
39
40#endif
GLuint GLfloat * val
Definition glcorearb.h:1582
struct o2::upgrades_utils::@463 zdc
structure to keep FT0 information
constexpr int NChannels
Definition Constants.h:65
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...
float energy_calib[NChannels]
float getOffset(uint32_t ich) const
ClassDefNV(ZDCEnergyParam, 2)
void setEnergyCalib(uint32_t ich, float val)
float getEnergyCalib(uint32_t ich) const
void setOffset(uint32_t ich, float val)
float adc_offset[NChannels]