CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
FED1023.h
Go to the documentation of this file.
1 #ifndef EVF_FED1023_H
2 #define EVF_FED1023_H
3 
5 
6 namespace evf{
7  namespace fedinterface{
8 
10  //FED1023 format definition
11  //Offsets go right to left - in BYTES !!!
12  //LW\SB 63..............................32 31..............................0
13  //00 <=======================FED HEADER ================================>
14  //01 <63-44 PCId ><43-32 RBInst# > <31-0 RB event count >
15  //02 <63-00 Reserved >
16  //03 <63-00 In wallclock time in RB >
17  //04 <63-48 EPPId ><47-32 EPinst# > <31-0 EP event Id >
18  //05 <63-48 EP VER ><47-32 CMSSW VER > <31-0 EP event count >
19  //06 <63-00 EP History >
20  //07 <63-00 HLT algo bits 1 >
21  //08 <63-00 HLT algo bits 2 >
22  //09 <63-00 HLT algo bits 3 >
23  //0a <63-00 Diagnostic word 1 for DAQ internal use (free form) >
24  //0b <63-00 Diagnostic word 2 for DAQ internal use (free form) >
25  //0c <63-00 Out wallclock time from EP >
26  //0d <=======================FED TRAILER ===============================>
28  const unsigned int EVFFED_ID = 1023;
29  const unsigned int EVFFED_VERSION = 0x0;
30  const unsigned int EVFFED_TOTALSIZE = 112; // in bytes
31  const unsigned int EVFFED_LENGTH = EVFFED_TOTALSIZE/evtn::SLINK_WORD_SIZE; // in SLINK WORDS
35  const unsigned int EVFFED_RBPCIDE_MASK = 0x000fffff;
36  const unsigned int EVFFED_RBPCIDE_SHIFT = 12;
37  const unsigned int EVFFED_RBINSTA_MASK = 0x00000fff;
38  const unsigned int EVFFED_RBINSTA_SHIFT = 0;
42  const unsigned int EVFFED_EPPCIDE_MASK = 0x000fffff;
43  const unsigned int EVFFED_EPPCIDE_SHIFT = 12;
44  const unsigned int EVFFED_EPINSTA_MASK = 0x00000fff;
45  const unsigned int EVFFED_EPINSTA_SHIFT = 0;
48  const unsigned int EVFFED_EPVERSN_MASK = 0xffff0000;
49  const unsigned int EVFFED_EPVERSN_SHIFT = 16;
50  const unsigned int EVFFED_CMSSWVN_MASK = 0x0000ffff;
51  const unsigned int EVFFED_CMSSWVN_SHIFT = 0;
59  }
60 }
61 #endif
const unsigned int EVFFED_CMSSWVN_SHIFT
Definition: FED1023.h:51
const unsigned int EVFFED_EPEVTCT_OFFSET
Definition: FED1023.h:46
const unsigned int EVFFED_EPIDENT_OFFSET
Definition: FED1023.h:41
const unsigned int EVFFED_PAYLOAD_OFFSET
Definition: FED1023.h:32
const unsigned int EVFFED_EPHISTO_OFFSET
Definition: FED1023.h:52
const unsigned int EVFFED_RBINSTA_SHIFT
Definition: FED1023.h:38
const unsigned int EVFFED_EPVERSN_MASK
Definition: FED1023.h:48
const unsigned int EVFFED_EPHLTA1_OFFSET
Definition: FED1023.h:53
const unsigned int EVFFED_EPPCIDE_SHIFT
Definition: FED1023.h:43
const unsigned int EVFFED_ID
Definition: FED1023.h:28
const unsigned int EVFFED_CMSSWVN_MASK
Definition: FED1023.h:50
const unsigned int EVFFED_EPHLTA3_OFFSET
Definition: FED1023.h:55
const unsigned int EVFFED_RBINSTA_MASK
Definition: FED1023.h:37
const unsigned int EVFFED_RBPCIDE_SHIFT
Definition: FED1023.h:36
const unsigned int SLINK_HALFWORD_SIZE
Definition: FEDConstants.h:7
const unsigned int EVFFED_DAQDIA1_OFFSET
Definition: FED1023.h:56
const unsigned int EVFFED_TOTALSIZE
Definition: FED1023.h:30
const unsigned int EVFFED_RBPCIDE_MASK
Definition: FED1023.h:35
const unsigned int EVFFED_EPEVENT_OFFSET
Definition: FED1023.h:40
const unsigned int EVFFED_RBEVCNT_OFFSET
Definition: FED1023.h:33
const unsigned int FED_HEADER_SIZE
Definition: FEDConstants.h:8
const unsigned int EVFFED_RBWCTIM_OFFSET
Definition: FED1023.h:39
const unsigned int EVFFED_EPHLTA2_OFFSET
Definition: FED1023.h:54
const unsigned int EVFFED_EPWCTIM_OFFSET
Definition: FED1023.h:58
const unsigned int EVFFED_LENGTH
Definition: FED1023.h:31
const unsigned int EVFFED_VERSION
Definition: FED1023.h:29
const unsigned int SLINK_WORD_SIZE
Definition: FEDConstants.h:6
const unsigned int EVFFED_EPVERSN_OFFSET
Definition: FED1023.h:47
const unsigned int EVFFED_EPINSTA_SHIFT
Definition: FED1023.h:45
const unsigned int EVFFED_RBIDENT_OFFSET
Definition: FED1023.h:34
const unsigned int EVFFED_EPINSTA_MASK
Definition: FED1023.h:44
const unsigned int EVFFED_DAQDIA2_OFFSET
Definition: FED1023.h:57
const unsigned int EVFFED_EPPCIDE_MASK
Definition: FED1023.h:42
const unsigned int EVFFED_EPVERSN_SHIFT
Definition: FED1023.h:49