CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_4_1_8_patch13/src/EventFilter/CSCRawToDigi/src/CSCALCTHeader2007.cc

Go to the documentation of this file.
00001 #include "EventFilter/CSCRawToDigi/interface/CSCALCTHeader2007.h"
00002 #include "EventFilter/CSCRawToDigi/interface/CSCDMBHeader.h"
00003 
00004 CSCALCT::CSCALCT()  {
00005   bzero(this, 2); 
00006 }
00007 
00008 
00009 CSCALCT::CSCALCT(const CSCALCTDigi & alctDigi):
00010     valid(alctDigi.isValid()),
00011     quality(alctDigi.getQuality()),
00012     accel(alctDigi.getAccelerator()),
00013     pattern(alctDigi.getCollisionB()),
00014     keyWire(alctDigi.getKeyWG()),
00015     reserved(0)
00016 {
00017 }
00018 
00019 #include <iostream>
00020 CSCALCTHeader2007::CSCALCTHeader2007()
00021 {
00022   bzero(this,  sizeInWords()*2); 
00023   flag1 = 0xDB0A;
00024   reserved1 = reserved2 = reserved3 = 0xD;
00025   rawBins = 16;
00026   lctBins = 8;
00027 }
00028 
00029 CSCALCTHeader2007::CSCALCTHeader2007(int chamberType)  {
00030   bzero(this,  sizeInWords()*2); 
00031   // things that depend on chamber type
00032   int boardTypes[11] = {0, 2, 2, 3, 1, 6, 3, 5, 3, 5, 3};
00033   flag1 = 0xDB0A;
00034   reserved1 = reserved2 = reserved3 = 0xD;
00035   boardType = boardTypes[chamberType];
00036   //FIXME how do BXes work?  Dump other raw data
00037   // shows rawBins=16lctBins=8 or rawbins=0, lctBins=1
00038   rawBins = 16;
00039   lctBins = 8;
00040 }
00041 
00042 void CSCALCTHeader2007::setEventInformation(const CSCDMBHeader & dmb)
00043 {
00044  bxnL1A = dmb.l1a();
00045  //cscID = dmb.dmbID();
00046  bxnCount = dmb.bxn();
00047 }
00048