CMS 3D CMS Logo

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

#include <CSCALCTHeader2007.h>

Public Member Functions

 CSCALCTHeader2007 ()
 
 CSCALCTHeader2007 (int chamberType)
 
void setEventInformation (const CSCDMBHeader &)
 
void setFromBuffer (unsigned short const *buf)
 
short unsigned int sizeInWords () const
 for packing More...
 

Public Attributes

unsigned backwardForward: 1
 
unsigned boardType: 3
 
unsigned bxnBeforeReset: 12
 
unsigned bxnCount: 12
 
unsigned bxnL1A: 12
 =0xDB0A More...
 
unsigned configPresent: 1
 
unsigned firmwareVersion: 6
 
unsigned flag0: 4
 
unsigned flag1: 16
 
unsigned flag2: 4
 
unsigned flag3: 1
 
unsigned flag4: 1
 
unsigned l1aCounter: 12
 
unsigned latencyClocks: 1
 
unsigned lctBins: 4
 
unsigned lctOverflow: 1
 
unsigned mirrored: 1
 
unsigned negativePositive: 1
 
unsigned patternB: 1
 
unsigned qualityCancell: 1
 
unsigned rawBins: 5
 
unsigned rawOverflow: 1
 
unsigned readoutCounter: 12
 
unsigned reserved0: 2
 
unsigned reserved1: 4
 
unsigned reserved2: 4
 
unsigned reserved3: 4
 
unsigned widePattern: 1
 

Detailed Description

Definition at line 33 of file CSCALCTHeader2007.h.

Constructor & Destructor Documentation

◆ CSCALCTHeader2007() [1/2]

CSCALCTHeader2007::CSCALCTHeader2007 ( )

size of 2007 header w/o variable parts = 16 bytes

Definition at line 17 of file CSCALCTHeader2007.cc.

17  {
18  bzero(this, sizeInWords() * 2);
19  flag1 = 0xDB0A;
20  reserved1 = reserved2 = reserved3 = 0xD;
21  rawBins = 16;
22  lctBins = 8;
23 }

References flag1, lctBins, rawBins, reserved1, reserved2, reserved3, and sizeInWords().

◆ CSCALCTHeader2007() [2/2]

CSCALCTHeader2007::CSCALCTHeader2007 ( int  chamberType)
explicit

size of 2007 header w/o variable parts = 16 bytes

Definition at line 25 of file CSCALCTHeader2007.cc.

25  {
26  bzero(this, sizeInWords() * 2);
27  // things that depend on chamber type
28  int boardTypes[11] = {0, 2, 2, 3, 1, 6, 3, 5, 3, 5, 3};
29  flag1 = 0xDB0A;
30  reserved1 = reserved2 = reserved3 = 0xD;
31  boardType = boardTypes[chamberType];
32  //FIXME how do BXes work? Dump other raw data
33  // shows rawBins=16lctBins=8 or rawbins=0, lctBins=1
34  rawBins = 16;
35  lctBins = 8;
36 }

References boardType, flag1, lctBins, rawBins, reserved1, reserved2, reserved3, and sizeInWords().

Member Function Documentation

◆ setEventInformation()

void CSCALCTHeader2007::setEventInformation ( const CSCDMBHeader dmb)

Definition at line 38 of file CSCALCTHeader2007.cc.

38  {
39  l1aCounter = dmb.l1a24() & 0xFFF;
40  bxnCount = dmb.bxn12();
41 }

References CSCDMBHeader::bxn12(), bxnCount, CSCDMBHeader::l1a24(), and l1aCounter.

Referenced by CSCALCTHeader::setEventInformation().

◆ setFromBuffer()

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

Definition at line 37 of file CSCALCTHeader2007.h.

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

References visDQMUpload::buf, and sizeInWords().

Referenced by CSCALCTHeader::CSCALCTHeader().

◆ sizeInWords()

short unsigned int CSCALCTHeader2007::sizeInWords ( ) const
inline

for packing

size of ALCT2007 Header

Definition at line 41 of file CSCALCTHeader2007.h.

41  {
42  return 8;
43  }

Referenced by CSCALCTHeader::CSCALCTHeader(), CSCALCTHeader2007(), CSCALCTHeader::pack(), and setFromBuffer().

Member Data Documentation

◆ backwardForward

unsigned CSCALCTHeader2007::backwardForward

Definition at line 66 of file CSCALCTHeader2007.h.

◆ boardType

unsigned CSCALCTHeader2007::boardType

Definition at line 65 of file CSCALCTHeader2007.h.

Referenced by CSCALCTHeader::CSCALCTHeader(), and CSCALCTHeader2007().

◆ bxnBeforeReset

unsigned CSCALCTHeader2007::bxnBeforeReset

Definition at line 62 of file CSCALCTHeader2007.h.

◆ bxnCount

unsigned CSCALCTHeader2007::bxnCount

◆ bxnL1A

unsigned CSCALCTHeader2007::bxnL1A

=0xDB0A

