CMS 3D CMS Logo

List of all members | Public Member Functions | Private Member Functions | Private Attributes | Friends
L1GtPsbSetup Class Reference

#include <L1GtPsbSetup.h>

Public Member Functions

const std::vector< L1GtPsbConfig > & gtPsbSetup () const
 get / set / print the setup for L1 GT PSB boards More...
 
 L1GtPsbSetup ()
 
void print (std::ostream &) const
 
void setGtPsbSetup (const std::vector< L1GtPsbConfig > &)
 
virtual ~L1GtPsbSetup ()
 

Private Member Functions

template<class Archive >
void serialize (Archive &ar, const unsigned int version)
 

Private Attributes

std::vector< L1GtPsbConfigm_gtPsbSetup
 L1 GT PSB boards and their setup. More...
 

Friends

class boost::serialization::access
 
template<typename CondSerializationT , typename Enabled >
struct cond::serialization::access
 
std::ostream & operator<< (std::ostream &, const L1GtPsbSetup &)
 output stream operator More...
 

Detailed Description

Description: setup for L1 GT PSB boards.

Implementation: <TODO: enter implementation details>

Author
: Vasile Mihai Ghete - HEPHY Vienna

$Date$ $Revision$

Definition at line 32 of file L1GtPsbSetup.h.

Constructor & Destructor Documentation

L1GtPsbSetup::L1GtPsbSetup ( )

Definition at line 29 of file L1GtPsbSetup.cc.

30 {
31  // empty
32 }
L1GtPsbSetup::~L1GtPsbSetup ( )
virtual

Definition at line 35 of file L1GtPsbSetup.cc.

36 {
37  // empty
38 }

Member Function Documentation

const std::vector<L1GtPsbConfig>& L1GtPsbSetup::gtPsbSetup ( ) const
inline

get / set / print the setup for L1 GT PSB boards

Definition at line 46 of file L1GtPsbSetup.h.

References m_gtPsbSetup, operator<<, print(), and setGtPsbSetup().

47  {
48  return m_gtPsbSetup;
49  }
std::vector< L1GtPsbConfig > m_gtPsbSetup
L1 GT PSB boards and their setup.
Definition: L1GtPsbSetup.h:61
void L1GtPsbSetup::print ( std::ostream &  myCout) const

Definition at line 50 of file L1GtPsbSetup.cc.

References m_gtPsbSetup.

Referenced by L1GtPsbSetupTester::analyze(), L1TConfigDumper::analyze(), gtPsbSetup(), and operator<<().

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 }
std::vector< L1GtPsbConfig > m_gtPsbSetup
L1 GT PSB boards and their setup.
Definition: L1GtPsbSetup.h:61
template<class Archive >
void L1GtPsbSetup::serialize ( Archive &  ar,
const unsigned int  version 
)
private
void L1GtPsbSetup::setGtPsbSetup ( const std::vector< L1GtPsbConfig > &  gtPsbSetupValue)

Definition at line 43 of file L1GtPsbSetup.cc.

References m_gtPsbSetup.

Referenced by gtPsbSetup().

44 {
45 
46  m_gtPsbSetup = gtPsbSetupValue;
47 
48 }
std::vector< L1GtPsbConfig > m_gtPsbSetup
L1 GT PSB boards and their setup.
Definition: L1GtPsbSetup.h:61

Friends And Related Function Documentation

friend class boost::serialization::access
friend

Definition at line 64 of file L1GtPsbSetup.h.

template<typename CondSerializationT , typename Enabled >
friend struct cond::serialization::access
friend

Definition at line 64 of file L1GtPsbSetup.h.

std::ostream& operator<< ( std::ostream &  os,
const L1GtPsbSetup result 
)
friend

output stream operator

Definition at line 69 of file L1GtPsbSetup.cc.

Referenced by gtPsbSetup().

70 {
71  result.print(os);
72  return os;
73 
74 }
void print(std::ostream &) const
Definition: L1GtPsbSetup.cc:50

Member Data Documentation

std::vector<L1GtPsbConfig> L1GtPsbSetup::m_gtPsbSetup
private

L1 GT PSB boards and their setup.

Definition at line 61 of file L1GtPsbSetup.h.

Referenced by gtPsbSetup(), print(), and setGtPsbSetup().