File indexing completed on 2023-03-17 10:48:27
0001 #ifndef CondTools_L1Trigger_L1SubsystemKeysOnlineProd_h
0002 #define CondTools_L1Trigger_L1SubsystemKeysOnlineProd_h
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021
0022
0023 #include <memory>
0024
0025
0026 #include "FWCore/Framework/interface/ModuleFactory.h"
0027 #include "FWCore/Framework/interface/ESProducer.h"
0028 #include "FWCore/Framework/interface/ESHandle.h"
0029
0030 #include "CondFormats/L1TObjects/interface/L1TriggerKey.h"
0031 #include "CondFormats/DataRecord/interface/L1TriggerKeyRcd.h"
0032
0033 #include "CondTools/L1Trigger/interface/OMDSReader.h"
0034
0035
0036
0037 class L1SubsystemKeysOnlineProd : public edm::ESProducer {
0038 public:
0039 L1SubsystemKeysOnlineProd(const edm::ParameterSet&);
0040 ~L1SubsystemKeysOnlineProd() override;
0041
0042 typedef std::unique_ptr<L1TriggerKey> ReturnType;
0043
0044 ReturnType produce(const L1TriggerKeyRcd&);
0045
0046 private:
0047
0048 std::string m_tscKey;
0049 l1t::OMDSReader m_omdsReader;
0050 bool m_forceGeneration;
0051 };
0052
0053 #endif