CMS 3D CMS Logo

Public Member Functions | Private Attributes

L1GtPrescaleFactors Class Reference

#include <L1GtPrescaleFactors.h>

List of all members.

Public Member Functions

const std::vector< std::vector
< int > > & 
gtPrescaleFactors () const
 get the prescale factors by reference
 L1GtPrescaleFactors ()
 L1GtPrescaleFactors (const std::vector< std::vector< int > > &)
void print (std::ostream &) const
 print the prescale factors
void setGtPrescaleFactors (const std::vector< std::vector< int > > &)
 set the prescale factors
virtual ~L1GtPrescaleFactors ()

Private Attributes

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

Detailed Description

Description: L1 GT prescale factors.

Implementation: <TODO: enter implementation details>

Author:
: Vasile Mihai Ghete - HEPHY Vienna

$Date$ $Revision$

Definition at line 30 of file L1GtPrescaleFactors.h.


Constructor & Destructor Documentation

L1GtPrescaleFactors::L1GtPrescaleFactors ( )

Definition at line 28 of file L1GtPrescaleFactors.cc.

{
    // empty
}
L1GtPrescaleFactors::L1GtPrescaleFactors ( const std::vector< std::vector< int > > &  factorValue)

Definition at line 33 of file L1GtPrescaleFactors.cc.

References m_prescaleFactors.

{
    m_prescaleFactors = factorValue;
}
L1GtPrescaleFactors::~L1GtPrescaleFactors ( ) [virtual]

Definition at line 39 of file L1GtPrescaleFactors.cc.

{
    // empty
}

Member Function Documentation

const std::vector<std::vector<int> >& L1GtPrescaleFactors::gtPrescaleFactors ( ) const [inline]
void L1GtPrescaleFactors::print ( std::ostream &  myOstream) const

print the prescale factors

Definition at line 53 of file L1GtPrescaleFactors.cc.

References i, m_prescaleFactors, and findQualityFiles::size.

Referenced by L1GtRunSettingsViewer::analyze(), and L1GtPrescaleFactorsAndMasksTester::printL1EventSetup().

                                                           {
    myOstream << "\nL1 GT Trigger prescale factors" << std::endl;

    for (unsigned iSet = 0; iSet < m_prescaleFactors.size(); iSet++) {

        myOstream << "\n\n Set index " << iSet << "\n " << std::endl;
        for (unsigned i = 0; i < (m_prescaleFactors[iSet]).size(); i++) {

            myOstream 
                << "  Bit number \t" << i 
                << ":\t prescale factor: " << (m_prescaleFactors[iSet])[i] 
                << std::endl;
        }
    }

}
void L1GtPrescaleFactors::setGtPrescaleFactors ( const std::vector< std::vector< int > > &  factorValue)

set the prescale factors

Definition at line 45 of file L1GtPrescaleFactors.cc.

References m_prescaleFactors.

{

    m_prescaleFactors = factorValue;

}

Member Data Documentation

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

prescale factors

Definition at line 61 of file L1GtPrescaleFactors.h.

Referenced by gtPrescaleFactors(), L1GtPrescaleFactors(), print(), and setGtPrescaleFactors().