ATLAS Offline Software
BptxCTP.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2018 CERN for the benefit of the ATLAS collaboration
3 */
5 
6 // STL includes(s):
7 #include <sstream>
8 #include <iomanip>
9 
10 // local includes
11 #include "TrigT1Interfaces/BitOp.h"
12 
13 namespace LVL1 {
14 
15  BptxCTP::BptxCTP( unsigned int word0 )
16  : m_cableWord0(word0)
17  {
18  }
19 
20  const std::string BptxCTP::dump() const
21  {
22  std::ostringstream s;
23 
24  s << " 0x" << std::hex << std::setw(8) << std::setfill( '0' ) << m_cableWord0
25  << std::dec << std::setfill(' ') << std::endl;
26 
27  return s.str();
28  }
29 
30  const std::string BptxCTP::print() const
31  {
32  std::ostringstream s;
33 
34  s << std::setfill( '0' )
35  << " bits:" << std::setw(6) << BitOp::printBits(m_cableWord0, 0, 20)
36  << std::setfill(' ') << std::endl;
37 
38  return s.str();
39  }
40 
41 }
42 
python.SystemOfUnits.s
int s
Definition: SystemOfUnits.py:131
LVL1::BptxCTP::print
const std::string print() const
print object content in a human readable form to string
Definition: BptxCTP.cxx:30
LVL1::BptxCTP::BptxCTP
BptxCTP(uint32_t word0=0)
Definition: BptxCTP.cxx:15
LVL1
eFexTowerBuilder creates xAOD::eFexTowerContainer from supercells (LATOME) and triggerTowers (TREX) i...
Definition: ICMMCPHitsCnvTool.h:18
BitOp.h
BitOp::printBits
static const std::string printBits(const int value, const int startbit, const int endbit)
print selected bit range into string
Definition: BitOp.cxx:100
BptxCTP.h
LVL1::BptxCTP::m_cableWord0
const uint32_t m_cableWord0
A data member to contain two 3bit trigger multiplicities.
Definition: BptxCTP.h:45
LVL1::BptxCTP::dump
const std::string dump() const
dump raw object content to string
Definition: BptxCTP.cxx:20