CMS 3D CMS Logo

FEDTrailer.h
Go to the documentation of this file.
1 #ifndef DataFormats_FEDRawData_FEDTrailer_h
2 #define DataFormats_FEDRawData_FEDTrailer_h
3 
10 #include <cstdint>
11 
12 struct fedt_struct;
13 
14 class FEDTrailer {
15 public:
17  FEDTrailer(const unsigned char* trailer);
18 
20  virtual ~FEDTrailer();
21 
23  uint32_t fragmentLength() const;
24 
26  uint16_t crc() const;
27 
29  uint8_t evtStatus() const;
30 
32  uint8_t ttsBits() const;
33 
36  bool moreTrailers() const;
37 
39  bool crcModified() const;
40 
42  bool slinkError() const;
43 
45  bool wrongFedId() const;
46 
48  bool check() const;
49 
51  uint32_t conscheck() const;
52 
54  static void set(unsigned char* trailer,
55  uint32_t lenght,
56  uint16_t crc,
57  uint8_t evt_stat,
58  uint8_t tts,
59  bool moreTrailers=false);
60 
61  static const uint32_t length;
62 
63 private:
65 
66 };
67 #endif // DataFormats_FEDRawData_FEDTrailer_h
static const uint32_t length
Definition: FEDTrailer.h:61
virtual ~FEDTrailer()
Destructor.
Definition: FEDTrailer.cc:14
uint16_t crc() const
Cyclic Redundancy Code of the event fragment including header and trailer.
Definition: FEDTrailer.cc:22
const fedt_struct * theTrailer
Definition: FEDTrailer.h:64
bool check() const
Check that the trailer is OK.
Definition: FEDTrailer.cc:83
bool moreTrailers() const
Definition: FEDTrailer.cc:37
bool crcModified() const
True if the CRC value has been modified by the S-link sender card.
Definition: FEDTrailer.cc:42
uint32_t fragmentLength() const
The length of the event fragment counted in 64-bit words including header and trailer.
Definition: FEDTrailer.cc:17
uint8_t ttsBits() const
Current value of the Trigger Throttling System bits.
Definition: FEDTrailer.cc:32
uint8_t evtStatus() const
Event fragment status information.
Definition: FEDTrailer.cc:27
uint32_t conscheck() const
Return the word containing the consistency checks.
Definition: FEDTrailer.cc:56
bool wrongFedId() const
True if the FED_ID given by the FED is not the one expected by the FRL.
Definition: FEDTrailer.cc:52
bool slinkError() const
True if the FRL has detected a transmission error over the s-link cable.
Definition: FEDTrailer.cc:47
FEDTrailer(const unsigned char *trailer)
Constructor.
Definition: FEDTrailer.cc:10