ATLAS Offline Software
LVL1ConfigSvc.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 TrigConfigSvc_LVL1ConfigSvc
6 #define TrigConfigSvc_LVL1ConfigSvc
7 
8 #include <string>
9 
11 
12 namespace TrigConf {
13 
17  class LVL1ConfigSvc : public AthService {
18  public:
19  LVL1ConfigSvc(const std::string& name, ISvcLocator* pSvcLocator);
20 
21  virtual StatusCode initialize() override;
22 
23  private:
24  // loads Run-3-style menu (json) and writes it to the detector
25  // store to be read by clients of the L1 configuration from there
27 
28  Gaudi::Property<std::string> m_inputType{this, "InputType", "FILE",
29  "FILE (json file), DB (Trigger DB)"};
30 
31  Gaudi::Property<std::string> m_l1FileName{this, "L1JsonFileName", "",
32  "file name of L1 json file, needed if InputType is FILE"};
33 
34  Gaudi::Property<std::string> m_hltFileName{this, "HLTJsonFileName", "",
35  "file name of HLT json file, needed if InputType is FILE and a hashed SMK needs to be computed"};
36 
37  Gaudi::Property<std::string> m_dbConnection{this, "TriggerDB", "TRIGGERDB",
38  "DB connection alias, needed if InputType is DB"};
39 
40  Gaudi::Property<unsigned int> m_smk{this, "SMK", 0,
41  "DB smk, needed if InputType is DB"};
42 
43  };
44 
45 } // namespace TrigConf
46 
47 #endif
TrigConf::LVL1ConfigSvc::m_inputType
Gaudi::Property< std::string > m_inputType
Definition: LVL1ConfigSvc.h:28
TrigConf::LVL1ConfigSvc::m_dbConnection
Gaudi::Property< std::string > m_dbConnection
Definition: LVL1ConfigSvc.h:37
TrigConf::LVL1ConfigSvc
Service storing the LVL1 menu in the DetectorStore.
Definition: LVL1ConfigSvc.h:17
TrigConf::LVL1ConfigSvc::initialize
virtual StatusCode initialize() override
Definition: LVL1ConfigSvc.cxx:70
TrigConf::LVL1ConfigSvc::m_smk
Gaudi::Property< unsigned int > m_smk
Definition: LVL1ConfigSvc.h:40
TrigConf
Forward iterator to traverse the main components of the trigger configuration.
Definition: Config.h:22
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
AthService
Definition: AthService.h:32
TrigConf::LVL1ConfigSvc::loadRun3StyleMenu
StatusCode loadRun3StyleMenu()
Definition: LVL1ConfigSvc.cxx:22
TrigConf::name
Definition: HLTChainList.h:35
TrigConf::LVL1ConfigSvc::LVL1ConfigSvc
LVL1ConfigSvc(const std::string &name, ISvcLocator *pSvcLocator)
Definition: LVL1ConfigSvc.cxx:18
TrigConf::LVL1ConfigSvc::m_hltFileName
Gaudi::Property< std::string > m_hltFileName
Definition: LVL1ConfigSvc.h:34
TrigConf::LVL1ConfigSvc::m_l1FileName
Gaudi::Property< std::string > m_l1FileName
Definition: LVL1ConfigSvc.h:31
AthService.h