00001 #ifndef L1GCTREGION_H_ 00002 #define L1GCTREGION_H_ 00003 00004 #include <bitset> 00005 00006 /* 00007 * A calorimeter trigger region 00008 * as represented in the GCT 00009 * author: Jim Brooke 00010 * date: 20/2/2006 00011 * 00012 */ 00013 00014 00015 typedef unsigned long int ULong; 00016 00017 class L1GctRegion 00018 { 00019 public: 00020 00021 L1GctRegion(ULong et=0, bool mip=false, bool quiet=false); 00022 ~L1GctRegion(); 00023 00024 // Getters 00025 ULong getEt() const { return myEt.to_ulong(); } 00026 bool getMip() const { return myMip; } 00027 bool getQuiet() const { return myQuiet; } 00028 00029 // Setters 00030 void setEt(ULong et) { myEt = et; } 00031 void setMip(bool mip) { myMip = mip; } 00032 void setQuiet(bool quiet) { myQuiet = quiet; } 00033 00034 ostream& operator << (ostream& os, const L1GctRegion& s); 00035 00036 private: 00037 00038 std::bitset<10> myEt; 00039 bool myMip; 00040 bool myQuiet; 00041 00042 }; 00043 00044 #endif /*L1GCTREGION_H_*/