CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
FEDHeader.h
Go to the documentation of this file.
1 #ifndef EventFilter_FEDInterface_FEDHeader_h
2 #define EventFilter_FEDInterface_FEDHeader_h
3 
12 #include "interface/shared/fed_header.h"
13 
14 class FEDHeader {
15 public:
17  FEDHeader(const unsigned char* header);
18 
20  ~FEDHeader();
21 
23  int triggerType();
24 
26  int lvl1ID();
27 
29  int bxID();
30 
32  int sourceID();
33 
35  int version();
36 
40  bool moreHeaders();
41 
43  bool check();
44 
46  static void set(unsigned char* header,
47  int evt_ty,
48  int lvl1_ID,
49  int bx_ID,
50  int source_ID,
51  int version=0,
52  bool H=false);
53 
54 private:
55  const fedh_t* theHeader;
56 };
57 #endif
58 
int version()
Version identifier of the FED data format.
Definition: FEDHeader.cc:34
const fedh_t * theHeader
Definition: FEDHeader.h:55
FEDHeader(const unsigned char *header)
Constructor.
Definition: FEDHeader.cc:11
int sourceID()
Identifier of the FED.
Definition: FEDHeader.cc:30
bool moreHeaders()
Definition: FEDHeader.cc:38
static void set(unsigned char *header, int evt_ty, int lvl1_ID, int bx_ID, int source_ID, int version=0, bool H=false)
Set all fields in the header.
Definition: FEDHeader.cc:42
bool check()
Check that the header is OK.
Definition: FEDHeader.cc:66
int bxID()
The bunch crossing number.
Definition: FEDHeader.cc:26
int lvl1ID()
Level-1 event number generated by the TTC system.
Definition: FEDHeader.cc:22
int triggerType()
Event Trigger type identifier.
Definition: FEDHeader.cc:18
~FEDHeader()
Destructor.
Definition: FEDHeader.cc:15