CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
L1RPCConeDefinition.h
Go to the documentation of this file.
1 #ifndef CondFormats_L1TObjects_L1RPCConeDefinition_h
2 #define CondFormats_L1TObjects_L1RPCConeDefinition_h
3 
4 #include <vector>
5 
7 
8 
9 
10  public:
11  // For logplane sizes
12  //typedef std::vector<int> TLogPlaneSize;
13  //typedef std::vector<TLogPlaneSize > TLPSizesInTowers;
14  struct TLPSize {
15 // TLPSize(signed char t, signed char lp, unsigned char size) :
16 // m_tower(t), m_LP(lp), m_size(size) {};
17  signed char m_tower;
18  signed char m_LP;
19  unsigned char m_size;
20  };
21  typedef std::vector<TLPSize> TLPSizeVec;
22 
23 
24 
25  // For (roll,hwplane)->tower mapping
26  /*
27  typedef std::vector<int> TTowerList;
28  typedef std::vector<TTowerList > THWplaneToTower;
29  typedef std::vector<THWplaneToTower > TRingsToTowers;*/
30 
31  struct TRingToTower {
32 // TRingToTower(signed char ep, signed char hp, signed char t, unsigned char i) :
33 // m_etaPart(ep), m_hwPlane(hp), m_tower(t), m_index(i) {};
34  signed char m_etaPart;
35  signed char m_hwPlane;
36  signed char m_tower;
37  unsigned char m_index;
38  };
39  typedef std::vector<TRingToTower> TRingToTowerVec;
40 
41  // For (roll,hwplane)->logplane mapping
42 
43  /*
44  typedef std::vector<int> TLPList;
45  typedef std::vector<TLPList > THWplaneToLP;
46  typedef std::vector<THWplaneToLP > TRingsToLP;
47  */
48 
49  struct TRingToLP {
50 // TRingToLP(signed char ep, signed char hp, signed char lp, unsigned char i) :
51 // m_etaPart(ep), m_hwPlane(hp), m_LP(lp), m_index(i) {};
52  signed char m_etaPart;
53  signed char m_hwPlane;
54  signed char m_LP;
55  unsigned char m_index;
56  };
57  typedef std::vector<TRingToLP> TRingToLPVec;
58 
59 
60 
61 
62  //int getLPSize(int tower) const {return m_LPSizesInTowers.at(tower);};
63  //const TLPSizesInTowers & getLPSizes() const { return m_LPSizesInTowers;};
64 
65  void setFirstTower(int tow) {m_firstTower = tow;};
66  void setLastTower(int tow) {m_lastTower = tow;};
67 
68  /*
69  void setLPSizeForTowers(const TLPSizesInTowers & lpSizes) { m_LPSizesInTowers = lpSizes;};
70  const TLPSizesInTowers & getLPSizeForTowers() const { return m_LPSizesInTowers;};
71  */
72  void setLPSizeVec(const TLPSizeVec & lpSizes) { m_LPSizeVec = lpSizes;};
73  const TLPSizeVec & getLPSizeVec() const { return m_LPSizeVec;};
74 
75  /*
76  void setRingsToTowers(const TRingsToTowers & RingsToTowers) { m_RingsToTowers = RingsToTowers;};
77  const TRingsToTowers & getRingsToTowers() const { return m_RingsToTowers;};*/
78  void setRingToTowerVec(const TRingToTowerVec & ringToTowerVec)
79  { m_ringToTowerVec = ringToTowerVec;};
81 
82 
83  /*
84  void setRingsToLP(const TRingsToLP & RingsToLP) {m_RingsToLP = RingsToLP;};
85  const TRingsToLP & getRingsToLP() const {return m_RingsToLP;};
86  */
87  void setRingToLPVec(const TRingToLPVec & ringToLPVec) {m_ringToLPVec = ringToLPVec;};
88  const TRingToLPVec & getRingToLPVec() const {return m_ringToLPVec;};
89 
90 
91  private:
92 
93  int m_firstTower;
95  //TLPSizesInTowers m_LPSizesInTowers;
97  //TRingsToTowers m_RingsToTowers;
99 
100 
101  //TRingsToLP m_RingsToLP;
103 
104 
105 
106 
107 
108 
109 };
110 
111 
112 
113 #endif
std::vector< TRingToTower > TRingToTowerVec
void setLastTower(int tow)
const TRingToLPVec & getRingToLPVec() const
const TRingToTowerVec & getRingToTowerVec() const
std::vector< TRingToLP > TRingToLPVec
std::vector< TLPSize > TLPSizeVec
void setRingToTowerVec(const TRingToTowerVec &ringToTowerVec)
void setLPSizeVec(const TLPSizeVec &lpSizes)
const TLPSizeVec & getLPSizeVec() const
void setRingToLPVec(const TRingToLPVec &ringToLPVec)
TRingToTowerVec m_ringToTowerVec
void setFirstTower(int tow)