Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
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
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
bxnL1A
= dmb.
l1a
();
45
//cscID = dmb.dmbID();
46
bxnCount
= dmb.
bxn
();
47
}
48
TrackValidation_HighPurity_cff.valid
tuple valid
Definition:
TrackValidation_HighPurity_cff.py:20
CSCALCT::CSCALCT
CSCALCT()
Definition:
CSCALCTHeader2007.cc:4
CSCDMBHeader::l1a
unsigned l1a() const
Definition:
CSCDMBHeader.cc:74
CSCALCTDigi
Definition:
CSCALCTDigi.h:15
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::setEventInformation
void setEventInformation(const CSCDMBHeader &)
Definition:
CSCALCTHeader2007.cc:42
CSCALCTHeader2007::reserved3
unsigned reserved3
Definition:
CSCALCTHeader2007.h:50
CSCALCTHeader2007::bxnCount
unsigned bxnCount
Definition:
CSCALCTHeader2007.h:52
CSCDMBHeader::bxn
unsigned bxn() const
Definition:
CSCDMBHeader.cc:61
CSCALCTHeader2007::rawBins
unsigned rawBins
Definition:
CSCALCTHeader2007.h:72
CSCALCTHeader2007.h
CSCALCTHeader2007::bxnL1A
unsigned bxnL1A
=0xDB0A
Definition:
CSCALCTHeader2007.h:43
CSCALCTHeader2007::sizeInWords
short unsigned int sizeInWords() const
for packing
Definition:
CSCALCTHeader2007.h:37
CSCALCTHeader2007::CSCALCTHeader2007
CSCALCTHeader2007()
Definition:
CSCALCTHeader2007.cc:20
CSCDMBHeader
Definition:
CSCDMBHeader.h:9
Generated for CMSSW Reference Manual by
1.8.5