Definition at line 47 of file CSCALCTHeader2007.h.

◆ configPresent

unsigned CSCALCTHeader2007::configPresent

Definition at line 59 of file CSCALCTHeader2007.h.

Referenced by CSCALCTHeader::CSCALCTHeader().

◆ firmwareVersion

unsigned CSCALCTHeader2007::firmwareVersion

Definition at line 78 of file CSCALCTHeader2007.h.

◆ flag0

unsigned CSCALCTHeader2007::flag0

Definition at line 74 of file CSCALCTHeader2007.h.

◆ flag1

unsigned CSCALCTHeader2007::flag1

Definition at line 45 of file CSCALCTHeader2007.h.

Referenced by CSCALCTHeader::check(), and CSCALCTHeader2007().

◆ flag2

unsigned CSCALCTHeader2007::flag2

Definition at line 63 of file CSCALCTHeader2007.h.

◆ flag3

unsigned CSCALCTHeader2007::flag3

Definition at line 60 of file CSCALCTHeader2007.h.

◆ flag4

unsigned CSCALCTHeader2007::flag4

Definition at line 79 of file CSCALCTHeader2007.h.

◆ l1aCounter

unsigned CSCALCTHeader2007::l1aCounter

◆ latencyClocks

unsigned CSCALCTHeader2007::latencyClocks

Definition at line 70 of file CSCALCTHeader2007.h.

◆ lctBins

unsigned CSCALCTHeader2007::lctBins

◆ lctOverflow

unsigned CSCALCTHeader2007::lctOverflow

Definition at line 58 of file CSCALCTHeader2007.h.

◆ mirrored

unsigned CSCALCTHeader2007::mirrored

Definition at line 68 of file CSCALCTHeader2007.h.

◆ negativePositive

unsigned CSCALCTHeader2007::negativePositive

Definition at line 67 of file CSCALCTHeader2007.h.

◆ patternB

unsigned CSCALCTHeader2007::patternB

Definition at line 71 of file CSCALCTHeader2007.h.

◆ qualityCancell

unsigned CSCALCTHeader2007::qualityCancell

Definition at line 69 of file CSCALCTHeader2007.h.

◆ rawBins

unsigned CSCALCTHeader2007::rawBins

Definition at line 76 of file CSCALCTHeader2007.h.

Referenced by CSCALCTHeader2007(), and CSCALCTHeader::NTBins().

◆ rawOverflow

unsigned CSCALCTHeader2007::rawOverflow

Definition at line 57 of file CSCALCTHeader2007.h.

◆ readoutCounter

unsigned CSCALCTHeader2007::readoutCounter

Definition at line 53 of file CSCALCTHeader2007.h.

◆ reserved0

unsigned CSCALCTHeader2007::reserved0

Definition at line 73 of file CSCALCTHeader2007.h.

◆ reserved1

unsigned CSCALCTHeader2007::reserved1

Definition at line 48 of file CSCALCTHeader2007.h.

Referenced by CSCALCTHeader2007().

◆ reserved2

unsigned CSCALCTHeader2007::reserved2

Definition at line 51 of file CSCALCTHeader2007.h.

Referenced by CSCALCTHeader2007().

◆ reserved3

unsigned CSCALCTHeader2007::reserved3

Definition at line 54 of file CSCALCTHeader2007.h.

Referenced by CSCALCTHeader2007().

◆ widePattern

unsigned CSCALCTHeader2007::widePattern

Definition at line 72 of file CSCALCTHeader2007.h.

CSCALCTHeader2007::flag1
unsigned flag1
Definition: CSCALCTHeader2007.h:45
CSCALCTHeader2007::rawBins
unsigned rawBins
Definition: CSCALCTHeader2007.h:76
CSCDMBHeader::l1a24
unsigned l1a24() const
Definition: CSCDMBHeader.h:40
CSCDMBHeader::bxn12
unsigned bxn12() const
Definition: CSCDMBHeader.h:38
CSCALCTHeader2007::bxnCount
unsigned bxnCount
Definition: CSCALCTHeader2007.h:56
CSCALCTHeader2007::reserved2
unsigned reserved2
Definition: CSCALCTHeader2007.h:51
visDQMUpload.buf
buf
Definition: visDQMUpload.py:160
CSCALCTHeader2007::lctBins
unsigned lctBins
Definition: CSCALCTHeader2007.h:77
CSCALCTHeader2007::l1aCounter
unsigned l1aCounter
Definition: CSCALCTHeader2007.h:50
CSCALCTHeader2007::boardType
unsigned boardType
Definition: CSCALCTHeader2007.h:65
CSCALCTHeader2007::reserved3
unsigned reserved3
Definition: CSCALCTHeader2007.h:54
CSCALCTHeader2007::reserved1
unsigned reserved1
Definition: CSCALCTHeader2007.h:48
CSCALCTHeader2007::sizeInWords
short unsigned int sizeInWords() const
for packing
Definition: CSCALCTHeader2007.h:41