Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:14:44

0001 #ifndef CSCSPEvent_h
0002 #define CSCSPEvent_h
0003 
0004 #include "EventFilter/CSCTFRawToDigi/src/CSCSPHeader.h"
0005 #include "EventFilter/CSCTFRawToDigi/src/CSCSPCounters.h"
0006 #include "EventFilter/CSCTFRawToDigi/src/CSCSPRecord.h"
0007 #include "EventFilter/CSCTFRawToDigi/src/CSCSPTrailer.h"
0008 
0009 class CSCSPEvent {
0010 private:
0011   CSCSPHeader header_;
0012   CSCSPCounters counters_;
0013   CSCSPRecord record_[7];
0014   CSCSPTrailer trailer_;
0015 
0016 public:
0017   const CSCSPHeader& header(void) const throw() { return header_; }
0018   const CSCSPCounters& counters(void) const throw() { return counters_; }
0019   const CSCSPTrailer& trailer(void) const throw() { return trailer_; }
0020 
0021   const CSCSPRecord& record(unsigned int tbin) const throw() { return record_[tbin]; }
0022 
0023   bool unpack(const unsigned short*& buf) throw();
0024 
0025   CSCSPEvent(void) {}
0026 };
0027 
0028 #endif