Project
Loading...
Searching...
No Matches
TimingInfo.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 O2_FRAMEWORK_TIMINGINFO_H_
13#define O2_FRAMEWORK_TIMINGINFO_H_
14
16#include <cstddef>
17#include <cstdint>
18
21namespace o2::framework
22{
23
24struct TimingInfo {
26 size_t timeslice = 0;
31 uint32_t firstTForbit = -1;
32 uint32_t tfCounter = -1; // the counter associated to a TF
33 uint32_t runNumber = -1;
34 uint64_t creation = -1UL;
35 uint64_t lapse = 0; // time at the start of the processing. Per thread.
44 bool keepAtEndOfStream = false;
45
46 static bool timesliceIsTimer(size_t timeslice) { return timeslice > 1652945069870351; }
47 [[nodiscard]] bool isTimer() const { return timesliceIsTimer(timeslice); };
48};
49
50} // namespace o2::framework
51
52#endif // O2_FRAMEWORK_TIMINGINFO_H_
Defining PrimaryVertex explicitly as messageable.
Definition TFIDInfo.h:20
ServiceKind
The kind of service we are asking for.
static constexpr ServiceKind service_kind
Definition TimingInfo.h:25
bool keepAtEndOfStream
Wether this kind of data should be flushed during end of stream.
Definition TimingInfo.h:44
static bool timesliceIsTimer(size_t timeslice)
Definition TimingInfo.h:46
uint32_t tfCounter
the orbit the TF begins
Definition TimingInfo.h:32