Project
Loading...
Searching...
No Matches
PadWord.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#include <bitset>
12#include <iomanip>
13#include <iostream>
15
16std::ostream& o2::focal::operator<<(std::ostream& stream, const ASICChannel& channel)
17{
18 stream << "(ADC) " << channel.getADC() << ", (TOA) " << channel.getTOA() << ", (TOT) " << channel.getTOT();
19 return stream;
20}
21
22std::ostream& o2::focal::operator<<(std::ostream& stream, const ASICHeader& header)
23{
24 stream << "(HEADER) 0x" << std::hex << header.getHeader() << std::dec << "(BCID) " << header.getBCID() << ", WADD " << header.getWadd() << ", (FOURBIT) " << std::bitset<4>(header.getFourbit()) << ", (TRAILER) 0x" << std::hex << header.getTrailer() << std::dec;
25 return stream;
26}
27
28std::ostream& o2::focal::operator<<(std::ostream& stream, const TriggerWord& trigger)
29{
30 stream << "(HEADER0) 0x" << std::hex << trigger.mHeader0 << ", (HEADER1) 0x" << trigger.mHeader1 << std::dec << ": " << trigger.mTrigger0 << ", " << trigger.mTrigger1 << ", " << trigger.mTrigger2 << ", " << trigger.mTrigger3 << ", " << trigger.mTrigger4 << ", " << trigger.mTrigger5 << ", " << trigger.mTrigger6 << ", " << trigger.mTrigger7;
31 return stream;
32}
GLuint GLuint stream
Definition glcorearb.h:1806
std::ostream & operator<<(std::ostream &in, const IndexExceptionEvent &error)
uint32_t getADC() const
Definition PadWord.h:97
uint32_t getTOT() const
Definition PadWord.h:99
uint32_t getTOA() const
Definition PadWord.h:98
uint32_t getFourbit() const
Definition PadWord.h:78
uint32_t getTrailer() const
Definition PadWord.h:75
uint32_t getWadd() const
Definition PadWord.h:76
uint32_t getBCID() const
Definition PadWord.h:77
uint32_t getHeader() const
Definition PadWord.h:79