Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-09-28 23:48:17

0001 #ifndef CondTools_L1Trigger_L1CondDBPayloadWriter_h
0002 #define CondTools_L1Trigger_L1CondDBPayloadWriter_h
0003 // -*- C++ -*-
0004 //
0005 // Package:     L1Trigger
0006 // Class  :     L1CondDBPayloadWriter
0007 //
0008 /**\class L1CondDBPayloadWriter L1CondDBPayloadWriter.h CondTools/L1Trigger/interface/L1CondDBPayloadWriter.h
0009 
0010  Description: <one line class summary>
0011 
0012  Usage:
0013     <usage>
0014 
0015 */
0016 //
0017 // Original Author:
0018 //         Created:  Sun Mar  2 07:06:56 CET 2008
0019 // $Id: L1CondDBPayloadWriter.h,v 1.6 2009/12/17 23:43:58 wmtan Exp $
0020 //
0021 
0022 // system include files
0023 #include <memory>
0024 
0025 // user include files
0026 #include "FWCore/Framework/interface/Frameworkfwd.h"
0027 #include "FWCore/Framework/interface/one/EDAnalyzer.h"
0028 
0029 #include "FWCore/Framework/interface/Event.h"
0030 #include "FWCore/Framework/interface/MakerMacros.h"
0031 
0032 #include "FWCore/ParameterSet/interface/ParameterSet.h"
0033 
0034 #include "CondTools/L1Trigger/interface/DataWriter.h"
0035 
0036 // forward declarations
0037 class L1TriggerKey;
0038 class L1TriggerKeyRcd;
0039 
0040 class L1CondDBPayloadWriter : public edm::one::EDAnalyzer<> {
0041 public:
0042   explicit L1CondDBPayloadWriter(const edm::ParameterSet&);
0043   ~L1CondDBPayloadWriter() override;
0044 
0045 private:
0046   void beginJob() override;
0047   void analyze(const edm::Event&, const edm::EventSetup&) override;
0048   void endJob() override;
0049 
0050   // ----------member data ---------------------------
0051   l1t::DataWriter m_writer;
0052   // std::string m_tag ; // tag is known by PoolDBOutputService
0053 
0054   // set to false to write config data without valid TSC key
0055   bool m_writeL1TriggerKey;
0056 
0057   // set to false to write config data only
0058   bool m_writeConfigData;
0059 
0060   // substitute new payload tokens for existing keys in L1TriggerKeyList
0061   bool m_overwriteKeys;
0062 
0063   bool m_logTransactions;
0064 
0065   // if true, do not retrieve L1TriggerKeyList from EventSetup
0066   bool m_newL1TriggerKeyList;
0067 
0068   edm::ESGetToken<L1TriggerKey, L1TriggerKeyRcd> l1TriggerKeyToken_;
0069 };
0070 
0071 #endif