CMS 3D CMS Logo

Public Member Functions | Private Attributes

L1GtPrescaleFactorsAlgoTrigTrivialProducer Class Reference

#include <L1GtPrescaleFactorsAlgoTrigTrivialProducer.h>

Inheritance diagram for L1GtPrescaleFactorsAlgoTrigTrivialProducer:
edm::ESProducer edm::ESProxyFactoryProducer edm::eventsetup::DataProxyProvider

List of all members.

Public Member Functions

 L1GtPrescaleFactorsAlgoTrigTrivialProducer (const edm::ParameterSet &)
 constructor
boost::shared_ptr
< L1GtPrescaleFactors
producePrescaleFactors (const L1GtPrescaleFactorsAlgoTrigRcd &)
 public methods
 ~L1GtPrescaleFactorsAlgoTrigTrivialProducer ()
 destructor

Private Attributes

std::vector< std::vector< int > > m_prescaleFactors
 prescale factors

Detailed Description

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

Implementation: <TODO: enter implementation details>

Author:
: Vasile Mihai Ghete - HEPHY Vienna

$Date$ $Revision$

Definition at line 39 of file L1GtPrescaleFactorsAlgoTrigTrivialProducer.h.


Constructor & Destructor Documentation

L1GtPrescaleFactorsAlgoTrigTrivialProducer::L1GtPrescaleFactorsAlgoTrigTrivialProducer ( const edm::ParameterSet parSet)

constructor

Definition at line 38 of file L1GtPrescaleFactorsAlgoTrigTrivialProducer.cc.

References edm::ParameterSet::getParameter(), m_prescaleFactors, producePrescaleFactors(), and edm::ESProducer::setWhatProduced().

                                       {

    // tell the framework what data is being produced
    setWhatProduced(this,
            &L1GtPrescaleFactorsAlgoTrigTrivialProducer::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"));

    }

}
L1GtPrescaleFactorsAlgoTrigTrivialProducer::~L1GtPrescaleFactorsAlgoTrigTrivialProducer ( )

destructor

Definition at line 63 of file L1GtPrescaleFactorsAlgoTrigTrivialProducer.cc.

                                                                                        {

    // empty

}

Member Function Documentation

boost::shared_ptr< L1GtPrescaleFactors > L1GtPrescaleFactorsAlgoTrigTrivialProducer::producePrescaleFactors ( const L1GtPrescaleFactorsAlgoTrigRcd iRecord)

public methods

Definition at line 72 of file L1GtPrescaleFactorsAlgoTrigTrivialProducer.cc.

References m_prescaleFactors.

Referenced by L1GtPrescaleFactorsAlgoTrigTrivialProducer().

                                                       {

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

    return pL1GtPrescaleFactors;
}

Member Data Documentation

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