Project
Loading...
Searching...
No Matches
OrbitData.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 _ZDC_ORBIT_DATA_H_
13#define _ZDC_ORBIT_DATA_H_
14
16#include "ZDCBase/Constants.h"
17#include <array>
18#include <Rtypes.h>
19
23
24namespace o2
25{
26namespace zdc
27{
28
29struct OrbitData {
31 std::array<int16_t, NChannels> data{};
32 std::array<uint16_t, NChannels> scaler{};
33
35 {
36 // Scaler value can be in the range 0-3563 and therefore
37 // i.e. 0x0 - 0xdeb, therefore larger values can represent
38 // not initialized array
39 for (int i = 0; i < NChannels; i++) {
40 scaler[i] = 0x8fff;
41 }
42 }
43
44 OrbitData(const o2::InteractionRecord irn, std::array<int16_t, NChannels> datan, std::array<uint16_t, NChannels> scalern)
45 {
46 ir = irn;
47 data = datan;
48 scaler = scalern;
49 }
50
51 void print() const;
52
54};
55} // namespace zdc
56} // namespace o2
57
58#endif
int32_t i
GLboolean * data
Definition glcorearb.h:298
struct o2::upgrades_utils::@463 zdc
structure to keep FT0 information
constexpr int NChannels
Definition Constants.h:65
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...
OrbitData(const o2::InteractionRecord irn, std::array< int16_t, NChannels > datan, std::array< uint16_t, NChannels > scalern)
Definition OrbitData.h:44
void print() const
Definition OrbitData.cxx:17
o2::InteractionRecord ir
Definition OrbitData.h:30
std::array< uint16_t, NChannels > scaler
Definition OrbitData.h:32
ClassDefNV(OrbitData, 1)