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