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
CSCVDMBTrailerFormat::check
virtual bool check() const =0
CSCVDMBTrailerFormat::crc_lo_parity
virtual unsigned crc_lo_parity() const =0
CSCVDMBTrailerFormat::cfeb_empty
virtual unsigned cfeb_empty() const =0
CSCVDMBTrailerFormat::setEventInformation
virtual void setEventInformation(const CSCDMBHeader &)=0
CSCVDMBTrailerFormat
Definition: CSCVDMBTrailerFormat.h:10
CSCVDMBTrailerFormat::data
virtual unsigned short * data()=0
CSCVDMBTrailerFormat::dmb_bxn
virtual unsigned dmb_bxn() const =0
CSCVDMBTrailerFormat::cfeb_starttimeout
virtual unsigned cfeb_starttimeout() const =0
CSCVDMBTrailerFormat::cfeb_full
virtual unsigned cfeb_full() const =0
CSCVDMBTrailerFormat::alct_half
virtual unsigned alct_half() const =0
CSCVDMBTrailerFormat::dmbID
virtual unsigned dmbID() const =0
CSCVDMBTrailerFormat::crateID
virtual unsigned crateID() const =0
CSCVDMBTrailerFormat::dmb_l1pipe
virtual unsigned dmb_l1pipe() const =0
CSCVDMBTrailerFormat::crc22
virtual unsigned crc22() const =0
CSCVDMBTrailerFormat::alct_endtimeout
virtual unsigned alct_endtimeout() const =0
CSCVDMBTrailerFormat::crc_hi_parity
virtual unsigned crc_hi_parity() const =0
CSCVDMBTrailerFormat::cfeb_movlp
virtual unsigned cfeb_movlp() const =0
CSCVDMBTrailerFormat::tmb_empty
virtual unsigned tmb_empty() const =0
CSCVDMBTrailerFormat::sizeInWords
virtual unsigned sizeInWords() const =0
CSCVDMBTrailerFormat::alct_full
virtual unsigned alct_full() const =0
CSCVDMBTrailerFormat::tmb_starttimeout
virtual unsigned tmb_starttimeout() const =0
CSCDMBHeader
Definition: CSCDMBHeader.h:15
CSCVDMBTrailerFormat::dmb_l1a
virtual unsigned dmb_l1a() const =0
CSCVDMBTrailerFormat::cfeb_half
virtual unsigned cfeb_half() const =0
CSCVDMBTrailerFormat::~CSCVDMBTrailerFormat
virtual ~CSCVDMBTrailerFormat()
Definition: CSCVDMBTrailerFormat.h:12
CSCVDMBTrailerFormat::alct_empty
virtual unsigned alct_empty() const =0
CSCVDMBTrailerFormat::alct_starttimeout
virtual unsigned alct_starttimeout() const =0
CSCVDMBTrailerFormat::tmb_full
virtual unsigned tmb_full() const =0
CSCVDMBTrailerFormat::tmb_endtimeout
virtual unsigned tmb_endtimeout() const =0
CSCVDMBTrailerFormat::cfeb_endtimeout
virtual unsigned cfeb_endtimeout() const =0
CSCVDMBTrailerFormat::tmb_half
virtual unsigned tmb_half() const =0