CMS 3D CMS Logo

L1GtPrescaleFactorsTechTrigTrivialProducer Class Reference

Description: ESProducer for L1 GT prescale factors for technical triggers. More...

#include <L1TriggerConfig/L1GtConfigProducers/interface/L1GtPrescaleFactorsTechTrigTrivialProducer.h>

Inheritance diagram for L1GtPrescaleFactorsTechTrigTrivialProducer:

edm::ESProducer edm::ESProxyFactoryProducer edm::eventsetup::DataProxyProvider

List of all members.

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


Detailed Description

Description: ESProducer for L1 GT prescale factors for technical triggers.

Implementation: <TODO: enter implementation details>

Author:
: Vasile Mihai Ghete - HEPHY Vienna
$Date$ $Revision$

Definition at line 39 of file L1GtPrescaleFactorsTechTrigTrivialProducer.h.


Constructor & Destructor Documentation

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 (  ) 

destructor

Definition at line 64 of file L1GtPrescaleFactorsTechTrigTrivialProducer.cc.

00065 {
00066 
00067     // empty
00068 
00069 }


Member Function Documentation

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 }


Member Data Documentation

std::vector<std::vector<int> > L1GtPrescaleFactorsTechTrigTrivialProducer::m_prescaleFactors [private]

prescale factors

Definition at line 58 of file L1GtPrescaleFactorsTechTrigTrivialProducer.h.

Referenced by L1GtPrescaleFactorsTechTrigTrivialProducer(), and producePrescaleFactors().


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:26:45 2009 for CMSSW by  doxygen 1.5.4