Project
Loading...
Searching...
No Matches
ZDCTDCData.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
14using namespace o2::zdc;
15
16uint32_t ZDCTDCDataErr::mErrVal[NTDCChannels] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0};
17uint32_t ZDCTDCDataErr::mErrId = 0;
18
20{
21 int itdc = id & 0x0f;
22 int isig = IdDummy;
23 if (id != 0xff && itdc >= 0 && itdc < NTDCChannels) {
24 isig = TDCSignal[itdc];
25 }
26 printf("%2d (%s) %8.3f @ %d = %6.3f%s%s\n", isig, channelName(isig), amp, val, value(), isBeg() ? " B" : "", isEnd() ? " E" : "");
27}
Container class to store a TDC hit in a ZDC channel.
GLuint GLfloat * val
Definition glcorearb.h:1582
const int TDCSignal[NTDCChannels]
Definition Constants.h:181
constexpr int NTDCChannels
Definition Constants.h:90
constexpr const char * channelName(int channel)
Definition Constants.h:318
constexpr int IdDummy
static uint32_t mErrId
Definition ZDCTDCData.h:33
static uint32_t mErrVal[NTDCChannels]
Definition ZDCTDCData.h:32
void print() const
bool isEnd() const
Definition ZDCTDCData.h:138
bool isBeg() const
Definition ZDCTDCData.h:133
float value() const
Definition ZDCTDCData.h:122