Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
src
EventFilter
CSCRawToDigi
interface
CSCDDUHeader.h
Go to the documentation of this file.
1
/* CSCDDUHeader 4/24/03 A.Tumanov
2
* documented at http://www.physics.ohio-state.edu/~cms/ddu/
3
*/
4
5
#ifndef CSCDDUHeader_h
6
#define CSCDDUHeader_h
7
#include "
DataFormats/CSCDigi/interface/CSCDDUStatusDigi.h
"
8
#include <cstring>
9
10
class
CSCDDUHeader
{
11
12
public
:
13
CSCDDUHeader
();
14
CSCDDUHeader
(
unsigned
bx,
unsigned
l1num,
unsigned
sourceId);
15
CSCDDUHeader
(
const
CSCDDUStatusDigi
& digi)
16
{
17
memcpy(
this
, digi.
header
(),
sizeInWords
()*2);
18
}
19
int
s_link_status
()
const
{
return
s_link_status_
;}
20
int
format_version
()
const
{
return
format_version_
;}
21
int
source_id
()
const
{
return
source_id_
;}
22
int
bxnum
()
const
{
return
bxnum_
;}
23
int
lvl1num
()
const
{
return
lvl1num_
;}
24
int
event_type
()
const
{
return
event_type_
;}
25
int
ncsc
()
const
{
return
ncsc_
;}
26
int
dmb_dav
()
const
{
return
dmb_dav_
;}
27
void
setDMBDAV
(
int
dduInput);
28
int
live_cscs
()
const
{
return
live_cscs_
;}
29
static
unsigned
sizeInWords
() {
return
12;}
30
void
setSourceId
(
unsigned
sourceId) {
source_id_
= sourceId;}
31
unsigned
short
*
data
() {
return
(
unsigned
short
*)
this
;}
32
bool
check
()
const
;
33
34
// gets some data filled by the event data
35
friend
class
CSCDDUEventData
;
36
private
:
38
void
init
();
39
40
unsigned
s_link_status_
: 4;
41
unsigned
format_version_
: 4;
42
unsigned
source_id_
: 12;
43
unsigned
bxnum_
: 12;
44
45
unsigned
lvl1num_
: 24;
46
unsigned
event_type_
: 4;
48
unsigned
bit64_
: 4;
49
51
unsigned
dmb_full_
: 16;
52
unsigned
header2_1_
: 16;
53
unsigned
header2_2_
: 16;
54
unsigned
header2_3_
: 16;
55
56
57
unsigned
ncsc_
: 4;
58
unsigned
tts_status_
: 4;
59
unsigned
boe_status_
: 8;
60
unsigned
dmb_dav_
: 16;
61
unsigned
output_path_
: 16;
62
unsigned
live_cscs_
: 16;
63
64
};
65
#endif
CSCDDUHeader::source_id_
unsigned source_id_
Definition:
CSCDDUHeader.h:42
CSCDDUHeader::dmb_dav_
unsigned dmb_dav_
Definition:
CSCDDUHeader.h:60
CSCDDUHeader::lvl1num_
unsigned lvl1num_
Definition:
CSCDDUHeader.h:45
CSCDDUHeader::setSourceId
void setSourceId(unsigned sourceId)
Definition:
CSCDDUHeader.h:30
CSCDDUHeader::check
bool check() const
Definition:
CSCDDUHeader.cc:48
CSCDDUHeader::s_link_status_
unsigned s_link_status_
Definition:
CSCDDUHeader.h:40
CSCDDUHeader::format_version
int format_version() const
Definition:
CSCDDUHeader.h:20
CSCDDUHeader::setDMBDAV
void setDMBDAV(int dduInput)
Definition:
CSCDDUHeader.cc:31
CSCDDUHeader::lvl1num
int lvl1num() const
Definition:
CSCDDUHeader.h:23
CSCDDUHeader::CSCDDUHeader
CSCDDUHeader()
Definition:
CSCDDUHeader.cc:5
CSCDDUHeader::header2_3_
unsigned header2_3_
Definition:
CSCDDUHeader.h:54
CSCDDUHeader::bxnum
int bxnum() const
Definition:
CSCDDUHeader.h:22
CSCDDUHeader::dmb_dav
int dmb_dav() const
Definition:
CSCDDUHeader.h:26
CSCDDUHeader::output_path_
unsigned output_path_
Definition:
CSCDDUHeader.h:61
CSCDDUStatusDigi
Definition:
CSCDDUStatusDigi.h:17
CSCDDUHeader::header2_2_
unsigned header2_2_
Definition:
CSCDDUHeader.h:53
CSCDDUHeader::ncsc_
unsigned ncsc_
Definition:
CSCDDUHeader.h:57
CSCDDUHeader::event_type_
unsigned event_type_
Definition:
CSCDDUHeader.h:46
CSCDDUHeader::header2_1_
unsigned header2_1_
Definition:
CSCDDUHeader.h:52
CSCDDUHeader::live_cscs_
unsigned live_cscs_
Definition:
CSCDDUHeader.h:62
CSCDDUHeader::format_version_
unsigned format_version_
Definition:
CSCDDUHeader.h:41
CSCDDUStatusDigi::header
const uint16_t * header() const
Data Accessors.
Definition:
CSCDDUStatusDigi.h:28
CSCDDUHeader::event_type
int event_type() const
Definition:
CSCDDUHeader.h:24
CSCDDUHeader::bit64_
unsigned bit64_
should always be 5
Definition:
CSCDDUHeader.h:48
CSCDDUHeader::init
void init()
initializes constants
Definition:
CSCDDUHeader.cc:23
CSCDDUHeader::s_link_status
int s_link_status() const
Definition:
CSCDDUHeader.h:19
CSCDDUHeader::dmb_full_
unsigned dmb_full_
should be 8000/0001/8000
Definition:
CSCDDUHeader.h:51
CSCDDUHeader
Definition:
CSCDDUHeader.h:10
CSCDDUHeader::sizeInWords
static unsigned sizeInWords()
Definition:
CSCDDUHeader.h:29
CSCDDUStatusDigi.h
CSCDDUHeader::ncsc
int ncsc() const
Definition:
CSCDDUHeader.h:25
CSCDDUHeader::source_id
int source_id() const
Definition:
CSCDDUHeader.h:21
CSCDDUHeader::live_cscs
int live_cscs() const
Definition:
CSCDDUHeader.h:28
CSCDDUHeader::boe_status_
unsigned boe_status_
Definition:
CSCDDUHeader.h:59
CSCDDUHeader::bxnum_
unsigned bxnum_
Definition:
CSCDDUHeader.h:43
CSCDDUHeader::CSCDDUHeader
CSCDDUHeader(const CSCDDUStatusDigi &digi)
Definition:
CSCDDUHeader.h:15
CSCDDUHeader::tts_status_
unsigned tts_status_
Definition:
CSCDDUHeader.h:58
CSCDDUEventData
Definition:
CSCDDUEventData.h:19
CSCDDUHeader::data
unsigned short * data()
Definition:
CSCDDUHeader.h:31
Generated for CMSSW Reference Manual by
1.8.5