test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
CSCDCCHeader.h
Go to the documentation of this file.
1 /* CSCDCCHeader 9/24/04 A.Tumanov
2  * documented at http://www.physics.ohio-state.edu/~cms/ddu/ddu2.html
3  */
4 
5 #ifndef CSCDCCHeader_h
6 #define CSCDCCHeader_h
7 
8 #include <string> //for bzero
10 
11 class CSCDCCHeader {
12 
13  public:
14  CSCDCCHeader(int bx, int l1a, int sourceId, int version=0);
15  CSCDCCHeader();
16  CSCDCCHeader(const CSCDCCStatusDigi & digi);
17 
18  int getCDFEventNumber() const;
19  int getCDFSourceId() const;
20  int getCDFFOV() const;
21  int getCDFEventType() const;
22  int getCDFBunchCounter() const;
23  void setDAV(int dduSlot);
24  bool check() const { return true/*dcc_code1==0xD9 && dcc_code2==0x97*/;}
25  unsigned short * data() {return (short unsigned *)word;}
26  static unsigned sizeInWords() {return 8;}
27 
28  // gets some data filled by the event data
29  friend class CSCDDUEventData;
30 
31  private:
32  unsigned long long word[2];
33 
34  /*
35  //first line of DCC header definded by CDF (common data format)
37  unsigned BOE_1 : 4;
38  unsigned Evt_ty : 4;
39  unsigned LV1_id : 24;
40  unsigned BX_id : 12;
41  unsigned Source_id : 12;
42  unsigned FOV : 4;
43  unsigned Hx : 3;
44  unsigned dollardollar: 1;
45 
48  unsigned dcc_code1 : 8;
49  unsigned orbit_counter : 32;
50  unsigned fifo_status : 16;
52  unsigned dcc_code2 : 8;
53 
54  */
55 
56 };
57 #endif
void setDAV(int dduSlot)
Definition: CSCDCCHeader.cc:52
int getCDFFOV() const
Definition: CSCDCCHeader.cc:42
int getCDFBunchCounter() const
Definition: CSCDCCHeader.cc:34
int getCDFEventNumber() const
Definition: CSCDCCHeader.cc:29
int getCDFEventType() const
Definition: CSCDCCHeader.cc:46
bool check() const
Definition: CSCDCCHeader.h:24
int getCDFSourceId() const
Definition: CSCDCCHeader.cc:38
unsigned long long word[2]
Definition: CSCDCCHeader.h:32
static unsigned sizeInWords()
Definition: CSCDCCHeader.h:26
unsigned short * data()
Definition: CSCDCCHeader.h:25