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
15
#include "
CommonDataFormat/InteractionRecord.h
"
16
#include "
ZDCBase/Constants.h
"
17
#include <array>
18
#include <Rtypes.h>
19
23
24
namespace
o2
25
{
26
namespace
zdc
27
{
28
29
struct
OrbitData
{
30
o2::InteractionRecord
ir
;
31
std::array<int16_t, NChannels>
data
{};
32
std::array<uint16_t, NChannels>
scaler
{};
33
34
OrbitData
()
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
53
ClassDefNV
(
OrbitData
, 1);
54
};
55
}
// namespace zdc
56
}
// namespace o2
57
58
#endif
Constants.h
i
int32_t i
Definition
GPUCommonAlgorithm.h:443
InteractionRecord.h
data
GLboolean * data
Definition
glcorearb.h:298
o2::upgrades_utils::zdc
struct o2::upgrades_utils::@463 zdc
structure to keep FT0 information
o2::zdc::NChannels
constexpr int NChannels
Definition
Constants.h:65
o2
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...
Definition
BitstreamReader.h:24
o2::InteractionRecord
Definition
InteractionRecord.h:27
o2::zdc::OrbitData
Definition
OrbitData.h:29
o2::zdc::OrbitData::OrbitData
OrbitData(const o2::InteractionRecord irn, std::array< int16_t, NChannels > datan, std::array< uint16_t, NChannels > scalern)
Definition
OrbitData.h:44
o2::zdc::OrbitData::print
void print() const
Definition
OrbitData.cxx:17
o2::zdc::OrbitData::ir
o2::InteractionRecord ir
Definition
OrbitData.h:30
o2::zdc::OrbitData::OrbitData
OrbitData()
Definition
OrbitData.h:34
o2::zdc::OrbitData::scaler
std::array< uint16_t, NChannels > scaler
Definition
OrbitData.h:32
o2::zdc::OrbitData::ClassDefNV
ClassDefNV(OrbitData, 1)
DataFormats
Detectors
ZDC
include
DataFormatsZDC
OrbitData.h
Generated on Tue Feb 25 2025 23:16:11 for Project by
1.9.8