#include <DataFormats/MuonDetId/interface/RPCCompDetId.h>
Public Member Functions | |
std::string | dbname () const |
int | disk () const |
int | layer () const |
bool | operator< (const RPCCompDetId &r) const |
Sort Operator based on the name. More... | |
int | region () const |
int | ring () const |
RPCCompDetId () | |
RPCCompDetId (uint32_t id) | |
RPCCompDetId (DetId id) | |
RPCCompDetId (int region, int ring, int station, int sector, int layer, int subsector, int type) | |
Construct from fully qualified identifier. More... | |
RPCCompDetId (const std::string &dbname, int type) | |
Construct from name stored in DB. More... | |
int | sector () const |
int | station () const |
int | subsector () const |
int | type () const |
int | wheel () const |
Public Member Functions inherited from DetId | |
constexpr Detector | det () const |
get the detector field from this detid More... | |
constexpr | DetId () |
Create an empty or null id (also for persistence) More... | |
constexpr | DetId (uint32_t id) |
Create an id from a raw number. More... | |
constexpr | DetId (Detector det, int subdet) |
Create an id, filling the detector and subdetector fields as specified. More... | |
constexpr bool | null () const |
is this a null id ? More... | |
constexpr | operator uint32_t () const |
constexpr bool | operator!= (DetId id) const |
inequality More... | |
constexpr uint32_t | operator() () const |
constexpr bool | operator< (DetId id) const |
comparison More... | |
constexpr bool | operator== (DetId id) const |
equality More... | |
constexpr uint32_t | rawId () const |
get the raw id More... | |
constexpr int | subdetId () const |
get the contents of the subdetector field (not cast into any detector's numbering enum) More... | |
Static Public Attributes | |
static const int | allLayerId = minLayerId - 1 |
static const int | allRegionId = minRegionId - 1 |
static const int | allRingId = minRingBarrelId - 1 |
static const int | allSectorId = minSectorId - 1 |
static const int | allStationId = minStationId - 1 |
static const int | allSubSectorId = minSubSectorId - 1 |
static const int | maxLayerId = 2 |
static const int | maxRegionId = 1 |
static const int | maxRingBarrelId = 2 |
static const int | maxRingForwardId = 3 |
static const int | maxSectorBarrelId = 12 |
static const int | maxSectorForwardId = 36 |
static const int | maxSectorId = 36 |
static const int | maxStationId = 4 |
static const int | maxSubSectorId = 2 |
static const int | minLayerId = 1 |
static const int | minRegionId = -1 |
static const int | minRingBarrelId = -2 |
static const int | minRingForwardId = 1 |
static const int | minSectorBarrelId = 1 |
static const int | minSectorForwardId = 1 |
static const int | minSectorId = 1 |
static const int | minStationId = 1 |
static const int | minSubSectorId = 1 |
static const int | RingBarrelOffSet = 3 |
Static Public Attributes inherited from DetId | |
static const int | kDetMask = 0xF |
static const int | kDetOffset = 28 |
static const int | kSubdetMask = 0x7 |
static const int | kSubdetOffset = 25 |
Private Member Functions | |
std::string | gasDBname () const |
void | init (int region, int ring, int station, int sector, int layer, int subsector) |
void | init () |
void | initGas () |
Private Attributes | |
std::string | _dbname |
int | _type |
Static Private Attributes | |
static const unsigned int | LayerMask_ = 0X3 |
static const int | LayerNumBits_ = 2 |
static const int | LayerStartBit_ = SectorStartBit_ + SectorNumBits_ |
static const int | RegionMask_ = 0X3 |
static const int | RegionNumBits_ = 2 |
static const int | RegionStartBit_ = 0 |
static const unsigned int | RingMask_ = 0X7 |
static const int | RingNumBits_ = 3 |
static const int | RingStartBit_ = RegionStartBit_ + RegionNumBits_ |
static const unsigned int | SectorMask_ = 0X3F |
static const int | SectorNumBits_ = 6 |
static const int | SectorStartBit_ = StationStartBit_ + StationNumBits_ |
static const unsigned int | StationMask_ = 0X7 |
static const int | StationNumBits_ = 3 |
static const int | StationStartBit_ = RingStartBit_ + RingNumBits_ |
static const unsigned int | SubSectorMask_ = 0X3 |
static const int | SubSectorNumBits_ = 2 |
static const int | SubSectorStartBit_ = LayerStartBit_ + LayerNumBits_ |
Additional Inherited Members | |
Public Types inherited from DetId | |
enum | Detector { Tracker = 1, Muon = 2, Ecal = 3, Hcal = 4, Calo = 5, Forward = 6, VeryForward = 7, HGCalEE = 8, HGCalHSi = 9, HGCalHSc = 10, HGCalTrigger = 11 } |
Protected Attributes inherited from DetId | |
uint32_t | id_ |
Description: DetId for composite RPC objects
Definition at line 21 of file RPCCompDetId.h.
RPCCompDetId::RPCCompDetId | ( | ) |
Definition at line 17 of file RPCCompDetId.cc.
RPCCompDetId::RPCCompDetId | ( | uint32_t | id | ) |
Construct from a packed id. It is required that the Detector part of id is Muon and the SubDet part is RPC, otherwise an exception is thrown.
Definition at line 19 of file RPCCompDetId.cc.
References DetId::det(), Exception, DetId::Muon, MuonSubdetId::RPC, and DetId::subdetId().
RPCCompDetId::RPCCompDetId | ( | DetId | id | ) |
Definition at line 26 of file RPCCompDetId.cc.
References DetId::det(), Exception, DetId::Muon, MuonSubdetId::RPC, and DetId::subdetId().
RPCCompDetId::RPCCompDetId | ( | int | region, |
int | ring, | ||
int | station, | ||
int | sector, | ||
int | layer, | ||
int | subsector, | ||
int | type | ||
) |
Construct from fully qualified identifier.
Definition at line 33 of file RPCCompDetId.cc.
References init(), layer(), ring(), sector(), station(), and subsector().
RPCCompDetId::RPCCompDetId | ( | const std::string & | dbname, |
int | type | ||
) |
Construct from name stored in DB.
Definition at line 38 of file RPCCompDetId.cc.
References init().
std::string RPCCompDetId::dbname | ( | ) | const |
Definition at line 73 of file RPCCompDetId.cc.
References _dbname, a, gasDBname(), AlCaHLTBitMon_QueryRunRegistry::string, and type().
Referenced by initGas(), and operator<().
int RPCCompDetId::disk | ( | ) | const |
Definition at line 58 of file RPCCompDetId.cc.
References allStationId, ztail::d, region(), and station().
Referenced by gasDBname().
|
private |
Definition at line 201 of file RPCCompDetId.cc.
References funct::abs(), disk(), layer(), region(), ring(), sector(), station(), AlCaHLTBitMon_QueryRunRegistry::string, subsector(), and wheel().
Referenced by dbname().
|
private |
Definition at line 83 of file RPCCompDetId.cc.
References allLayerId, allRegionId, allRingId, allSectorId, allStationId, allSubSectorId, Exception, DetId::id_, layer(), LayerMask_, LayerStartBit_, maxLayerId, maxRegionId, HLT_2024v12_cff::maxRing, maxRingBarrelId, maxRingForwardId, maxSectorId, maxStationId, maxSubSectorId, region(), RegionMask_, RegionStartBit_, ring(), RingMask_, RingStartBit_, sector(), SectorMask_, SectorStartBit_, station(), StationMask_, StationStartBit_, subsector(), SubSectorMask_, and SubSectorStartBit_.
|
private |
Definition at line 110 of file RPCCompDetId.cc.
References initGas(), and type().
Referenced by initGas(), and RPCCompDetId().
|
private |
Definition at line 116 of file RPCCompDetId.cc.
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().
int RPCCompDetId::layer | ( | ) | const |
Definition at line 67 of file RPCCompDetId.cc.
References allLayerId, DetId::id_, createfilelist::int, LayerMask_, and LayerStartBit_.
Referenced by gasDBname(), geometryXMLparser.DTAlignable::index(), geometryXMLparser.CSCAlignable::index(), init(), initGas(), and RPCCompDetId().
bool RPCCompDetId::operator< | ( | const RPCCompDetId & | r | ) | const |
Sort Operator based on the name.
Definition at line 43 of file RPCCompDetId.cc.
References dbname().
int RPCCompDetId::region | ( | ) | const |
Definition at line 45 of file RPCCompDetId.cc.
References allRegionId, DetId::id_, createfilelist::int, RegionMask_, and RegionStartBit_.
Referenced by disk(), gasDBname(), init(), initGas(), and wheel().
int RPCCompDetId::ring | ( | ) | const |
Definition at line 47 of file RPCCompDetId.cc.
References allRingId, DetId::id_, createfilelist::int, RingMask_, and RingStartBit_.
Referenced by gasDBname(), geometryXMLparser.CSCAlignable::index(), init(), initGas(), RPCCompDetId(), and wheel().
int RPCCompDetId::sector | ( | ) | const |
Definition at line 65 of file RPCCompDetId.cc.
References allSectorId, DetId::id_, createfilelist::int, SectorMask_, and SectorStartBit_.
Referenced by gasDBname(), geometryXMLparser.DTAlignable::index(), init(), initGas(), and RPCCompDetId().
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().
int RPCCompDetId::subsector | ( | ) | const |
Definition at line 69 of file RPCCompDetId.cc.
References allSubSectorId, DetId::id_, createfilelist::int, SubSectorMask_, and SubSectorStartBit_.
Referenced by gasDBname(), init(), initGas(), and RPCCompDetId().
int RPCCompDetId::type | ( | ) | const |
Definition at line 71 of file RPCCompDetId.cc.
References _type.
Referenced by dbname(), and init().
int RPCCompDetId::wheel | ( | ) | const |
Definition at line 49 of file RPCCompDetId.cc.
References allRingId, region(), ring(), and w().
Referenced by gasDBname(), and geometryXMLparser.DTAlignable::index().
|
private |
Definition at line 114 of file RPCCompDetId.h.
|
private |
Definition at line 115 of file RPCCompDetId.h.
Referenced by SequenceTypes.ExpandVisitor::result(), and type().
|
static |
Definition at line 75 of file RPCCompDetId.h.
|
static |
Definition at line 52 of file RPCCompDetId.h.
|
static |
|
static |
Definition at line 71 of file RPCCompDetId.h.
|
static |
|
static |
Definition at line 79 of file RPCCompDetId.h.
Referenced by init(), initGas(), and subsector().
|
staticprivate |
Definition at line 100 of file RPCCompDetId.h.
|
staticprivate |
Definition at line 98 of file RPCCompDetId.h.
|
staticprivate |
Definition at line 99 of file RPCCompDetId.h.
|
static |
Definition at line 74 of file RPCCompDetId.h.
Referenced by init().
|
static |
Definition at line 51 of file RPCCompDetId.h.
Referenced by init().
|
static |
Definition at line 57 of file RPCCompDetId.h.
Referenced by init().
|
static |
Definition at line 55 of file RPCCompDetId.h.
Referenced by init().
|
static |
Definition at line 68 of file RPCCompDetId.h.
|
static |
Definition at line 70 of file RPCCompDetId.h.
|
static |
Definition at line 66 of file RPCCompDetId.h.
Referenced by init().
|
static |
Definition at line 62 of file RPCCompDetId.h.
Referenced by init().
|
static |
Definition at line 78 of file RPCCompDetId.h.
Referenced by init().
|
static |
Definition at line 73 of file RPCCompDetId.h.
|
static |
Definition at line 50 of file RPCCompDetId.h.
|
static |
Definition at line 56 of file RPCCompDetId.h.
|
static |
Definition at line 54 of file RPCCompDetId.h.
|
static |
Definition at line 67 of file RPCCompDetId.h.
|
static |
Definition at line 69 of file RPCCompDetId.h.
|
static |
Definition at line 65 of file RPCCompDetId.h.
|
static |
Definition at line 61 of file RPCCompDetId.h.
|
static |
Definition at line 77 of file RPCCompDetId.h.
|
staticprivate |
Definition at line 84 of file RPCCompDetId.h.
|
staticprivate |
Definition at line 82 of file RPCCompDetId.h.
|
staticprivate |
Definition at line 83 of file RPCCompDetId.h.
|
static |
Definition at line 58 of file RPCCompDetId.h.
|
staticprivate |
Definition at line 88 of file RPCCompDetId.h.
|
staticprivate |
Definition at line 86 of file RPCCompDetId.h.
|
staticprivate |
Definition at line 87 of file RPCCompDetId.h.
|
staticprivate |
Definition at line 96 of file RPCCompDetId.h.
|
staticprivate |
Definition at line 94 of file RPCCompDetId.h.
|
staticprivate |
Definition at line 95 of file RPCCompDetId.h.
|
staticprivate |
Definition at line 92 of file RPCCompDetId.h.
|
staticprivate |
Definition at line 90 of file RPCCompDetId.h.
|
staticprivate |
Definition at line 91 of file RPCCompDetId.h.
|
staticprivate |
Definition at line 104 of file RPCCompDetId.h.
Referenced by init(), and subsector().
|
staticprivate |
Definition at line 102 of file RPCCompDetId.h.
|
staticprivate |
Definition at line 103 of file RPCCompDetId.h.
Referenced by init(), and subsector().