ATLAS Offline Software
Loading...
Searching...
No Matches
LVL1::BptxCTP Class Reference

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

#include <BptxCTP.h>

Collaboration diagram for LVL1::BptxCTP:

Public Member Functions

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

Private Attributes

const uint32_t m_cableWord0
 A data member to contain two 3bit trigger multiplicities.

Detailed Description

BPTX input class to the CTP simulation.

   A StoreGate class to contain the output status of the
   level 1 BPTX trigger simulation for input into the CTP
   simulation. This class contains three bits.
Author
Ellie Dobson elean.nosp@m.or.d.nosp@m.obson.nosp@m.@cer.nosp@m.n.ch
Revision
337266
Date
2009-05-27 18:18:06 +0200 (Wed, 27 May 2009)

Definition at line 26 of file BptxCTP.h.

Constructor & Destructor Documentation

◆ BptxCTP()

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

Definition at line 15 of file BptxCTP.cxx.

16 : m_cableWord0(word0)
17 {
18 }
const uint32_t m_cableWord0
A data member to contain two 3bit trigger multiplicities.
Definition BptxCTP.h:45

Member Function Documentation

◆ cableWord0()

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

Returns an unsigned integer trigger word containing 3bits.

Definition at line 34 of file BptxCTP.h.

34 {
35 return m_cableWord0;
36 }

◆ dump()

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

dump raw object content to string

Definition at line 20 of file BptxCTP.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::BptxCTP::print ( ) const

print object content in a human readable form to string

Definition at line 30 of file BptxCTP.cxx.

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 }
static const std::string printBits(const int value, const int startbit, const int endbit)
print selected bit range into string
Definition BitOp.cxx:100

Member Data Documentation

◆ m_cableWord0

const uint32_t LVL1::BptxCTP::m_cableWord0
private

A data member to contain two 3bit trigger multiplicities.

Definition at line 45 of file BptxCTP.h.


The documentation for this class was generated from the following files: