Main Page
Namespaces
Classes
Package Documentation
EventFilter
CSCRawToDigi
interface
CSCDCCHeader.h
Go to the documentation of this file.
1
/* CSCDCCHeader 9/24/04 A.Tumanov
2
* documented at http://www.physics.ohio-state.edu/~cms/ddu/ddu2.html
3
*/
4
5
#ifndef CSCDCCHeader_h
6
#define CSCDCCHeader_h
7
8
#include <cstdint>
9
#include <cstring>
10
#include <string>
//for bzero
11
#include "
DataFormats/CSCDigi/interface/CSCDCCStatusDigi.h
"
12
13
class
CSCDCCHeader
{
14
15
public
:
16
CSCDCCHeader
(
int
bx,
int
l1a,
int
sourceId
,
int
version
=0);
17
CSCDCCHeader
();
18
CSCDCCHeader
(
const
CSCDCCStatusDigi
& digi);
19
20
void
setFromBuffer
(uint16_t
const
* buf) {
21
memcpy(
this
, buf,
sizeInWords
()*2);
22
}
23
24
int
getCDFEventNumber
()
const
;
25
int
getCDFSourceId
()
const
;
26
int
getCDFFOV
()
const
;
27
int
getCDFEventType
()
const
;
28
int
getCDFBunchCounter
()
const
;
29
void
setDAV
(
int
dduSlot);
30
bool
check
()
const
{
return
true
/*dcc_code1==0xD9 && dcc_code2==0x97*/
;}
31
unsigned
short
*
data
() {
return
(
short
unsigned
*)
word
;}
32
static
unsigned
sizeInWords
() {
return
8;}
33
34
// gets some data filled by the event data
35
friend
class
CSCDDUEventData
;
36
37
private
:
38
unsigned
long
long
word
[2];
39
40
/*
41
//first line of DCC header definded by CDF (common data format)
43
unsigned BOE_1 : 4;
44
unsigned Evt_ty : 4;
45
unsigned LV1_id : 24;
46
unsigned BX_id : 12;
47
unsigned Source_id : 12;
48
unsigned FOV : 4;
49
unsigned Hx : 3;
50
unsigned dollardollar: 1;
51
54
unsigned dcc_code1 : 8;
55
unsigned orbit_counter : 32;
56
unsigned fifo_status : 16;
58
unsigned dcc_code2 : 8;
59
60
*/
61
62
};
63
#endif
CSCDCCHeader::setDAV
void setDAV(int dduSlot)
Definition:
CSCDCCHeader.cc:52
CSCDCCHeader::CSCDCCHeader
CSCDCCHeader()
Definition:
CSCDCCHeader.cc:16
CSCDCCHeader::setFromBuffer
void setFromBuffer(uint16_t const *buf)
Definition:
CSCDCCHeader.h:20
CSCDCCHeader::getCDFFOV
int getCDFFOV() const
Definition:
CSCDCCHeader.cc:42
CSCDCCHeader::getCDFBunchCounter
int getCDFBunchCounter() const
Definition:
CSCDCCHeader.cc:34
jets_cff.version
version
Definition:
jets_cff.py:56
CSCDCCHeader::getCDFEventNumber
int getCDFEventNumber() const
Definition:
CSCDCCHeader.cc:29
CSCDCCHeader::getCDFEventType
int getCDFEventType() const
Definition:
CSCDCCHeader.cc:46
CSCDCCHeader
Definition:
CSCDCCHeader.h:13
CSCDCCHeader::check
bool check() const
Definition:
CSCDCCHeader.h:30
objects.autophobj.sourceId
sourceId
Definition:
autophobj.py:239
CSCDCCHeader::getCDFSourceId
int getCDFSourceId() const
Definition:
CSCDCCHeader.cc:38
CSCDCCHeader::word
unsigned long long word[2]
Definition:
CSCDCCHeader.h:38
CSCDCCHeader::sizeInWords
static unsigned sizeInWords()
Definition:
CSCDCCHeader.h:32
CSCDCCStatusDigi.h
CSCDDUEventData
Definition:
CSCDDUEventData.h:19
CSCDCCStatusDigi
Definition:
CSCDCCStatusDigi.h:15
CSCDCCHeader::data
unsigned short * data()
Definition:
CSCDCCHeader.h:31
Generated for CMSSW Reference Manual by
1.8.11