CMS 3D CMS Logo

Public Member Functions | Private Attributes

CSCDDUStatusDigi Class Reference

#include <CSCDDUStatusDigi.h>

List of all members.

Public Member Functions

 CSCDDUStatusDigi (const uint16_t *header, const uint16_t *trailer, uint16_t tts)
 Constructor for all variables.
 CSCDDUStatusDigi ()
 Default constructor.
const uint16_t getDDUTTS () const
const uint16_t * header () const
 Data Accessors.
void print () const
 Print the content of CSCDDUStatusDigi.
const uint16_t * trailer () const

Private Attributes

uint16_t header_ [12]
uint16_t trailer_ [12]
uint16_t tts_

Detailed Description

Digi for CSC DDU info available in DDU

Date:
2010/06/11 15:44:22
Revision:
1.7

Digi for CSC DDU info available in DDU

Date:
2010/06/30 08:38:42
Revision:
1.7

Definition at line 17 of file CSCDDUStatusDigi.h.


Constructor & Destructor Documentation

CSCDDUStatusDigi::CSCDDUStatusDigi ( const uint16_t *  header,
const uint16_t *  trailer,
uint16_t  tts 
)

Constructor for all variables.

Definition at line 14 of file CSCDDUStatusDigi.cc.

References header_, trailer_, and tts_.

{
  uint16_t headerSizeInBytes =24;
  uint16_t trailerSizeInBytes =24;
  memcpy(header_, header, headerSizeInBytes);
  memcpy(trailer_, trailer, trailerSizeInBytes);
  tts_=tts;
}
CSCDDUStatusDigi::CSCDDUStatusDigi ( ) [inline]

Default constructor.

Definition at line 25 of file CSCDDUStatusDigi.h.

{}

Member Function Documentation

const uint16_t CSCDDUStatusDigi::getDDUTTS ( ) const

Definition at line 23 of file CSCDDUStatusDigi.cc.

References tts_.

Referenced by print().

                                                 {
         uint16_t ttsBits = (tts_ & 0x00F0) >> 4;
         return ttsBits;
}
const uint16_t* CSCDDUStatusDigi::header ( ) const [inline]

Data Accessors.

Definition at line 28 of file CSCDDUStatusDigi.h.

References header_.

Referenced by CSCDDUHeader::CSCDDUHeader().

{ return header_;}
void CSCDDUStatusDigi::print ( void  ) const

Print the content of CSCDDUStatusDigi.

Definition at line 28 of file CSCDDUStatusDigi.cc.

References gather_cfg::cout, getDDUTTS(), header_, and trailer_.

                                   {
     std::cout << " Header: " << std::hex << *header_ <<
     " Trailer: " << std::hex << *trailer_ << " TTS: " << getDDUTTS() << std::dec << std::endl;
}
const uint16_t* CSCDDUStatusDigi::trailer ( ) const [inline]

Definition at line 29 of file CSCDDUStatusDigi.h.

References trailer_.

Referenced by CSCDDUTrailer::CSCDDUTrailer().

{return trailer_;}

Member Data Documentation

uint16_t CSCDDUStatusDigi::header_[12] [private]

Definition at line 37 of file CSCDDUStatusDigi.h.

Referenced by CSCDDUStatusDigi(), header(), and print().

uint16_t CSCDDUStatusDigi::trailer_[12] [private]

Definition at line 38 of file CSCDDUStatusDigi.h.

Referenced by CSCDDUStatusDigi(), print(), and trailer().

uint16_t CSCDDUStatusDigi::tts_ [private]

Definition at line 39 of file CSCDDUStatusDigi.h.

Referenced by CSCDDUStatusDigi(), and getDDUTTS().