Project
Loading...
Searching...
No Matches
ZDCTDCParam.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_TDCPARAM_H_
13#define O2_ZDC_TDCPARAM_H_
14
15#include "ZDCBase/Constants.h"
16#include <Rtypes.h>
17#include <array>
18
22
23namespace o2
24{
25namespace zdc
26{
28 float tdc_shift[NTDCChannels] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0}; // Correction of TDC position (ns)
29 float tdc_calib[NTDCChannels] = {1, 1, 1, 1, 1, 1, 1, 1, 1, 1}; // Correction factor of TDC amplitude
30 float tdc_offset[NTDCChannels] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0}; // Offset of TDC amplitude calibration
31 void setShift(uint32_t ich, float val);
32 float getShift(uint32_t ich) const;
33 void setFactor(uint32_t ich, float val);
34 float getFactor(uint32_t ich) const;
35 void setOffset(uint32_t ich, float val);
36 float getOffset(uint32_t ich) const;
37 void print() const;
39};
40} // namespace zdc
41} // namespace o2
42
43#endif
GLuint GLfloat * val
Definition glcorearb.h:1582
struct o2::upgrades_utils::@463 zdc
structure to keep FT0 information
constexpr int NTDCChannels
Definition Constants.h:90
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...
float getOffset(uint32_t ich) const
ClassDefNV(ZDCTDCParam, 3)
float tdc_calib[NTDCChannels]
Definition ZDCTDCParam.h:29
void setFactor(uint32_t ich, float val)
float tdc_shift[NTDCChannels]
Definition ZDCTDCParam.h:28
void setOffset(uint32_t ich, float val)
void setShift(uint32_t ich, float val)
float tdc_offset[NTDCChannels]
Definition ZDCTDCParam.h:30
float getFactor(uint32_t ich) const
float getShift(uint32_t ich) const