CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes
CSCALCTTrailer2007 Struct Reference

#include <CSCALCTTrailer.h>

Public Member Functions

 CSCALCTTrailer2007 ()
 
void setCRC (unsigned int crc)
 
void setSize (int size)
 
short unsigned int sizeInWords () const
 

Public Attributes

unsigned crc0:11
 
unsigned crc1:11
 
unsigned e0dLine:16
 
unsigned frameCount:11
 
unsigned reserved_0:4
 
unsigned reserved_1:4
 
unsigned reserved_3:1
 
unsigned reserved_4:4
 
unsigned zero_0:1
 
unsigned zero_1:1
 

Detailed Description

Definition at line 28 of file CSCALCTTrailer.h.

Constructor & Destructor Documentation

CSCALCTTrailer2007::CSCALCTTrailer2007 ( )

size of the trailer

Definition at line 32 of file CSCALCTTrailer.cc.

References CSCALCTTrailer2006::e0dLine, CSCALCTTrailer2006::reserved_3, and CSCALCTTrailer2006::sizeInWords().

32  {
33  bzero(this, sizeInWords()*2);
34  e0dLine = 0xDE0D;
35  reserved_0 = 0xD;
36  reserved_1 = 0xD;
37  reserved_3 = 1;
38  reserved_4 = 0xD;
39 }
short unsigned int sizeInWords() const

Member Function Documentation

void CSCALCTTrailer2007::setCRC ( unsigned int  crc)
inline

Definition at line 31 of file CSCALCTTrailer.h.

References CSCALCTTrailer2006::crc0, and CSCALCTTrailer2006::crc1.

31 {crc0 = crc&0x7FF; crc1 = (crc >> 11) & 0x7FF;}
void CSCALCTTrailer2007::setSize ( int  size)
inline

Definition at line 30 of file CSCALCTTrailer.h.

References CSCALCTTrailer2006::frameCount, and findQualityFiles::size.

30 {frameCount = size;}
size
Write out results.
short unsigned int CSCALCTTrailer2007::sizeInWords ( ) const
inline

size of ALCT Header

Definition at line 32 of file CSCALCTTrailer.h.

32  {
33  return 4;
34  }

Member Data Documentation

unsigned CSCALCTTrailer2007::crc0

Definition at line 36 of file CSCALCTTrailer.h.

unsigned CSCALCTTrailer2007::crc1

Definition at line 37 of file CSCALCTTrailer.h.

unsigned CSCALCTTrailer2007::e0dLine

Definition at line 35 of file CSCALCTTrailer.h.

unsigned CSCALCTTrailer2007::frameCount

Definition at line 38 of file CSCALCTTrailer.h.

unsigned CSCALCTTrailer2007::reserved_0

Definition at line 36 of file CSCALCTTrailer.h.

unsigned CSCALCTTrailer2007::reserved_1

Definition at line 37 of file CSCALCTTrailer.h.

unsigned CSCALCTTrailer2007::reserved_3

Definition at line 38 of file CSCALCTTrailer.h.

unsigned CSCALCTTrailer2007::reserved_4

Definition at line 38 of file CSCALCTTrailer.h.

unsigned CSCALCTTrailer2007::zero_0

Definition at line 36 of file CSCALCTTrailer.h.

unsigned CSCALCTTrailer2007::zero_1

Definition at line 37 of file CSCALCTTrailer.h.