Project
Loading...
Searching...
No Matches
DataSamplingHeader.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 ALICEO2_DATASAMPLINGHEADER_H
13#define ALICEO2_DATASAMPLINGHEADER_H
14
19
21
22#include "Headers/DataHeader.h"
23
24namespace o2::utilities
25{
26
28
29 // static data for this header type/version
30 static const uint32_t sVersion;
33
34 static constexpr uint32_t deviceIDTypeSize = 16;
35
37
38 // Data Sampling header fields
39 uint64_t sampleTimeUs = 0;
43
50
52 DataSamplingHeader(uint64_t _sampleTimeUs, uint32_t _totalAcceptedMessages, uint32_t _totalEvaluatedMessages, DeviceIDType _deviceID, header::DataHeader const& original);
55
56 static const DataSamplingHeader* Get(const BaseHeader* baseHeader);
57};
58
59} // namespace o2::utilities
60
61#endif // ALICEO2_DATASAMPLINGHEADER_H
A header which contains some meta-data generated by Data Sampling.
the base header struct Every header type must begin (i.e. derive) with this. Don't use this struct di...
Definition DataHeader.h:351
the main header struct
Definition DataHeader.h:618
uint32_t SubSpecificationType
Definition DataHeader.h:620
static const o2::header::HeaderType sHeaderType
DataSamplingHeader(const DataSamplingHeader &)=default
DataSamplingHeader & operator=(const DataSamplingHeader &)=default
static const o2::header::SerializationMethod sSerializationMethod
header::DataHeader::SubSpecificationType subSpecification
Presampled subSpecification for the data.
header::DataDescription dataDescription
Presampled description for the data. Copied from the original DataHeader.
header::DataOrigin dataOrigin
Presampled origin for the data. Copied from the original DataHeader.
static const DataSamplingHeader * Get(const BaseHeader *baseHeader)
static constexpr uint32_t deviceIDTypeSize