Project
Loading...
Searching...
No Matches
ReconstructionErrors.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 <cassert>
13
14namespace o2
15{
16namespace emcal
17{
18
19namespace reconstructionerrors
20{
21
23{
24 assert(errorcode < getNumberOfGeometryErrorCodes());
25 switch (errorcode) {
26 case 0:
28 case 1:
30 default:
32 }
33}
34
36{
37 switch (errortype) {
39 return "CellRangeExceed";
41 return "CellIndexNegative";
42 default:
43 return "UnknownError";
44 }
45}
46
47const char* getGeometryErrorName(unsigned int errorcode)
48{
50}
51
53{
54 switch (errortype) {
56 return "Cell ID outside range";
58 return "Cell ID corrupted";
59 default:
60 return "UnknownError";
61 };
62}
63
64const char* getGeometryErrorTitle(unsigned int errorcode)
65{
67}
68
70{
71 switch (errortype) {
73 return "Cell index exceeding valid rage";
75 return "Cell index corrupted (i.e. negative)";
76 default:
77 return "UnknownError";
78 };
79}
80
81const char* getGeometryErrorDescription(unsigned int errorcode)
82{
84}
85
87{
88 assert(errorcode < getNumberOfGainErrorCodes());
89 switch (errorcode) {
90 case 0:
92 case 1:
94 default:
96 };
97}
98
99const char* getGainErrorName(GainError_t errortype)
100{
101 switch (errortype) {
103 return "HGnoLG";
105 return "LGnoHG";
106 default:
107 return "UnknownError";
108 };
109}
110
111const char* getGainErrorName(unsigned int errorcode)
112{
114}
115
116const char* getGainErrorTitle(GainError_t errortype)
117{
118 switch (errortype) {
120 return "High Gain missing";
122 return "Low Gain missing";
123 default:
124 return "UnknownError";
125 };
126}
127
128const char* getGainErrorTitle(unsigned int errorcode)
129{
131}
132
134{
135 switch (errortype) {
137 return "HG missing for LG below HGLG transition";
139 return "LG not found for saturated HG";
140 default:
141 return "UnknownError";
142 };
143}
144
145const char* getGainErrorDescription(unsigned int errorcode)
146{
148}
149
151{
152 switch (errorcode) {
153 case 0:
155 case 1:
157 case 2:
159 case 3:
161 default:
163 }
164}
165
167{
168 switch (errortype) {
170 return "TRUIndexInvalid";
172 return "PatchIndexInvalid";
174 return "FastORIndexInvalid";
176 return "FastORStartTimeInvalid";
177 default:
178 return "UnknownError";
179 }
180}
181
182const char* getTRUDecodingErrorName(unsigned int errorcode)
183{
185}
186
188{
189 switch (errortype) {
191 return "TRU index invalid";
193 return "Patch index invalid";
195 return "FastOR index invalid";
197 return "FastOR starttime invalid";
198 default:
199 return "Unknown error";
200 }
201}
202
203const char* getTRUDecodingErrorTitle(unsigned int errortype)
204{
206}
207
209{
210 switch (errortype) {
212 return "TRU index is invalid";
214 return "Patch index is invalid";
216 return "FastOR index is invalid";
218 return "FastOR starttime is invalid";
219 default:
220 return "Unknown error";
221 }
222}
223
224const char* getTRUDecodingErrorErrorDescription(unsigned int errorcode)
225{
227}
228
229} // namespace reconstructionerrors
230
231} // namespace emcal
232
233} // namespace o2
Errors appearing in geometry access obtaining the tower ID.
const char * getGainErrorDescription(GainError_t errortype)
Get detailed description of a given gain error type.
@ LGNOHG
LG found below HG/LG transition, HG missing.
@ CELL_RANGE_EXCEED
Requested cell value exceeding allowed cell range.
@ CELL_INDEX_NEGATIVE
Requested cell value negative.
const char * getGeometryErrorName(GeometryError_t errortype)
Get name of a given geometry error type.
const char * getGeometryErrorDescription(GeometryError_t errortype)
Get detailed description of a given geometry error type.
GainError_t getGainErrorFromErrorCode(unsigned int errorcode)
Convert error code to gain error type.
const char * getTRUDecodingErrorTitle(TRUDecodingError_t errortype)
Get title of a given TRU decoding error type.
const char * getTRUDecodingErrorErrorDescription(TRUDecodingError_t errortype)
Get detailed description of a given TRU decoding error type.
constexpr int getNumberOfGainErrorCodes()
Get the number of gain error codes.
const char * getGainErrorName(GainError_t errortype)
Get name of a given gain error type.
TRUDecodingError_t getTRUDecodingErrorFromErrorCode(unsigned int errorcode)
Convert error code to TRU decoding error type.
const char * getGainErrorTitle(GainError_t errortype)
Get title of a given gain error type.
GeometryError_t getGeometryErrorFromErrorCode(unsigned int errorcode)
Convert error code to geometry error type.
constexpr int getNumberOfGeometryErrorCodes()
Get the number of geometry error codes.
const char * getTRUDecodingErrorName(TRUDecodingError_t errortype)
Get name of a given TRU decoding error type.
@ FASTOR_STARTTIME_INVALID
FastOr stattime is larger than 14.
const char * getGeometryErrorTitle(GeometryError_t errortype)
Get title of a given geometry error type.
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...