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
21
namespace
o2
22
{
23
namespace
tpc
24
{
25
30
struct
ClusterGroupAttribute
{
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
48
struct
ClusterGroupHeader
:
public
ClusterGroupAttribute
{
49
uint16_t
nClusters
;
50
51
ClusterGroupHeader
(
const
ClusterGroupAttribute
& attr, uint16_t
n
) :
ClusterGroupAttribute
(attr),
nClusters
(
n
) {}
52
};
53
54
static_assert
(
sizeof
(ClusterGroupAttribute) == 2,
"inconsistent padding detected"
);
55
static_assert
(
sizeof
(ClusterGroupHeader) == 4,
"inconsistent padding detected"
);
56
57
}
// namespace tpc
58
}
// namespace o2
59
60
#endif
// CLUSTERGROUPATTRIBUTE_H
n
GLdouble n
Definition
glcorearb.h:1982
o2
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...
Definition
BitstreamReader.h:24
o2::tpc::ClusterGroupAttribute
Definition
ClusterGroupAttribute.h:30
o2::tpc::ClusterGroupAttribute::getSubSpecification
uint32_t getSubSpecification() const
Definition
ClusterGroupAttribute.h:40
o2::tpc::ClusterGroupAttribute::set
void set(uint32_t subSpecification)
Definition
ClusterGroupAttribute.h:34
o2::tpc::ClusterGroupAttribute::sector
uint8_t sector
Definition
ClusterGroupAttribute.h:31
o2::tpc::ClusterGroupAttribute::globalPadRow
uint8_t globalPadRow
Definition
ClusterGroupAttribute.h:32
o2::tpc::ClusterGroupHeader
Definition
ClusterGroupAttribute.h:48
o2::tpc::ClusterGroupHeader::ClusterGroupHeader
ClusterGroupHeader(const ClusterGroupAttribute &attr, uint16_t n)
Definition
ClusterGroupAttribute.h:51
o2::tpc::ClusterGroupHeader::nClusters
uint16_t nClusters
Definition
ClusterGroupAttribute.h:49
DataFormats
Detectors
TPC
include
DataFormatsTPC
ClusterGroupAttribute.h
Generated on Tue Feb 25 2025 23:16:11 for Project by
1.9.8