src
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
}
CSCALCT::CSCALCT
CSCALCT()
Definition:
CSCALCTHeader2007.cc:4
sistrip::SpyUtilities::isValid
const bool isValid(const Frame &aFrame, const FrameQuality &aQuality, const uint16_t aExpectedPos)
Definition:
SiStripSpyUtilities.cc:124
CSCALCTDigi
Definition:
CSCALCTDigi.h:17
CSCALCTHeader2007::boardType
unsigned boardType
Definition:
CSCALCTHeader2007.h:65
CSCALCTHeader2007::lctBins
unsigned lctBins
Definition:
CSCALCTHeader2007.h:77
CSCALCTHeader2007::reserved1
unsigned reserved1
Definition:
CSCALCTHeader2007.h:48
CSCALCTHeader2007::flag1
unsigned flag1
Definition:
CSCALCTHeader2007.h:45
topSingleLeptonDQM_PU_cfi.pattern
pattern
Definition:
topSingleLeptonDQM_PU_cfi.py:39
CSCALCTHeader2007::reserved2
unsigned reserved2
Definition:
CSCALCTHeader2007.h:51
validateGeometry_cfg.valid
valid
Definition:
validateGeometry_cfg.py:21
CSCDMBHeader.h
CSCALCTHeader2007::l1aCounter
unsigned l1aCounter
Definition:
CSCALCTHeader2007.h:50
CSCALCTHeader2007::setEventInformation
void setEventInformation(const CSCDMBHeader &)
Definition:
CSCALCTHeader2007.cc:38
CSCALCTHeader2007::reserved3
unsigned reserved3
Definition:
CSCALCTHeader2007.h:54
CSCALCTHeader2007::bxnCount
unsigned bxnCount
Definition:
CSCALCTHeader2007.h:56
CSCALCTHeader2007::rawBins
unsigned rawBins
Definition:
CSCALCTHeader2007.h:76
CSCALCTHeader2007.h
CSCDMBHeader::l1a24
unsigned l1a24() const
Definition:
CSCDMBHeader.h:40
CSCALCTHeader2007::sizeInWords
short unsigned int sizeInWords() const
for packing
Definition:
CSCALCTHeader2007.h:41
quality
string quality
Definition:
beamSpotDipStandalone.cc:53
CSCDMBHeader::bxn12
unsigned bxn12() const
Definition:
CSCDMBHeader.h:38
CSCALCTHeader2007::CSCALCTHeader2007
CSCALCTHeader2007()
Definition:
CSCALCTHeader2007.cc:17
CSCDMBHeader
Definition:
CSCDMBHeader.h:15
Generated for CMSSW Reference Manual by
1.8.14