Project
Loading...
Searching...
No Matches
OrbitData.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#include "ZDCBase/Constants.h"
14
15using namespace o2::zdc;
16
17void OrbitData::print() const
18{
19 // N.B. print encoded baseline because decoding requires ModuleConfig object
20 printf("Orbit %9u bc %4u\n", ir.orbit, ir.bc);
21 for (int i = 0; i < NChannels; i++) {
22 printf("%2d %s: %6d cnt: %4u\n", i, ChannelNames[i].data(), data[i], scaler[i]);
23 }
24}
int32_t i
Class to describe pedestal data accumulated over the orbit.
GLboolean * data
Definition glcorearb.h:298
constexpr int NChannels
Definition Constants.h:65
constexpr std::string_view ChannelNames[]
Definition Constants.h:147
uint32_t orbit
LHC orbit.
uint16_t bc
bunch crossing ID of interaction
void print() const
Definition OrbitData.cxx:17
std::array< int16_t, NChannels > data
Definition OrbitData.h:31
o2::InteractionRecord ir
Definition OrbitData.h:30
std::array< uint16_t, NChannels > scaler
Definition OrbitData.h:32