Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 #ifndef CondFormats_EcalObjects_EcalTPGCrystalStatusCode_H
0002 #define CondFormats_EcalObjects_EcalTPGCrystalStatusCode_H
0003 /**
0004  * Author: FC
0005  * Created: 3 dec 2008
0006  * 
0007  **/
0008 
0009 #include "CondFormats/Serialization/interface/Serializable.h"
0010 
0011 #include <iostream>
0012 #include <cstdint>
0013 
0014 class EcalTPGCrystalStatusCode {
0015 public:
0016   EcalTPGCrystalStatusCode();
0017   EcalTPGCrystalStatusCode(const EcalTPGCrystalStatusCode& codeStatus);
0018   EcalTPGCrystalStatusCode(const uint16_t& encodedStatus) : status_(encodedStatus){};
0019   ~EcalTPGCrystalStatusCode();
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   EcalTPGCrystalStatusCode& operator=(const EcalTPGCrystalStatusCode& rhs);
0026   uint16_t getStatusCode() const { return status_; }
0027 
0028   // for testing the L1 trigger emulator
0029   void setStatusCode(const uint16_t& val) { status_ = val; }
0030 
0031 private:
0032   uint16_t status_;
0033 
0034   COND_SERIALIZABLE;
0035 };
0036 #endif