Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:53:09

0001 #ifndef CSCDDUStatusDigi_CSCDDUStatusDigi_h
0002 #define CSCDDUStatusDigi_CSCDDUStatusDigi_h
0003 
0004 /** \class CSCDDUStatusDigi
0005  *
0006  *  Digi for CSC DDU info available in DDU
0007  *  
0008  *
0009  */
0010 
0011 #include <vector>
0012 #include <iosfwd>
0013 #include <cstdint>
0014 
0015 class CSCDDUStatusDigi {
0016 public:
0017   /// Constructor for all variables
0018   CSCDDUStatusDigi(const uint16_t* header, const uint16_t* trailer, uint16_t tts);
0019 
0020   /// Default constructor.
0021   CSCDDUStatusDigi() {}
0022 
0023   /// Data Accessors
0024   const uint16_t* header() const { return header_; }
0025   const uint16_t* trailer() const { return trailer_; }
0026   const uint16_t getDDUTTS() const;
0027 
0028   /// Print the content of CSCDDUStatusDigi
0029   void print() const;
0030 
0031 private:
0032   uint16_t header_[12];
0033   uint16_t trailer_[12];
0034   uint16_t tts_;
0035 };
0036 
0037 std::ostream& operator<<(std::ostream& o, const CSCDDUStatusDigi& digi);
0038 
0039 #endif