CMS 3D CMS Logo

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