CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_6_1_2_SLHC2_patch1/src/L1TriggerConfig/L1GtConfigProducers/src/L1GtTriggerMaskVetoAlgoTrigTrivialProducer.cc

Go to the documentation of this file.
00001 
00017 // this class header
00018 #include "L1TriggerConfig/L1GtConfigProducers/interface/L1GtTriggerMaskVetoAlgoTrigTrivialProducer.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/L1GtTriggerMaskVetoAlgoTrigRcd.h"
00034 
00035 // forward declarations
00036 
00037 // constructor(s)
00038 L1GtTriggerMaskVetoAlgoTrigTrivialProducer::L1GtTriggerMaskVetoAlgoTrigTrivialProducer(
00039         const edm::ParameterSet& parSet)
00040 {
00041     // tell the framework what data is being produced
00042     setWhatProduced(this,
00043             &L1GtTriggerMaskVetoAlgoTrigTrivialProducer::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 L1GtTriggerMaskVetoAlgoTrigTrivialProducer::~L1GtTriggerMaskVetoAlgoTrigTrivialProducer()
00054 {
00055 
00056     // empty
00057 
00058 }
00059 
00060 // member functions
00061 
00062 // method called to produce the data
00063 boost::shared_ptr<L1GtTriggerMask> L1GtTriggerMaskVetoAlgoTrigTrivialProducer::produceTriggerMask(
00064         const L1GtTriggerMaskVetoAlgoTrigRcd& iRecord)
00065 {
00066     boost::shared_ptr<L1GtTriggerMask> pL1GtTriggerMask = boost::shared_ptr<L1GtTriggerMask>(
00067             new L1GtTriggerMask(m_triggerMask) );
00068 
00069     return pL1GtTriggerMask ;
00070 }