14 const std::string& funcName) {
17 const std::string
msg =
"cellType out of range in " + funcName;
18 throw std::out_of_range(
msg);
30 int vid,
int vchannel)
41 return std::make_unique<TGCModuleSLB>(
74 checkCellType(cellType, __func__);
79 checkCellType(cellType, __func__);
85 checkCellType(cellType, __func__);
106 checkCellType(cellType, __func__);
112 checkCellType(cellType, __func__);
113 switch (moduleType) {
183 if (adjacentSLB == -1) {
184 throw std::out_of_range(
185 "adjacentSLB is -1 in TGCChannelSLBIn::convertChannelInSLB");
188 return channel - offset;
192 CellType cellType,
int channelInSLB) {
194 if (adjacentSLB == -1) {
195 throw std::out_of_range(
196 "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 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_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
virtual void setSector(int vsector)
SideType getSideType() const
void setModuleType(ModuleType module)