CMS 3D CMS Logo

CSCDMBTrailer.h
Go to the documentation of this file.
1 #ifndef EventFilter_CSCRawToDigi_CSCDMBTrailer_h
2 #define EventFilter_CSCRawToDigi_CSCDMBTrailer_h
3 
4 #include <cassert>
5 #include <iosfwd>
6 #include <cstring> // bzero
7 #include <memory>
12 
13 struct CSCDMBTrailer2005;
14 struct CSCDMBTrailer2013;
15 
17 public:
18  CSCDMBTrailer(uint16_t firmware_version = 2005);
19 
20  CSCDMBTrailer(const uint16_t* buf, uint16_t firmware_version = 2005);
21 
23  void setEventInformation(const CSCDMBHeader& header) { return theTrailerFormat->setEventInformation(header); };
24 
25  unsigned crateID() const { return theTrailerFormat->crateID(); };
26  unsigned dmbID() const { return theTrailerFormat->dmbID(); };
27 
28  unsigned dmb_l1a() const { return theTrailerFormat->dmb_l1a(); };
29  unsigned dmb_bxn() const { return theTrailerFormat->dmb_bxn(); };
30 
31  unsigned alct_endtimeout() const { return theTrailerFormat->alct_endtimeout(); };
32  unsigned tmb_endtimeout() const { return theTrailerFormat->tmb_endtimeout(); };
33  unsigned cfeb_endtimeout() const { return theTrailerFormat->cfeb_endtimeout(); };
34 
35  unsigned alct_starttimeout() const { return theTrailerFormat->alct_starttimeout(); };
36  unsigned tmb_starttimeout() const { return theTrailerFormat->tmb_starttimeout(); };
37  unsigned cfeb_starttimeout() const { return theTrailerFormat->cfeb_starttimeout(); };
38 
39  unsigned cfeb_movlp() const { return theTrailerFormat->cfeb_movlp(); };
40  unsigned dmb_l1pipe() const { return theTrailerFormat->dmb_l1pipe(); };
41 
42  unsigned alct_empty() const { return theTrailerFormat->alct_empty(); };
43  unsigned tmb_empty() const { return theTrailerFormat->tmb_empty(); };
44  unsigned cfeb_empty() const { return theTrailerFormat->cfeb_empty(); };
45 
46  unsigned alct_half() const { return theTrailerFormat->alct_half(); };
47  unsigned tmb_half() const { return theTrailerFormat->tmb_half(); };
48  unsigned cfeb_half() const { return theTrailerFormat->cfeb_half(); };
49 
50  unsigned alct_full() const { return theTrailerFormat->alct_full(); };
51  unsigned tmb_full() const { return theTrailerFormat->tmb_full(); };
52  unsigned cfeb_full() const { return theTrailerFormat->cfeb_full(); };
53 
54  unsigned crc22() const { return theTrailerFormat->crc22(); };
55  unsigned crc_lo_parity() const { return theTrailerFormat->crc_lo_parity(); };
56  unsigned crc_hi_parity() const { return theTrailerFormat->crc_hi_parity(); };
57 
58  unsigned short* data() { return theTrailerFormat->data(); };
59  unsigned short* data() const { return theTrailerFormat->data(); };
60 
61  unsigned sizeInWords() const { return theTrailerFormat->sizeInWords(); };
62 
63  bool check() const { return theTrailerFormat->check(); };
64 
68 
69 private:
70  std::shared_ptr<CSCVDMBTrailerFormat> theTrailerFormat;
72 };
73 
74 #endif
CSCVDMBTrailerFormat.h
CSCDMBTrailer::cfeb_endtimeout
unsigned cfeb_endtimeout() const
Definition: CSCDMBTrailer.h:33
CSCDMBTrailer::alct_starttimeout
unsigned alct_starttimeout() const
Definition: CSCDMBTrailer.h:35
CSCDMBTrailer
Definition: CSCDMBTrailer.h:16
CSCDMBTrailer::dmb_bxn
unsigned dmb_bxn() const
Definition: CSCDMBTrailer.h:29
CSCDMBStatusDigi.h
CSCDMBTrailer::alct_empty
unsigned alct_empty() const
Definition: CSCDMBTrailer.h:42
CSCDMBTrailer::alct_endtimeout
unsigned alct_endtimeout() const
Definition: CSCDMBTrailer.h:31
CSCDMBTrailer2005
Definition: CSCDMBTrailer2005.h:8
CSCDMBTrailer::cfeb_movlp
unsigned cfeb_movlp() const
Definition: CSCDMBTrailer.h:39
CSCDMBTrailer::crateID
unsigned crateID() const
Definition: CSCDMBTrailer.h:25
CSCDMBTrailer::check
bool check() const
Definition: CSCDMBTrailer.h:63
CSCDMBTrailer::dmbID
unsigned dmbID() const
Definition: CSCDMBTrailer.h:26
CSCDMBTrailer::tmb_empty
unsigned tmb_empty() const
Definition: CSCDMBTrailer.h:43
CSCDMBTrailer::dmbTrailer2005
CSCDMBTrailer2005 dmbTrailer2005() const
will throw if the cast fails
Definition: CSCDMBTrailer.cc:24
CSCDMBTrailer::tmb_starttimeout
unsigned tmb_starttimeout() const
Definition: CSCDMBTrailer.h:36
CSCDMBTrailer::dmbTrailer2013
CSCDMBTrailer2013 dmbTrailer2013() const
Definition: CSCDMBTrailer.cc:32
CSCDMBTrailer::alct_half
unsigned alct_half() const
Definition: CSCDMBTrailer.h:46
CSCDMBTrailer::tmb_endtimeout
unsigned tmb_endtimeout() const
Definition: CSCDMBTrailer.h:32
CSCDMBHeader.h
CSCDMBTrailer::data
unsigned short * data() const
Definition: CSCDMBTrailer.h:59
CSCDMBTrailer::cfeb_starttimeout
unsigned cfeb_starttimeout() const
Definition: CSCDMBTrailer.h:37
CSCDMBTrailer::crc_hi_parity
unsigned crc_hi_parity() const
Definition: CSCDMBTrailer.h:56
CSCDMBTrailer::data
unsigned short * data()
Definition: CSCDMBTrailer.h:58
CSCDMBTrailer::tmb_full
unsigned tmb_full() const
Definition: CSCDMBTrailer.h:51
CSCDMBTrailer::alct_full
unsigned alct_full() const
Definition: CSCDMBTrailer.h:50
CSCDMBTrailer::tmb_half
unsigned tmb_half() const
Definition: CSCDMBTrailer.h:47
CSCDMBTrailer::cfeb_empty
unsigned cfeb_empty() const
Definition: CSCDMBTrailer.h:44
CSCDMBTrailer::theFirmwareVersion
int theFirmwareVersion
Definition: CSCDMBTrailer.h:71
CSCDMBTrailer::sizeInWords
unsigned sizeInWords() const
Definition: CSCDMBTrailer.h:61
visDQMUpload.buf
buf
Definition: visDQMUpload.py:160
CSCDMBTrailer::theTrailerFormat
std::shared_ptr< CSCVDMBTrailerFormat > theTrailerFormat
Definition: CSCDMBTrailer.h:70
CSCDMBHeader
Definition: CSCDMBHeader.h:15
CSCDMBTrailer::crc22
unsigned crc22() const
Definition: CSCDMBTrailer.h:54
CSCDMBTrailer::cfeb_full
unsigned cfeb_full() const
Definition: CSCDMBTrailer.h:52
Exception.h
CSCDMBTrailer::CSCDMBTrailer
CSCDMBTrailer(uint16_t firmware_version=2005)
Definition: CSCDMBTrailer.cc:7
CSCDMBTrailer::cfeb_half
unsigned cfeb_half() const
Definition: CSCDMBTrailer.h:48
RecoTauValidation_cfi.header
header
Definition: RecoTauValidation_cfi.py:291
CSCDMBTrailer2013
Definition: CSCDMBTrailer2013.h:42
CSCDMBTrailer::dmb_l1pipe
unsigned dmb_l1pipe() const
Definition: CSCDMBTrailer.h:40
CSCDMBTrailer::setEventInformation
void setEventInformation(const CSCDMBHeader &header)
@ NEEDS TO BE DONE
Definition: CSCDMBTrailer.h:23
CSCDMBTrailer::dmb_l1a
unsigned dmb_l1a() const
Definition: CSCDMBTrailer.h:28
CSCDMBTrailer::crc_lo_parity
unsigned crc_lo_parity() const
Definition: CSCDMBTrailer.h:55