Project
Loading...
Searching...
No Matches
ChannelData.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_CHANNEL_DATA_H_
13#define _ZDC_CHANNEL_DATA_H_
14
15#include "ZDCBase/Constants.h"
16#include <array>
17#include <Rtypes.h>
18
22
23namespace o2
24{
25namespace zdc
26{
27
29
30 int8_t id = IdDummy; // channel ID
31 std::array<int16_t, NTimeBinsPerBC> data = {0};
32
33 ChannelData() = default;
34 ChannelData(int8_t ida, const std::array<float, NTimeBinsPerBC>& src)
35 {
36 id = ida;
37 for (int i = NTimeBinsPerBC; i--;) {
38 data[i] = int16_t(src[i]);
39 }
40 }
41 ChannelData(const ChannelData&) = default;
42
43 void print() const;
44
46};
47} // namespace zdc
48} // namespace o2
49
50#endif
int32_t i
GLenum src
Definition glcorearb.h:1767
GLboolean * data
Definition glcorearb.h:298
struct o2::upgrades_utils::@463 zdc
structure to keep FT0 information
constexpr int NTimeBinsPerBC
Definition Constants.h:53
constexpr int IdDummy
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...
ChannelData(const ChannelData &)=default
ChannelData(int8_t ida, const std::array< float, NTimeBinsPerBC > &src)
Definition ChannelData.h:34
ClassDefNV(ChannelData, 1)