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 public:
8  L1RCTRegion();
9  ~L1RCTRegion();
10 
11  void setEtIn7Bits(int i, int j, unsigned short energy);
12  unsigned short getEtIn9Bits(int i, int j) const;
13  void setEtIn9Bits(int i, int j, unsigned short energy);
14  void setHE_FGBit(int i, int j, unsigned short HE_FG);
15  unsigned short getMuonBit(int i, int j) const;
16  void setMuonBit(int i, int j, unsigned short muon);
17  void setActivityBit(int i, int j, unsigned short activity);
18  unsigned short getActivityBit(int i, int j) const;
19 
20  unsigned short getEtIn7Bits(int i, int j) const;
21  unsigned short getHE_FGBit(int i, int j) const;
22 
23  // diagnostic print functions.
24  // print prints the data contained in a convenient format
25  // print edges prints the neighboring edge information
26  void print();
27  void printEdges();
28 
29  std::vector<unsigned short> giveNorthEt() const;
30  std::vector<unsigned short> giveSouthEt() const;
31  std::vector<unsigned short> giveWestEt() const;
32  std::vector<unsigned short> giveEastEt() const;
33  std::vector<unsigned short> giveNorthHE_FG() const;
34  std::vector<unsigned short> giveSouthHE_FG() const;
35  std::vector<unsigned short> giveWestHE_FG() const;
36  std::vector<unsigned short> giveEastHE_FG() const;
37  unsigned short giveSEEt() const;
38  unsigned short giveSWEt() const;
39  unsigned short giveNEEt() const;
40  unsigned short giveNWEt() const;
41  unsigned short giveSEHE_FG() const;
42  unsigned short giveSWHE_FG() const;
43  unsigned short giveNEHE_FG() const;
44  unsigned short giveNWHE_FG() const;
45 
46  void setNorthEt(const std::vector<unsigned short> &north);
47  void setSouthEt(const std::vector<unsigned short> &south);
48  void setWestEt(const std::vector<unsigned short> &west);
49  void setEastEt(const std::vector<unsigned short> &east);
50  void setNorthHE_FG(const std::vector<unsigned short> &north);
51  void setSouthHE_FG(const std::vector<unsigned short> &south);
52  void setWestHE_FG(const std::vector<unsigned short> &west);
53  void setEastHE_FG(const std::vector<unsigned short> &east);
54  void setSEEt(unsigned short se);
55  void setSWEt(unsigned short sw);
56  void setNEEt(unsigned short ne);
57  void setNWEt(unsigned short nw);
58  void setSEHE_FG(unsigned short se);
59  void setSWHE_FG(unsigned short sw);
60  void setNEHE_FG(unsigned short ne);
61  void setNWHE_FG(unsigned short nw);
62 
63 private:
64  // 6x6 matrices
65  std::vector<unsigned short> totalRegionEt;
66  std::vector<unsigned short> totalRegionHE_FG;
67  // 4x4 matrices
68  std::vector<unsigned short> etIn9Bits;
69  // std::vector<unsigned short> HE_FGBit;
70  std::vector<unsigned short> muonBit;
71  std::vector<unsigned short> activityBit;
72 };
73 #endif
void setNEEt(unsigned short ne)
Definition: L1RCTRegion.cc:168
std::vector< unsigned short > giveSouthHE_FG() const
Definition: L1RCTRegion.cc:105
void setSWHE_FG(unsigned short sw)
Definition: L1RCTRegion.cc:191
std::vector< unsigned short > activityBit
Definition: L1RCTRegion.h:71
std::vector< unsigned short > giveWestEt() const
Definition: L1RCTRegion.cc:116
void setNEHE_FG(unsigned short ne)
Definition: L1RCTRegion.cc:169
void setNorthHE_FG(const std::vector< unsigned short > &north)
Definition: L1RCTRegion.cc:89
std::vector< unsigned short > totalRegionEt
Definition: L1RCTRegion.h:65
unsigned short getEtIn7Bits(int i, int j) const
Definition: L1RCTRegion.cc:25
void setHE_FGBit(int i, int j, unsigned short HE_FG)
Definition: L1RCTRegion.cc:40
std::vector< unsigned short > giveEastHE_FG() const
Definition: L1RCTRegion.cc:149
void setNWHE_FG(unsigned short nw)
Definition: L1RCTRegion.cc:180
std::vector< unsigned short > giveWestHE_FG() const
Definition: L1RCTRegion.cc:127
unsigned short getEtIn9Bits(int i, int j) const
Definition: L1RCTRegion.cc:45
void setWestHE_FG(const std::vector< unsigned short > &west)
Definition: L1RCTRegion.cc:133
unsigned short getMuonBit(int i, int j) const
Definition: L1RCTRegion.cc:54
void setSEEt(unsigned short se)
Definition: L1RCTRegion.cc:201
unsigned short giveNEHE_FG() const
Definition: L1RCTRegion.cc:167
unsigned short getActivityBit(int i, int j) const
Definition: L1RCTRegion.cc:60
unsigned short getHE_FGBit(int i, int j) const
Definition: L1RCTRegion.cc:38
unsigned short giveSEHE_FG() const
Definition: L1RCTRegion.cc:200
unsigned short giveSWEt() const
Definition: L1RCTRegion.cc:182
unsigned short giveSEEt() const
Definition: L1RCTRegion.cc:193
void setSWEt(unsigned short sw)
Definition: L1RCTRegion.cc:190
void setSouthHE_FG(const std::vector< unsigned short > &south)
Definition: L1RCTRegion.cc:111
void setNorthEt(const std::vector< unsigned short > &north)
Definition: L1RCTRegion.cc:79
std::vector< unsigned short > giveNorthEt() const
Definition: L1RCTRegion.cc:73
void setSEHE_FG(unsigned short se)
Definition: L1RCTRegion.cc:202
void setWestEt(const std::vector< unsigned short > &west)
Definition: L1RCTRegion.cc:122
void print()
Definition: L1RCTRegion.cc:204
void setEtIn9Bits(int i, int j, unsigned short energy)
Definition: L1RCTRegion.cc:47
std::vector< unsigned short > etIn9Bits
Definition: L1RCTRegion.h:68
void setEastHE_FG(const std::vector< unsigned short > &east)
Definition: L1RCTRegion.cc:155
std::vector< unsigned short > muonBit
Definition: L1RCTRegion.h:70
void setEastEt(const std::vector< unsigned short > &east)
Definition: L1RCTRegion.cc:144
unsigned short giveNWHE_FG() const
Definition: L1RCTRegion.cc:178
void setNWEt(unsigned short nw)
Definition: L1RCTRegion.cc:179
std::vector< unsigned short > giveEastEt() const
Definition: L1RCTRegion.cc:138
void setSouthEt(const std::vector< unsigned short > &south)
Definition: L1RCTRegion.cc:100
unsigned short giveSWHE_FG() const
Definition: L1RCTRegion.cc:189
void setEtIn7Bits(int i, int j, unsigned short energy)
Definition: L1RCTRegion.cc:30
void setActivityBit(int i, int j, unsigned short activity)
Definition: L1RCTRegion.cc:58
std::vector< unsigned short > totalRegionHE_FG
Definition: L1RCTRegion.h:66
void setMuonBit(int i, int j, unsigned short muon)
Definition: L1RCTRegion.cc:56
unsigned short giveNEEt() const
Definition: L1RCTRegion.cc:160
void printEdges()
Definition: L1RCTRegion.cc:242
std::vector< unsigned short > giveNorthHE_FG() const
Definition: L1RCTRegion.cc:83
unsigned short giveNWEt() const
Definition: L1RCTRegion.cc:171
std::vector< unsigned short > giveSouthEt() const
Definition: L1RCTRegion.cc:94