51 return m_superLayers[superLayer_id];
59 return std::get<1>( m_geom_relationship[wire_id] );
64 return std::get<2>( m_geom_relationship[wire_id] );
69 return m_layerGeomInfo[
wire2layer( wire_id )].wire_start;
74 return m_layerGeomInfo[
wire2layer( wire_id )].wire_end;
97 return m_layerGeomInfo[layer_id].superLayerId;
102 return m_layerGeomInfo[layer_id].wire_start;
107 return m_layerGeomInfo[layer_id].wire_end;
122 return m_layerGeomInfo[layer_id].wire_end - m_layerGeomInfo[layer_id].wire_start + 1;
131 return m_superLayerGeomInfo[superLayer_id].layer_start;
136 return m_superLayerGeomInfo[superLayer_id].layer_end;
141 return m_superLayerGeomInfo[superLayer_id].wire_start;
146 return m_superLayerGeomInfo[superLayer_id].wire_end;
151 return m_superLayerGeomInfo[superLayer_id].layer_end -
152 m_superLayerGeomInfo[superLayer_id].layer_start + 1;
157 return m_superLayerGeomInfo[superLayer_id].wire_end -
158 m_superLayerGeomInfo[superLayer_id].wire_start + 1;
164 for (
auto w : m_wires )
delete w;
165 for (
auto l : m_layers )
delete l;
166 for (
auto s : m_superLayers )
delete s;
167 delete m_virtualWire;
171 FTWire* m_virtualWire;
172 FTList<FTWire*> m_wires;
173 FTList<FTLayer*> m_layers;
174 FTList<FTSuperLayer*> m_superLayers;
177 FTList<tuple<int, int, int>> m_geom_relationship;
178 FTList<FTLayerGeomInfo> m_layerGeomInfo;
179 FTList<FTSuperLayerGeomInfo> m_superLayerGeomInfo;
static FTGeom * instance()
const int layer2layerIndex(const int layer_id)
const int layer2layerStart(const int layer_id)
const int layer2wireEnd(const int layer_id)
const int superLayer2nWires(const int superLayer_id)
const int layer2superLayer(const int layer_id)
const int superLayer2wireStart(const int superLayer_id)
FTWire * getWire(const int wire_id)
const int wire2wireStartLayer(const int wire_id)
const int superLayer2nLayers(const int superLayer_id)
const int layer2wireStart(const int layer_id)
FTLayer * getLayer(const int layer_id)
const int wire2wireEndSuperLayer(const int wire_id)
FTWire * getVirtualWire()
const int wire2wireStartSuperLayer(const int wire_id)
const int superLayer2layerStart(const int superLayer_id)
const int wire2superLayer(const int wire_id)
const int wire2wireEndLayer(const int wire_id)
FTSuperLayer * getSuperLayer(const int superLayer_id)
const int superLayer2wireEnd(const int superLayer_id)
const int wire2wireIndexLayer(const int wire_id)
const int layer2nWires(const int layer_id)
const int wire2layer(const int wire_id)
const int superLayer2layerEnd(const int superLayer_id)
FTLayerGeomInfo(int layerId, int superLayerId, int wire_start, int wire_end)
FTSuperLayerGeomInfo(int superLayerId, int layer_start, int layer_end, int wire_start, int wire_end)