CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
CSCALCTHeader2007.cc
Go to the documentation of this file.
3 
5  bzero(this, 2);
6 }
7 
8 CSCALCT::CSCALCT(const CSCALCTDigi& alctDigi)
9  : valid(alctDigi.isValid()),
10  quality(alctDigi.getQuality()),
11  accel(alctDigi.getAccelerator()),
12  pattern(alctDigi.getCollisionB()),
13  keyWire(alctDigi.getKeyWG()),
14  reserved(0) {}
15 
16 #include <iostream>
18  bzero(this, sizeInWords() * 2);
19  flag1 = 0xDB0A;
20  reserved1 = reserved2 = reserved3 = 0xD;
21  rawBins = 16;
22  lctBins = 8;
23 }
24 
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 }
37 
39  l1aCounter = dmb.l1a24() & 0xFFF;
40  bxnCount = dmb.bxn12();
41 }
unsigned l1a24() const
Definition: CSCDMBHeader.h:40
const bool isValid(const Frame &aFrame, const FrameQuality &aQuality, const uint16_t aExpectedPos)
string quality
void setEventInformation(const CSCDMBHeader &)
unsigned bxn12() const
Definition: CSCDMBHeader.h:38
short unsigned int sizeInWords() const
for packing