CMS 3D CMS Logo

L1RCTRegion.h
Go to the documentation of this file.
1 #ifndef L1RCTRegion_h
2 #define L1RCTRegion_h
3 
4 #include <vector>
5 
6 class L1RCTRegion {
7 
8 public:
9  L1RCTRegion();
10  ~L1RCTRegion();
11 
12  void setEtIn7Bits(int i, int j, unsigned short energy);
13  unsigned short getEtIn9Bits(int i, int j) const;
14  void setEtIn9Bits(int i, int j, unsigned short energy);
15  void setHE_FGBit(int i, int j, unsigned short HE_FG);
16  unsigned short getMuonBit(int i, int j) const;
17  void setMuonBit(int i, int j, unsigned short muon);
18  void setActivityBit(int i, int j, unsigned short activity);
19  unsigned short getActivityBit(int i, int j) const;
20 
21  unsigned short getEtIn7Bits(int i, int j) const;
22  unsigned short getHE_FGBit(int i, int j) const;
23 
24  // diagnostic print functions.
25  // print prints the data contained in a convenient format
26  // print edges prints the neighboring edge information
27  void print();
28  void printEdges();
29 
30  std::vector<unsigned short> giveNorthEt() const;
31  std::vector<unsigned short> giveSouthEt() const;
32  std::vector<unsigned short> giveWestEt() const;
33  std::vector<unsigned short> giveEastEt() const;
34  std::vector<unsigned short> giveNorthHE_FG() const;
35  std::vector<unsigned short> giveSouthHE_FG() const;
36  std::vector<unsigned short> giveWestHE_FG() const;
37  std::vector<unsigned short> giveEastHE_FG() const;
38  unsigned short giveSEEt() const;
39  unsigned short giveSWEt() const;
40  unsigned short giveNEEt() const;
41  unsigned short giveNWEt() const;
42  unsigned short giveSEHE_FG() const;
43  unsigned short giveSWHE_FG() const;
44  unsigned short giveNEHE_FG() const;
45  unsigned short giveNWHE_FG() const;
46 
47  void setNorthEt(const std::vector<unsigned short> &north);
48  void setSouthEt(const std::vector<unsigned short> &south);
49  void setWestEt(const std::vector<unsigned short> &west);
50  void setEastEt(const std::vector<unsigned short> &east);
51  void setNorthHE_FG(const std::vector<unsigned short> &north);
52  void setSouthHE_FG(const std::vector<unsigned short> &south);
53  void setWestHE_FG(const std::vector<unsigned short> &west);
54  void setEastHE_FG(const std::vector<unsigned short> &east);
55  void setSEEt(unsigned short se);
56  void setSWEt(unsigned short sw);
57  void setNEEt(unsigned short ne);
58  void setNWEt(unsigned short nw);
59  void setSEHE_FG(unsigned short se);
60  void setSWHE_FG(unsigned short sw);
61  void setNEHE_FG(unsigned short ne);
62  void setNWHE_FG(unsigned short nw);
63 
64 private:
65  // 6x6 matrices
66  std::vector<unsigned short> totalRegionEt;
67  std::vector<unsigned short> totalRegionHE_FG;
68  // 4x4 matrices
69  std::vector<unsigned short> etIn9Bits;
70  // std::vector<unsigned short> HE_FGBit;
71  std::vector<unsigned short> muonBit;
72  std::vector<unsigned short> activityBit;
73 };
74 #endif
void setNEEt(unsigned short ne)
Definition: L1RCTRegion.cc:184
std::vector< unsigned short > giveSouthHE_FG() const
Definition: L1RCTRegion.cc:121
void setSWHE_FG(unsigned short sw)
Definition: L1RCTRegion.cc:207
std::vector< unsigned short > activityBit
Definition: L1RCTRegion.h:72
std::vector< unsigned short > giveWestEt() const
Definition: L1RCTRegion.cc:132
void setNEHE_FG(unsigned short ne)
Definition: L1RCTRegion.cc:185
void setNorthHE_FG(const std::vector< unsigned short > &north)
Definition: L1RCTRegion.cc:105
std::vector< unsigned short > totalRegionEt
Definition: L1RCTRegion.h:66
unsigned short getEtIn7Bits(int i, int j) const
Definition: L1RCTRegion.cc:27
void setHE_FGBit(int i, int j, unsigned short HE_FG)
Definition: L1RCTRegion.cc:44
std::vector< unsigned short > giveEastHE_FG() const
Definition: L1RCTRegion.cc:165
void setNWHE_FG(unsigned short nw)
Definition: L1RCTRegion.cc:196
std::vector< unsigned short > giveWestHE_FG() const
Definition: L1RCTRegion.cc:143
unsigned short getEtIn9Bits(int i, int j) const
Definition: L1RCTRegion.cc:51
void setWestHE_FG(const std::vector< unsigned short > &west)
Definition: L1RCTRegion.cc:149
unsigned short getMuonBit(int i, int j) const
Definition: L1RCTRegion.cc:62
void setSEEt(unsigned short se)
Definition: L1RCTRegion.cc:219
unsigned short giveNEHE_FG() const
Definition: L1RCTRegion.cc:183
unsigned short getActivityBit(int i, int j) const
Definition: L1RCTRegion.cc:74
unsigned short getHE_FGBit(int i, int j) const
Definition: L1RCTRegion.cc:40
unsigned short giveSEHE_FG() const
Definition: L1RCTRegion.cc:218
unsigned short giveSWEt() const
Definition: L1RCTRegion.cc:198
unsigned short giveSEEt() const
Definition: L1RCTRegion.cc:211
void setSWEt(unsigned short sw)
Definition: L1RCTRegion.cc:206
void setSouthHE_FG(const std::vector< unsigned short > &south)
Definition: L1RCTRegion.cc:127
void setNorthEt(const std::vector< unsigned short > &north)
Definition: L1RCTRegion.cc:95
std::vector< unsigned short > giveNorthEt() const
Definition: L1RCTRegion.cc:89
void setSEHE_FG(unsigned short se)
Definition: L1RCTRegion.cc:220
void setWestEt(const std::vector< unsigned short > &west)
Definition: L1RCTRegion.cc:138
void print()
Definition: L1RCTRegion.cc:224
void setEtIn9Bits(int i, int j, unsigned short energy)
Definition: L1RCTRegion.cc:55
std::vector< unsigned short > etIn9Bits
Definition: L1RCTRegion.h:69
void setEastHE_FG(const std::vector< unsigned short > &east)
Definition: L1RCTRegion.cc:171
std::vector< unsigned short > muonBit
Definition: L1RCTRegion.h:71
void setEastEt(const std::vector< unsigned short > &east)
Definition: L1RCTRegion.cc:160
unsigned short giveNWHE_FG() const
Definition: L1RCTRegion.cc:194
void setNWEt(unsigned short nw)
Definition: L1RCTRegion.cc:195
std::vector< unsigned short > giveEastEt() const
Definition: L1RCTRegion.cc:154
void setSouthEt(const std::vector< unsigned short > &south)
Definition: L1RCTRegion.cc:116
unsigned short giveSWHE_FG() const
Definition: L1RCTRegion.cc:205
void setEtIn7Bits(int i, int j, unsigned short energy)
Definition: L1RCTRegion.cc:32
void setActivityBit(int i, int j, unsigned short activity)
Definition: L1RCTRegion.cc:70
std::vector< unsigned short > totalRegionHE_FG
Definition: L1RCTRegion.h:67
void setMuonBit(int i, int j, unsigned short muon)
Definition: L1RCTRegion.cc:66
unsigned short giveNEEt() const
Definition: L1RCTRegion.cc:176
void printEdges()
Definition: L1RCTRegion.cc:263
std::vector< unsigned short > giveNorthHE_FG() const
Definition: L1RCTRegion.cc:99
unsigned short giveNWEt() const
Definition: L1RCTRegion.cc:187
std::vector< unsigned short > giveSouthEt() const
Definition: L1RCTRegion.cc:110