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>(
86 checkCellType(cellType, __func__);
91 checkCellType(cellType, __func__);
97 checkCellType(cellType, __func__);
118 checkCellType(cellType, __func__);
124 checkCellType(cellType, __func__);
125 switch (moduleType) {
195 if (adjacentSLB == -1) {
196 throw std::out_of_range(
197 "adjacentSLB is -1 in TGCChannelSLBIn::convertChannelInSLB");
200 return channel - offset;
204 CellType cellType,
int channelInSLB) {
206 if (adjacentSLB == -1) {
207 throw std::out_of_range(
208 "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
void setStation(StationType vstation)
virtual void setSector(int vsector)
SideType getSideType() const
virtual void setModuleType(ModuleType module)