CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_9_patch3/src/CondTools/L1Trigger/plugins/L1CondDBPayloadWriter.h

Go to the documentation of this file.
00001 #ifndef CondTools_L1Trigger_L1CondDBPayloadWriter_h
00002 #define CondTools_L1Trigger_L1CondDBPayloadWriter_h
00003 // -*- C++ -*-
00004 //
00005 // Package:     L1Trigger
00006 // Class  :     L1CondDBPayloadWriter
00007 // 
00016 //
00017 // Original Author:  
00018 //         Created:  Sun Mar  2 07:06:56 CET 2008
00019 // $Id: L1CondDBPayloadWriter.h,v 1.7 2010/01/20 21:15:56 wsun Exp $
00020 //
00021 
00022 // system include files
00023 #include <memory>
00024 
00025 // user include files
00026 #include "FWCore/Framework/interface/Frameworkfwd.h"
00027 #include "FWCore/Framework/interface/EDAnalyzer.h"
00028 
00029 #include "FWCore/Framework/interface/Event.h"
00030 #include "FWCore/Framework/interface/MakerMacros.h"
00031 
00032 #include "FWCore/ParameterSet/interface/ParameterSet.h"
00033 
00034 #include "CondTools/L1Trigger/interface/DataWriter.h"
00035 
00036 // forward declarations
00037 
00038 class L1CondDBPayloadWriter : public edm::EDAnalyzer {
00039    public:
00040       explicit L1CondDBPayloadWriter(const edm::ParameterSet&);
00041       ~L1CondDBPayloadWriter();
00042 
00043 
00044    private:
00045       virtual void beginJob() ;
00046       virtual void analyze(const edm::Event&, const edm::EventSetup&);
00047       virtual void endJob() ;
00048 
00049       // ----------member data ---------------------------
00050       l1t::DataWriter m_writer ;
00051       // std::string m_tag ; // tag is known by PoolDBOutputService
00052 
00053       // set to false to write config data without valid TSC key
00054       bool m_writeL1TriggerKey ;
00055 
00056       // set to false to write config data only
00057       bool m_writeConfigData ;
00058 
00059       // substitute new payload tokens for existing keys in L1TriggerKeyList
00060       bool m_overwriteKeys ;
00061 
00062       bool m_logTransactions ;
00063 
00064       // if true, do not retrieve L1TriggerKeyList from EventSetup
00065       bool m_newL1TriggerKeyList ;
00066 };
00067 
00068 #endif