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
19
#include "
MathUtils/Primitive2D.h
"
20
#include "
CommonDataFormat/InteractionRecord.h
"
21
22
namespace
o2
23
{
24
namespace
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
30
struct
IRFrame
:
public
o2::math_utils::detail::Bracket
<o2::InteractionRecord> {
31
static
constexpr
uint64_t
LastIRFrame
= uint64_t(0x1) << 63;
32
33
using
o2::math_utils::detail::Bracket
<
o2::InteractionRecord
>
::Bracket
;
34
35
uint64_t
info
= uint64_t(0);
36
37
void
setLast
(
bool
v
=
true
)
38
{
39
if
(
v
) {
40
info
|=
LastIRFrame
;
41
}
else
{
42
v
&= ~LastIRFrame;
43
}
44
}
45
46
bool
isLast
()
const
{
return
(
info
&
LastIRFrame
) != 0UL; }
47
48
ClassDefNV
(
IRFrame
, 2);
49
};
50
51
}
// namespace dataformats
52
}
// namespace o2
53
54
#endif
InteractionRecord.h
Primitive2D.h
Declarations of 2D primitives.
o2::math_utils::detail::Bracket
Definition
Bracket.h:34
o2::math_utils::detail::Bracket< o2::InteractionRecord >::Bracket
Bracket()=default
v
const GLdouble * v
Definition
glcorearb.h:832
o2
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...
Definition
BitstreamReader.h:24
o2::InteractionRecord
Definition
InteractionRecord.h:27
o2::dataformats::IRFrame
Definition
IRFrame.h:30
o2::dataformats::IRFrame::ClassDefNV
ClassDefNV(IRFrame, 2)
o2::dataformats::IRFrame::isLast
bool isLast() const
Definition
IRFrame.h:46
o2::dataformats::IRFrame::info
uint64_t info
Definition
IRFrame.h:35
o2::dataformats::IRFrame::setLast
void setLast(bool v=true)
Definition
IRFrame.h:37
o2::dataformats::IRFrame::LastIRFrame
static constexpr uint64_t LastIRFrame
Definition
IRFrame.h:31
DataFormats
common
include
CommonDataFormat
IRFrame.h
Generated on Tue Feb 25 2025 17:02:51 for Project by
1.9.8