CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
FEDTrailer.h
Go to the documentation of this file.
1 #ifndef FEDRawData_FEDTrailer_h
2 #define FEDRawData_FEDTrailer_h
3 
11 struct fedt_struct;
12 
13 class FEDTrailer {
14 public:
16  FEDTrailer(const unsigned char* trailer);
17 
19  virtual ~FEDTrailer();
20 
22  int lenght();
23 
25  int crc();
26 
28  int evtStatus();
29 
31  int ttsBits();
32 
36  bool moreTrailers();
37 
38  // Check that the trailer is OK
39  bool check();
40 
42  static void set(unsigned char* trailer,
43  int evt_lgth,
44  int crc,
45  int evt_stat,
46  int tts,
47  bool T=false);
48 
49 private:
51 
52 };
53 #endif
54 
bool check()
Definition: FEDTrailer.cc:64
int evtStatus()
Event fragment status information.
Definition: FEDTrailer.cc:27
virtual ~FEDTrailer()
Destructor.
Definition: FEDTrailer.cc:13
bool moreTrailers()
Definition: FEDTrailer.cc:37
const fedt_struct * theTrailer
Definition: FEDTrailer.h:50
static void set(unsigned char *trailer, int evt_lgth, int crc, int evt_stat, int tts, bool T=false)
Set all fields in the trailer.
Definition: FEDTrailer.cc:42
int ttsBits()
Current value of the Trigger Throttling System bitsAQ).
Definition: FEDTrailer.cc:32
int lenght()
The length of the event fragment counted in 64-bit words including header and trailer.
Definition: FEDTrailer.cc:17
int crc()
Cyclic Redundancy Code of the event fragment including header and trailer.
Definition: FEDTrailer.cc:22
FEDTrailer(const unsigned char *trailer)
Constructor.
Definition: FEDTrailer.cc:9
long double T