test
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 
5 
6 #include <vector>
7 
9 
10 
11 
12  public:
13  // For logplane sizes
14  //typedef std::vector<int> TLogPlaneSize;
15  //typedef std::vector<TLogPlaneSize > TLPSizesInTowers;
16  struct TLPSize {
17 // TLPSize(signed char t, signed char lp, unsigned char size) :
18 // m_tower(t), m_LP(lp), m_size(size) {};
19  signed char m_tower;
20  signed char m_LP;
21  unsigned char m_size;
22 
24 };
25  typedef std::vector<TLPSize> TLPSizeVec;
26 
27 
28 
29  // For (roll,hwplane)->tower mapping
30  /*
31  typedef std::vector<int> TTowerList;
32  typedef std::vector<TTowerList > THWplaneToTower;
33  typedef std::vector<THWplaneToTower > TRingsToTowers;*/
34 
35  struct TRingToTower {
36 // TRingToTower(signed char ep, signed char hp, signed char t, unsigned char i) :
37 // m_etaPart(ep), m_hwPlane(hp), m_tower(t), m_index(i) {};
38  signed char m_etaPart;
39  signed char m_hwPlane;
40  signed char m_tower;
41  unsigned char m_index;
42 
44 };
45  typedef std::vector<TRingToTower> TRingToTowerVec;
46 
47  // For (roll,hwplane)->logplane mapping
48 
49  /*
50  typedef std::vector<int> TLPList;
51  typedef std::vector<TLPList > THWplaneToLP;
52  typedef std::vector<THWplaneToLP > TRingsToLP;
53  */
54 
55  struct TRingToLP {
56 // TRingToLP(signed char ep, signed char hp, signed char lp, unsigned char i) :
57 // m_etaPart(ep), m_hwPlane(hp), m_LP(lp), m_index(i) {};
58  signed char m_etaPart;
59  signed char m_hwPlane;
60  signed char m_LP;
61  unsigned char m_index;
62 
64 };
65  typedef std::vector<TRingToLP> TRingToLPVec;
66 
67 
68 
69 
70  //int getLPSize(int tower) const {return m_LPSizesInTowers.at(tower);};
71  //const TLPSizesInTowers & getLPSizes() const { return m_LPSizesInTowers;};
72 
73  void setFirstTower(int tow) {m_firstTower = tow;};
74  void setLastTower(int tow) {m_lastTower = tow;};
75 
76  /*
77  void setLPSizeForTowers(const TLPSizesInTowers & lpSizes) { m_LPSizesInTowers = lpSizes;};
78  const TLPSizesInTowers & getLPSizeForTowers() const { return m_LPSizesInTowers;};
79  */
80  void setLPSizeVec(const TLPSizeVec & lpSizes) { m_LPSizeVec = lpSizes;};
81  const TLPSizeVec & getLPSizeVec() const { return m_LPSizeVec;};
82 
83  /*
84  void setRingsToTowers(const TRingsToTowers & RingsToTowers) { m_RingsToTowers = RingsToTowers;};
85  const TRingsToTowers & getRingsToTowers() const { return m_RingsToTowers;};*/
86  void setRingToTowerVec(const TRingToTowerVec & ringToTowerVec)
87  { m_ringToTowerVec = ringToTowerVec;};
89 
90 
91  /*
92  void setRingsToLP(const TRingsToLP & RingsToLP) {m_RingsToLP = RingsToLP;};
93  const TRingsToLP & getRingsToLP() const {return m_RingsToLP;};
94  */
95  void setRingToLPVec(const TRingToLPVec & ringToLPVec) {m_ringToLPVec = ringToLPVec;};
96  const TRingToLPVec & getRingToLPVec() const {return m_ringToLPVec;};
97 
98 
99  private:
100 
101  int m_firstTower;
103  //TLPSizesInTowers m_LPSizesInTowers;
105  //TRingsToTowers m_RingsToTowers;
107 
108 
109  //TRingsToLP m_RingsToLP;
111 
112 
113 
114 
115 
116 
117 
119 };
120 
121 
122 
123 #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
#define COND_SERIALIZABLE
Definition: Serializable.h:37
void setFirstTower(int tow)