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
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>
17
CSCALCTHeader2007::CSCALCTHeader2007
() {
18
bzero(
this
,
sizeInWords
() * 2);
19
flag1
= 0xDB0A;
20
reserved1
=
reserved2
=
reserved3
= 0xD;
21
rawBins
= 16;
22
lctBins
= 8;
23
}
24
25
CSCALCTHeader2007::CSCALCTHeader2007
(
int
chamberType) {
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
38
void
CSCALCTHeader2007::setEventInformation
(
const
CSCDMBHeader
& dmb) {
39
l1aCounter
= dmb.
l1a24
() & 0xFFF;
40
bxnCount
= dmb.
bxn12
();
41
}
CSCALCTHeader2007::flag1
unsigned flag1
Definition:
CSCALCTHeader2007.h:45
CSCALCTHeader2007::rawBins
unsigned rawBins
Definition:
CSCALCTHeader2007.h:76
CSCDMBHeader::l1a24
unsigned l1a24() const
Definition:
CSCDMBHeader.h:40
validateGeometry_cfg.valid
valid
Definition:
validateGeometry_cfg.py:21
CSCALCTHeader2007::setEventInformation
void setEventInformation(const CSCDMBHeader &)
Definition:
CSCALCTHeader2007.cc:38
CSCDMBHeader.h
CSCDMBHeader::bxn12
unsigned bxn12() const
Definition:
CSCDMBHeader.h:38
CSCALCTHeader2007::bxnCount
unsigned bxnCount
Definition:
CSCALCTHeader2007.h:56
CSCALCTHeader2007::reserved2
unsigned reserved2
Definition:
CSCALCTHeader2007.h:51
CSCALCTHeader2007::CSCALCTHeader2007
CSCALCTHeader2007()
Definition:
CSCALCTHeader2007.cc:17
topSingleLeptonDQM_PU_cfi.pattern
pattern
Definition:
topSingleLeptonDQM_PU_cfi.py:39
CSCALCTHeader2007::lctBins
unsigned lctBins
Definition:
CSCALCTHeader2007.h:77
CSCALCTHeader2007.h
CSCDMBHeader
Definition:
CSCDMBHeader.h:15
CSCALCTHeader2007::l1aCounter
unsigned l1aCounter
Definition:
CSCALCTHeader2007.h:50
CSCALCTHeader2007::boardType
unsigned boardType
Definition:
CSCALCTHeader2007.h:65
qcdUeDQM_cfi.quality
quality
Definition:
qcdUeDQM_cfi.py:31
CSCALCT::CSCALCT
CSCALCT()
Definition:
CSCALCTHeader2007.cc:4
CSCALCTHeader2007::reserved3
unsigned reserved3
Definition:
CSCALCTHeader2007.h:54
CSCALCTHeader2007::reserved1
unsigned reserved1
Definition:
CSCALCTHeader2007.h:48
CSCALCTDigi
Definition:
CSCALCTDigi.h:16
CSCALCTHeader2007::sizeInWords
short unsigned int sizeInWords() const
for packing
Definition:
CSCALCTHeader2007.h:41
Generated for CMSSW Reference Manual by
1.8.16