Main Page
Namespaces
Classes
Package Documentation
EventFilter
CSCRawToDigi
src
CSCALCTHeader2007.cc
Go to the documentation of this file.
1
#include "
EventFilter/CSCRawToDigi/interface/CSCALCTHeader2007.h
"
2
#include "
EventFilter/CSCRawToDigi/interface/CSCDMBHeader.h
"
3
4
CSCALCT::CSCALCT
() {
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>
20
CSCALCTHeader2007::CSCALCTHeader2007
()
21
{
22
bzero(
this
,
sizeInWords
()*2);
23
flag1 = 0xDB0A;
24
reserved1 = reserved2 = reserved3 = 0xD;
25
rawBins = 16;
26
lctBins = 8;
27
}
28
29
CSCALCTHeader2007::CSCALCTHeader2007
(
int
chamberType) {
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
42
void
CSCALCTHeader2007::setEventInformation
(
const
CSCDMBHeader
& dmb)
43
{
44
l1aCounter = dmb.
l1a24
() & 0xFFF;
45
bxnCount = dmb.
bxn12
();
46
}
47
CSCALCT::CSCALCT
CSCALCT()
Definition:
CSCALCTHeader2007.cc:4
CSCDMBHeader::l1a24
unsigned l1a24() const
Definition:
CSCDMBHeader.h:50
CSCALCTDigi
Definition:
CSCALCTDigi.h:15
CSCALCT::sizeInWords
static short unsigned int sizeInWords()
Definition:
CSCALCTHeader2007.h:20
CSCDMBHeader.h
CSCALCT::valid
unsigned valid
Definition:
CSCALCTHeader2007.h:22
CSCALCT::pattern
unsigned pattern
Definition:
CSCALCTHeader2007.h:25
CSCALCTHeader2007::setEventInformation
void setEventInformation(const CSCDMBHeader &)
Definition:
CSCALCTHeader2007.cc:42
CSCDMBHeader::bxn12
unsigned bxn12() const
Definition:
CSCDMBHeader.h:48
CSCALCT::reserved
unsigned reserved
Definition:
CSCALCTHeader2007.h:27
CSCALCT::accel
unsigned accel
Definition:
CSCALCTHeader2007.h:24
CSCALCT::quality
unsigned quality
Definition:
CSCALCTHeader2007.h:23
CSCALCTHeader2007.h
CSCALCTHeader2007::CSCALCTHeader2007
CSCALCTHeader2007()
Definition:
CSCALCTHeader2007.cc:20
CSCALCT::keyWire
unsigned keyWire
Definition:
CSCALCTHeader2007.h:26
CSCDMBHeader
Definition:
CSCDMBHeader.h:15
Generated for CMSSW Reference Manual by
1.8.11