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 36 of file CSCALCTHeader2007.h.

Constructor & Destructor Documentation

CSCALCTHeader2007::CSCALCTHeader2007 ( )

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

Definition at line 20 of file CSCALCTHeader2007.cc.

References CSCALCT::sizeInWords().

21 {
22  bzero(this, sizeInWords()*2);
23  flag1 = 0xDB0A;
24  reserved1 = reserved2 = reserved3 = 0xD;
25  rawBins = 16;
26  lctBins = 8;
27 }
short unsigned int sizeInWords() const
for packing
CSCALCTHeader2007::CSCALCTHeader2007 ( int  chamberType)
explicit

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

Definition at line 29 of file CSCALCTHeader2007.cc.

References CSCALCT::sizeInWords().

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

Member Function Documentation

void CSCALCTHeader2007::setEventInformation ( const CSCDMBHeader dmb)

Definition at line 42 of file CSCALCTHeader2007.cc.

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

Referenced by CSCALCTHeader::setEventInformation().

43 {
44  l1aCounter = dmb.l1a24() & 0xFFF;
45  bxnCount = dmb.bxn12();
46 }
unsigned l1a24() const
Definition: CSCDMBHeader.h:50
unsigned bxn12() const
Definition: CSCDMBHeader.h:48
void CSCALCTHeader2007::setFromBuffer ( unsigned short const *  buf)
inline

Definition at line 40 of file CSCALCTHeader2007.h.

References CSCALCT::sizeInWords().

Referenced by CSCALCTHeader::CSCALCTHeader().

40  {
41  memcpy(this, buf, sizeInWords()*2);
42  }
short unsigned int sizeInWords() const
for packing
short unsigned int CSCALCTHeader2007::sizeInWords ( ) const
inline

for packing

size of ALCT2007 Header

Definition at line 46 of file CSCALCTHeader2007.h.

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

46  {
47  return 8;
48  }

Member Data Documentation

unsigned CSCALCTHeader2007::backwardForward

Definition at line 71 of file CSCALCTHeader2007.h.

unsigned CSCALCTHeader2007::boardType

Definition at line 70 of file CSCALCTHeader2007.h.

Referenced by CSCALCTHeader::CSCALCTHeader(), and CSCAnodeData2007::init().

unsigned CSCALCTHeader2007::bxnBeforeReset

Definition at line 67 of file CSCALCTHeader2007.h.

unsigned CSCALCTHeader2007::bxnCount

Definition at line 61 of file CSCALCTHeader2007.h.

Referenced by CSCALCTHeader::BXNCount(), and CSCALCTHeader::setBXNCount().

unsigned CSCALCTHeader2007::bxnL1A

=0xDB0A

Definition at line 52 of file CSCALCTHeader2007.h.

unsigned CSCALCTHeader2007::configPresent

Definition at line 64 of file CSCALCTHeader2007.h.

Referenced by CSCALCTHeader::CSCALCTHeader().

unsigned CSCALCTHeader2007::firmwareVersion

Definition at line 83 of file CSCALCTHeader2007.h.

unsigned CSCALCTHeader2007::flag0

Definition at line 79 of file CSCALCTHeader2007.h.

unsigned CSCALCTHeader2007::flag1

Definition at line 50 of file CSCALCTHeader2007.h.

Referenced by CSCALCTHeader::check().

unsigned CSCALCTHeader2007::flag2

Definition at line 68 of file CSCALCTHeader2007.h.

unsigned CSCALCTHeader2007::flag3

Definition at line 65 of file CSCALCTHeader2007.h.

unsigned CSCALCTHeader2007::flag4

Definition at line 84 of file CSCALCTHeader2007.h.

unsigned CSCALCTHeader2007::l1aCounter

Definition at line 55 of file CSCALCTHeader2007.h.

Referenced by CSCALCTHeader::L1Acc(), and CSCALCTHeader::setL1Acc().

unsigned CSCALCTHeader2007::latencyClocks

Definition at line 75 of file CSCALCTHeader2007.h.

unsigned CSCALCTHeader2007::lctBins

Definition at line 82 of file CSCALCTHeader2007.h.

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

unsigned CSCALCTHeader2007::lctOverflow

Definition at line 63 of file CSCALCTHeader2007.h.

unsigned CSCALCTHeader2007::mirrored

Definition at line 73 of file CSCALCTHeader2007.h.

unsigned CSCALCTHeader2007::negativePositive

Definition at line 72 of file CSCALCTHeader2007.h.

unsigned CSCALCTHeader2007::patternB

Definition at line 76 of file CSCALCTHeader2007.h.

unsigned CSCALCTHeader2007::qualityCancell

Definition at line 74 of file CSCALCTHeader2007.h.

unsigned CSCALCTHeader2007::rawBins

Definition at line 81 of file CSCALCTHeader2007.h.

Referenced by CSCAnodeData2007::init(), and CSCALCTHeader::NTBins().

unsigned CSCALCTHeader2007::rawOverflow

Definition at line 62 of file CSCALCTHeader2007.h.

Referenced by CSCAnodeData2007::init().

unsigned CSCALCTHeader2007::readoutCounter

Definition at line 58 of file CSCALCTHeader2007.h.

unsigned CSCALCTHeader2007::reserved0

Definition at line 78 of file CSCALCTHeader2007.h.

unsigned CSCALCTHeader2007::reserved1

Definition at line 53 of file CSCALCTHeader2007.h.

unsigned CSCALCTHeader2007::reserved2

Definition at line 56 of file CSCALCTHeader2007.h.

unsigned CSCALCTHeader2007::reserved3

Definition at line 59 of file CSCALCTHeader2007.h.

unsigned CSCALCTHeader2007::widePattern

Definition at line 77 of file CSCALCTHeader2007.h.