CMS 3D CMS Logo

CMSSW_4_4_3_patch1/src/DataFormats/CSCDigi/interface/CSCDCCStatusDigi.h

Go to the documentation of this file.
00001 #ifndef CSCDCCStatusDigi_CSCDCCStatusDigi_h
00002 #define CSCDCCStatusDigi_CSCDCCStatusDigi_h
00003 
00013 #include <vector>
00014 #include <iosfwd>
00015 #include <stdint.h>
00016 
00017 class CSCDCCStatusDigi{
00018 
00019 public:
00020 
00022   CSCDCCStatusDigi (const uint16_t * header, const uint16_t * trailer, 
00023                     const uint32_t & error, short unsigned tts);
00024   CSCDCCStatusDigi (const uint32_t & error, short unsigned tts) {errorFlag_=error;} //tts_ = tts;}
00025   
00027   CSCDCCStatusDigi () {}
00028 
00030   const uint16_t * header() const {return header_;} 
00031   const uint16_t * trailer() const {return trailer_;}
00032   const uint32_t errorFlag() const {return errorFlag_;}
00033   const uint16_t getDCCTTS() const;
00034 
00036  void print() const;
00037 
00038 private:
00039 
00040   uint16_t header_[8];
00041   uint16_t trailer_[8];
00042   uint32_t errorFlag_;
00043   short unsigned tts_; 
00044 };
00045 
00046 std::ostream & operator<<(std::ostream & o, const CSCDCCStatusDigi& digi);
00047 
00048 #endif