CMS 3D CMS Logo

CSCVDMBHeaderFormat.h
Go to the documentation of this file.
1 #ifndef EventFilter_CSCRawToDigi_CSCVDMBHeaderFormat_h
2 #define EventFilter_CSCRawToDigi_CSCVDMBHeaderFormat_h
3 
4 #include <cassert>
5 #include <iosfwd>
6 #include <cstring> // bzero
7 
9 public:
10  virtual ~CSCVDMBHeaderFormat() {}
11  /*
12  void init() {
13  bzero(this, sizeInWords()*2);
14  }
15 */
16 
17  virtual bool cfebAvailable(unsigned icfeb) = 0;
18 
19  virtual void addCFEB(int icfeb) = 0;
20  virtual void addNCLCT() = 0;
21  virtual void addNALCT() = 0;
22  virtual void setBXN(int bxn) = 0;
23  virtual void setL1A(int l1a) = 0;
24  virtual void setL1A24(int l1a) = 0;
25  virtual void setCrateAddress(int crate, int dmbId) = 0;
26  virtual void setdmbID(int newDMBID) = 0;
27  virtual void setdmbVersion(unsigned int version) = 0;
28 
29  virtual unsigned cfebActive() const = 0;
30  virtual unsigned crateID() const = 0;
31  virtual unsigned dmbID() const = 0;
32  virtual unsigned bxn() const = 0;
33  virtual unsigned bxn12() const = 0;
34  virtual unsigned l1a() const = 0;
35  virtual unsigned l1a24() const = 0;
36  virtual unsigned cfebAvailable() const = 0;
37  virtual unsigned nalct() const = 0;
38  virtual unsigned nclct() const = 0;
39  virtual unsigned cfebMovlp() const = 0;
40  virtual unsigned dmbCfebSync() const = 0;
41  virtual unsigned activeDavMismatch() const = 0;
42  virtual unsigned format_version() const = 0;
43 
44  virtual unsigned sizeInWords() const = 0;
45 
46  virtual bool check() const = 0;
47 
48  virtual unsigned short* data() = 0;
49  virtual unsigned short* data() const = 0;
50 
51  //ostream & operator<<(ostream &, const CSCVDMBHeaderFormat &);
52 };
53 
54 #endif
virtual void addNCLCT()=0
virtual unsigned dmbID() const =0
virtual void setL1A(int l1a)=0
virtual unsigned crateID() const =0
virtual unsigned bxn12() const =0
virtual unsigned cfebMovlp() const =0
virtual unsigned dmbCfebSync() const =0
virtual unsigned nalct() const =0
virtual unsigned cfebAvailable() const =0
virtual unsigned nclct() const =0
virtual void setBXN(int bxn)=0
virtual unsigned sizeInWords() const =0
virtual void setCrateAddress(int crate, int dmbId)=0
virtual void setdmbVersion(unsigned int version)=0
virtual bool check() const =0
virtual unsigned short * data()=0
virtual unsigned bxn() const =0
virtual unsigned activeDavMismatch() const =0
virtual unsigned l1a24() const =0
virtual unsigned format_version() const =0
virtual void setL1A24(int l1a)=0
virtual void addNALCT()=0
virtual unsigned cfebActive() const =0
virtual void setdmbID(int newDMBID)=0
virtual void addCFEB(int icfeb)=0
virtual unsigned l1a() const =0