Project
Loading...
Searching...
No Matches
Tracklet64.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#include "fairlogger/Logger.h"
15#include <iostream>
16
17namespace o2
18{
19namespace trd
20{
21
22void Tracklet64::print() const
23{
24 LOGF(info, "%02i_%i_%i, ROB(%i), MCM(%i), row(%i), col(%i), position(%i), slope(%i), pid(%i), q0(%i), q1(%i), q2(%i). Format(%i)",
25 HelperMethods::getSector(getDetector()), HelperMethods::getStack(getDetector()), HelperMethods::getLayer(getDetector()), getROB(), getMCM(), getPadRow(), getPadCol(), getPosition(), getSlope(), getPID(), getQ0(), getQ1(), getQ2(), getFormat());
26}
27
28#ifndef GPUCA_GPUCODE_DEVICE
29void Tracklet64::printStream(std::ostream& stream) const
30{
31 stream << "Tracklet64 : 0x" << std::hex << getTrackletWord();
32 stream << "\t hcid : " << getHCID() << " row:" << getPadRow() << " col:" << getColumn()
33 << " Position:" << getPosition() << " slope:" << getSlope()
34 << " PID:0x" << getPID()
35 << " Q0:" << getQ0() << " Q1:" << getQ1() << " Q2:" << getQ2();
36}
37
38std::ostream& operator<<(std::ostream& stream, const Tracklet64& trg)
39{
41 return stream;
42}
43
44bool operator<(const Tracklet64& lhs, const Tracklet64& rhs)
45{
46 return (lhs.getDetector() < rhs.getDetector()) ||
47 (lhs.getDetector() == rhs.getDetector() && lhs.getROB() < rhs.getROB()) ||
48 (lhs.getDetector() == rhs.getDetector() && lhs.getROB() == rhs.getROB() && lhs.getMCM() < rhs.getMCM()) ||
49 (lhs.getDetector() == rhs.getDetector() && lhs.getROB() == rhs.getROB() && lhs.getMCM() == rhs.getMCM() && lhs.getPadRow() < rhs.getPadRow()) ||
50 (lhs.getDetector() == rhs.getDetector() && lhs.getROB() == rhs.getROB() && lhs.getMCM() == rhs.getMCM() && lhs.getPadRow() == rhs.getPadRow() && lhs.getPadCol() < rhs.getPadCol());
51}
52
53#endif // GPUCA_GPUCODE_DEVICE
54
55} // namespace trd
56} // namespace o2
o2::mid::ColumnData & getColumn(std::vector< o2::mid::ColumnData > &patterns, uint8_t icolumn, uint8_t deId)
void printStream(std::ostream &stream) const
GLuint GLuint stream
Definition glcorearb.h:1806
bool operator<(const Tracklet64 &lhs, const Tracklet64 &rhs)
std::ostream & operator<<(std::ostream &stream, const Digit &d)
Definition Digit.cxx:78
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...
static int getStack(int det)
static int getLayer(int det)
static int getSector(int det)