test
Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
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:51
CSCALCTDigi
Definition:
CSCALCTDigi.h:15
HLT_25ns10e33_v2_cff.quality
tuple quality
Definition:
HLT_25ns10e33_v2_cff.py:42796
CSCALCTHeader2007::boardType
unsigned boardType
Definition:
CSCALCTHeader2007.h:61
CSCALCTHeader2007::lctBins
unsigned lctBins
Definition:
CSCALCTHeader2007.h:73
CSCALCTHeader2007::reserved1
unsigned reserved1
Definition:
CSCALCTHeader2007.h:44
CSCALCTHeader2007::flag1
unsigned flag1
Definition:
CSCALCTHeader2007.h:41
CSCALCTHeader2007::reserved2
unsigned reserved2
Definition:
CSCALCTHeader2007.h:47
listBenchmarks.pattern
list pattern
Definition:
listBenchmarks.py:26
CSCDMBHeader.h
CSCALCTHeader2007::l1aCounter
unsigned l1aCounter
Definition:
CSCALCTHeader2007.h:46
CSCALCTHeader2007::setEventInformation
void setEventInformation(const CSCDMBHeader &)
Definition:
CSCALCTHeader2007.cc:42
CSCDMBHeader::bxn12
unsigned bxn12() const
Definition:
CSCDMBHeader.h:49
CSCALCTHeader2007::reserved3
unsigned reserved3
Definition:
CSCALCTHeader2007.h:50
CSCALCTHeader2007::bxnCount
unsigned bxnCount
Definition:
CSCALCTHeader2007.h:52
CSCALCTHeader2007::rawBins
unsigned rawBins
Definition:
CSCALCTHeader2007.h:72
CSCALCTHeader2007.h
CSCALCTHeader2007::sizeInWords
short unsigned int sizeInWords() const
for packing
Definition:
CSCALCTHeader2007.h:37
CSCALCTHeader2007::CSCALCTHeader2007
CSCALCTHeader2007()
Definition:
CSCALCTHeader2007.cc:20
CSCDMBHeader
Definition:
CSCDMBHeader.h:15
Generated for CMSSW Reference Manual by
1.8.5