Project
Loading...
Searching...
No Matches
DecoderError.h
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
17
#ifndef O2_MCH_BASE_DECODERERROR_H_
18
#define O2_MCH_BASE_DECODERERROR_H_
19
20
#include "Rtypes.h"
21
22
namespace
o2
23
{
24
namespace
mch
25
{
26
27
// \class DecoderError
29
class
DecoderError
30
{
31
public
:
32
DecoderError
() =
default
;
33
34
DecoderError
(
int
solarid,
int
dsid,
int
chip, uint32_t error) : mSolarID(solarid), mChipID(dsid * 2 + (chip % 2)), mError(error) {}
35
~DecoderError
() =
default
;
36
37
uint16_t
getSolarID
()
const
{
return
mSolarID; }
38
uint8_t
getDsID
()
const
{
return
mChipID / 2; }
39
uint8_t
getChip
()
const
{
return
mChipID % 2; }
40
41
uint32_t
getError
()
const
{
return
mError; }
42
43
private
:
44
uint16_t mSolarID;
45
uint8_t mChipID;
46
uint32_t mError;
47
48
ClassDefNV(
DecoderError
, 1);
49
};
//class DecoderError
50
51
}
//namespace mch
52
}
//namespace o2
53
#endif
// O2_MCH_BASE_DECODERERROR_H_
o2::mch::DecoderError
MCH decoder error implementation.
Definition
DecoderError.h:30
o2::mch::DecoderError::DecoderError
DecoderError()=default
o2::mch::DecoderError::getChip
uint8_t getChip() const
Definition
DecoderError.h:39
o2::mch::DecoderError::DecoderError
DecoderError(int solarid, int dsid, int chip, uint32_t error)
Definition
DecoderError.h:34
o2::mch::DecoderError::getSolarID
uint16_t getSolarID() const
Definition
DecoderError.h:37
o2::mch::DecoderError::getError
uint32_t getError() const
Definition
DecoderError.h:41
o2::mch::DecoderError::getDsID
uint8_t getDsID() const
Definition
DecoderError.h:38
o2::mch::DecoderError::~DecoderError
~DecoderError()=default
o2
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...
Definition
BitstreamReader.h:24
Detectors
MUON
MCH
Base
include
MCHBase
DecoderError.h
Generated on Tue Feb 25 2025 23:16:21 for Project by
1.9.8