Project
Loading...
Searching...
No Matches
PreCluster.cxx
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#include "MCHBase/PreCluster.h"
18
19namespace o2
20{
21namespace mch
22{
23
24using namespace std;
25
26//_________________________________________________________________
27void PreCluster::print(std::ostream& stream, gsl::span<const Digit> digits) const
28{
30
31 if (lastDigit() >= digits.size()) {
32 stream << "the vector of digits is too small to contain the digits of this precluster" << endl;
33 }
34
35 int i(0);
36 stream << " nDigits = " << nDigits << endl;
37 for (const auto& digit : digits.subspan(firstDigit, nDigits)) {
38 stream << " digit[" << i++ << "] = " << digit.getDetID() << "," << digit.getPadID() << "," << digit.getADC() << endl;
39 }
40}
41
42} // namespace mch
43} // namespace o2
int32_t i
Definition of the MCH precluster minimal structure.
GLuint GLuint stream
Definition glcorearb.h:1806
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...
Defining DataPointCompositeObject explicitly as copiable.
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
void print(std::ostream &stream, gsl::span< const Digit > digits) const
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