CMS 3D CMS Logo

CSCVDMBTrailerFormat.h
Go to the documentation of this file.
1 #ifndef EventFilter_CSCRawToDigi_CSCVDMBTrailerFormat_h
2 #define EventFilter_CSCRawToDigi_CSCVDMBTrailerFormat_h
3 
4 #include <cassert>
5 #include <iosfwd>
6 #include <cstring> // bzero
7 
8 class CSCDMBHeader;
9 
11 public:
12  virtual ~CSCVDMBTrailerFormat(){};
13  /*
14  void init() {
15  bzero(this, sizeInWords()*2);
16  }
17 */
18  virtual void setEventInformation(const CSCDMBHeader &) = 0;
19 
20  virtual unsigned crateID() const = 0;
21  virtual unsigned dmbID() const = 0;
22 
23  virtual unsigned dmb_l1a() const = 0;
24  virtual unsigned dmb_bxn() const = 0;
25 
26  virtual unsigned alct_endtimeout() const = 0;
27  virtual unsigned tmb_endtimeout() const = 0;
28  virtual unsigned cfeb_endtimeout() const = 0;
29 
30  virtual unsigned alct_starttimeout() const = 0;
31  virtual unsigned tmb_starttimeout() const = 0;
32  virtual unsigned cfeb_starttimeout() const = 0;
33 
34  virtual unsigned cfeb_movlp() const = 0;
35  virtual unsigned dmb_l1pipe() const = 0;
36 
37  virtual unsigned alct_empty() const = 0;
38  virtual unsigned tmb_empty() const = 0;
39  virtual unsigned cfeb_empty() const = 0;
40 
41  virtual unsigned alct_half() const = 0;
42  virtual unsigned tmb_half() const = 0;
43  virtual unsigned cfeb_half() const = 0;
44 
45  virtual unsigned alct_full() const = 0;
46  virtual unsigned tmb_full() const = 0;
47  virtual unsigned cfeb_full() const = 0;
48 
49  virtual unsigned crc22() const = 0;
50  virtual unsigned crc_lo_parity() const = 0;
51  virtual unsigned crc_hi_parity() const = 0;
52 
53  virtual unsigned short *data() = 0;
54  virtual unsigned short *data() const = 0;
55 
56  virtual bool check() const = 0;
57 
58  virtual unsigned sizeInWords() const = 0;
59 
60  //ostream & operator<<(ostream &, const CSCVDMBTrailerFormat &);
61 };
62 
63 #endif
virtual unsigned dmb_l1a() const =0
virtual unsigned alct_starttimeout() const =0
virtual unsigned dmb_bxn() const =0
virtual unsigned cfeb_empty() const =0
virtual unsigned cfeb_endtimeout() const =0
virtual unsigned short * data()=0
virtual unsigned cfeb_starttimeout() const =0
virtual unsigned crc22() const =0
virtual unsigned crc_lo_parity() const =0
virtual unsigned alct_half() const =0
virtual unsigned dmbID() const =0
virtual unsigned cfeb_full() const =0
virtual unsigned alct_full() const =0
virtual unsigned crateID() const =0
virtual unsigned crc_hi_parity() const =0
virtual unsigned tmb_empty() const =0
virtual unsigned dmb_l1pipe() const =0
virtual bool check() const =0
virtual unsigned alct_endtimeout() const =0
virtual unsigned alct_empty() const =0
virtual unsigned cfeb_movlp() const =0
virtual unsigned tmb_starttimeout() const =0
virtual unsigned sizeInWords() const =0
virtual unsigned tmb_half() const =0
virtual unsigned cfeb_half() const =0
virtual unsigned tmb_full() const =0
virtual unsigned tmb_endtimeout() const =0
virtual void setEventInformation(const CSCDMBHeader &)=0