CMS 3D CMS Logo

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 public:
10  // For logplane sizes
11  //typedef std::vector<int> TLogPlaneSize;
12  //typedef std::vector<TLogPlaneSize > TLPSizesInTowers;
13  struct TLPSize {
14  // TLPSize(signed char t, signed char lp, unsigned char size) :
15  // m_tower(t), m_LP(lp), m_size(size) {};
16  signed char m_tower;
17  signed char m_LP;
18  unsigned char m_size;
19 
21  };
22  typedef std::vector<TLPSize> TLPSizeVec;
23 
24  // For (roll,hwplane)->tower mapping
25  /*
26  typedef std::vector<int> TTowerList;
27  typedef std::vector<TTowerList > THWplaneToTower;
28  typedef std::vector<THWplaneToTower > TRingsToTowers;*/
29 
30  struct TRingToTower {
31  // TRingToTower(signed char ep, signed char hp, signed char t, unsigned char i) :
32  // m_etaPart(ep), m_hwPlane(hp), m_tower(t), m_index(i) {};
33  signed char m_etaPart;
34  signed char m_hwPlane;
35  signed char m_tower;
36  unsigned char m_index;
37 
39  };
40  typedef std::vector<TRingToTower> TRingToTowerVec;
41 
42  // For (roll,hwplane)->logplane mapping
43 
44  /*
45  typedef std::vector<int> TLPList;
46  typedef std::vector<TLPList > THWplaneToLP;
47  typedef std::vector<THWplaneToLP > TRingsToLP;
48  */
49 
50  struct TRingToLP {
51  // TRingToLP(signed char ep, signed char hp, signed char lp, unsigned char i) :
52  // m_etaPart(ep), m_hwPlane(hp), m_LP(lp), m_index(i) {};
53  signed char m_etaPart;
54  signed char m_hwPlane;
55  signed char m_LP;
56  unsigned char m_index;
57 
59  };
60  typedef std::vector<TRingToLP> TRingToLPVec;
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) { m_ringToTowerVec = ringToTowerVec; };
79  const TRingToTowerVec& getRingToTowerVec() const { return m_ringToTowerVec; };
80 
81  /*
82  void setRingsToLP(const TRingsToLP & RingsToLP) {m_RingsToLP = RingsToLP;};
83  const TRingsToLP & getRingsToLP() const {return m_RingsToLP;};
84  */
85  void setRingToLPVec(const TRingToLPVec& ringToLPVec) { m_ringToLPVec = ringToLPVec; };
86  const TRingToLPVec& getRingToLPVec() const { return m_ringToLPVec; };
87 
88 private:
89  int m_firstTower;
91  //TLPSizesInTowers m_LPSizesInTowers;
92  TLPSizeVec m_LPSizeVec;
93  //TRingsToTowers m_RingsToTowers;
94  TRingToTowerVec m_ringToTowerVec;
95 
96  //TRingsToLP m_RingsToLP;
97  TRingToLPVec m_ringToLPVec;
98 
100 };
101 
102 #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:38
void setFirstTower(int tow)