Project
Loading...
Searching...
No Matches
CompressedTriggerData.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
12#include <iostream>
14
15std::ostream& o2::emcal::operator<<(std::ostream& stream, const o2::emcal::CompressedTRU& tru)
16{
17 stream << "TRU " << tru.mTRUIndex << ": Fired " << (tru.mFired ? "yes" : "no") << ", time " << (tru.mFired ? std::to_string(static_cast<int>(tru.mTriggerTime)) : "Undefined") << ", number of patches " << tru.mNumberOfPatches;
18 return stream;
19}
20
21std::ostream& o2::emcal::operator<<(std::ostream& stream, const o2::emcal::CompressedTriggerPatch& patch)
22{
23 stream << "Patch " << patch.mPatchIndexInTRU << " in TRU " << patch.mTRUIndex << ": Time " << patch.mTime << ", ADC " << patch.mADC;
24 return stream;
25}
26
27std::ostream& o2::emcal::operator<<(std::ostream& stream, const o2::emcal::CompressedL0TimeSum& timesum)
28{
29 stream << "FastOR " << timesum.mIndex << ": " << timesum.mTimesum << " ADC counts";
30 return stream;
31}
GLuint GLuint stream
Definition glcorearb.h:1806
std::ostream & operator<<(std::ostream &stream, const Cell &cell)
Stream operator for EMCAL cell.
Definition Cell.cxx:355
std::string to_string(gsl::span< T, Size > span)
Definition common.h:52
Compressed L0 timesum information.
uint16_t mIndex
Absolute ID of the FastOR.
uint16_t mTimesum
ADC value of the time-sum (4-integral)
Compressed reconstructed TRU information.
uint8_t mNumberOfPatches
Number of patches found for the TRU.
uint8_t mTriggerTime
Trigger time of the TRU.
bool mFired
Fired status of the TRU.
Compressed reconstructed L0 trigger patch information.
uint8_t mTime
Reconstructed time of the trigger patch.
uint8_t mTRUIndex
Index of the TRU where the trigger patch has been found.
uint16_t mADC
ADC sum of the trigger patch.
uint8_t mPatchIndexInTRU
Index of the trigger patch in the TRU.