CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_4_1_8_patch13/src/EventFilter/CSCTFRawToDigi/src/CSCSPEvent.h

Go to the documentation of this file.
00001 #ifndef CSCSPEvent_h
00002 #define CSCSPEvent_h
00003 
00004 #include "EventFilter/CSCTFRawToDigi/src/CSCSPHeader.h"
00005 #include "EventFilter/CSCTFRawToDigi/src/CSCSPCounters.h"
00006 #include "EventFilter/CSCTFRawToDigi/src/CSCSPRecord.h"
00007 #include "EventFilter/CSCTFRawToDigi/src/CSCSPTrailer.h"
00008 
00009 class CSCSPEvent {
00010 private:
00011         CSCSPHeader   header_;
00012         CSCSPCounters counters_;
00013         CSCSPRecord   record_[7];
00014         CSCSPTrailer  trailer_;
00015 
00016 public:
00017         const CSCSPHeader&   header  (void) const throw() { return header_;   }
00018         const CSCSPCounters& counters(void) const throw() { return counters_; }
00019         const CSCSPTrailer&  trailer (void) const throw() { return trailer_;  }
00020 
00021         const CSCSPRecord& record(unsigned int tbin) const throw() { return record_[tbin]; }
00022 
00023         bool unpack(const unsigned short *&buf) throw() ;
00024 
00025         CSCSPEvent(void){}
00026 };
00027 
00028 #endif