Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:52:17

0001 #ifndef CondTools_L1Trigger_L1SubsystemKeysOnlineProd_h
0002 #define CondTools_L1Trigger_L1SubsystemKeysOnlineProd_h
0003 // -*- C++ -*-
0004 //
0005 // Package:     L1Trigger
0006 // Class  :     L1SubsystemKeysOnlineProd
0007 //
0008 /**\class L1SubsystemKeysOnlineProd L1SubsystemKeysOnlineProd.h CondTools/L1Trigger/interface/L1SubsystemKeysOnlineProd.h
0009 
0010  Description: <one line class summary>
0011 
0012  Usage:
0013     <usage>
0014 
0015 */
0016 //
0017 // Original Author:  Werner Sun
0018 //         Created:  Thu Aug 21 19:30:30 CEST 2008
0019 // $Id: L1SubsystemKeysOnlineProd.h,v 1.1 2008/09/19 19:22:59 wsun Exp $
0020 //
0021 
0022 // system include files
0023 #include <memory>
0024 
0025 // user include files
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 // forward declarations
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   // ----------member data ---------------------------
0048   std::string m_tscKey;
0049   l1t::OMDSReader m_omdsReader;
0050   bool m_forceGeneration;
0051 };
0052 
0053 #endif