Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:51:04

0001 #ifndef CondFormats_EcalObjects_EcalDAQStatusCode_H
0002 #define CondFormats_EcalObjects_EcalDAQStatusCode_H
0003 /**
0004  * Author: Paolo Meridiani
0005  * Created: 14 Nov 2006
0006  * $Id: EcalDAQStatusCode.h,v 1.2 2008/02/18 10:49:28 ferriff Exp $
0007  **/
0008 
0009 #include "CondFormats/Serialization/interface/Serializable.h"
0010 
0011 #include <iostream>
0012 #include <cstdint>
0013 
0014 class EcalDAQStatusCode {
0015 public:
0016   EcalDAQStatusCode();
0017   EcalDAQStatusCode(const EcalDAQStatusCode& codeStatus);
0018   EcalDAQStatusCode(const uint16_t& encodedStatus) : status_(encodedStatus){};
0019   ~EcalDAQStatusCode();
0020 
0021   //get Methods to be defined according to the final definition
0022 
0023   void print(std::ostream& s) const { s << "status is: " << status_; }
0024 
0025   EcalDAQStatusCode& operator=(const EcalDAQStatusCode& rhs);
0026   uint16_t getStatusCode() const { return status_; }
0027 
0028 private:
0029   uint16_t status_;
0030 
0031   COND_SERIALIZABLE;
0032 };
0033 #endif