ATLAS Offline Software
Loading...
Searching...
No Matches
Error.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef L1TOPORDO_ERROR_H
6#define L1TOPORDO_ERROR_H
7
8#include <iostream>
9#include <sstream>
10#include <map>
11#include <vector>
12
13namespace L1Topo {
14
18 static const std::map<Error, std::string> errorText = {
19 {Error::ROB_ERROR,"ROB Error"},
20 {Error::ROD_ERROR,"ROD Error"},
21 {Error::SLINK_STATUS_ERROR,"S-Link Status Error"}
22 };
23
25 std::ostream& operator<<(std::ostream&, const Error);
26
28 std::ostream& operator<<(std::ostream&, const std::vector<Error>&);
29
30} // namespace L1Topo
31
32
33#endif // L1TOPORDO_ERROR_H
static const std::map< Error, std::string > errorText
Define the text to print for each error type above - bad design to put it in the header file?
Definition Error.h:18
std::ostream & operator<<(std::ostream &, const Error)
Helper to print errors as text rather than numbers.
Definition Error.cxx:8
Error
The different types of error that can be flagged in the L1TopoRDO.
Definition Error.h:16
@ SLINK_STATUS_ERROR
Definition Error.h:16