ATLAS Offline Software
MenuLoader.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef TrigConf_MenuLoader
6 #define TrigConf_MenuLoader
7 
10 
13 
14 #include <string>
15 
16 namespace TrigConf {
17 
18  class LogicExpression;
19 
21  class MenuLoader : virtual public IMenuLoader, public DBLoader {
22  public:
23 
29  MenuLoader( StorageMgr& sm, coral::ISessionProxy& session ) :
30  IMenuLoader(), DBLoader("MenuLoader", sm, session) {}
31 
33  virtual ~MenuLoader() override = default;
34 
35  virtual bool load( Menu& data) override;
36 
37  virtual void setEnv(ENV env) override { m_env = env; }
38  private:
40 
41  struct ThrInfo {
42  int thrId;
43  unsigned int thrPos;
44  short thrMult;
46  };
47 
55 
57  TriggerItemNode* constructTree(const std::string& def, const std::vector<ThrInfo>&);
58 
59  TriggerItemNode* constructTree(const LogicExpression& def, const std::vector<ThrInfo>&);
60 
61  };
62 }
63 
64 #endif
TrigConf::MenuLoader::load
virtual bool load(Menu &data) override
Definition: MenuLoader.cxx:35
data
char data[hepevt_bytes_allocation_ATLAS]
Definition: HepEvt.cxx:11
TrigConf::MenuLoader::constructTree
TriggerItemNode * constructTree(const std::string &def, const std::vector< ThrInfo > &)
New versions for item definition in string.
Definition: MenuLoader.cxx:227
TrigConf::MenuLoader::ThrInfo
Definition: MenuLoader.h:41
TrigConf::MenuLoader::~MenuLoader
virtual ~MenuLoader() override=default
destructor
TrigConf::MenuLoader::loadCaloInfo
void loadCaloInfo(TrigConf::Menu &menu)
Definition: MenuLoader.cxx:572
TrigConf::MenuLoader::ThrInfo::thrMult
short thrMult
Definition: MenuLoader.h:44
TrigConf::MenuLoader::ThrInfo::thrId
int thrId
Definition: MenuLoader.h:42
TrigConf::MenuLoader::loadItems
void loadItems(TrigConf::Menu &menu)
Definition: MenuLoader.cxx:68
TrigConf::TriggerItemNode
Definition: TriggerItemNode.h:22
TrigConf::MenuLoader
TriggerDB loader of the LVL1 trigger menu configuration.
Definition: MenuLoader.h:21
TrigConf::MenuLoader::ThrInfo::thr
TriggerThreshold * thr
Definition: MenuLoader.h:45
TrigConf::LogicExpression
Definition: LogicExpression.h:27
TrigConf::StorageMgr
Database Storage Manager, controls the database session and the different loader classes for DB acces...
Definition: StorageMgr.h:23
IMenuLoader.h
TrigConf
Forward iterator to traverse the main components of the trigger configuration.
Definition: Config.h:22
TrigConf::MenuLoader::m_env
ENV m_env
Definition: MenuLoader.h:39
menu
make the sidebar many part of the config
Definition: hcg.cxx:551
TrigConf::MenuLoader::loadThresholds
void loadThresholds(TrigConf::Menu &menu)
Definition: MenuLoader.cxx:387
TrigConf::MenuLoader::loadPIT
void loadPIT(TrigConf::Menu &menu)
Definition: MenuLoader.cxx:411
TrigConf::Menu
Definition: Menu.h:49
TrigConf::MenuLoader::loadMenuAttributes
void loadMenuAttributes(TrigConf::Menu &menu)
Definition: MenuLoader.cxx:585
TrigConf::DBLoader
Base class for loaders of configurations from the TriggerDB.
Definition: DBLoader.h:20
DBLoader.h
TrigConf::MenuLoader::MenuLoader
MenuLoader(StorageMgr &sm, coral::ISessionProxy &session)
constructor
Definition: MenuLoader.h:29
TriggerThreshold.h
TrigConf::MenuLoader::loadMonitoring
void loadMonitoring(TrigConf::Menu &menu)
Definition: MenuLoader.cxx:294
TrigConf::IMenuLoader
Definition: IMenuLoader.h:14
TrigConf::MenuLoader::createTipFromDirectThresholds
void createTipFromDirectThresholds(TrigConf::Menu &menu)
Definition: MenuLoader.cxx:528
TrigConf::MenuLoader::ThrInfo::thrPos
unsigned int thrPos
Definition: MenuLoader.h:43
TrigConf::IMenuLoader::CTP
@ CTP
Definition: IMenuLoader.h:16
TrigConf::MenuLoader::setEnv
virtual void setEnv(ENV env) override
Definition: MenuLoader.h:37
python.DataFormatRates.env
env
Definition: DataFormatRates.py:32
TrigConf::TriggerThreshold
Definition: TriggerThreshold.h:20
TrigConf::IMenuLoader::ENV
ENV
Definition: IMenuLoader.h:16
TriggerItemNode.h