Project
Loading...
Searching...
No Matches
ZDCEnergy.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
16void ZDCEnergy::print() const
17{
18 auto id = this->ch();
19 printf("%2d (%s): %9u = %9.2f\n", id, channelName(id), value & EnergyChMask, energy());
20}
Container class to store energy released in the ZDC.
GLsizei const GLfloat * value
Definition glcorearb.h:819
constexpr uint32_t EnergyChMask
Definition Constants.h:86
constexpr const char * channelName(int channel)
Definition Constants.h:318
void print() const
Definition ZDCEnergy.cxx:16
float energy() const
Definition ZDCEnergy.h:54
uint8_t ch() const
Definition ZDCEnergy.h:58