ATLAS Offline Software
Loading...
Searching...
No Matches
StatusFlags.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
3*/
5#include <stdexcept>
6
7namespace HLT { namespace MET { namespace StatusFlag {
8 std::string flagIndexToString(int idx) {
9 switch(idx) {
10 case 0:
11 case 4:
12 case 13:
13 case 14:
14 case 16:
15 case 17:
16 case 18:
17 case 19:
18 case 20:
19 case 21:
20 case 22:
21 case 23:
22 case 24:
23 case 25:
24 case 26:
25 return "UNUSED";
26 case 1:
27 return "BSConvError";
28 case 2:
29 return "MuonError";
30 case 3:
31 return "FEBError";
32 case 5:
33 return "ComponentBigMEtSEtRatio";
34 case 6:
35 return "BadComponentEnergy";
36 case 7:
37 return "BadEnergyRatio";
38 case 8:
39 return "NoisyEnergyRatio";
40 case 9:
41 return "BadCellQuality";
42 case 10:
43 return "BadCellEnergy";
44 case 11:
45 return "BadCellTime";
46 case 12:
47 return "NoMuonTrack";
48 case 15:
49 return "ComponentErrors";
50 case 27:
51 return "GlobalNoisyEnergyRatio";
52 case 28:
53 return "BadEMFraction";
54 case 29:
55 return "GlobalNoisyEnerygRatio";
56 case 30:
57 return "ObjectInCrack";
58 case 31:
59 return "GlobalErrors";
60 default:
61 throw std::out_of_range("Invalid index provided " + std::to_string(idx) );
62 // Make gcc happy
63 return "";
64 }
65 }
66} } } //> end namespace HLT::MET::StatusFlag
std::string flagIndexToString(int idx)
It used to be useful piece of code for replacing actual SG with other store of similar functionality ...
Definition MET.py:1