ATLAS Offline Software
HLTLevel.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 TrigConf_HLTLevel
6 #define TrigConf_HLTLevel
7 
8 #include <string>
9 
10 namespace TrigConf {
11 
12  enum HLTLevel { L2=0, EF, HLT };
13 
14  inline HLTLevel str2lvl(const std::string& level) {
15  return (level=="L2" || level=="l2") ? L2 :
16  ((level=="EF" || level=="ef") ? EF : HLT);
17  }
18 
19  inline std::string lvl2str(HLTLevel level) {
20  return level==L2 ? "L2" :
21  (level==EF ? "EF" : "HLT");
22  }
23 
24 }
25 
26 #endif
TrigConf::L2
@ L2
Definition: HLTLevel.h:12
TrigConf::str2lvl
HLTLevel str2lvl(const std::string &level)
Definition: HLTLevel.h:14
python.iconfTool.models.loaders.level
level
Definition: loaders.py:20
TrigConf
Forward iterator to traverse the main components of the trigger configuration.
Definition: Config.h:22
TrigConf::EF
@ EF
Definition: HLTLevel.h:12
HLT
It used to be useful piece of code for replacing actual SG with other store of similar functionality ...
Definition: HLTResultReader.h:26
TrigConf::HLTLevel
HLTLevel
Definition: HLTLevel.h:12
TrigConf::lvl2str
std::string lvl2str(HLTLevel level)
Definition: HLTLevel.h:19