CMS 3D CMS Logo

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

#include <CSCALCTTrailer.h>

Public Member Functions

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

Public Attributes

unsigned crc0:11
 
unsigned crc1:11
 
unsigned d_0:4
 
unsigned d_1:4
 
unsigned d_3:4
 
unsigned e0dLine:16
 
unsigned frameCount:11
 
unsigned reserved_3:1
 
unsigned zero_0:1
 
unsigned zero_1:1
 

Detailed Description

documented in flags http://www.phys.ufl.edu/~madorsky/alctv/alct2000_spec.PDF

Definition at line 15 of file CSCALCTTrailer.h.

Constructor & Destructor Documentation

CSCALCTTrailer2006::CSCALCTTrailer2006 ( )

size of the trailer

Definition at line 20 of file CSCALCTTrailer.cc.

References d_0, d_1, d_3, e0dLine, reserved_3, sizeInWords(), zero_0, and zero_1.

20  {
21  bzero(this, sizeInWords()*2);
22  e0dLine = 0xDE0D;
23  d_0=0xD;
24  d_1=0xD;
25  zero_0 = 0;
26  zero_1 = 0;
27  d_3 = 0xD;
28  reserved_3 = 1;
29 }
short unsigned int sizeInWords() const

Member Function Documentation

void CSCALCTTrailer2006::setCRC ( unsigned int  crc)
inline

Definition at line 18 of file CSCALCTTrailer.h.

References crc0, and crc1.

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

Definition at line 17 of file CSCALCTTrailer.h.

References frameCount, and findQualityFiles::size.

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

size of ALCT Header

Definition at line 19 of file CSCALCTTrailer.h.

Referenced by CSCALCTTrailer2006(), and CSCALCTTrailer2007::CSCALCTTrailer2007().

19  {
20  return 4;
21  }

Member Data Documentation

unsigned CSCALCTTrailer2006::crc0

Definition at line 22 of file CSCALCTTrailer.h.

Referenced by setCRC(), and CSCALCTTrailer2007::setCRC().

unsigned CSCALCTTrailer2006::crc1

Definition at line 23 of file CSCALCTTrailer.h.

Referenced by setCRC(), and CSCALCTTrailer2007::setCRC().

unsigned CSCALCTTrailer2006::d_0

Definition at line 22 of file CSCALCTTrailer.h.

Referenced by CSCALCTTrailer2006().

unsigned CSCALCTTrailer2006::d_1

Definition at line 23 of file CSCALCTTrailer.h.

Referenced by CSCALCTTrailer2006().

unsigned CSCALCTTrailer2006::d_3

Definition at line 25 of file CSCALCTTrailer.h.

Referenced by CSCALCTTrailer2006().

unsigned CSCALCTTrailer2006::e0dLine

Definition at line 24 of file CSCALCTTrailer.h.

Referenced by CSCALCTTrailer2006(), and CSCALCTTrailer2007::CSCALCTTrailer2007().

unsigned CSCALCTTrailer2006::frameCount

Definition at line 25 of file CSCALCTTrailer.h.

Referenced by setSize(), and CSCALCTTrailer2007::setSize().

unsigned CSCALCTTrailer2006::reserved_3

Definition at line 25 of file CSCALCTTrailer.h.

Referenced by CSCALCTTrailer2006(), and CSCALCTTrailer2007::CSCALCTTrailer2007().

unsigned CSCALCTTrailer2006::zero_0

Definition at line 22 of file CSCALCTTrailer.h.

Referenced by CSCALCTTrailer2006().

unsigned CSCALCTTrailer2006::zero_1

Definition at line 23 of file CSCALCTTrailer.h.

Referenced by CSCALCTTrailer2006().