Project
Loading...
Searching...
No Matches
PreCluster.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
17#ifndef O2_MCH_PRECLUSTER_H_
18#define O2_MCH_PRECLUSTER_H_
19
20#include <iostream>
21#include <Rtypes.h>
22
23#include <gsl/span>
24
26
27namespace o2
28{
29namespace mch
30{
31
33struct PreCluster {
34 uint32_t firstDigit;
35 uint32_t nDigits;
36
38 uint32_t lastDigit() const { return firstDigit + nDigits - 1; }
39
40 void print(std::ostream& stream, gsl::span<const Digit> digits) const;
41
42 ClassDefNV(PreCluster, 1)
43};
44
45} // namespace mch
46} // namespace o2
47
48#endif // O2_MCH_PRECLUSTER_H_
void print() const
GLuint GLuint stream
Definition glcorearb.h:1806
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...
precluster minimal structure
Definition PreCluster.h:33
uint32_t firstDigit
index of first associated digit in the ordered vector of digits
Definition PreCluster.h:34
uint32_t nDigits
number of digits attached to this precluster
Definition PreCluster.h:35
uint32_t lastDigit() const
return the index of last associated digit in the ordered vector of digits
Definition PreCluster.h:38
std::vector< Digit > digits