CMS 3D CMS Logo

L1GtPsbSetup.cc
Go to the documentation of this file.
1 
17 // this class header
19 
20 // system include files
21 #include <iostream>
22 #include <iomanip>
23 
24 // user include files
25 
26 // forward declarations
27 
28 // constructor
30  // empty
31 }
32 
33 // destructor
35  // empty
36 }
37 
38 // set / print the setup for L1 GT PSB boards
39 void L1GtPsbSetup::setGtPsbSetup(const std::vector<L1GtPsbConfig>& gtPsbSetupValue) { m_gtPsbSetup = gtPsbSetupValue; }
40 
41 void L1GtPsbSetup::print(std::ostream& myCout) const {
42  myCout << "\nSetup for L1 GT PSB boards" << std::endl;
43 
44  myCout << m_gtPsbSetup.size() << " PSB boards configured in L1 GT." << std::endl;
45  myCout << std::endl;
46 
47  for (std::vector<L1GtPsbConfig>::const_iterator cIt = m_gtPsbSetup.begin(); cIt != m_gtPsbSetup.end(); ++cIt) {
48  cIt->print(myCout);
49  myCout << std::endl;
50  }
51 
52  myCout << std::endl;
53 }
54 
55 // output stream operator
56 std::ostream& operator<<(std::ostream& os, const L1GtPsbSetup& result) {
57  result.print(os);
58  return os;
59 }
std::vector< L1GtPsbConfig > m_gtPsbSetup
L1 GT PSB boards and their setup.
Definition: L1GtPsbSetup.h:53
friend std::ostream & operator<<(std::ostream &, const L1GtPsbSetup &)
output stream operator
Definition: L1GtPsbSetup.cc:56
void setGtPsbSetup(const std::vector< L1GtPsbConfig > &)
Definition: L1GtPsbSetup.cc:39
void print(std::ostream &) const
Definition: L1GtPsbSetup.cc:41
virtual ~L1GtPsbSetup()
Definition: L1GtPsbSetup.cc:34