CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 {
31  // empty
32 }
33 
34 // destructor
36 {
37  // empty
38 }
39 
40 
41 
42 // set / print the setup for L1 GT PSB boards
43 void L1GtPsbSetup::setGtPsbSetup(const std::vector<L1GtPsbConfig>& gtPsbSetupValue)
44 {
45 
46  m_gtPsbSetup = gtPsbSetupValue;
47 
48 }
49 
50 void L1GtPsbSetup::print(std::ostream& myCout) const
51 {
52  myCout << "\nSetup for L1 GT PSB boards" << std::endl;
53 
54  myCout << m_gtPsbSetup.size() << " PSB boards configured in L1 GT." << std::endl;
55  myCout << std::endl;
56 
57  for (std::vector<L1GtPsbConfig>::const_iterator
58  cIt = m_gtPsbSetup.begin(); cIt != m_gtPsbSetup.end(); ++cIt) {
59 
60  cIt->print(myCout);
61  myCout << std::endl;
62  }
63 
64  myCout << std::endl;
65 
66 }
67 
68 // output stream operator
69 std::ostream& operator<<(std::ostream& os, const L1GtPsbSetup& result)
70 {
71  result.print(os);
72  return os;
73 
74 }
std::vector< L1GtPsbConfig > m_gtPsbSetup
L1 GT PSB boards and their setup.
Definition: L1GtPsbSetup.h:59
std::ostream & operator<<(std::ostream &out, const ALILine &li)
Definition: ALILine.cc:187
void setGtPsbSetup(const std::vector< L1GtPsbConfig > &)
Definition: L1GtPsbSetup.cc:43
tuple result
Definition: query.py:137
void print(std::ostream &) const
Definition: L1GtPsbSetup.cc:50
virtual ~L1GtPsbSetup()
Definition: L1GtPsbSetup.cc:35