CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_9_patch3/src/L1TriggerConfig/GMTConfigProducers/interface/L1MuGMTParametersOnlineProducer.h

Go to the documentation of this file.
00001 //-------------------------------------------------
00002 //
00003 //   \class L1MuGMTParametersOnlineProducer
00004 //
00005 //   Description:  A class to produce the L1 GMT emulator parameters in the event setup
00006 //                 by reading them from the online database.
00007 //
00008 //   $Date: 2008/11/24 19:00:37 $
00009 //   $Revision: 1.1 $
00010 //
00011 //   Author :
00012 //   Thomas Themel
00013 //
00014 //--------------------------------------------------
00015 #ifndef GMTConfigProducers_L1MuGMTParametersOnlineProducer_h
00016 #define GMTConfigProducers_L1MuGMTParametersOnlineProducer_h
00017 
00018 // system include files
00019 #include <memory>
00020 #include <boost/shared_ptr.hpp>
00021 
00022 // user include files
00023 
00024 #include "CondFormats/L1TObjects/interface/L1MuGMTParameters.h"
00025 #include "CondFormats/DataRecord/interface/L1MuGMTParametersRcd.h"
00026 #include "CondTools/L1Trigger/interface/L1ConfigOnlineProdBase.h"
00027 
00028 //
00029 // class declaration
00030 //
00031 
00032 
00033 class L1MuGMTParametersOnlineProducer : public L1ConfigOnlineProdBase<L1MuGMTParametersRcd, L1MuGMTParameters> {
00034 public:
00035   L1MuGMTParametersOnlineProducer(const edm::ParameterSet&);
00036   ~L1MuGMTParametersOnlineProducer();
00037   
00039   virtual boost::shared_ptr<L1MuGMTParameters> newObject( const std::string& objectKey );
00040  protected:
00041 
00042   void checkCMSSWVersion(const coral::AttributeList& configRecord);
00043 private:
00044   std::string lookupSoftwareConfigKey(const std::string& globalKey);
00045   bool ignoreVersionMismatch_;  
00046 };
00047 
00048 #endif
00049