14 const std::string& funcName) {
17 const std::string
msg =
"cellType out of range in " + funcName;
18 throw std::out_of_range(
msg);
29 int vsector,
int vid,
int vchannel)
43 int vsector,
int vid,
int vchannel)
55 return std::make_unique<TGCModuleSLB>(
88 checkCellType(cellType, __func__);
93 checkCellType(cellType, __func__);
99 checkCellType(cellType, __func__);
100 switch (moduleType) {
120 checkCellType(cellType, __func__);
126 checkCellType(cellType, __func__);
127 switch (moduleType) {
197 if (adjacentSLB == -1) {
198 throw std::out_of_range(
199 "adjacentSLB is -1 in TGCChannelSLBIn::convertChannelInSLB");
202 return channel - offset;
206 CellType cellType,
int channelInSLB) {
208 if (adjacentSLB == -1) {
209 throw std::out_of_range(
210 "adjacentSLB is -1 in TGCChannelSLBIn::convertChannel");
virtual void setChannel(int channel)
TGCChannelId(ChannelIdType type=ChannelIdType::NoChannelIdType)
virtual int getChannelInCell() const
static const int s_adjacentCell[]
static const int s_lengthWD[]
static int getLengthOfCell(CellType cellType)
static const int s_adjacentWT[]
static int convertChannelInSLB(TGCId::ModuleType moduleType, CellType cellType, int channel)
virtual CellType getCellType() const
static int convertChannelInCell(int channel)
static const int s_lengthST[]
static int getOffsetOfCell(CellType cellType)
static const int s_offsetCell[]
static const int s_adjacentSD[]
virtual bool isValid() const override
static const int s_lengthCell[]
static CellType convertCellType(int channel)
static int getAdjacentOfSLB(TGCId::ModuleType moduleType, CellType cellType)
virtual std::unique_ptr< TGCModuleId > getModule() const override
static int convertChannel(TGCId::ModuleType moduleType, CellType cellType, int channelInSLB)
static const int s_lengthWI[]
static int getLengthOfSLB(TGCId::ModuleType moduleType, CellType cellType)
static const int s_adjacentWD[]
virtual int getChannelInSLB() const
static const int s_lengthWT[]
static const int s_lengthSD[]
static const int s_lengthSI[]
static const int s_adjacentST[]
static int getAdjacentOfCell(CellType cellType)
virtual void setChannel(int channel) override
void setSideType(SideType side)
void setRegionType(RegionType region)
ModuleType getModuleType() const
RegionType getRegionType() const
virtual int getSector() const
void setStation(StationType vstation)
virtual void setSector(int vsector)
SideType getSideType() const
virtual void setModuleType(ModuleType module)