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 
13 struct fedt_struct;
14 
15 class FEDTrailer {
16 public:
18  FEDTrailer(const unsigned char* trailer);
19 
21  virtual ~FEDTrailer();
22 
24  int lenght();
25 
27  int crc();
28 
30  int evtStatus();
31 
33  int ttsBits();
34 
38  bool moreTrailers();
39 
40  // Check that the trailer is OK
41  bool check();
42 
44  static void set(unsigned char* trailer,
45  int evt_lgth,
46  int crc,
47  int evt_stat,
48  int tts,
49  bool T=false);
50 
51 private:
53 
54 };
55 #endif
56 
bool check()
Definition: FEDTrailer.cc:66
int evtStatus()
Event fragment status information.
Definition: FEDTrailer.cc:29
virtual ~FEDTrailer()
Destructor.
Definition: FEDTrailer.cc:15
bool moreTrailers()
Definition: FEDTrailer.cc:39
const fedt_struct * theTrailer
Definition: FEDTrailer.h:52
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:44
int ttsBits()
Current value of the Trigger Throttling System bitsAQ).
Definition: FEDTrailer.cc:34
int lenght()
The length of the event fragment counted in 64-bit words including header and trailer.
Definition: FEDTrailer.cc:19
int crc()
Cyclic Redundancy Code of the event fragment including header and trailer.
Definition: FEDTrailer.cc:24
FEDTrailer(const unsigned char *trailer)
Constructor.
Definition: FEDTrailer.cc:11
long double T