Project
Loading...
Searching...
No Matches
IRFrame.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
15
16#ifndef ALICEO2_IRFRAME_H
17#define ALICEO2_IRFRAME_H
18
21
22namespace o2
23{
24namespace dataformats
25{
26
27// Bracket of 2 IRs.
28// We could just alias it to the bracket specialization, but this would create
29// problems with fwd.declaration
30struct IRFrame : public o2::math_utils::detail::Bracket<o2::InteractionRecord> {
31 static constexpr uint64_t LastIRFrame = uint64_t(0x1) << 63;
32
34
35 uint64_t info = uint64_t(0);
36
37 void setLast(bool v = true)
38 {
39 if (v) {
41 } else {
42 v &= ~LastIRFrame;
43 }
44 }
45
46 bool isLast() const { return (info & LastIRFrame) != 0UL; }
47
49};
50
51} // namespace dataformats
52} // namespace o2
53
54#endif
Declarations of 2D primitives.
const GLdouble * v
Definition glcorearb.h:832
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...
bool isLast() const
Definition IRFrame.h:46
void setLast(bool v=true)
Definition IRFrame.h:37
static constexpr uint64_t LastIRFrame
Definition IRFrame.h:31