CMS 3D CMS Logo

L1GtTriggerMaskVetoTechTrigTrivialProducer.cc

Go to the documentation of this file.
00001 
00017 // this class header
00018 #include "L1TriggerConfig/L1GtConfigProducers/interface/L1GtTriggerMaskVetoTechTrigTrivialProducer.h"
00019 
00020 // system include files
00021 #include <memory>
00022 #include "boost/shared_ptr.hpp"
00023 
00024 #include <vector>
00025 
00026 // user include files
00027 //   base class
00028 #include "FWCore/Framework/interface/ESProducer.h"
00029 
00030 #include "FWCore/Framework/interface/ModuleFactory.h"
00031 #include "FWCore/Framework/interface/ESHandle.h"
00032 
00033 #include "CondFormats/DataRecord/interface/L1GtTriggerMaskVetoTechTrigRcd.h"
00034 
00035 // forward declarations
00036 
00037 // constructor(s)
00038 L1GtTriggerMaskVetoTechTrigTrivialProducer::L1GtTriggerMaskVetoTechTrigTrivialProducer(
00039         const edm::ParameterSet& parSet)
00040 {
00041     // tell the framework what data is being produced
00042     setWhatProduced(this,
00043             &L1GtTriggerMaskVetoTechTrigTrivialProducer::produceTriggerMask);
00044 
00045     // now do what ever other initialization is needed
00046 
00047     m_triggerMask =
00048             parSet.getParameter<std::vector<unsigned int> >("TriggerMask");
00049 
00050 }
00051 
00052 // destructor
00053 L1GtTriggerMaskVetoTechTrigTrivialProducer::~L1GtTriggerMaskVetoTechTrigTrivialProducer()
00054 {
00055 
00056     // empty
00057 
00058 }
00059 
00060 // member functions
00061 
00062 // method called to produce the data
00063 boost::shared_ptr<L1GtTriggerMask> L1GtTriggerMaskVetoTechTrigTrivialProducer::produceTriggerMask(
00064         const L1GtTriggerMaskVetoTechTrigRcd& iRecord)
00065 {
00066     boost::shared_ptr<L1GtTriggerMask> pL1GtTriggerMask = boost::shared_ptr<L1GtTriggerMask>(
00067             new L1GtTriggerMask(m_triggerMask) );
00068 
00069     return pL1GtTriggerMask ;
00070 }

Generated on Tue Jun 9 17:40:28 2009 for CMSSW by  doxygen 1.5.4