CMS 3D CMS Logo

CSCALCTHeader2007.cc
Go to the documentation of this file.
3 
5  bzero(this, 2);
6 }
7 
8 
9 CSCALCT::CSCALCT(const CSCALCTDigi & alctDigi):
10  valid(alctDigi.isValid()),
11  quality(alctDigi.getQuality()),
12  accel(alctDigi.getAccelerator()),
13  pattern(alctDigi.getCollisionB()),
14  keyWire(alctDigi.getKeyWG()),
15  reserved(0)
16 {
17 }
18 
19 #include <iostream>
21 {
22  bzero(this, sizeInWords()*2);
23  flag1 = 0xDB0A;
24  reserved1 = reserved2 = reserved3 = 0xD;
25  rawBins = 16;
26  lctBins = 8;
27 }
28 
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 }
41 
43 {
44  l1aCounter = dmb.l1a24() & 0xFFF;
45  bxnCount = dmb.bxn12();
46 }
47 
unsigned l1a24() const
Definition: CSCDMBHeader.h:51
static short unsigned int sizeInWords()
unsigned valid
unsigned pattern
void setEventInformation(const CSCDMBHeader &)
unsigned bxn12() const
Definition: CSCDMBHeader.h:49
unsigned reserved
unsigned accel
unsigned quality
unsigned keyWire