CMS 3D CMS Logo

EcalTPGCrystalStatusCode.h
Go to the documentation of this file.
1 #ifndef CondFormats_EcalObjects_EcalTPGCrystalStatusCode_H
2 #define CondFormats_EcalObjects_EcalTPGCrystalStatusCode_H
3 
10 
11 #include <iostream>
12 #include <cstdint>
13 
15 public:
18  EcalTPGCrystalStatusCode(const uint16_t& encodedStatus) : status_(encodedStatus) {}
20 
21  //get Methods to be defined according to the final definition
22 
23  void print(std::ostream& s) const { s << "status is: " << status_; }
24 
26  uint16_t getStatusCode() const { return status_; }
27 
28  // for testing the L1 trigger emulator
29  void setStatusCode(const uint16_t& val) { status_ = val; }
30 
31 private:
32  uint16_t status_;
33 
35 };
36 #endif
EcalTPGCrystalStatusCode(const uint16_t &encodedStatus)
void setStatusCode(const uint16_t &val)
void print(std::ostream &s) const
#define COND_SERIALIZABLE
Definition: Serializable.h:39
EcalTPGCrystalStatusCode & operator=(const EcalTPGCrystalStatusCode &rhs)