#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 | |
Detector | det () const |
get the detector field from this detid More... | |
DetId () | |
Create an empty or null id (also for persistence) More... | |
DetId (uint32_t id) | |
Create an id from a raw number. More... | |
DetId (Detector det, int subdet) | |
Create an id, filling the detector and subdetector fields as specified. More... | |
bool | null () const |
is this a null id ? More... | |
operator uint32_t () const | |
bool | operator!= (DetId id) const |
inequality More... | |
uint32_t | operator() () const |
bool | operator< (DetId id) const |
comparison More... | |
bool | operator== (DetId id) const |
equality More... | |
uint32_t | rawId () const |
get the raw id More... | |
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 | kDetOffset = 28 |
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 } |
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.
RPCCompDetId::RPCCompDetId | ( | DetId | id | ) |
Definition at line 30 of file RPCCompDetId.cc.
RPCCompDetId::RPCCompDetId | ( | int | region, |
int | ring, | ||
int | station, | ||
int | sector, | ||
int | layer, | ||
int | subsector, | ||
int | type | ||
) |
Construct from fully qualified identifier.
Definition at line 41 of file RPCCompDetId.cc.
RPCCompDetId::RPCCompDetId | ( | const std::string & | dbname, |
int | type | ||
) |
Construct from name stored in DB.
Definition at line 53 of file RPCCompDetId.cc.
std::string RPCCompDetId::dbname | ( | ) | const |
Definition at line 121 of file RPCCompDetId.cc.
int RPCCompDetId::disk | ( | ) | const |
Definition at line 89 of file RPCCompDetId.cc.
|
private |
Definition at line 274 of file RPCCompDetId.cc.
|
private |
Definition at line 132 of file RPCCompDetId.cc.
|
private |
Definition at line 178 of file RPCCompDetId.cc.
|
private |
Definition at line 186 of file RPCCompDetId.cc.
int RPCCompDetId::layer | ( | ) | const |
Definition at line 104 of file RPCCompDetId.cc.
bool RPCCompDetId::operator< | ( | const RPCCompDetId & | r | ) | const |
Sort Operator based on the name.
Definition at line 60 of file RPCCompDetId.cc.
int RPCCompDetId::region | ( | ) | const |
Definition at line 65 of file RPCCompDetId.cc.
int RPCCompDetId::ring | ( | ) | const |
Definition at line 70 of file RPCCompDetId.cc.
int RPCCompDetId::sector | ( | ) | const |
Definition at line 98 of file RPCCompDetId.cc.
int RPCCompDetId::station | ( | ) | const |
Definition at line 84 of file RPCCompDetId.cc.
int RPCCompDetId::subsector | ( | ) | const |
Definition at line 110 of file RPCCompDetId.cc.
int RPCCompDetId::type | ( | ) | const |
Definition at line 116 of file RPCCompDetId.cc.
int RPCCompDetId::wheel | ( | ) | const |
Definition at line 76 of file RPCCompDetId.cc.
|
private |
Definition at line 129 of file RPCCompDetId.h.
|
private |
Definition at line 130 of file RPCCompDetId.h.
|
static |
Definition at line 84 of file RPCCompDetId.h.
|
static |
Definition at line 61 of file RPCCompDetId.h.
|
static |
Definition at line 68 of file RPCCompDetId.h.
|
static |
Definition at line 80 of file RPCCompDetId.h.
|
static |
Definition at line 72 of file RPCCompDetId.h.
|
static |
Definition at line 89 of file RPCCompDetId.h.
|
staticprivate |
Definition at line 110 of file RPCCompDetId.h.
|
staticprivate |
Definition at line 108 of file RPCCompDetId.h.
|
staticprivate |
Definition at line 109 of file RPCCompDetId.h.
|
static |
Definition at line 83 of file RPCCompDetId.h.
|
static |
Definition at line 60 of file RPCCompDetId.h.
|
static |
Definition at line 66 of file RPCCompDetId.h.
|
static |
Definition at line 64 of file RPCCompDetId.h.
|
static |
Definition at line 77 of file RPCCompDetId.h.
|
static |
Definition at line 79 of file RPCCompDetId.h.
|
static |
Definition at line 75 of file RPCCompDetId.h.
|
static |
Definition at line 71 of file RPCCompDetId.h.
|
static |
Definition at line 88 of file RPCCompDetId.h.
|
static |
Definition at line 82 of file RPCCompDetId.h.
|
static |
Definition at line 59 of file RPCCompDetId.h.
|
static |
Definition at line 65 of file RPCCompDetId.h.
|
static |
Definition at line 63 of file RPCCompDetId.h.
|
static |
Definition at line 76 of file RPCCompDetId.h.
|
static |
Definition at line 78 of file RPCCompDetId.h.
|
static |
Definition at line 74 of file RPCCompDetId.h.
|
static |
Definition at line 70 of file RPCCompDetId.h.
|
static |
Definition at line 87 of file RPCCompDetId.h.
|
staticprivate |
Definition at line 94 of file RPCCompDetId.h.
|
staticprivate |
Definition at line 92 of file RPCCompDetId.h.
|
staticprivate |
Definition at line 93 of file RPCCompDetId.h.
|
static |
Definition at line 67 of file RPCCompDetId.h.
|
staticprivate |
Definition at line 98 of file RPCCompDetId.h.
|
staticprivate |
Definition at line 96 of file RPCCompDetId.h.
|
staticprivate |
Definition at line 97 of file RPCCompDetId.h.
|
staticprivate |
Definition at line 106 of file RPCCompDetId.h.
|
staticprivate |
Definition at line 104 of file RPCCompDetId.h.
|
staticprivate |
Definition at line 105 of file RPCCompDetId.h.
|
staticprivate |
Definition at line 102 of file RPCCompDetId.h.
|
staticprivate |
Definition at line 100 of file RPCCompDetId.h.
|
staticprivate |
Definition at line 101 of file RPCCompDetId.h.
|
staticprivate |
Definition at line 114 of file RPCCompDetId.h.
|
staticprivate |
Definition at line 112 of file RPCCompDetId.h.
|
staticprivate |
Definition at line 113 of file RPCCompDetId.h.