#include <L1TriggerConfig/L1GtConfigProducers/interface/L1GtPrescaleFactorsTechTrigTrivialProducer.h>
Public Member Functions | |
L1GtPrescaleFactorsTechTrigTrivialProducer (const edm::ParameterSet &) | |
constructor | |
boost::shared_ptr < L1GtPrescaleFactors > | producePrescaleFactors (const L1GtPrescaleFactorsTechTrigRcd &) |
public methods | |
~L1GtPrescaleFactorsTechTrigTrivialProducer () | |
destructor | |
Private Attributes | |
std::vector< std::vector< int > > | m_prescaleFactors |
prescale factors |
Implementation: <TODO: enter implementation details>
$Date$ $Revision$
Definition at line 39 of file L1GtPrescaleFactorsTechTrigTrivialProducer.h.
L1GtPrescaleFactorsTechTrigTrivialProducer::L1GtPrescaleFactorsTechTrigTrivialProducer | ( | const edm::ParameterSet & | parSet | ) |
constructor
Definition at line 38 of file L1GtPrescaleFactorsTechTrigTrivialProducer.cc.
References edm::ParameterSet::getParameter(), m_prescaleFactors, producePrescaleFactors(), and edm::ESProducer::setWhatProduced().
00040 { 00041 // tell the framework what data is being produced 00042 setWhatProduced(this, 00043 &L1GtPrescaleFactorsTechTrigTrivialProducer::producePrescaleFactors); 00044 00045 // now do what ever other initialization is needed 00046 00047 00048 // prescale factors 00049 00050 std::vector<edm::ParameterSet> prescaleFactorsSet = 00051 parSet.getParameter<std::vector<edm::ParameterSet> >("PrescaleFactorsSet"); 00052 00053 for (std::vector<edm::ParameterSet>::const_iterator itPfSet = 00054 prescaleFactorsSet.begin(); itPfSet != prescaleFactorsSet.end(); ++itPfSet) { 00055 00056 // prescale factors 00057 m_prescaleFactors.push_back(itPfSet->getParameter<std::vector<int> >("PrescaleFactors")); 00058 00059 } 00060 00061 }
L1GtPrescaleFactorsTechTrigTrivialProducer::~L1GtPrescaleFactorsTechTrigTrivialProducer | ( | ) |
boost::shared_ptr< L1GtPrescaleFactors > L1GtPrescaleFactorsTechTrigTrivialProducer::producePrescaleFactors | ( | const L1GtPrescaleFactorsTechTrigRcd & | iRecord | ) |
public methods
Definition at line 75 of file L1GtPrescaleFactorsTechTrigTrivialProducer.cc.
References m_prescaleFactors.
Referenced by L1GtPrescaleFactorsTechTrigTrivialProducer().
00077 { 00078 00079 boost::shared_ptr<L1GtPrescaleFactors> pL1GtPrescaleFactors = 00080 boost::shared_ptr<L1GtPrescaleFactors>( 00081 new L1GtPrescaleFactors(m_prescaleFactors) ); 00082 00083 return pL1GtPrescaleFactors; 00084 }
std::vector<std::vector<int> > L1GtPrescaleFactorsTechTrigTrivialProducer::m_prescaleFactors [private] |
prescale factors
Definition at line 58 of file L1GtPrescaleFactorsTechTrigTrivialProducer.h.
Referenced by L1GtPrescaleFactorsTechTrigTrivialProducer(), and producePrescaleFactors().