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 
11 
12 class FEDHeader {
13 public:
15  FEDHeader(const unsigned char* header);
16 
18  ~FEDHeader();
19 
21  int triggerType();
22 
24  int lvl1ID();
25 
27  int bxID();
28 
30  int sourceID();
31 
33  int version();
34 
38  bool moreHeaders();
39 
41  bool check();
42 
44  static void set(unsigned char* header,
45  int evt_ty,
46  int lvl1_ID,
47  int bx_ID,
48  int source_ID,
49  int version=0,
50  bool H=false);
51 
52 private:
53  const fedh_t* theHeader;
54 };
55 #endif
56 
int version()
Version identifier of the FED data format.
Definition: FEDHeader.cc:32
const fedh_t * theHeader
Definition: FEDHeader.h:53
FEDHeader(const unsigned char *header)
Constructor.
Definition: FEDHeader.cc:9
int sourceID()
Identifier of the FED.
Definition: FEDHeader.cc:28
bool moreHeaders()
Definition: FEDHeader.cc:36
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:40
bool check()
Check that the header is OK.
Definition: FEDHeader.cc:64
int bxID()
The bunch crossing number.
Definition: FEDHeader.cc:24
int lvl1ID()
Level-1 event number generated by the TTC system.
Definition: FEDHeader.cc:20
int triggerType()
Event Trigger type identifier.
Definition: FEDHeader.cc:16
~FEDHeader()
Destructor.
Definition: FEDHeader.cc:13