Project
Loading...
Searching...
No Matches
ClusterGroupAttribute.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 CLUSTERGROUPATTRIBUTE_H
13#define CLUSTERGROUPATTRIBUTE_H
14
18
19#include <cstdint>
20
21namespace o2
22{
23namespace tpc
24{
25
31 uint8_t sector;
32 uint8_t globalPadRow;
33
34 void set(uint32_t subSpecification)
35 {
36 sector = (subSpecification >> 16) & 0xff;
37 globalPadRow = subSpecification & 0xff;
38 }
39
40 uint32_t getSubSpecification() const { return sector << 16 | globalPadRow; }
41};
42
53
54static_assert(sizeof(ClusterGroupAttribute) == 2, "inconsistent padding detected");
55static_assert(sizeof(ClusterGroupHeader) == 4, "inconsistent padding detected");
56
57} // namespace tpc
58} // namespace o2
59
60#endif // CLUSTERGROUPATTRIBUTE_H
GLdouble n
Definition glcorearb.h:1982
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...
void set(uint32_t subSpecification)
ClusterGroupHeader(const ClusterGroupAttribute &attr, uint16_t n)