CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_4_4_5_patch3/src/CondFormats/L1TObjects/src/L1GtPsbSetup.cc

Go to the documentation of this file.
00001 
00017 // this class header
00018 #include "CondFormats/L1TObjects/interface/L1GtPsbSetup.h"
00019 
00020 // system include files
00021 #include <iostream>
00022 #include <iomanip>
00023 
00024 // user include files
00025 
00026 // forward declarations
00027 
00028 // constructor
00029 L1GtPsbSetup::L1GtPsbSetup()
00030 {
00031     // empty
00032 }
00033 
00034 // destructor
00035 L1GtPsbSetup::~L1GtPsbSetup()
00036 {
00037     // empty
00038 }
00039 
00040 
00041 
00042 // set / print the setup for L1 GT PSB boards
00043 void L1GtPsbSetup::setGtPsbSetup(const std::vector<L1GtPsbConfig>& gtPsbSetupValue)
00044 {
00045 
00046     m_gtPsbSetup = gtPsbSetupValue;
00047 
00048 }
00049 
00050 void L1GtPsbSetup::print(std::ostream& myCout) const
00051 {
00052     myCout <<  "\nSetup for L1 GT PSB boards" << std::endl;
00053 
00054     myCout << m_gtPsbSetup.size() << " PSB boards configured in L1 GT." << std::endl;
00055     myCout << std::endl;
00056 
00057     for (std::vector<L1GtPsbConfig>::const_iterator
00058             cIt = m_gtPsbSetup.begin(); cIt != m_gtPsbSetup.end(); ++cIt) {
00059 
00060         cIt->print(myCout);
00061         myCout << std::endl;
00062     }
00063 
00064     myCout << std::endl;
00065 
00066 }
00067 
00068 // output stream operator
00069 std::ostream& operator<<(std::ostream& os, const L1GtPsbSetup& result)
00070 {
00071     result.print(os);
00072     return os;
00073 
00074 }