00001 #ifndef CondFormats_EcalObjects_EcalTPGCrystalStatusCode_H 00002 #define CondFormats_EcalObjects_EcalTPGCrystalStatusCode_H 00003 00010 #include <iostream> 00011 #include <boost/cstdint.hpp> 00012 00013 class EcalTPGCrystalStatusCode { 00014 public: 00015 EcalTPGCrystalStatusCode(); 00016 EcalTPGCrystalStatusCode(const EcalTPGCrystalStatusCode & codeStatus); 00017 EcalTPGCrystalStatusCode(const uint16_t& encodedStatus) : status_(encodedStatus) {}; 00018 ~EcalTPGCrystalStatusCode(); 00019 00020 //get Methods to be defined according to the final definition 00021 00022 void print(std::ostream& s) const { s << "status is: " << status_; } 00023 00024 EcalTPGCrystalStatusCode& operator=(const EcalTPGCrystalStatusCode& rhs); 00025 uint16_t getStatusCode() const { return status_; } 00026 00027 // for testing the L1 trigger emulator 00028 void setStatusCode(const uint16_t & val) { status_=val; } 00029 00030 private: 00031 uint16_t status_; 00032 }; 00033 #endif