#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 } |
Protected Attributes inherited from DetId | |
uint32_t | id_ |
Description: DetId for composite RPC objects
Definition at line 22 of file RPCCompDetId.h.
RPCCompDetId::RPCCompDetId | ( | ) |
Definition at line 18 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 20 of file RPCCompDetId.cc.
References DetId::det(), edm::hlt::Exception, DetId::Muon, MuonSubdetId::RPC, and DetId::subdetId().
RPCCompDetId::RPCCompDetId | ( | DetId | id | ) |
Definition at line 31 of file RPCCompDetId.cc.
References DetId::det(), edm::hlt::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 42 of file RPCCompDetId.cc.
References init().
RPCCompDetId::RPCCompDetId | ( | const std::string & | dbname, |
int | type | ||
) |
Construct from name stored in DB.
Definition at line 54 of file RPCCompDetId.cc.
References init().
std::string RPCCompDetId::dbname | ( | ) | const |
Definition at line 122 of file RPCCompDetId.cc.
References _dbname, a, gasDBname(), and type().
Referenced by initGas(), and operator<().
int RPCCompDetId::disk | ( | ) | const |
Definition at line 90 of file RPCCompDetId.cc.
References allStationId, region(), and station().
Referenced by gasDBname().
|
private |
|
private |
Definition at line 133 of file RPCCompDetId.cc.
References allLayerId, allRegionId, allRingId, allSectorId, allStationId, allSubSectorId, edm::hlt::Exception, DetId::id_, LayerMask_, LayerStartBit_, maxLayerId, maxRegionId, maxRingBarrelId, maxRingForwardId, maxSectorId, maxStationId, maxSubSectorId, RegionMask_, RegionStartBit_, RingMask_, RingStartBit_, SectorMask_, SectorStartBit_, StationMask_, StationStartBit_, SubSectorMask_, and SubSectorStartBit_.
|
private |
Definition at line 179 of file RPCCompDetId.cc.
References initGas(), and type().
Referenced by initGas(), and RPCCompDetId().
|
private |
Definition at line 187 of file RPCCompDetId.cc.
References _dbname, allLayerId, allRingId, allSectorId, allStationId, allSubSectorId, dbname(), DetId::det(), edm::hlt::Exception, init(), layer(), region(), ring(), sector(), station(), DetId::subdetId(), and subsector().
Referenced by init().
int RPCCompDetId::layer | ( | ) | const |
Definition at line 105 of file RPCCompDetId.cc.
References allLayerId, DetId::id_, LayerMask_, and LayerStartBit_.
Referenced by gasDBname(), geometryXMLparser.DTAlignable::index(), geometryXMLparser.CSCAlignable::index(), and initGas().
bool RPCCompDetId::operator< | ( | const RPCCompDetId & | r | ) | const |
Sort Operator based on the name.
Definition at line 61 of file RPCCompDetId.cc.
References dbname().
int RPCCompDetId::region | ( | ) | const |
Definition at line 66 of file RPCCompDetId.cc.
References allRegionId, DetId::id_, RegionMask_, and RegionStartBit_.
Referenced by disk(), gasDBname(), initGas(), and wheel().
int RPCCompDetId::ring | ( | ) | const |
Definition at line 71 of file RPCCompDetId.cc.
References allRingId, DetId::id_, RingMask_, and RingStartBit_.
Referenced by gasDBname(), geometryXMLparser.CSCAlignable::index(), initGas(), and wheel().
int RPCCompDetId::sector | ( | ) | const |
Definition at line 99 of file RPCCompDetId.cc.
References allSectorId, DetId::id_, SectorMask_, and SectorStartBit_.
Referenced by gasDBname(), geometryXMLparser.DTAlignable::index(), and initGas().
int RPCCompDetId::station | ( | ) | const |
Definition at line 85 of file RPCCompDetId.cc.
References allStationId, DetId::id_, StationMask_, and StationStartBit_.
Referenced by disk(), gasDBname(), geometryXMLparser.DTAlignable::index(), geometryXMLparser.CSCAlignable::index(), and initGas().
int RPCCompDetId::subsector | ( | ) | const |
Definition at line 111 of file RPCCompDetId.cc.
References allSubSectorId, DetId::id_, SubSectorMask_, and SubSectorStartBit_.
Referenced by gasDBname(), and initGas().
int RPCCompDetId::type | ( | ) | const |
Definition at line 117 of file RPCCompDetId.cc.
References _type.
Referenced by dbname(), init(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor::inputCommands(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor::outputCommands(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor::outputEventContent(), and Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor::properties().
int RPCCompDetId::wheel | ( | ) | const |
Definition at line 77 of file RPCCompDetId.cc.
References allRingId, region(), ring(), and w().
Referenced by gasDBname(), and geometryXMLparser.DTAlignable::index().
|
private |
Definition at line 130 of file RPCCompDetId.h.
|
private |
Definition at line 131 of file RPCCompDetId.h.
Referenced by Vispa.Gui.PortConnection.PointToPointConnection::calculateRoute(), SequenceTypes.ExpandVisitor::result(), and type().
|
static |
Definition at line 85 of file RPCCompDetId.h.
|
static |
Definition at line 62 of file RPCCompDetId.h.
|
static |
|
static |
Definition at line 81 of file RPCCompDetId.h.
|
static |
|
static |
Definition at line 90 of file RPCCompDetId.h.
Referenced by init(), initGas(), and subsector().
|
staticprivate |
Definition at line 111 of file RPCCompDetId.h.
|
staticprivate |
Definition at line 109 of file RPCCompDetId.h.
|
staticprivate |
Definition at line 110 of file RPCCompDetId.h.
|
static |
Definition at line 84 of file RPCCompDetId.h.
Referenced by init().
|
static |
Definition at line 61 of file RPCCompDetId.h.
Referenced by init().
|
static |
Definition at line 67 of file RPCCompDetId.h.
Referenced by init().
|
static |
Definition at line 65 of file RPCCompDetId.h.
Referenced by init().
|
static |
Definition at line 78 of file RPCCompDetId.h.
|
static |
Definition at line 80 of file RPCCompDetId.h.
|
static |
Definition at line 76 of file RPCCompDetId.h.
Referenced by init().
|
static |
Definition at line 72 of file RPCCompDetId.h.
Referenced by init().
|
static |
Definition at line 89 of file RPCCompDetId.h.
Referenced by init().
|
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.
|
staticprivate |
Definition at line 95 of file RPCCompDetId.h.
|
staticprivate |
Definition at line 93 of file RPCCompDetId.h.
|
staticprivate |
Definition at line 94 of file RPCCompDetId.h.
|
static |
Definition at line 68 of file RPCCompDetId.h.
|
staticprivate |
Definition at line 99 of file RPCCompDetId.h.
|
staticprivate |
Definition at line 97 of file RPCCompDetId.h.
|
staticprivate |
Definition at line 98 of file RPCCompDetId.h.
|
staticprivate |
Definition at line 107 of file RPCCompDetId.h.
|
staticprivate |
Definition at line 105 of file RPCCompDetId.h.
|
staticprivate |
Definition at line 106 of file RPCCompDetId.h.
|
staticprivate |
Definition at line 103 of file RPCCompDetId.h.
|
staticprivate |
Definition at line 101 of file RPCCompDetId.h.
|
staticprivate |
Definition at line 102 of file RPCCompDetId.h.
|
staticprivate |
Definition at line 115 of file RPCCompDetId.h.
Referenced by init(), and subsector().
|
staticprivate |
Definition at line 113 of file RPCCompDetId.h.
|
staticprivate |
Definition at line 114 of file RPCCompDetId.h.
Referenced by init(), and subsector().