Project
Loading...
Searching...
No Matches
Utils.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
16#ifndef O2_MID_UTILS_H
17#define O2_MID_UTILS_H
18
19#include "Headers/RDHAny.h"
21
22namespace o2
23{
24namespace mid
25{
26namespace raw
27{
28static constexpr uint8_t sUserLogicLinkID = 15; // Link ID for the user logic
29
31inline bool isBare(const o2::header::RDHAny& rdh) { return (o2::raw::RDHUtils::getLinkID(rdh) != sUserLogicLinkID); }
32
33} // namespace raw
34} // namespace mid
35} // namespace o2
36
37#endif /* O2_MID_UTILS_H */
uint8_t itsSharedClusterMap uint8_t
bool isBare(const o2::header::RDHAny &rdh)
Test if the data comes from the common logic.
Definition Utils.h:31
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...