CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_9_patch3/src/CondFormats/L1TObjects/src/L1GtPrescaleFactors.cc

Go to the documentation of this file.
00001 
00017 // this class header
00018 #include "CondFormats/L1TObjects/interface/L1GtPrescaleFactors.h"
00019 
00020 // system include files
00021 
00022 // user include files
00023 //   base class
00024 
00025 // forward declarations
00026 
00027 // constructor
00028 L1GtPrescaleFactors::L1GtPrescaleFactors()
00029 {
00030     // empty
00031 }
00032 
00033 L1GtPrescaleFactors::L1GtPrescaleFactors(const std::vector<std::vector<int> >& factorValue)
00034 {
00035     m_prescaleFactors = factorValue;
00036 }
00037 
00038 // destructor
00039 L1GtPrescaleFactors::~L1GtPrescaleFactors()
00040 {
00041     // empty
00042 }
00043 
00044 // set the prescale factors
00045 void L1GtPrescaleFactors::setGtPrescaleFactors(const std::vector<std::vector<int> >& factorValue)
00046 {
00047 
00048     m_prescaleFactors = factorValue;
00049 
00050 }
00051 
00052 // print the prescale factors
00053 void L1GtPrescaleFactors::print(std::ostream& myOstream) const {
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 }