00001 00017 // this class header 00018 #include "CondFormats/L1TObjects/interface/L1GtParameters.h" 00019 00020 // system include files 00021 #include <iomanip> 00022 00023 00024 // user include files 00025 // base class 00026 00027 // forward declarations 00028 00029 // constructor 00030 L1GtParameters::L1GtParameters() 00031 { 00032 // empty 00033 } 00034 00035 // destructor 00036 L1GtParameters::~L1GtParameters() 00037 { 00038 // empty 00039 } 00040 00041 // set the total Bx's in the event 00042 void L1GtParameters::setGtTotalBxInEvent(const int& totalBxInEventValue) 00043 { 00044 00045 m_totalBxInEvent = totalBxInEventValue; 00046 00047 } 00048 00049 // set active boards for L1 GT DAQ record 00050 void L1GtParameters::setGtDaqActiveBoards(const boost::uint16_t& activeBoardsValue) 00051 { 00052 00053 m_daqActiveBoards = activeBoardsValue; 00054 00055 } 00056 00057 // set active boards for L1 GT EVM record 00058 void L1GtParameters::setGtEvmActiveBoards(const boost::uint16_t& activeBoardsValue) 00059 { 00060 00061 m_evmActiveBoards = activeBoardsValue; 00062 00063 } 00064 00065 void L1GtParameters::setGtBstLengthBytes(const unsigned int& bstLengthBytesValue) { 00066 00067 m_bstLengthBytes = bstLengthBytesValue; 00068 00069 } 00070 00071 // print all the L1 GT parameters 00072 void L1GtParameters::print(std::ostream& myCout) const 00073 { 00074 myCout 00075 << "\nL1 GT Parameters" << std::endl; 00076 00077 myCout 00078 << "\n Total Bx's in the event = " << m_totalBxInEvent << std::endl; 00079 00080 myCout 00081 << "\n Active boards in L1 GT DAQ record (hex format) = " 00082 << std::hex << std::setw(sizeof(m_daqActiveBoards)*2) << std::setfill('0') 00083 << m_daqActiveBoards 00084 << std::dec << std::setfill(' ') 00085 << std::endl; 00086 00087 myCout 00088 << "\n Active boards in L1 GT EVM record (hex format) = " 00089 << std::hex << std::setw(sizeof(m_evmActiveBoards)*2) << std::setfill('0') 00090 << m_evmActiveBoards 00091 << std::dec << std::setfill(' ') 00092 << std::endl; 00093 00094 myCout 00095 << "\n Length of the BST message = " 00096 << m_bstLengthBytes 00097 << std::endl; 00098 00099 myCout 00100 << "\n" << std::endl; 00101 00102 }