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
CSCVDMBHeaderFormat::cfebMovlp
virtual unsigned cfebMovlp() const =0
CSCVDMBHeaderFormat::dmbCfebSync
virtual unsigned dmbCfebSync() const =0
CSCVDMBHeaderFormat::dmbID
virtual unsigned dmbID() const =0
CSCVDMBHeaderFormat::bxn12
virtual unsigned bxn12() const =0
CSCVDMBHeaderFormat::crateID
virtual unsigned crateID() const =0
CSCVDMBHeaderFormat::bxn
virtual unsigned bxn() const =0
CSCVDMBHeaderFormat::setCrateAddress
virtual void setCrateAddress(int crate, int dmbId)=0
CSCVDMBHeaderFormat::setL1A24
virtual void setL1A24(int l1a)=0
CSCVDMBHeaderFormat::addCFEB
virtual void addCFEB(int icfeb)=0
CSCVDMBHeaderFormat::l1a24
virtual unsigned l1a24() const =0
CSCVDMBHeaderFormat::format_version
virtual unsigned format_version() const =0
CSCVDMBHeaderFormat::l1a
virtual unsigned l1a() const =0
CSCVDMBHeaderFormat::setL1A
virtual void setL1A(int l1a)=0
CSCVDMBHeaderFormat::nclct
virtual unsigned nclct() const =0
CSCVDMBHeaderFormat::~CSCVDMBHeaderFormat
virtual ~CSCVDMBHeaderFormat()
Definition: CSCVDMBHeaderFormat.h:10
CSCVDMBHeaderFormat::activeDavMismatch
virtual unsigned activeDavMismatch() const =0
CSCVDMBHeaderFormat::cfebAvailable
virtual unsigned cfebAvailable() const =0
CSCVDMBHeaderFormat::data
virtual unsigned short * data()=0
CSCVDMBHeaderFormat
Definition: CSCVDMBHeaderFormat.h:8
CSCVDMBHeaderFormat::cfebActive
virtual unsigned cfebActive() const =0
CSCVDMBHeaderFormat::check
virtual bool check() const =0
CSCVDMBHeaderFormat::setBXN
virtual void setBXN(int bxn)=0
CSCVDMBHeaderFormat::sizeInWords
virtual unsigned sizeInWords() const =0
CSCVDMBHeaderFormat::addNALCT
virtual void addNALCT()=0
CSCVDMBHeaderFormat::addNCLCT
virtual void addNCLCT()=0
CSCVDMBHeaderFormat::nalct
virtual unsigned nalct() const =0
CSCVDMBHeaderFormat::setdmbID
virtual void setdmbID(int newDMBID)=0
BeamSplash_cfg.version
version
Definition: BeamSplash_cfg.py:45
CSCVDMBHeaderFormat::setdmbVersion
virtual void setdmbVersion(unsigned int version)=0