CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
L1GctRegion.h
Go to the documentation of this file.
1 #ifndef L1GCTREGION_H_
2 #define L1GCTREGION_H_
3 
4 #include <bitset>
5 
6 /*
7  * A calorimeter trigger region
8  * as represented in the GCT
9  * author: Jim Brooke
10  * date: 20/2/2006
11  *
12  */
13 
14 
15 typedef unsigned long int ULong;
16 
17 class L1GctRegion
18 {
19 public:
20 
21  L1GctRegion(ULong et=0, bool mip=false, bool quiet=false);
22  ~L1GctRegion();
23 
24  // Getters
25  ULong getEt() const { return myEt.to_ulong(); }
26  bool getMip() const { return myMip; }
27  bool getQuiet() const { return myQuiet; }
28 
29  // Setters
30  void setEt(ULong et) { myEt = et; }
31  void setMip(bool mip) { myMip = mip; }
32  void setQuiet(bool quiet) { myQuiet = quiet; }
33 
34  ostream& operator << (ostream& os, const L1GctRegion& s);
35 
36 private:
37 
38  std::bitset<10> myEt;
39  bool myMip;
40  bool myQuiet;
41 
42 };
43 
44 #endif /*L1GCTREGION_H_*/
Gct version of a calorimeter region, used within GCT emulation.
Definition: L1GctRegion.h:17
ostream & operator<<(ostream &os, const L1GctRegion &s)
bool getMip() const
Definition: L1GctRegion.h:26
bool quiet() const
get quiet bit
Definition: L1CaloRegion.h:134
bool getQuiet() const
Definition: L1GctRegion.h:27
bool mip() const
get MIP bit
Definition: L1CaloRegion.h:131
std::bitset< 10 > myEt
Definition: L1GctRegion.h:38
void setMip(bool mip)
Definition: L1GctRegion.h:31
void setQuiet(bool quiet)
Definition: L1GctRegion.h:32
unsigned long int ULong
Definition: L1GctRegion.h:15
void setEt(ULong et)
Definition: L1GctRegion.h:30
unsigned et() const
Definition: L1GctRegion.h:40
bool myQuiet
Definition: L1GctRegion.h:40
ULong getEt() const
Definition: L1GctRegion.h:25