Project
Loading...
Searching...
No Matches
RawDataMetric.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
13#include <Framework/Logger.h>
14using namespace o2::fit;
15const std::map<unsigned int, std::string> RawDataMetric::sMapBitsToNames = {
16 {RawDataMetric::EStatusBits::kIncompletePayload, "IncompletePayload"},
17 {RawDataMetric::EStatusBits::kWrongDescriptor, "WrongDescriptor"},
18 {RawDataMetric::EStatusBits::kWrongChannelMapping, "WrongChannelMapping"},
19 {RawDataMetric::EStatusBits::kEmptyDataBlock, "EmptyDataBlock"},
20 {RawDataMetric::EStatusBits::kDecodedDataBlock, "DecodedDataBlock"}};
22{
23 LOG(info) << "==============================================================";
24 LOG(info) << "Raw data metric: linkID " << static_cast<int>(mLinkID) << " mEPID " << static_cast<int>(mEPID) << " FEEID " << static_cast<int>(mFEEID);
25 LOG(info) << "Is registered FEE: " << mIsRegisteredFEE;
26 for (const auto& entry : sMapBitsToNames) {
27 LOG(info) << entry.second << ": " << mBitStats[entry.first];
28 }
29 LOG(info) << "==============================================================";
30}
32{
33 Status_t metricStatus{};
34 for (const auto& entry : sMapBitsToNames) {
35 metricStatus |= (1 << entry.first);
36 }
37 return metricStatus;
38}
GLuint entry
Definition glcorearb.h:5735
static const std::map< unsigned int, std::string > sMapBitsToNames
std::array< std::size_t, sNbits > mBitStats
static Status_t getAllBitsActivated()
LOG(info)<< "Compressed in "<< sw.CpuTime()<< " s"