CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
EcalTPGCrystalStatusCode.h
Go to the documentation of this file.
1 #ifndef CondFormats_EcalObjects_EcalTPGCrystalStatusCode_H
2 #define CondFormats_EcalObjects_EcalTPGCrystalStatusCode_H
3 
10 #include <iostream>
11 #include <boost/cstdint.hpp>
12 
14  public:
17  EcalTPGCrystalStatusCode(const uint16_t& encodedStatus) : status_(encodedStatus) {};
19 
20  //get Methods to be defined according to the final definition
21 
22  void print(std::ostream& s) const { s << "status is: " << status_; }
23 
25  uint16_t getStatusCode() const { return status_; }
26 
27  // for testing the L1 trigger emulator
28  void setStatusCode(const uint16_t & val) { status_=val; }
29 
30  private:
31  uint16_t status_;
32 };
33 #endif
EcalTPGCrystalStatusCode(const uint16_t &encodedStatus)
void setStatusCode(const uint16_t &val)
void print(std::ostream &s) const
EcalTPGCrystalStatusCode & operator=(const EcalTPGCrystalStatusCode &rhs)