CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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  bxnL1A = dmb.l1a();
45  //cscID = dmb.dmbID();
46  bxnCount = dmb.bxn();
47 }
48 
unsigned l1a() const
Definition: CSCDMBHeader.cc:74
void setEventInformation(const CSCDMBHeader &)
unsigned bxn() const
Definition: CSCDMBHeader.cc:61
unsigned bxnL1A
=0xDB0A
short unsigned int sizeInWords() const
for packing