CMS 3D CMS Logo

Public Member Functions | Private Attributes

L1GtPrescaleFactorsTechTrigTrivialProducer Class Reference

#include <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().

{
    // tell the framework what data is being produced
    setWhatProduced(this,
            &L1GtPrescaleFactorsTechTrigTrivialProducer::producePrescaleFactors);

    // now do what ever other initialization is needed


    // prescale factors

    std::vector<edm::ParameterSet> prescaleFactorsSet =
        parSet.getParameter<std::vector<edm::ParameterSet> >("PrescaleFactorsSet");

    for (std::vector<edm::ParameterSet>::const_iterator itPfSet =
            prescaleFactorsSet.begin(); itPfSet != prescaleFactorsSet.end(); ++itPfSet) {

        // prescale factors
        m_prescaleFactors.push_back(itPfSet->getParameter<std::vector<int> >("PrescaleFactors"));

    }

}
L1GtPrescaleFactorsTechTrigTrivialProducer::~L1GtPrescaleFactorsTechTrigTrivialProducer ( )

destructor

Definition at line 64 of file L1GtPrescaleFactorsTechTrigTrivialProducer.cc.

{

    // empty

}

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

{

    boost::shared_ptr<L1GtPrescaleFactors> pL1GtPrescaleFactors =
            boost::shared_ptr<L1GtPrescaleFactors>(
                    new L1GtPrescaleFactors(m_prescaleFactors) );

    return pL1GtPrescaleFactors;
}

Member Data Documentation

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