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
12
#include "
DataFormatsZDC/OrbitData.h
"
13
#include "
ZDCBase/Constants.h
"
14
15
using namespace
o2::zdc
;
16
17
void
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
}
Constants.h
i
int32_t i
Definition
GPUCommonAlgorithm.h:443
OrbitData.h
Class to describe pedestal data accumulated over the orbit.
data
GLboolean * data
Definition
glcorearb.h:298
o2::zdc
Definition
ZDCConstants.h:23
o2::zdc::NChannels
constexpr int NChannels
Definition
Constants.h:65
o2::zdc::ChannelNames
constexpr std::string_view ChannelNames[]
Definition
Constants.h:147
o2::InteractionRecord::orbit
uint32_t orbit
LHC orbit.
Definition
InteractionRecord.h:35
o2::InteractionRecord::bc
uint16_t bc
bunch crossing ID of interaction
Definition
InteractionRecord.h:34
o2::zdc::OrbitData::print
void print() const
Definition
OrbitData.cxx:17
o2::zdc::OrbitData::data
std::array< int16_t, NChannels > data
Definition
OrbitData.h:31
o2::zdc::OrbitData::ir
o2::InteractionRecord ir
Definition
OrbitData.h:30
o2::zdc::OrbitData::scaler
std::array< uint16_t, NChannels > scaler
Definition
OrbitData.h:32
DataFormats
Detectors
ZDC
src
OrbitData.cxx
Generated on Tue Feb 25 2025 23:16:11 for Project by
1.9.8