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; };
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;
93  //TRingsToTowers m_RingsToTowers;
95 
96  //TRingsToLP m_RingsToLP;
98 
100 };
101 
102 #endif
L1RPCConeDefinition::TRingToLP::m_LP
signed char m_LP
Definition: L1RPCConeDefinition.h:55
L1RPCConeDefinition::getRingToLPVec
const TRingToLPVec & getRingToLPVec() const
Definition: L1RPCConeDefinition.h:86
L1RPCConeDefinition::TRingToTower::m_tower
signed char m_tower
Definition: L1RPCConeDefinition.h:35
L1RPCConeDefinition::m_ringToLPVec
TRingToLPVec m_ringToLPVec
Definition: L1RPCConeDefinition.h:97
L1RPCConeDefinition::TRingToLP
Definition: L1RPCConeDefinition.h:50
L1RPCConeDefinition::TRingToTower::m_index
unsigned char m_index
Definition: L1RPCConeDefinition.h:36
L1RPCConeDefinition::setLPSizeVec
void setLPSizeVec(const TLPSizeVec &lpSizes)
Definition: L1RPCConeDefinition.h:72
L1RPCConeDefinition::TLPSize::m_size
unsigned char m_size
Definition: L1RPCConeDefinition.h:18
L1RPCConeDefinition::getLPSizeVec
const TLPSizeVec & getLPSizeVec() const
Definition: L1RPCConeDefinition.h:73
L1RPCConeDefinition::TRingToTowerVec
std::vector< TRingToTower > TRingToTowerVec
Definition: L1RPCConeDefinition.h:40
COND_SERIALIZABLE
#define COND_SERIALIZABLE
Definition: Serializable.h:39
L1RPCConeDefinition::m_firstTower
int m_firstTower
Definition: L1RPCConeDefinition.h:86
L1RPCConeDefinition::TLPSize::m_tower
signed char m_tower
Definition: L1RPCConeDefinition.h:16
L1RPCConeDefinition::setLastTower
void setLastTower(int tow)
Definition: L1RPCConeDefinition.h:66
L1RPCConeDefinition::setRingToTowerVec
void setRingToTowerVec(const TRingToTowerVec &ringToTowerVec)
Definition: L1RPCConeDefinition.h:78
L1RPCConeDefinition::m_LPSizeVec
TLPSizeVec m_LPSizeVec
Definition: L1RPCConeDefinition.h:92
L1RPCConeDefinition::TLPSize
Definition: L1RPCConeDefinition.h:13
L1RPCConeDefinition::TRingToTower
Definition: L1RPCConeDefinition.h:30
L1RPCConeDefinition::setRingToLPVec
void setRingToLPVec(const TRingToLPVec &ringToLPVec)
Definition: L1RPCConeDefinition.h:85
L1RPCConeDefinition::TRingToTower::m_hwPlane
signed char m_hwPlane
Definition: L1RPCConeDefinition.h:34
L1RPCConeDefinition::TRingToTower::m_etaPart
signed char m_etaPart
Definition: L1RPCConeDefinition.h:33
L1RPCConeDefinition::m_lastTower
int m_lastTower
Definition: L1RPCConeDefinition.h:90
L1RPCConeDefinition::TRingToLP::m_etaPart
signed char m_etaPart
Definition: L1RPCConeDefinition.h:53
Serializable.h
L1RPCConeDefinition::setFirstTower
void setFirstTower(int tow)
Definition: L1RPCConeDefinition.h:65
L1RPCConeDefinition::getRingToTowerVec
const TRingToTowerVec & getRingToTowerVec() const
Definition: L1RPCConeDefinition.h:79
L1RPCConeDefinition::TRingToLP::m_index
unsigned char m_index
Definition: L1RPCConeDefinition.h:56
L1RPCConeDefinition::TRingToLPVec
std::vector< TRingToLP > TRingToLPVec
Definition: L1RPCConeDefinition.h:60
L1RPCConeDefinition::m_ringToTowerVec
TRingToTowerVec m_ringToTowerVec
Definition: L1RPCConeDefinition.h:94
L1RPCConeDefinition::TRingToLP::m_hwPlane
signed char m_hwPlane
Definition: L1RPCConeDefinition.h:54
L1RPCConeDefinition
Definition: L1RPCConeDefinition.h:8
L1RPCConeDefinition::TLPSizeVec
std::vector< TLPSize > TLPSizeVec
Definition: L1RPCConeDefinition.h:22
L1RPCConeDefinition::TLPSize::m_LP
signed char m_LP
Definition: L1RPCConeDefinition.h:17