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::getStatusCode
uint16_t getStatusCode() const
Definition: EcalTPGCrystalStatusCode.h:26
EcalTPGCrystalStatusCode::EcalTPGCrystalStatusCode
EcalTPGCrystalStatusCode()
Definition: EcalTPGCrystalStatusCode.cc:9
COND_SERIALIZABLE
#define COND_SERIALIZABLE
Definition: Serializable.h:39
alignCSCRings.s
s
Definition: alignCSCRings.py:92
EcalTPGCrystalStatusCode::operator=
EcalTPGCrystalStatusCode & operator=(const EcalTPGCrystalStatusCode &rhs)
Definition: EcalTPGCrystalStatusCode.cc:15
EcalTPGCrystalStatusCode::~EcalTPGCrystalStatusCode
~EcalTPGCrystalStatusCode()
Definition: EcalTPGCrystalStatusCode.cc:13
EcalTPGCrystalStatusCode::status_
uint16_t status_
Definition: EcalTPGCrystalStatusCode.h:32
EcalTPGCrystalStatusCode::print
void print(std::ostream &s) const
Definition: EcalTPGCrystalStatusCode.h:23
EcalTPGCrystalStatusCode::setStatusCode
void setStatusCode(const uint16_t &val)
Definition: EcalTPGCrystalStatusCode.h:29
Serializable.h
heppy_batch.val
val
Definition: heppy_batch.py:351
EcalTPGCrystalStatusCode::EcalTPGCrystalStatusCode
EcalTPGCrystalStatusCode(const uint16_t &encodedStatus)
Definition: EcalTPGCrystalStatusCode.h:18
EcalTPGCrystalStatusCode
Definition: EcalTPGCrystalStatusCode.h:14