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
45 DataSamplingHeader(uint64_t _sampleTimeUs, uint32_t _totalAcceptedMessages, uint32_t _totalEvaluatedMessages, DeviceIDType _deviceID);
48
49 static const DataSamplingHeader* Get(const BaseHeader* baseHeader);
50};
51
52} // namespace o2::utilities
53
54#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
static const o2::header::HeaderType sHeaderType
DataSamplingHeader(const DataSamplingHeader &)=default
DataSamplingHeader & operator=(const DataSamplingHeader &)=default
static const o2::header::SerializationMethod sSerializationMethod
static const DataSamplingHeader * Get(const BaseHeader *baseHeader)
static constexpr uint32_t deviceIDTypeSize