ATLAS Offline Software
HLTConfigSvc.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_HLTConfigSvc
6 #define TrigConfigSvc_HLTConfigSvc
7 
8 #include <string>
9 
11 
12 namespace TrigConf {
13 
17  class HLTConfigSvc : public AthService {
18  public:
19  HLTConfigSvc(const std::string& name, ISvcLocator* pSvcLocator);
20 
21  virtual StatusCode initialize() override;
22 
23  private:
25 
26  Gaudi::Property<std::string> m_inputType{this, "InputType", "FILE",
27  "FILE (json file), DB (Trigger DB)"};
28 
29  Gaudi::Property<std::string> m_hltFileName{this, "HLTJsonFileName", "HLTMenu.json",
30  "file name of HLT json file, needed if InputType is FILE"};
31 
32  Gaudi::Property<std::string> m_l1FileName{this, "L1JsonFileName", "",
33  "file name of L1 json file, needed if InputType is FILE, and a hashed SMK needs to be computed"};
34 
35  Gaudi::Property<std::string> m_monitoringFileName{this, "MonitoringJsonFileName", "",
36  "file name of HLT monitoring json file, optional if InputType is FILE"};
37 
38  Gaudi::Property<std::string> m_dbConnection{this, "TriggerDB", "TRIGGERDB",
39  "DB connection alias, needed if InputType is DB"};
40 
41  Gaudi::Property<bool> m_monitoringOptional{this, "MonitoringJSONOptional", true,
42  "Flag to control if a JSON is required when MonitoringJsonFileName is supplied and InputType is FILE"};
43 
44  Gaudi::Property<unsigned int> m_smk{this, "SMK", 0,
45  "DB smk, needed if InputType is DB (optional for file InputType)"};
46  };
47 
48 } // namespace TrigConf
49 
50 #endif
TrigConf::HLTConfigSvc::m_dbConnection
Gaudi::Property< std::string > m_dbConnection
Definition: HLTConfigSvc.h:38
TrigConf::HLTConfigSvc::writeConfigToDetectorStore
StatusCode writeConfigToDetectorStore()
Definition: HLTConfigSvc.cxx:23
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::HLTConfigSvc::m_inputType
Gaudi::Property< std::string > m_inputType
Definition: HLTConfigSvc.h:26
TrigConf::HLTConfigSvc::m_l1FileName
Gaudi::Property< std::string > m_l1FileName
Definition: HLTConfigSvc.h:32
TrigConf::HLTConfigSvc::m_smk
Gaudi::Property< unsigned int > m_smk
Definition: HLTConfigSvc.h:44
TrigConf::HLTConfigSvc
Service storing the HLT menu in the DetectorStore.
Definition: HLTConfigSvc.h:17
TrigConf::name
Definition: HLTChainList.h:35
TrigConf::HLTConfigSvc::m_monitoringOptional
Gaudi::Property< bool > m_monitoringOptional
Definition: HLTConfigSvc.h:41
TrigConf::HLTConfigSvc::HLTConfigSvc
HLTConfigSvc(const std::string &name, ISvcLocator *pSvcLocator)
Definition: HLTConfigSvc.cxx:19
TrigConf::HLTConfigSvc::m_hltFileName
Gaudi::Property< std::string > m_hltFileName
Definition: HLTConfigSvc.h:29
AthService.h
TrigConf::HLTConfigSvc::m_monitoringFileName
Gaudi::Property< std::string > m_monitoringFileName
Definition: HLTConfigSvc.h:35
TrigConf::HLTConfigSvc::initialize
virtual StatusCode initialize() override
Definition: HLTConfigSvc.cxx:91