Project
Loading...
Searching...
No Matches
ZDCTowerParam.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_TOWERPARAM_H
13#define O2_ZDC_TOWERPARAM_H
14
15#include "ZDCBase/Constants.h"
16#include <Rtypes.h>
17#include <array>
18
22
23namespace o2
24{
25namespace zdc
26{
28 float tower_calib[NChannels] = {0}; // Tower calibration coefficients
29 float tower_offset[NChannels] = {0}; // Tower offset
30 std::array<bool, NChannels> modified{};
32 {
33 modified.fill(false);
34 }
35 void clearFlags();
36 void setTowerCalib(uint32_t ich, float val, bool ismodified = true);
37 float getTowerCalib(uint32_t ich) const;
38 void setTowerOffset(uint32_t ich, float val, bool ismodified = true);
39 float getTowerOffset(uint32_t ich) const;
40 void print() const;
42};
43} // namespace zdc
44} // namespace o2
45
46#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 getTowerCalib(uint32_t ich) const
ClassDefNV(ZDCTowerParam, 3)
void setTowerOffset(uint32_t ich, float val, bool ismodified=true)
float getTowerOffset(uint32_t ich) const
void setTowerCalib(uint32_t ich, float val, bool ismodified=true)
std::array< bool, NChannels > modified
float tower_offset[NChannels]
float tower_calib[NChannels]