CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
CSCDCCEventData.h
Go to the documentation of this file.
1 
3 #ifndef CSCDCCEventData_h
4 #define CSCDCCEventData_h
5 
6 #include <vector>
7 #include <boost/dynamic_bitset.hpp>
12 
14 public:
15  CSCDCCEventData(int sourceId, int nDDUs, int bx, int l1a);
18  explicit CSCDCCEventData(unsigned short *buf, CSCDCCExaminer* examiner=NULL);
19 
21 
22  static void setDebug(bool value) {debug = value;}
23 
25  const std::vector<CSCDDUEventData> & dduData() const {return theDDUData;}
26  std::vector<CSCDDUEventData> & dduData() {return theDDUData;}
27 
30 
31 
33  //void add(CSCEventData &);
34 
35  bool check() const;
36 
39  int sizeInWords() const {return theSizeInWords;}
40 
41  void addChamber(CSCEventData & chamber, int dduID, int dduSlot, int dduInput, int dmbID);
42 
44  boost::dynamic_bitset<> pack();
45 
46  static bool debug;
47 
48 
49 protected:
50  void unpack_data(unsigned short * buf, CSCDCCExaminer* examiner=NULL);
52  // DDUData is unpacked and stored in this vector
53  std::vector<CSCDDUEventData> theDDUData;
56 };
57 
58 #endif
01/20/05 A.Tumanov
bool check() const
for making events. Sets the bxnum and lvl1num inside the chamber event
CSCDCCHeader theDCCHeader
int sizeInWords() const
static bool debug
const std::vector< CSCDDUEventData > & dduData() const
accessor to dduData
#define NULL
Definition: scimark2.h:8
CSCDCCTrailer theDCCTrailer
CSCDCCTrailer dccTrailer() const
boost::dynamic_bitset pack()
packs data into bits
CSCDCCHeader dccHeader() const
std::vector< CSCDDUEventData > theDDUData
static void setDebug(bool value)
void addChamber(CSCEventData &chamber, int dduID, int dduSlot, int dduInput, int dmbID)
CSCDCCEventData(int sourceId, int nDDUs, int bx, int l1a)
void unpack_data(unsigned short *buf, CSCDCCExaminer *examiner=NULL)
std::vector< CSCDDUEventData > & dduData()