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
L1RCTRegion::printEdges
void printEdges()
Definition: L1RCTRegion.cc:242
mps_fire.i
i
Definition: mps_fire.py:355
L1RCTRegion::giveSouthHE_FG
std::vector< unsigned short > giveSouthHE_FG() const
Definition: L1RCTRegion.cc:105
muon
Definition: MuonCocktails.h:17
L1RCTRegion::getEtIn9Bits
unsigned short getEtIn9Bits(int i, int j) const
Definition: L1RCTRegion.cc:45
east
Definition: EcalBoundaryInfoCalculator.h:24
L1RCTRegion::giveSWEt
unsigned short giveSWEt() const
Definition: L1RCTRegion.cc:182
L1RCTRegion::setHE_FGBit
void setHE_FGBit(int i, int j, unsigned short HE_FG)
Definition: L1RCTRegion.cc:40
L1RCTRegion::giveEastHE_FG
std::vector< unsigned short > giveEastHE_FG() const
Definition: L1RCTRegion.cc:149
L1RCTRegion::setNWHE_FG
void setNWHE_FG(unsigned short nw)
Definition: L1RCTRegion.cc:180
L1RCTRegion::activityBit
std::vector< unsigned short > activityBit
Definition: L1RCTRegion.h:71
L1RCTRegion::giveNorthHE_FG
std::vector< unsigned short > giveNorthHE_FG() const
Definition: L1RCTRegion.cc:83
L1RCTRegion::giveNEHE_FG
unsigned short giveNEHE_FG() const
Definition: L1RCTRegion.cc:167
L1RCTRegion::getActivityBit
unsigned short getActivityBit(int i, int j) const
Definition: L1RCTRegion.cc:60
L1RCTRegion::setWestHE_FG
void setWestHE_FG(const std::vector< unsigned short > &west)
Definition: L1RCTRegion.cc:133
L1RCTRegion::setSEEt
void setSEEt(unsigned short se)
Definition: L1RCTRegion.cc:201
L1RCTRegion::setNorthHE_FG
void setNorthHE_FG(const std::vector< unsigned short > &north)
Definition: L1RCTRegion.cc:89
L1RCTRegion::giveSEHE_FG
unsigned short giveSEHE_FG() const
Definition: L1RCTRegion.cc:200
L1RCTRegion::getHE_FGBit
unsigned short getHE_FGBit(int i, int j) const
Definition: L1RCTRegion.cc:38
L1RCTRegion::getEtIn7Bits
unsigned short getEtIn7Bits(int i, int j) const
Definition: L1RCTRegion.cc:25
south
Definition: EcalBoundaryInfoCalculator.h:24
HCALHighEnergyHPDFilter_cfi.energy
energy
Definition: HCALHighEnergyHPDFilter_cfi.py:5
L1RCTRegion::giveNWHE_FG
unsigned short giveNWHE_FG() const
Definition: L1RCTRegion.cc:178
L1RCTRegion::setSouthHE_FG
void setSouthHE_FG(const std::vector< unsigned short > &south)
Definition: L1RCTRegion.cc:111
L1RCTRegion::setWestEt
void setWestEt(const std::vector< unsigned short > &west)
Definition: L1RCTRegion.cc:122
L1RCTRegion::~L1RCTRegion
~L1RCTRegion()
Definition: L1RCTRegion.cc:13
L1RCTRegion::L1RCTRegion
L1RCTRegion()
Definition: L1RCTRegion.cc:11
L1RCTRegion::giveSouthEt
std::vector< unsigned short > giveSouthEt() const
Definition: L1RCTRegion.cc:94
L1RCTRegion::giveWestEt
std::vector< unsigned short > giveWestEt() const
Definition: L1RCTRegion.cc:116
L1RCTRegion::etIn9Bits
std::vector< unsigned short > etIn9Bits
Definition: L1RCTRegion.h:68
L1RCTRegion::muonBit
std::vector< unsigned short > muonBit
Definition: L1RCTRegion.h:70
L1RCTRegion::getMuonBit
unsigned short getMuonBit(int i, int j) const
Definition: L1RCTRegion.cc:54
L1RCTRegion::giveNEEt
unsigned short giveNEEt() const
Definition: L1RCTRegion.cc:160
L1RCTRegion::giveEastEt
std::vector< unsigned short > giveEastEt() const
Definition: L1RCTRegion.cc:138
L1RCTRegion::giveSWHE_FG
unsigned short giveSWHE_FG() const
Definition: L1RCTRegion.cc:189
north
Definition: EcalBoundaryInfoCalculator.h:24
L1RCTRegion::setSWEt
void setSWEt(unsigned short sw)
Definition: L1RCTRegion.cc:190
L1RCTRegion::setNorthEt
void setNorthEt(const std::vector< unsigned short > &north)
Definition: L1RCTRegion.cc:79
L1RCTRegion::giveWestHE_FG
std::vector< unsigned short > giveWestHE_FG() const
Definition: L1RCTRegion.cc:127
L1RCTRegion::setEtIn7Bits
void setEtIn7Bits(int i, int j, unsigned short energy)
Definition: L1RCTRegion.cc:30
L1RCTRegion::setMuonBit
void setMuonBit(int i, int j, unsigned short muon)
Definition: L1RCTRegion.cc:56
L1RCTRegion::giveNWEt
unsigned short giveNWEt() const
Definition: L1RCTRegion.cc:171
L1RCTRegion::setEastHE_FG
void setEastHE_FG(const std::vector< unsigned short > &east)
Definition: L1RCTRegion.cc:155
L1RCTRegion::setSEHE_FG
void setSEHE_FG(unsigned short se)
Definition: L1RCTRegion.cc:202
L1RCTRegion::setNEEt
void setNEEt(unsigned short ne)
Definition: L1RCTRegion.cc:168
L1RCTRegion::totalRegionHE_FG
std::vector< unsigned short > totalRegionHE_FG
Definition: L1RCTRegion.h:66
L1RCTRegion::giveNorthEt
std::vector< unsigned short > giveNorthEt() const
Definition: L1RCTRegion.cc:73
L1RCTRegion::print
void print()
Definition: L1RCTRegion.cc:204
L1RCTRegion::setEtIn9Bits
void setEtIn9Bits(int i, int j, unsigned short energy)
Definition: L1RCTRegion.cc:47
L1RCTRegion
Definition: L1RCTRegion.h:6
dqmiolumiharvest.j
j
Definition: dqmiolumiharvest.py:66
west
Definition: EcalBoundaryInfoCalculator.h:24
L1RCTRegion::giveSEEt
unsigned short giveSEEt() const
Definition: L1RCTRegion.cc:193
L1RCTRegion::setSouthEt
void setSouthEt(const std::vector< unsigned short > &south)
Definition: L1RCTRegion.cc:100
L1RCTRegion::setEastEt
void setEastEt(const std::vector< unsigned short > &east)
Definition: L1RCTRegion.cc:144
L1RCTRegion::setNEHE_FG
void setNEHE_FG(unsigned short ne)
Definition: L1RCTRegion.cc:169
L1RCTRegion::setNWEt
void setNWEt(unsigned short nw)
Definition: L1RCTRegion.cc:179
L1RCTRegion::setActivityBit
void setActivityBit(int i, int j, unsigned short activity)
Definition: L1RCTRegion.cc:58
L1RCTRegion::totalRegionEt
std::vector< unsigned short > totalRegionEt
Definition: L1RCTRegion.h:65
L1RCTRegion::setSWHE_FG
void setSWHE_FG(unsigned short sw)
Definition: L1RCTRegion.cc:191