Project
Loading...
Searching...
No Matches
CompCluster.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
14
16#include <cassert>
17#include <iostream>
18
19using namespace o2::itsmft;
20
21std::ostream& operator<<(std::ostream& stream, const CompCluster& cl)
22{
23 stream << " row: " << cl.getRow() << " col: " << cl.getCol()
24 << " pattID " << cl.getPatternID() << " [flag: " << cl.getFlag() << "] ";
25 return stream;
26}
27
28std::ostream& operator<<(std::ostream& stream, const CompClusterExt& cl)
29{
30 stream << " chip: " << cl.getChipID() << ((const CompCluster&)cl);
31 return stream;
32}
33
34//______________________________________________________________________________
36{
37 // print itself
38 std::cout << *this << "\n";
39}
40
41//______________________________________________________________________________
43{
44 // print itself
45 std::cout << *this << "\n";
46}
47
48//______________________________________________________________________________
49void CompCluster::sanityCheck()
50{
51 // check self-consistency
52 static_assert(NBitsRow + NBitsCol + NBitsPattID + 1 < 8 * sizeof(mData), "mData is too short to fit all fields");
53}
Definition of the ITSMFT compact cluster.
UShort_t getChipID() const
static constexpr int NBitsRow
Definition CompCluster.h:31
UShort_t getRow() const
Definition CompCluster.h:57
UShort_t getPatternID() const
Definition CompCluster.h:59
UShort_t getCol() const
Definition CompCluster.h:58
static constexpr int NBitsPattID
Definition CompCluster.h:33
static constexpr int NBitsCol
Definition CompCluster.h:32
GLuint GLuint stream
Definition glcorearb.h:1806
std::ostream & operator<<(std::ostream &os, const ClusterPattern &pattern)