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 setFromBuffer (unsigned short const *buf)
 
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 34 of file CSCALCTTrailer.h.

Constructor & Destructor Documentation

◆ CSCALCTTrailer2007()

CSCALCTTrailer2007::CSCALCTTrailer2007 ( )

size of the trailer

Definition at line 30 of file CSCALCTTrailer.cc.

30  {
31  bzero(this, sizeInWords() * 2);
32  e0dLine = 0xDE0D;
33  reserved_0 = 0xD;
34  reserved_1 = 0xD;
35  reserved_3 = 1;
36  reserved_4 = 0xD;
37 }

References e0dLine, reserved_0, reserved_1, reserved_3, reserved_4, and sizeInWords().

Member Function Documentation

◆ setCRC()

void CSCALCTTrailer2007::setCRC ( unsigned int  crc)
inline

Definition at line 40 of file CSCALCTTrailer.h.

40  {
41  crc0 = crc & 0x7FF;
42  crc1 = (crc >> 11) & 0x7FF;
43  }

References crc0, and crc1.

Referenced by CSCALCTTrailer::setCRC().

◆ setFromBuffer()

void CSCALCTTrailer2007::setFromBuffer ( unsigned short const *  buf)
inline

Definition at line 37 of file CSCALCTTrailer.h.

37 { memcpy(this, buf, sizeInWords() * 2); }

References visDQMUpload::buf, and sizeInWords().

Referenced by CSCALCTTrailer::CSCALCTTrailer().

◆ setSize()

void CSCALCTTrailer2007::setSize ( int  size)
inline

Definition at line 39 of file CSCALCTTrailer.h.

39 { frameCount = size; }

References frameCount, and findQualityFiles::size.

Referenced by CSCALCTTrailer::CSCALCTTrailer().

◆ sizeInWords()

short unsigned int CSCALCTTrailer2007::sizeInWords ( ) const
inline

size of ALCT Header

Definition at line 44 of file CSCALCTTrailer.h.

44  {
45  return 4;
46  }

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

Member Data Documentation

◆ crc0

unsigned CSCALCTTrailer2007::crc0

Definition at line 48 of file CSCALCTTrailer.h.

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

◆ crc1

unsigned CSCALCTTrailer2007::crc1

Definition at line 49 of file CSCALCTTrailer.h.

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

◆ e0dLine

unsigned CSCALCTTrailer2007::e0dLine

Definition at line 47 of file CSCALCTTrailer.h.

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

◆ frameCount

unsigned CSCALCTTrailer2007::frameCount

Definition at line 50 of file CSCALCTTrailer.h.

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

◆ reserved_0

unsigned CSCALCTTrailer2007::reserved_0

Definition at line 48 of file CSCALCTTrailer.h.

Referenced by CSCALCTTrailer2007().

◆ reserved_1

unsigned CSCALCTTrailer2007::reserved_1

Definition at line 49 of file CSCALCTTrailer.h.

Referenced by CSCALCTTrailer2007().

◆ reserved_3

unsigned CSCALCTTrailer2007::reserved_3

Definition at line 50 of file CSCALCTTrailer.h.

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

◆ reserved_4

unsigned CSCALCTTrailer2007::reserved_4

Definition at line 50 of file CSCALCTTrailer.h.

Referenced by CSCALCTTrailer2007().

◆ zero_0

unsigned CSCALCTTrailer2007::zero_0

Definition at line 48 of file CSCALCTTrailer.h.

◆ zero_1

unsigned CSCALCTTrailer2007::zero_1

Definition at line 49 of file CSCALCTTrailer.h.

CSCALCTTrailer2007::reserved_1
unsigned reserved_1
Definition: CSCALCTTrailer.h:49
CSCALCTTrailer2007::reserved_3
unsigned reserved_3
Definition: CSCALCTTrailer.h:50
CSCALCTTrailer2007::reserved_4
unsigned reserved_4
Definition: CSCALCTTrailer.h:50
CSCALCTTrailer2007::crc0
unsigned crc0
Definition: CSCALCTTrailer.h:48
CSCALCTTrailer2007::sizeInWords
short unsigned int sizeInWords() const
Definition: CSCALCTTrailer.h:44
CSCALCTTrailer2007::e0dLine
unsigned e0dLine
Definition: CSCALCTTrailer.h:47
visDQMUpload.buf
buf
Definition: visDQMUpload.py:160
CSCALCTTrailer2007::reserved_0
unsigned reserved_0
Definition: CSCALCTTrailer.h:48
CSCALCTTrailer2007::frameCount
unsigned frameCount
Definition: CSCALCTTrailer.h:50
CSCALCTTrailer2007::crc1
unsigned crc1
Definition: CSCALCTTrailer.h:49
findQualityFiles.size
size
Write out results.
Definition: findQualityFiles.py:443