CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 
10  L1RCTRegion();
11  ~L1RCTRegion();
12 
13  void setEtIn7Bits(int i, int j,unsigned short energy);
14  unsigned short getEtIn9Bits(int i, int j) const;
15  void setEtIn9Bits(int i, int j,unsigned short energy);
16  void setHE_FGBit(int i, int j,unsigned short HE_FG);
17  unsigned short getMuonBit(int i, int j) const;
18  void setMuonBit(int i, int j, unsigned short muon);
19  void setActivityBit(int i, int j, unsigned short activity);
20  unsigned short getActivityBit(int i, int j) const;
21 
22  unsigned short getEtIn7Bits(int i, int j) const;
23  unsigned short getHE_FGBit(int i, int j) const;
24 
25  //diagnostic print functions.
26  //print prints the data contained in a convenient format
27  //print edges prints the neighboring edge information
28  void print();
29  void printEdges();
30 
31  std::vector<unsigned short> giveNorthEt() const;
32  std::vector<unsigned short> giveSouthEt() const;
33  std::vector<unsigned short> giveWestEt() const;
34  std::vector<unsigned short> giveEastEt() const;
35  std::vector<unsigned short> giveNorthHE_FG() const;
36  std::vector<unsigned short> giveSouthHE_FG() const;
37  std::vector<unsigned short> giveWestHE_FG() const;
38  std::vector<unsigned short> giveEastHE_FG() const;
39  unsigned short giveSEEt() const;
40  unsigned short giveSWEt() const;
41  unsigned short giveNEEt() const;
42  unsigned short giveNWEt() const;
43  unsigned short giveSEHE_FG() const;
44  unsigned short giveSWHE_FG() const;
45  unsigned short giveNEHE_FG() const;
46  unsigned short giveNWHE_FG() const;
47 
48  void setNorthEt(std::vector<unsigned short> north);
49  void setSouthEt(std::vector<unsigned short> south);
50  void setWestEt(std::vector<unsigned short> west);
51  void setEastEt(std::vector<unsigned short> east);
52  void setNorthHE_FG(std::vector<unsigned short> north);
53  void setSouthHE_FG(std::vector<unsigned short> south);
54  void setWestHE_FG(std::vector<unsigned short> west);
55  void setEastHE_FG(std::vector<unsigned short> east);
56  void setSEEt(unsigned short se);
57  void setSWEt(unsigned short sw);
58  void setNEEt(unsigned short ne);
59  void setNWEt(unsigned short nw);
60  void setSEHE_FG(unsigned short se);
61  void setSWHE_FG(unsigned short sw);
62  void setNEHE_FG(unsigned short ne);
63  void setNWHE_FG(unsigned short nw);
64 
65  private:
66 
67  //6x6 matrices
68  std::vector<unsigned short> totalRegionEt;
69  std::vector<unsigned short> totalRegionHE_FG;
70  //4x4 matrices
71  std::vector<unsigned short> etIn9Bits;
72  //std::vector<unsigned short> HE_FGBit;
73  std::vector<unsigned short> muonBit;
74  std::vector<unsigned short> activityBit;
75 
76 };
77 #endif
void setNEEt(unsigned short ne)
Definition: L1RCTRegion.cc:194
std::vector< unsigned short > giveSouthHE_FG() const
Definition: L1RCTRegion.cc:129
void setNorthEt(std::vector< unsigned short > north)
Definition: L1RCTRegion.cc:103
int i
Definition: DBlmapReader.cc:9
void setSWHE_FG(unsigned short sw)
Definition: L1RCTRegion.cc:231
std::vector< unsigned short > activityBit
Definition: L1RCTRegion.h:74
std::vector< unsigned short > giveWestEt() const
Definition: L1RCTRegion.cc:140
void setNEHE_FG(unsigned short ne)
Definition: L1RCTRegion.cc:197
std::vector< unsigned short > totalRegionEt
Definition: L1RCTRegion.h:68
unsigned short getEtIn7Bits(int i, int j) const
Definition: L1RCTRegion.cc:33
void setHE_FGBit(int i, int j, unsigned short HE_FG)
Definition: L1RCTRegion.cc:51
std::vector< unsigned short > giveEastHE_FG() const
Definition: L1RCTRegion.cc:173
void setNWHE_FG(unsigned short nw)
Definition: L1RCTRegion.cc:214
std::vector< unsigned short > giveWestHE_FG() const
Definition: L1RCTRegion.cc:151
unsigned short getEtIn9Bits(int i, int j) const
Definition: L1RCTRegion.cc:59
unsigned short getMuonBit(int i, int j) const
Definition: L1RCTRegion.cc:70
void setSEEt(unsigned short se)
Definition: L1RCTRegion.cc:245
unsigned short giveNEHE_FG() const
Definition: L1RCTRegion.cc:191
void setEastHE_FG(std::vector< unsigned short > east)
Definition: L1RCTRegion.cc:179
unsigned short getActivityBit(int i, int j) const
Definition: L1RCTRegion.cc:82
unsigned short getHE_FGBit(int i, int j) const
Definition: L1RCTRegion.cc:47
unsigned short giveSEHE_FG() const
Definition: L1RCTRegion.cc:242
void setWestHE_FG(std::vector< unsigned short > west)
Definition: L1RCTRegion.cc:157
void setSouthHE_FG(std::vector< unsigned short > south)
Definition: L1RCTRegion.cc:135
int j
Definition: DBlmapReader.cc:9
unsigned short giveSWEt() const
Definition: L1RCTRegion.cc:218
unsigned short giveSEEt() const
Definition: L1RCTRegion.cc:235
void setSWEt(unsigned short sw)
Definition: L1RCTRegion.cc:228
void setSouthEt(std::vector< unsigned short > south)
Definition: L1RCTRegion.cc:124
void setNorthHE_FG(std::vector< unsigned short > north)
Definition: L1RCTRegion.cc:113
std::vector< unsigned short > giveNorthEt() const
Definition: L1RCTRegion.cc:97
void setSEHE_FG(unsigned short se)
Definition: L1RCTRegion.cc:248
void print()
Definition: L1RCTRegion.cc:252
void setEtIn9Bits(int i, int j, unsigned short energy)
Definition: L1RCTRegion.cc:63
std::vector< unsigned short > etIn9Bits
Definition: L1RCTRegion.h:71
std::vector< unsigned short > muonBit
Definition: L1RCTRegion.h:73
unsigned short giveNWHE_FG() const
Definition: L1RCTRegion.cc:208
void setNWEt(unsigned short nw)
Definition: L1RCTRegion.cc:211
void setEastEt(std::vector< unsigned short > east)
Definition: L1RCTRegion.cc:168
std::vector< unsigned short > giveEastEt() const
Definition: L1RCTRegion.cc:162
unsigned short giveSWHE_FG() const
Definition: L1RCTRegion.cc:225
void setWestEt(std::vector< unsigned short > west)
Definition: L1RCTRegion.cc:146
void setEtIn7Bits(int i, int j, unsigned short energy)
Definition: L1RCTRegion.cc:38
void setActivityBit(int i, int j, unsigned short activity)
Definition: L1RCTRegion.cc:78
std::vector< unsigned short > totalRegionHE_FG
Definition: L1RCTRegion.h:69
void setMuonBit(int i, int j, unsigned short muon)
Definition: L1RCTRegion.cc:74
unsigned short giveNEEt() const
Definition: L1RCTRegion.cc:184
void printEdges()
Definition: L1RCTRegion.cc:291
std::vector< unsigned short > giveNorthHE_FG() const
Definition: L1RCTRegion.cc:107
unsigned short giveNWEt() const
Definition: L1RCTRegion.cc:201
std::vector< unsigned short > giveSouthEt() const
Definition: L1RCTRegion.cc:118