Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
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 <string>
//for bzero
9
#include "
DataFormats/CSCDigi/interface/CSCDCCStatusDigi.h
"
10
11
class
CSCDCCHeader
{
12
13
public
:
14
CSCDCCHeader
(
int
bx,
int
l1a,
int
sourceId,
int
version
=0);
15
CSCDCCHeader
();
16
CSCDCCHeader
(
const
CSCDCCStatusDigi
& digi);
17
18
int
getCDFEventNumber
()
const
;
19
int
getCDFSourceId
()
const
;
20
int
getCDFFOV
()
const
;
21
int
getCDFEventType
()
const
;
22
int
getCDFBunchCounter
()
const
;
23
void
setDAV
(
int
dduSlot);
24
bool
check
()
const
{
return
true
/*dcc_code1==0xD9 && dcc_code2==0x97*/
;}
25
unsigned
short
*
data
() {
return
(
short
unsigned
*)
word
;}
26
static
unsigned
sizeInWords
() {
return
8;}
27
28
// gets some data filled by the event data
29
friend
class
CSCDDUEventData
;
30
31
private
:
32
unsigned
long
long
word
[2];
33
34
/*
35
//first line of DCC header definded by CDF (common data format)
37
unsigned BOE_1 : 4;
38
unsigned Evt_ty : 4;
39
unsigned LV1_id : 24;
40
unsigned BX_id : 12;
41
unsigned Source_id : 12;
42
unsigned FOV : 4;
43
unsigned Hx : 3;
44
unsigned dollardollar: 1;
45
48
unsigned dcc_code1 : 8;
49
unsigned orbit_counter : 32;
50
unsigned fifo_status : 16;
52
unsigned dcc_code2 : 8;
53
54
*/
55
56
};
57
#endif
CSCDCCHeader::setDAV
void setDAV(int dduSlot)
Definition:
CSCDCCHeader.cc:52
CSCDCCHeader::CSCDCCHeader
CSCDCCHeader()
Definition:
CSCDCCHeader.cc:16
relval_steps.version
string version
Definition:
relval_steps.py:1323
CSCDCCHeader::getCDFFOV
int getCDFFOV() const
Definition:
CSCDCCHeader.cc:42
CSCDCCHeader::getCDFBunchCounter
int getCDFBunchCounter() const
Definition:
CSCDCCHeader.cc:34
CSCDCCHeader::getCDFEventNumber
int getCDFEventNumber() const
Definition:
CSCDCCHeader.cc:29
CSCDCCHeader::getCDFEventType
int getCDFEventType() const
Definition:
CSCDCCHeader.cc:46
CSCDCCHeader
Definition:
CSCDCCHeader.h:11
CSCDCCHeader::check
bool check() const
Definition:
CSCDCCHeader.h:24
CSCDCCHeader::getCDFSourceId
int getCDFSourceId() const
Definition:
CSCDCCHeader.cc:38
CSCDCCHeader::word
unsigned long long word[2]
Definition:
CSCDCCHeader.h:32
CSCDCCHeader::sizeInWords
static unsigned sizeInWords()
Definition:
CSCDCCHeader.h:26
CSCDCCStatusDigi.h
CSCDDUEventData
Definition:
CSCDDUEventData.h:19
CSCDCCStatusDigi
Definition:
CSCDCCStatusDigi.h:15
CSCDCCHeader::data
unsigned short * data()
Definition:
CSCDCCHeader.h:25
Generated for CMSSW Reference Manual by
1.8.5