CMS 3D CMS Logo

CSCDMBTrailer.h
Go to the documentation of this file.
1 #ifndef CSCDMBTrailer_h
2 #define CSCDMBTrailer_h
3 
4 #include <cassert>
5 #include <iosfwd>
6 #include <cstring> // bzero
7 #include <memory>
12 
13 
14 struct CSCDMBTrailer2005;
15 struct CSCDMBTrailer2013;
16 
18 public:
19 
20  CSCDMBTrailer(uint16_t firmware_version = 2005);
21 
22  CSCDMBTrailer(const uint16_t * buf, uint16_t firmware_version = 2005);
23 
24 
26  void setEventInformation(const CSCDMBHeader & header) { return theTrailerFormat->setEventInformation(header); };
27 
28  unsigned crateID() const { return theTrailerFormat->crateID(); };
29  unsigned dmbID() const { return theTrailerFormat->dmbID(); };
30 
31  unsigned dmb_l1a() const { return theTrailerFormat->dmb_l1a(); };
32  unsigned dmb_bxn() const { return theTrailerFormat->dmb_bxn(); };
33 
34  unsigned alct_endtimeout() const { return theTrailerFormat->alct_endtimeout(); };
35  unsigned tmb_endtimeout() const { return theTrailerFormat->tmb_endtimeout(); };
36  unsigned cfeb_endtimeout() const { return theTrailerFormat->cfeb_endtimeout(); };
37 
38  unsigned alct_starttimeout() const { return theTrailerFormat->alct_starttimeout(); };
39  unsigned tmb_starttimeout() const { return theTrailerFormat->tmb_starttimeout(); };
40  unsigned cfeb_starttimeout() const { return theTrailerFormat->cfeb_starttimeout(); };
41 
42  unsigned cfeb_movlp() const { return theTrailerFormat->cfeb_movlp(); };
43  unsigned dmb_l1pipe() const { return theTrailerFormat->dmb_l1pipe(); };
44 
45  unsigned alct_empty() const { return theTrailerFormat->alct_empty(); };
46  unsigned tmb_empty() const { return theTrailerFormat->tmb_empty(); };
47  unsigned cfeb_empty() const { return theTrailerFormat->cfeb_empty(); };
48 
49  unsigned alct_half() const { return theTrailerFormat->alct_half(); };
50  unsigned tmb_half() const { return theTrailerFormat->tmb_half(); };
51  unsigned cfeb_half() const { return theTrailerFormat->cfeb_half(); };
52 
53  unsigned alct_full() const { return theTrailerFormat->alct_full(); };
54  unsigned tmb_full() const {return theTrailerFormat->tmb_full(); };
55  unsigned cfeb_full() const { return theTrailerFormat->cfeb_full(); };
56 
57  unsigned crc22() const { return theTrailerFormat->crc22(); };
58  unsigned crc_lo_parity() const { return theTrailerFormat->crc_lo_parity(); };
59  unsigned crc_hi_parity() const { return theTrailerFormat->crc_hi_parity(); };
60 
61  unsigned short * data() { return theTrailerFormat->data(); };
62  unsigned short * data() const { return theTrailerFormat->data(); };
63 
64  unsigned sizeInWords() const { return theTrailerFormat->sizeInWords(); };
65 
66  bool check() const { return theTrailerFormat->check(); };
67 
71 
72 
73  private:
74 
75  std::shared_ptr<CSCVDMBTrailerFormat> theTrailerFormat;
77 
78 };
79 
80 #endif
81 
unsigned tmb_half() const
Definition: CSCDMBTrailer.h:50
unsigned cfeb_empty() const
Definition: CSCDMBTrailer.h:47
unsigned alct_full() const
Definition: CSCDMBTrailer.h:53
unsigned tmb_empty() const
Definition: CSCDMBTrailer.h:46
unsigned cfeb_endtimeout() const
Definition: CSCDMBTrailer.h:36
bool check() const
Definition: CSCDMBTrailer.h:66
unsigned sizeInWords() const
Definition: CSCDMBTrailer.h:64
CSCDMBTrailer2013 dmbTrailer2013() const
int theFirmwareVersion
Definition: CSCDMBTrailer.h:76
unsigned short * data() const
Definition: CSCDMBTrailer.h:62
unsigned short * data()
Definition: CSCDMBTrailer.h:61
void setEventInformation(const CSCDMBHeader &header)
@ NEEDS TO BE DONE
Definition: CSCDMBTrailer.h:26
unsigned cfeb_starttimeout() const
Definition: CSCDMBTrailer.h:40
unsigned crc_hi_parity() const
Definition: CSCDMBTrailer.h:59
unsigned tmb_starttimeout() const
Definition: CSCDMBTrailer.h:39
unsigned alct_starttimeout() const
Definition: CSCDMBTrailer.h:38
unsigned tmb_full() const
Definition: CSCDMBTrailer.h:54
unsigned cfeb_movlp() const
Definition: CSCDMBTrailer.h:42
unsigned dmbID() const
Definition: CSCDMBTrailer.h:29
unsigned alct_half() const
Definition: CSCDMBTrailer.h:49
unsigned cfeb_half() const
Definition: CSCDMBTrailer.h:51
unsigned cfeb_full() const
Definition: CSCDMBTrailer.h:55
unsigned crc22() const
Definition: CSCDMBTrailer.h:57
unsigned crateID() const
Definition: CSCDMBTrailer.h:28
unsigned dmb_bxn() const
Definition: CSCDMBTrailer.h:32
CSCDMBTrailer2005 dmbTrailer2005() const
will throw if the cast fails
CSCDMBTrailer(uint16_t firmware_version=2005)
Definition: CSCDMBTrailer.cc:8
unsigned tmb_endtimeout() const
Definition: CSCDMBTrailer.h:35
unsigned alct_endtimeout() const
Definition: CSCDMBTrailer.h:34
unsigned alct_empty() const
Definition: CSCDMBTrailer.h:45
unsigned dmb_l1a() const
Definition: CSCDMBTrailer.h:31
std::shared_ptr< CSCVDMBTrailerFormat > theTrailerFormat
Definition: CSCDMBTrailer.h:75
unsigned dmb_l1pipe() const
Definition: CSCDMBTrailer.h:43
unsigned crc_lo_parity() const
Definition: CSCDMBTrailer.h:58