test
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 
11 
12 #include <iostream>
13 #include <boost/cstdint.hpp>
14 
16  public:
19  EcalTPGCrystalStatusCode(const uint16_t& encodedStatus) : status_(encodedStatus) {};
21 
22  //get Methods to be defined according to the final definition
23 
24  void print(std::ostream& s) const { s << "status is: " << status_; }
25 
27  uint16_t getStatusCode() const { return status_; }
28 
29  // for testing the L1 trigger emulator
30  void setStatusCode(const uint16_t & val) { status_=val; }
31 
32  private:
33  uint16_t status_;
34 
36 };
37 #endif
EcalTPGCrystalStatusCode(const uint16_t &encodedStatus)
void setStatusCode(const uint16_t &val)
void print(std::ostream &s) const
#define COND_SERIALIZABLE
Definition: Serializable.h:37
EcalTPGCrystalStatusCode & operator=(const EcalTPGCrystalStatusCode &rhs)