|
|
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() <<
" ";
RPC Data Record : block->header().getID() = 4.
static constexpr int maxLayerId
static constexpr int RingBarrelOffSet
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 constexpr int minStationId
static constexpr int SectorStartBit_
static constexpr int SubSectorStartBit_
std::ostream & operator<<(std::ostream &os, const RPCDetId &id)
static constexpr unsigned int StationMask_
static constexpr int RegionStartBit_
static constexpr unsigned int RingMask_
static constexpr int maxRingForwardId
static constexpr int maxRegionId
static constexpr int maxRollId
static constexpr unsigned int LayerMask_
void buildfromDB(int region, int ring, int layer, int sector, const std::string &subsector, const std::string &roll, const std::string &dbname)
static constexpr int minRingForwardId
static constexpr int minRingBarrelId
static constexpr unsigned int SectorMask_
static constexpr int maxRingBarrelId
constexpr int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum)
void buildfromTrIndex(int trIndex)
Built from the trigger det Index.
static constexpr unsigned int SubSectorMask_
static constexpr int minSectorId
static constexpr int RingStartBit_
static constexpr int LayerStartBit_
static constexpr int StationStartBit_
static constexpr int maxSubSectorId
void init(int region, int ring, int station, int sector, int layer, int subsector, int roll)
static constexpr int RegionMask_
static constexpr int RollStartBit_
static constexpr int minRollId
static constexpr int minSubSectorId
static constexpr int maxStationId
static constexpr int minLayerId
int sector() const
Sector id: the group of chambers at same phi (and increasing r)
static constexpr unsigned int RollMask_
Abs< T >::type abs(const T &t)
static constexpr int maxSectorId
static constexpr int minRegionId