CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 setFromBuffer (unsigned short const *buf)
 
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 19 of file CSCALCTTrailer.cc.

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

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

Member Function Documentation

void CSCALCTTrailer2006::setCRC ( unsigned int  crc)
inline

Definition at line 21 of file CSCALCTTrailer.h.

References crc0, and crc1.

Referenced by CSCALCTTrailer::setCRC().

21  {
22  crc0 = crc & 0x7FF;
23  crc1 = (crc >> 11) & 0x7FF;
24  }
void CSCALCTTrailer2006::setFromBuffer ( unsigned short const *  buf)
inline

Definition at line 18 of file CSCALCTTrailer.h.

References sizeInWords().

Referenced by CSCALCTTrailer::CSCALCTTrailer().

18 { memcpy(this, buf, sizeInWords() * 2); }
short unsigned int sizeInWords() const
void CSCALCTTrailer2006::setSize ( int  size)
inline

Definition at line 20 of file CSCALCTTrailer.h.

References frameCount, and findQualityFiles::size.

Referenced by CSCALCTTrailer::CSCALCTTrailer().

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

size of ALCT Header

Definition at line 25 of file CSCALCTTrailer.h.

Referenced by CSCALCTTrailer2006(), CSCALCTTrailer::data(), and setFromBuffer().

25  {
26  return 4;
27  }

Member Data Documentation

unsigned CSCALCTTrailer2006::crc0

Definition at line 28 of file CSCALCTTrailer.h.

Referenced by CSCALCTTrailer::getCRC(), and setCRC().

unsigned CSCALCTTrailer2006::crc1

Definition at line 29 of file CSCALCTTrailer.h.

Referenced by CSCALCTTrailer::getCRC(), and setCRC().

unsigned CSCALCTTrailer2006::d_0

Definition at line 28 of file CSCALCTTrailer.h.

Referenced by CSCALCTTrailer2006().

unsigned CSCALCTTrailer2006::d_1

Definition at line 29 of file CSCALCTTrailer.h.

Referenced by CSCALCTTrailer2006().

unsigned CSCALCTTrailer2006::d_3

Definition at line 31 of file CSCALCTTrailer.h.

Referenced by CSCALCTTrailer2006().

unsigned CSCALCTTrailer2006::e0dLine

Definition at line 30 of file CSCALCTTrailer.h.

Referenced by CSCALCTTrailer::check(), and CSCALCTTrailer2006().

unsigned CSCALCTTrailer2006::frameCount

Definition at line 31 of file CSCALCTTrailer.h.

Referenced by setSize(), and CSCALCTTrailer::wordCount().

unsigned CSCALCTTrailer2006::reserved_3

Definition at line 31 of file CSCALCTTrailer.h.

Referenced by CSCALCTTrailer::alctCRCCheck(), and CSCALCTTrailer2006().

unsigned CSCALCTTrailer2006::zero_0

Definition at line 28 of file CSCALCTTrailer.h.

Referenced by CSCALCTTrailer2006().

unsigned CSCALCTTrailer2006::zero_1

Definition at line 29 of file CSCALCTTrailer.h.

Referenced by CSCALCTTrailer2006().