CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_3/src/CondTools/L1Trigger/plugins/L1TriggerKeyListDummyProd.cc

Go to the documentation of this file.
00001 // -*- C++ -*-
00002 //
00003 // Package:    L1TriggerKeyListDummyProd
00004 // Class:      L1TriggerKeyListDummyProd
00005 // 
00013 //
00014 // Original Author:  Werner Man-Li Sun
00015 //         Created:  Sat Mar  1 05:02:13 CET 2008
00016 // $Id: L1TriggerKeyListDummyProd.cc,v 1.1 2008/03/03 21:52:18 wsun Exp $
00017 //
00018 //
00019 
00020 
00021 // system include files
00022 
00023 // user include files
00024 #include "CondTools/L1Trigger/plugins/L1TriggerKeyListDummyProd.h"
00025 
00026 //
00027 // class declaration
00028 //
00029 
00030 //
00031 // constants, enums and typedefs
00032 //
00033 
00034 //
00035 // static data member definitions
00036 //
00037 
00038 //
00039 // constructors and destructor
00040 //
00041 L1TriggerKeyListDummyProd::L1TriggerKeyListDummyProd(const edm::ParameterSet& iConfig)
00042 {
00043    //the following line is needed to tell the framework what
00044    // data is being produced
00045    setWhatProduced(this);
00046 
00047    //now do what ever other initialization is needed
00048 }
00049 
00050 
00051 L1TriggerKeyListDummyProd::~L1TriggerKeyListDummyProd()
00052 {
00053  
00054    // do anything here that needs to be done at desctruction time
00055    // (e.g. close files, deallocate resources etc.)
00056 
00057 }
00058 
00059 
00060 //
00061 // member functions
00062 //
00063 
00064 // ------------ method called to produce the data  ------------
00065 L1TriggerKeyListDummyProd::ReturnType
00066 L1TriggerKeyListDummyProd::produce(const L1TriggerKeyListRcd& iRecord)
00067 {
00068    using namespace edm::es;
00069    boost::shared_ptr<L1TriggerKeyList> pL1TriggerKeyList ;
00070 
00071    pL1TriggerKeyList = boost::shared_ptr< L1TriggerKeyList >(
00072       new L1TriggerKeyList() ) ;
00073 
00074    return pL1TriggerKeyList ;
00075 }
00076 
00077 //define this as a plug-in
00078 //DEFINE_FWK_EVENTSETUP_MODULE(L1TriggerKeyListDummyProd);