ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
LVL1::BcmCTP Class Reference

BCM input class to the CTP simulation. More...

#include <BcmCTP.h>

Collaboration diagram for LVL1::BcmCTP:

Public Member Functions

 BcmCTP (uint32_t word0=0)
 
uint32_t cableWord0 (void) const
 Returns an unsigned integer trigger word containing 9 bits of information. More...
 
const std::string dump () const
 dump raw object content to string More...
 
const std::string print () const
 print object content in a human readable form to string More...
 

Private Attributes

const uint32_t m_cableWord0
 A data member to contain 9 bits of information. More...
 

Detailed Description

BCM input class to the CTP simulation.

   A StoreGate class to contain the output status of the
   level 1 BCM trigger simulation for input into the CTP
   simulation.
Author
Bilge M. Demirkoz demir.nosp@m.koz@.nosp@m.cern..nosp@m.ch
Revision
187728
Date
2009-05-27 18:18:06 +0200 (Wed, 27 May 2009)

Definition at line 26 of file BcmCTP.h.

Constructor & Destructor Documentation

◆ BcmCTP()

LVL1::BcmCTP::BcmCTP ( uint32_t  word0 = 0)

Definition at line 15 of file BcmCTP.cxx.

16  : m_cableWord0(word0)
17  {
18  }

Member Function Documentation

◆ cableWord0()

uint32_t LVL1::BcmCTP::cableWord0 ( void  ) const
inline

Returns an unsigned integer trigger word containing 9 bits of information.

Definition at line 34 of file BcmCTP.h.

34  {
35  return m_cableWord0;
36  }

◆ dump()

const std::string LVL1::BcmCTP::dump ( ) const

dump raw object content to string

Definition at line 20 of file BcmCTP.cxx.

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  }

◆ print()

const std::string LVL1::BcmCTP::print ( ) const

print object content in a human readable form to string

Definition at line 30 of file BcmCTP.cxx.

31  {
32  std::ostringstream s;
33 
34  s << std::setfill( '0' )
35  << " Side-to-side:" << std::setw(6) << BitOp::printBits(m_cableWord0, 0, 1)
36  << " Wide:" << std::setw(6) << BitOp::printBits(m_cableWord0, 2, 2)
37  << " A-side multiplicities:" << std::setw(6) << BitOp::printBits(m_cableWord0, 3, 4)
38  << " C-side multiplicities:" << std::setw(6) << BitOp::printBits(m_cableWord0, 5, 6)
39  << std::setfill(' ') << std::endl;
40 
41  return s.str();
42  }

Member Data Documentation

◆ m_cableWord0

const uint32_t LVL1::BcmCTP::m_cableWord0
private

A data member to contain 9 bits of information.

Definition at line 45 of file BcmCTP.h.


The documentation for this class was generated from the following files:
LVL1::BcmCTP::m_cableWord0
const uint32_t m_cableWord0
A data member to contain 9 bits of information.
Definition: BcmCTP.h:45
python.SystemOfUnits.s
int s
Definition: SystemOfUnits.py:131
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