CMS 3D CMS Logo

L1GtPrescaleFactors Class Reference

Description: L1 GT prescale factors. More...

#include <CondFormats/L1TObjects/interface/L1GtPrescaleFactors.h>

List of all members.

Public Member Functions

const std::vector< std::vector
< int > > & 
gtPrescaleFactors () const
 get the prescale factors by reference
 L1GtPrescaleFactors (const std::vector< std::vector< int > > &)
 L1GtPrescaleFactors ()
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.

00029 {
00030     // empty
00031 }

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

Definition at line 33 of file L1GtPrescaleFactors.cc.

References m_prescaleFactors.

00034 {
00035     m_prescaleFactors = factorValue;
00036 }

L1GtPrescaleFactors::~L1GtPrescaleFactors (  )  [virtual]

Definition at line 39 of file L1GtPrescaleFactors.cc.

00040 {
00041     // empty
00042 }


Member Function Documentation

const std::vector<std::vector<int> >& L1GtPrescaleFactors::gtPrescaleFactors (  )  const [inline]

get the prescale factors by reference

Definition at line 47 of file L1GtPrescaleFactors.h.

References m_prescaleFactors.

Referenced by L1GtTrigReport::analyze(), and L1GlobalTrigger::produce().

00048     {
00049         return m_prescaleFactors;
00050     }

void L1GtPrescaleFactors::print ( std::ostream &  myOstream  )  const

print the prescale factors

Definition at line 53 of file L1GtPrescaleFactors.cc.

References lat::endl(), i, m_prescaleFactors, and size.

00053                                                            {
00054     myOstream << "\nL1 GT Trigger prescale factors" << std::endl;
00055 
00056     for (unsigned iSet = 0; iSet < m_prescaleFactors.size(); iSet++) {
00057 
00058         myOstream << "\n\n Set index " << iSet << "\n " << std::endl;
00059         for (unsigned i = 0; i < (m_prescaleFactors[iSet]).size(); i++) {
00060 
00061             myOstream 
00062                 << "  Bit number \t" << i 
00063                 << ":\t prescale factor: " << (m_prescaleFactors[iSet])[i] 
00064                 << std::endl;
00065         }
00066     }
00067 
00068 }

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.

00046 {
00047 
00048     m_prescaleFactors = factorValue;
00049 
00050 }


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


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