Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:02:22

0001 /**
0002  * \class L1GtPsbSetup
0003  *
0004  *
0005  * Description: setup for L1 GT PSB boards.
0006  *
0007  * Implementation:
0008  *    <TODO: enter implementation details>
0009  *
0010  * \author: Vasile Mihai Ghete - HEPHY Vienna
0011  *
0012  * $Date$
0013  * $Revision$
0014  *
0015  */
0016 
0017 // this class header
0018 #include "CondFormats/L1TObjects/interface/L1GtPsbSetup.h"
0019 
0020 // system include files
0021 #include <iostream>
0022 #include <iomanip>
0023 
0024 // user include files
0025 
0026 // forward declarations
0027 
0028 // constructor
0029 L1GtPsbSetup::L1GtPsbSetup() {
0030   // empty
0031 }
0032 
0033 // destructor
0034 L1GtPsbSetup::~L1GtPsbSetup() {
0035   // empty
0036 }
0037 
0038 // set / print the setup for L1 GT PSB boards
0039 void L1GtPsbSetup::setGtPsbSetup(const std::vector<L1GtPsbConfig>& gtPsbSetupValue) { m_gtPsbSetup = gtPsbSetupValue; }
0040 
0041 void L1GtPsbSetup::print(std::ostream& myCout) const {
0042   myCout << "\nSetup for L1 GT PSB boards" << std::endl;
0043 
0044   myCout << m_gtPsbSetup.size() << " PSB boards configured in L1 GT." << std::endl;
0045   myCout << std::endl;
0046 
0047   for (std::vector<L1GtPsbConfig>::const_iterator cIt = m_gtPsbSetup.begin(); cIt != m_gtPsbSetup.end(); ++cIt) {
0048     cIt->print(myCout);
0049     myCout << std::endl;
0050   }
0051 
0052   myCout << std::endl;
0053 }
0054 
0055 // output stream operator
0056 std::ostream& operator<<(std::ostream& os, const L1GtPsbSetup& result) {
0057   result.print(os);
0058   return os;
0059 }