6 RPCGeomServ::RPCGeomServ::RPCGeomServ(
const RPCDetId&
id)
7 : _id(&id), _n(
""), _sn(
""), _cn(
""), _t(-99), _z(
true), _a(
true) {}
25 os << std::setw(2) << std::setfill(
'+') << ring << std::setfill(
' ') <<
"_";
29 (layer == 1) ? os <<
"in" : os <<
"out";
31 }
else if (station > 2) {
32 if (sector == 4 && station == 4) {
35 }
else if (subsector == 2) {
37 }
else if (subsector == 3) {
39 }
else if (subsector == 4) {
49 }
else if (station == 4 && sector != 9 && sector != 11 && sector != 4) {
58 os <<
"S" << std::setw(2) << std::setfill(
'0') << sector << std::setfill(
' ');
68 os << std::setw(2) << std::setfill(
'+') << station * region << std::setfill(
' ') <<
"_";
71 os <<
"_CH" << std::setw(2) << std::setfill(
'0') << this->
segment();
103 os << std::setw(2) << std::setfill(
'+') << ring << std::setfill(
' ') <<
"_";
107 (layer == 1) ? os <<
"in" : os <<
"out";
109 }
else if (station > 2) {
110 if (sector == 4 && station == 4) {
111 if (subsector == 1) {
113 }
else if (subsector == 2) {
115 }
else if (subsector == 3) {
117 }
else if (subsector == 4) {
127 }
else if (station == 4 && sector != 9 && sector != 11 && sector != 4) {
136 os <<
"S" << std::setw(2) << std::setfill(
'0') << sector << std::setfill(
' ');
140 os << std::setw(2) << std::setfill(
'+') << station * region << std::setfill(
' ') <<
"_";
143 os <<
"_CH" << std::setw(2) << std::setfill(
'0') << this->
segment();
160 std::stringstream os;
165 (layer == 1) ? os <<
"in" : os <<
"out";
168 if (sector == 4 && station == 4) {
169 if (subsector == 1) {
171 }
else if (subsector == 2) {
173 }
else if (subsector == 3) {
175 }
else if (subsector == 4) {
192 os <<
"Ri" << ring <<
" Su" << subsector;
201 std::vector<int> chipCh(4, 8);
208 if (station < 3 && _id->
layer() == 1) {
209 chipCh.emplace_back(7);
210 chipCh.emplace_back(8);
211 }
else if (station == 1 || station == 3) {
212 chipCh.emplace_back(7);
213 chipCh.emplace_back(7);
214 }
else if (station == 2) {
215 chipCh.emplace_back(6);
216 chipCh.emplace_back(8);
219 chipCh.emplace_back(6);
220 chipCh.emplace_back(6);
222 chipCh.emplace_back(8);
223 chipCh.emplace_back(8);
365 (ring == 1 && station > 1) ? nsub = 3 : nsub = 6;
virtual std::string chambername()
virtual int eta_partition()
std::vector< int > channelInChip()
constexpr std::array< uint8_t, layerIndexSize > layer
virtual std::string name()
virtual bool aclockwise()
virtual std::string shortname()
int sector() const
Sector id: the group of chambers at same phi (and increasing r)
int subsector() const
SubSector id : some sectors are divided along the phi direction in subsectors (from 1 to 4 in Barrel...
int region() const
Region id: 0 for Barrel, +/-1 For +/- Endcap.