CMS 3D CMS Logo

List of all members | Public Member Functions | Static Public Member Functions | Public Attributes
CSCDCCTrailer Struct Reference

#include <CSCDCCTrailer.h>

Public Member Functions

bool check () const
 
 CSCDCCTrailer ()
 
 CSCDCCTrailer (const CSCDCCStatusDigi &digi)
 
unsigned short * data ()
 
void setFromBuffer (uint16_t const *buf)
 

Static Public Member Functions

static unsigned sizeInWords ()
 

Public Attributes

unsigned CRC: 16
 
unsigned dcc_trail1: 8
 
unsigned ddu_data_status1: 16
 
unsigned ddu_data_status2: 24
 
unsigned dollardollar: 1
 
unsigned EOE_1: 4
 
unsigned Evt_lgth: 24
 
unsigned Evt_stat: 4
 
unsigned fifo_status: 8
 
unsigned readout_time: 8
 
unsigned TTS: 4
 
unsigned Tx: 3
 
unsigned XXXX_1: 4
 
unsigned XXXX_2: 4
 

Detailed Description

documented at http://www.physics.ohio-state.edu/~cms/ddu/ddu2.html

Definition at line 14 of file CSCDCCTrailer.h.

Constructor & Destructor Documentation

◆ CSCDCCTrailer() [1/2]

CSCDCCTrailer::CSCDCCTrailer ( )
inline

Definition at line 15 of file CSCDCCTrailer.h.

References dcc_trail1, EOE_1, sizeInWords(), and XXXX_1.

15  {
16  bzero(this, sizeInWords() * 2);
17  dcc_trail1 = 0xEF;
18  EOE_1 = 0XA;
19  XXXX_1 = 0X0; //@@ Actually a reserved bit. We should not test on it.
20  }
unsigned dcc_trail1
Definition: CSCDCCTrailer.h:32
unsigned XXXX_1
Definition: CSCDCCTrailer.h:43
static unsigned sizeInWords()
Definition: CSCDCCTrailer.h:46
unsigned EOE_1
Definition: CSCDCCTrailer.h:44

◆ CSCDCCTrailer() [2/2]

CSCDCCTrailer::CSCDCCTrailer ( const CSCDCCStatusDigi digi)
inline

Definition at line 22 of file CSCDCCTrailer.h.

References sizeInWords(), and CSCDCCStatusDigi::trailer().

22 { memcpy(this, digi.trailer(), sizeInWords() * 2); }
const uint16_t * trailer() const
static unsigned sizeInWords()
Definition: CSCDCCTrailer.h:46

Member Function Documentation

◆ check()

bool CSCDCCTrailer::check ( ) const
inline

Definition at line 48 of file CSCDCCTrailer.h.

References dcc_trail1, EOE_1, ecalPiZeroTask_cfi::X0, and XXXX_1.

Referenced by CSCDCCEventData::check(), and CSCDCCEventData::unpack_data().

48 { return (dcc_trail1 == 0xEF) && (EOE_1 == 0XA) && (XXXX_1 == 0X0); }
unsigned dcc_trail1
Definition: CSCDCCTrailer.h:32
unsigned XXXX_1
Definition: CSCDCCTrailer.h:43
unsigned EOE_1
Definition: CSCDCCTrailer.h:44

◆ data()

unsigned short* CSCDCCTrailer::data ( )
inline

Definition at line 49 of file CSCDCCTrailer.h.

Referenced by CSCDCCEventData::pack().

49 { return (unsigned short*)this; }

◆ setFromBuffer()

void CSCDCCTrailer::setFromBuffer ( uint16_t const *  buf)
inline

Definition at line 24 of file CSCDCCTrailer.h.

References visDQMUpload::buf, and sizeInWords().

Referenced by CSCDCCEventData::unpack_data().

24 { memcpy(this, buf, sizeInWords() * 2); }
static unsigned sizeInWords()
Definition: CSCDCCTrailer.h:46

◆ sizeInWords()

static unsigned CSCDCCTrailer::sizeInWords ( )
inlinestatic

Definition at line 46 of file CSCDCCTrailer.h.

Referenced by CSCDCCTrailer(), CSCDCCEventData::pack(), and setFromBuffer().

46 { return 8; }

Member Data Documentation

◆ CRC

unsigned CSCDCCTrailer::CRC

Definition at line 41 of file CSCDCCTrailer.h.

◆ dcc_trail1

unsigned CSCDCCTrailer::dcc_trail1

Definition at line 32 of file CSCDCCTrailer.h.

Referenced by check(), and CSCDCCTrailer().

◆ ddu_data_status1

unsigned CSCDCCTrailer::ddu_data_status1

Definition at line 30 of file CSCDCCTrailer.h.

◆ ddu_data_status2

unsigned CSCDCCTrailer::ddu_data_status2

Definition at line 29 of file CSCDCCTrailer.h.

◆ dollardollar

unsigned CSCDCCTrailer::dollardollar

this line defined by CMS CDF http://cmsdoc.cern.ch/cms/TRIDAS/horizontal/

Definition at line 36 of file CSCDCCTrailer.h.

◆ EOE_1

unsigned CSCDCCTrailer::EOE_1

Definition at line 44 of file CSCDCCTrailer.h.

Referenced by check(), and CSCDCCTrailer().

◆ Evt_lgth

unsigned CSCDCCTrailer::Evt_lgth

Definition at line 42 of file CSCDCCTrailer.h.

◆ Evt_stat

unsigned CSCDCCTrailer::Evt_stat

Definition at line 39 of file CSCDCCTrailer.h.

◆ fifo_status

unsigned CSCDCCTrailer::fifo_status

for reference www.physics.ohio-state.edu/%7Ecms/dcc/outdatafmt.html dcc_trail1 should be EF

Definition at line 28 of file CSCDCCTrailer.h.

◆ readout_time

unsigned CSCDCCTrailer::readout_time

Definition at line 31 of file CSCDCCTrailer.h.

◆ TTS

unsigned CSCDCCTrailer::TTS

Definition at line 38 of file CSCDCCTrailer.h.

◆ Tx

unsigned CSCDCCTrailer::Tx

Definition at line 37 of file CSCDCCTrailer.h.

◆ XXXX_1

unsigned CSCDCCTrailer::XXXX_1

Definition at line 43 of file CSCDCCTrailer.h.

Referenced by check(), and CSCDCCTrailer().

◆ XXXX_2

unsigned CSCDCCTrailer::XXXX_2

Definition at line 40 of file CSCDCCTrailer.h.