CMS 3D CMS Logo

Public Member Functions | Public Attributes

CSCALCTHeader2007 Struct Reference

#include <CSCALCTHeader2007.h>

List of all members.

Public Member Functions

 CSCALCTHeader2007 ()
 CSCALCTHeader2007 (int chamberType)
void setEventInformation (const CSCDMBHeader &)
short unsigned int sizeInWords () const
 for packing

Public Attributes

unsigned backwardForward: 1
unsigned boardType: 3
unsigned bxnBeforeReset: 12
unsigned bxnCount: 12
unsigned bxnL1A: 12
 =0xDB0A
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 31 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 flag1, lctBins, rawBins, reserved1, reserved2, reserved3, and sizeInWords().

{
  bzero(this,  sizeInWords()*2); 
  flag1 = 0xDB0A;
  reserved1 = reserved2 = reserved3 = 0xD;
  rawBins = 16;
  lctBins = 8;
}
CSCALCTHeader2007::CSCALCTHeader2007 ( int  chamberType) [explicit]

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

Definition at line 29 of file CSCALCTHeader2007.cc.

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

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

Member Function Documentation

void CSCALCTHeader2007::setEventInformation ( const CSCDMBHeader dmb)

Definition at line 42 of file CSCALCTHeader2007.cc.

References CSCDMBHeader::bxn(), bxnCount, bxnL1A, and CSCDMBHeader::l1a().

{
 bxnL1A = dmb.l1a();
 //cscID = dmb.dmbID();
 bxnCount = dmb.bxn();
}
short unsigned int CSCALCTHeader2007::sizeInWords ( ) const [inline]

for packing

size of ALCT2007 Header

Definition at line 37 of file CSCALCTHeader2007.h.

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

                                         { 
    return 8;
  }

Member Data Documentation

Definition at line 62 of file CSCALCTHeader2007.h.

Definition at line 58 of file CSCALCTHeader2007.h.

Definition at line 52 of file CSCALCTHeader2007.h.

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

=0xDB0A

Definition at line 43 of file CSCALCTHeader2007.h.

Referenced by setEventInformation().

Definition at line 55 of file CSCALCTHeader2007.h.

Referenced by CSCALCTHeader::CSCALCTHeader().

Definition at line 74 of file CSCALCTHeader2007.h.

Definition at line 70 of file CSCALCTHeader2007.h.

Definition at line 41 of file CSCALCTHeader2007.h.

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

Definition at line 59 of file CSCALCTHeader2007.h.

Definition at line 56 of file CSCALCTHeader2007.h.

Definition at line 75 of file CSCALCTHeader2007.h.

Definition at line 46 of file CSCALCTHeader2007.h.

Referenced by CSCALCTHeader::L1Acc().

Definition at line 66 of file CSCALCTHeader2007.h.

Definition at line 54 of file CSCALCTHeader2007.h.

Definition at line 64 of file CSCALCTHeader2007.h.

Definition at line 63 of file CSCALCTHeader2007.h.

Definition at line 67 of file CSCALCTHeader2007.h.

Definition at line 65 of file CSCALCTHeader2007.h.

Definition at line 53 of file CSCALCTHeader2007.h.

Referenced by CSCAnodeData2007::init().

Definition at line 49 of file CSCALCTHeader2007.h.

Definition at line 69 of file CSCALCTHeader2007.h.

Definition at line 44 of file CSCALCTHeader2007.h.

Referenced by CSCALCTHeader2007().

Definition at line 47 of file CSCALCTHeader2007.h.

Referenced by CSCALCTHeader2007().

Definition at line 50 of file CSCALCTHeader2007.h.

Referenced by CSCALCTHeader2007().

Definition at line 68 of file CSCALCTHeader2007.h.