|
|
Go to the documentation of this file.
19 <<
" det: " <<
det() <<
" subdet: " <<
subdetId() <<
" is not a valid RPC id";
26 <<
" det: " <<
det() <<
" subdet: " <<
subdetId() <<
" is not a valid RPC id";
46 if (trlayer == 1 || trlayer == 2)
48 else if (trlayer == 3 || trlayer == 4)
65 if (
station == 3 && subs ==
"+")
89 if (
roll ==
"Backward" ||
roll ==
"A")
91 else if (
roll ==
"Central" ||
roll ==
"B")
93 else if (
roll ==
"Forward" ||
roll ==
"C")
98 std::cout <<
"** RPC: DBSpecToDetUnit, how to assigne roll to: " <<
roll <<
" ???" << std::endl;
104 int eta_id = 6 +
ring;
110 int sector_id =
sector * 3;
113 trIndex = (eta_id * 10000 + plane_id * 1000 + sector_id * 10 + copy_id) * 10 + roll_id;
116 int eta_id = trlayer;
118 eta_id = 12 - trlayer;
123 if (sector_id < 20) {
124 sector_id = 19 + 1 - sector_id;
126 sector_id = 36 + 20 - sector_id;
134 trIndex = (eta_id * 10000 + plane_id * 1000 + sector_id * 10 + copy_id) * 10 + roll_id;
147 }
else if (eta_id >= 9) {
155 int plane_id =
trIndex / 10000;
188 if (sector_id < 20) {
189 sector_id = 19 + 1 - sector_id;
191 sector_id = 36 + 20 - sector_id;
196 int sector = (sector_id - 1) / 3 + 1;
206 subsector = ((sector_id + 1) / 2 - 1) % 3 + 1;
232 <<
" Invalid parameters: "
235 <<
" roll " <<
roll << std::endl;
249 int rollInBits =
roll;
258 os <<
" Re " <<
id.region() <<
" Ri " <<
id.ring() <<
" St " <<
id.station() <<
" Se " <<
id.sector() <<
" La "
259 <<
id.layer() <<
" Su " <<
id.subsector() <<
" Ro " <<
id.roll() <<
" Tr " <<
id.trIndex() <<
" ";
int region() const
Region id: 0 for Barrel, +/-1 For +/- Endcap.
int subsector() const
SubSector id : some sectors are divided along the phi direction in subsectors (from 1 to 4 in Barrel,...
constexpr Detector det() const
get the detector field from this detid
static const unsigned int RingMask_
static const int minRingBarrelId
static const int minRollId
static const int RingBarrelOffSet
static const int maxRollId
std::ostream & operator<<(std::ostream &os, const RPCDetId &id)
static const int maxRegionId
static const unsigned int RollMask_
static const int maxSubSectorId
static const int minLayerId
void buildfromDB(int region, int ring, int layer, int sector, const std::string &subsector, const std::string &roll, const std::string &dbname)
static const int minSubSectorId
static const int minSectorId
constexpr int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum)
static const int SubSectorStartBit_
void buildfromTrIndex(int trIndex)
Built from the trigger det Index.
static const int minRingForwardId
static const int maxRingBarrelId
static const unsigned int SubSectorMask_
static const int minStationId
static const int LayerStartBit_
void init(int region, int ring, int station, int sector, int layer, int subsector, int roll)
static const int StationStartBit_
static const unsigned int SectorMask_
static const int RingStartBit_
static const unsigned int StationMask_
static const unsigned int LayerMask_
static const int maxRingForwardId
static const int SectorStartBit_
static const int minRegionId
int sector() const
Sector id: the group of chambers at same phi (and increasing r)
static const int RegionStartBit_
Abs< T >::type abs(const T &t)
static const int RollStartBit_
static const int maxStationId
static const int RegionMask_
static const int maxLayerId
static const int maxSectorId