00001 #ifndef DataFormats_L1Monitor_h 00002 #define DataFormats_L1Monitor_h 00003 00004 /*\class L1MonitorDigi 00005 *\description L1 trigger generic digi for monitoring 00006 *\author Nuno Leonardo (CERN) 00007 *\date 08.03 00008 */ 00009 00010 #include <ostream> 00011 #include <string> 00012 #include <utility> 00013 00014 class L1MonitorDigi { 00015 00016 public: 00017 00018 L1MonitorDigi(); 00019 L1MonitorDigi(unsigned sid, unsigned cid, unsigned x1, unsigned x2, 00020 unsigned x3, unsigned value, unsigned data); 00021 ~L1MonitorDigi(); 00022 00023 void setSid(int sid) {m_sid = sid;} 00024 void setCid(int cid) {m_cid = cid;} 00025 void setLoc(unsigned x1, unsigned x2, unsigned x3) 00026 { m_location[0]=x1; m_location[1]=x2; m_location[2]=x3;} 00027 void setRaw(unsigned raw) {m_data=raw;} 00028 void setValue(unsigned val) {m_value=val;} 00029 00030 unsigned sid() const {return m_sid;} 00031 unsigned cid() const {return m_cid;} 00032 unsigned x1() const {return m_location[0];} 00033 unsigned x2() const {return m_location[1];} 00034 unsigned x3() const {return m_location[2];} 00035 unsigned raw() const {return m_data;} 00036 unsigned value() const {return m_value;} 00037 00038 unsigned reset(); 00039 bool empty() const; 00040 00041 private: 00042 00043 unsigned m_sid; 00044 unsigned m_cid; 00045 unsigned m_location[3]; 00046 unsigned m_value; 00047 unsigned m_data; 00048 unsigned m_null; 00049 00050 }; 00051 00052 std::ostream& operator<<(std::ostream&, const L1MonitorDigi&); 00053 00054 #endif