Project
Loading...
Searching...
No Matches
OrbitRawData.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_ORBITRAWDATA_H_
13#define _ZDC_ORBITRAWDATA_H_
14
16#include "ZDCBase/Constants.h"
17#include <Rtypes.h>
18#include <array>
19
23
24namespace o2
25{
26namespace zdc
27{
28
31 std::array<uint16_t, MaxTriggerChannels> scalersFE; // FE scalers per triggering channel for given orbit
32 std::array<int32_t, NChannels> pedestals; // pedestal (* nSamples) per channel for given orbit
33 uint16_t nSamples; // N samples conributing to pedestal
34
35 float getPedestal(int ch) const { return nSamples ? float(pedestals[ch]) / nSamples : 0.f; }
36
37 void print() const;
38
40};
41} // namespace zdc
42} // namespace o2
43
44#endif
struct o2::upgrades_utils::@463 zdc
structure to keep FT0 information
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...
o2::InteractionRecord ir
std::array< int32_t, NChannels > pedestals
float getPedestal(int ch) const
std::array< uint16_t, MaxTriggerChannels > scalersFE
ClassDefNV(OrbitRawData, 1)