|
|
#include <DataFormats/MuonDetId/interface/RPCCompDetId.h>
|
enum | Detector {
Tracker = 1,
Muon = 2,
Ecal = 3,
Hcal = 4,
Calo = 5,
Forward = 6,
VeryForward = 7,
HGCalEE = 8,
HGCalHSi = 9,
HGCalHSc = 10,
HGCalTrigger = 11
} |
|
uint32_t | id_ |
|
Description: DetId for composite RPC objects
Definition at line 21 of file RPCCompDetId.h.
◆ RPCCompDetId() [1/5]
RPCCompDetId::RPCCompDetId |
( |
| ) |
|
◆ RPCCompDetId() [2/5]
RPCCompDetId::RPCCompDetId |
( |
uint32_t |
id | ) |
|
◆ RPCCompDetId() [3/5]
RPCCompDetId::RPCCompDetId |
( |
DetId |
id | ) |
|
◆ RPCCompDetId() [4/5]
RPCCompDetId::RPCCompDetId |
( |
int |
region, |
|
|
int |
ring, |
|
|
int |
station, |
|
|
int |
sector, |
|
|
int |
layer, |
|
|
int |
subsector, |
|
|
int |
type |
|
) |
| |
◆ RPCCompDetId() [5/5]
RPCCompDetId::RPCCompDetId |
( |
const std::string & |
dbname, |
|
|
int |
type |
|
) |
| |
◆ dbname()
std::string RPCCompDetId::dbname |
( |
| ) |
const |
◆ disk()
int RPCCompDetId::disk |
( |
| ) |
const |
◆ gasDBname()
std::string RPCCompDetId::gasDBname |
( |
| ) |
const |
|
private |
◆ init() [1/2]
void RPCCompDetId::init |
( |
void |
| ) |
|
|
private |
◆ init() [2/2]
void RPCCompDetId::init |
( |
int |
region, |
|
|
int |
ring, |
|
|
int |
station, |
|
|
int |
sector, |
|
|
int |
layer, |
|
|
int |
subsector |
|
) |
| |
|
private |
Definition at line 83 of file RPCCompDetId.cc.
93 <<
" Invalid parameters: "
References allLayerId, allRegionId, allRingId, allSectorId, allStationId, allSubSectorId, Exception, DetId::id_, layer(), LayerMask_, LayerStartBit_, maxLayerId, maxRegionId, HLT_2018_cff::maxRing, maxRingBarrelId, maxRingForwardId, maxSectorId, maxStationId, maxSubSectorId, region(), RegionMask_, RegionStartBit_, ring(), RingMask_, RingStartBit_, sector(), SectorMask_, SectorStartBit_, station(), StationMask_, StationStartBit_, subsector(), SubSectorMask_, and SubSectorStartBit_.
◆ initGas()
void RPCCompDetId::initGas |
( |
| ) |
|
|
private |
Definition at line 116 of file RPCCompDetId.cc.
119 if (
buf.find(
':') !=
buf.npos) {
125 if (
buf.substr(0, 1) ==
"W") {
127 }
else if (
buf.substr(0, 2) ==
"EP") {
129 }
else if (
buf.substr(0, 2) ==
"EM") {
133 <<
" RPCCompDetId: " << this->
dbname() <<
" is not a valid DB Name for RPCCompDetId"
145 std::stringstream os;
146 os <<
buf.substr(2, 1);
148 if (
buf.substr(1, 1) ==
"M") {
154 std::stringstream os;
155 os <<
buf.substr(
buf.find(
"RB") + 2, 1);
160 std::stringstream os;
161 os <<
buf.substr(
buf.find(
"S") + 1, 2);
166 if (
buf.find(
"4L") !=
buf.npos)
168 if (
buf.find(
"4R") !=
buf.npos)
174 std::stringstream os;
175 os <<
buf.substr(
buf.find(
"_R0") + 3, 1);
180 std::stringstream os;
181 os <<
buf.substr(2, 1);
186 std::stringstream os;
187 os <<
buf.substr(
buf.find(
"_C") + 2, 2);
192 if (
buf.find(
"UP") !=
buf.npos)
194 if (
buf.find(
"DW") !=
buf.npos)
References _dbname, allLayerId, allRingId, allSectorId, allStationId, allSubSectorId, visDQMUpload::buf, dbname(), DetId::det(), Exception, init(), layer(), region(), ring(), sector(), station(), AlCaHLTBitMon_QueryRunRegistry::string, DetId::subdetId(), and subsector().
Referenced by init().
◆ layer()
int RPCCompDetId::layer |
( |
| ) |
const |
◆ operator<()
bool RPCCompDetId::operator< |
( |
const RPCCompDetId & |
r | ) |
const |
◆ region()
int RPCCompDetId::region |
( |
| ) |
const |
◆ ring()
int RPCCompDetId::ring |
( |
| ) |
const |
◆ sector()
int RPCCompDetId::sector |
( |
| ) |
const |
◆ station()
int RPCCompDetId::station |
( |
| ) |
const |
Definition at line 56 of file RPCCompDetId.cc.
References allStationId, DetId::id_, createfilelist::int, StationMask_, and StationStartBit_.
Referenced by disk(), gasDBname(), geometryXMLparser.DTAlignable::index(), geometryXMLparser.CSCAlignable::index(), init(), initGas(), and RPCCompDetId().
◆ subsector()
int RPCCompDetId::subsector |
( |
| ) |
const |
◆ type()
int RPCCompDetId::type |
( |
| ) |
const |
◆ wheel()
int RPCCompDetId::wheel |
( |
| ) |
const |
◆ _dbname
std::string RPCCompDetId::_dbname |
|
private |
◆ _type
◆ allLayerId
const int RPCCompDetId::allLayerId = minLayerId - 1 |
|
static |
◆ allRegionId
◆ allRingId
◆ allSectorId
◆ allStationId
◆ allSubSectorId
◆ LayerMask_
const unsigned int RPCCompDetId::LayerMask_ = 0X3 |
|
staticprivate |
◆ LayerNumBits_
const int RPCCompDetId::LayerNumBits_ = 2 |
|
staticprivate |
◆ LayerStartBit_
◆ maxLayerId
const int RPCCompDetId::maxLayerId = 2 |
|
static |
◆ maxRegionId
const int RPCCompDetId::maxRegionId = 1 |
|
static |
◆ maxRingBarrelId
const int RPCCompDetId::maxRingBarrelId = 2 |
|
static |
◆ maxRingForwardId
const int RPCCompDetId::maxRingForwardId = 3 |
|
static |
◆ maxSectorBarrelId
const int RPCCompDetId::maxSectorBarrelId = 12 |
|
static |
◆ maxSectorForwardId
const int RPCCompDetId::maxSectorForwardId = 36 |
|
static |
◆ maxSectorId
const int RPCCompDetId::maxSectorId = 36 |
|
static |
◆ maxStationId
const int RPCCompDetId::maxStationId = 4 |
|
static |
◆ maxSubSectorId
const int RPCCompDetId::maxSubSectorId = 2 |
|
static |
◆ minLayerId
const int RPCCompDetId::minLayerId = 1 |
|
static |
◆ minRegionId
const int RPCCompDetId::minRegionId = -1 |
|
static |
◆ minRingBarrelId
const int RPCCompDetId::minRingBarrelId = -2 |
|
static |
◆ minRingForwardId
const int RPCCompDetId::minRingForwardId = 1 |
|
static |
◆ minSectorBarrelId
const int RPCCompDetId::minSectorBarrelId = 1 |
|
static |
◆ minSectorForwardId
const int RPCCompDetId::minSectorForwardId = 1 |
|
static |
◆ minSectorId
const int RPCCompDetId::minSectorId = 1 |
|
static |
◆ minStationId
const int RPCCompDetId::minStationId = 1 |
|
static |
◆ minSubSectorId
const int RPCCompDetId::minSubSectorId = 1 |
|
static |
◆ RegionMask_
const int RPCCompDetId::RegionMask_ = 0X3 |
|
staticprivate |
◆ RegionNumBits_
const int RPCCompDetId::RegionNumBits_ = 2 |
|
staticprivate |
◆ RegionStartBit_
const int RPCCompDetId::RegionStartBit_ = 0 |
|
staticprivate |
◆ RingBarrelOffSet
const int RPCCompDetId::RingBarrelOffSet = 3 |
|
static |
◆ RingMask_
const unsigned int RPCCompDetId::RingMask_ = 0X7 |
|
staticprivate |
◆ RingNumBits_
const int RPCCompDetId::RingNumBits_ = 3 |
|
staticprivate |
◆ RingStartBit_
◆ SectorMask_
const unsigned int RPCCompDetId::SectorMask_ = 0X3F |
|
staticprivate |
◆ SectorNumBits_
const int RPCCompDetId::SectorNumBits_ = 6 |
|
staticprivate |
◆ SectorStartBit_
◆ StationMask_
const unsigned int RPCCompDetId::StationMask_ = 0X7 |
|
staticprivate |
◆ StationNumBits_
const int RPCCompDetId::StationNumBits_ = 3 |
|
staticprivate |
◆ StationStartBit_
◆ SubSectorMask_
const unsigned int RPCCompDetId::SubSectorMask_ = 0X3 |
|
staticprivate |
◆ SubSectorNumBits_
const int RPCCompDetId::SubSectorNumBits_ = 2 |
|
staticprivate |
◆ SubSectorStartBit_
static const int allRingId
static const int allSectorId
static const unsigned int RingMask_
static const int SectorStartBit_
constexpr Detector det() const
get the detector field from this detid
static const int RegionMask_
static const int SubSectorStartBit_
static const int maxStationId
std::string gasDBname() const
static const int maxSubSectorId
static const int maxLayerId
static const unsigned int LayerMask_
static const int allSubSectorId
static const int RegionStartBit_
static const int StationStartBit_
static const int RingStartBit_
static const unsigned int SubSectorMask_
constexpr int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum)
std::string dbname() const
static const int allStationId
static const int allLayerId
static const unsigned int StationMask_
static const unsigned int SectorMask_
static const int LayerStartBit_
static const int maxRingBarrelId
constexpr DetId()
Create an empty or null id (also for persistence)
static const int maxRegionId
Abs< T >::type abs(const T &t)
static const int allRegionId
static const int maxSectorId
static const int maxRingForwardId