CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Static Public Attributes | Private Member Functions | Private Attributes | Static Private Attributes
RPCCompDetId Class Reference

#include <DataFormats/MuonDetId/interface/RPCCompDetId.h>

Inheritance diagram for RPCCompDetId:
DetId

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_
 

Detailed Description

Description: DetId for composite RPC objects

Definition at line 21 of file RPCCompDetId.h.

Constructor & Destructor Documentation

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.

Member Function Documentation

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.

std::string RPCCompDetId::gasDBname ( ) const
private

Definition at line 274 of file RPCCompDetId.cc.

void RPCCompDetId::init ( int  region,
int  ring,
int  station,
int  sector,
int  layer,
int  subsector 
)
private

Definition at line 132 of file RPCCompDetId.cc.

void RPCCompDetId::init ( void  )
private

Definition at line 178 of file RPCCompDetId.cc.

void RPCCompDetId::initGas ( )
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.

Member Data Documentation

std::string RPCCompDetId::_dbname
private

Definition at line 129 of file RPCCompDetId.h.

int RPCCompDetId::_type
private

Definition at line 130 of file RPCCompDetId.h.

const int RPCCompDetId::allLayerId =minLayerId-1
static

Definition at line 84 of file RPCCompDetId.h.

const int RPCCompDetId::allRegionId =minRegionId-1
static

Definition at line 61 of file RPCCompDetId.h.

const int RPCCompDetId::allRingId =minRingBarrelId-1
static

Definition at line 68 of file RPCCompDetId.h.

const int RPCCompDetId::allSectorId =minSectorId-1
static

Definition at line 80 of file RPCCompDetId.h.

const int RPCCompDetId::allStationId =minStationId-1
static

Definition at line 72 of file RPCCompDetId.h.

const int RPCCompDetId::allSubSectorId =minSubSectorId-1
static

Definition at line 89 of file RPCCompDetId.h.

const unsigned int RPCCompDetId::LayerMask_ = 0X3
staticprivate

Definition at line 110 of file RPCCompDetId.h.

const int RPCCompDetId::LayerNumBits_ = 2
staticprivate

Definition at line 108 of file RPCCompDetId.h.

const int RPCCompDetId::LayerStartBit_ = SectorStartBit_+SectorNumBits_
staticprivate

Definition at line 109 of file RPCCompDetId.h.

const int RPCCompDetId::maxLayerId = 2
static

Definition at line 83 of file RPCCompDetId.h.

const int RPCCompDetId::maxRegionId = 1
static

Definition at line 60 of file RPCCompDetId.h.

const int RPCCompDetId::maxRingBarrelId = 2
static

Definition at line 66 of file RPCCompDetId.h.

const int RPCCompDetId::maxRingForwardId = 3
static

Definition at line 64 of file RPCCompDetId.h.

const int RPCCompDetId::maxSectorBarrelId = 12
static

Definition at line 77 of file RPCCompDetId.h.

const int RPCCompDetId::maxSectorForwardId = 36
static

Definition at line 79 of file RPCCompDetId.h.

const int RPCCompDetId::maxSectorId = 36
static

Definition at line 75 of file RPCCompDetId.h.

const int RPCCompDetId::maxStationId = 4
static

Definition at line 71 of file RPCCompDetId.h.

const int RPCCompDetId::maxSubSectorId = 2
static

Definition at line 88 of file RPCCompDetId.h.

const int RPCCompDetId::minLayerId = 1
static

Definition at line 82 of file RPCCompDetId.h.

const int RPCCompDetId::minRegionId = -1
static

Definition at line 59 of file RPCCompDetId.h.

const int RPCCompDetId::minRingBarrelId = -2
static

Definition at line 65 of file RPCCompDetId.h.

const int RPCCompDetId::minRingForwardId = 1
static

Definition at line 63 of file RPCCompDetId.h.

const int RPCCompDetId::minSectorBarrelId = 1
static

Definition at line 76 of file RPCCompDetId.h.

const int RPCCompDetId::minSectorForwardId = 1
static

Definition at line 78 of file RPCCompDetId.h.

const int RPCCompDetId::minSectorId = 1
static

Definition at line 74 of file RPCCompDetId.h.

const int RPCCompDetId::minStationId = 1
static

Definition at line 70 of file RPCCompDetId.h.

const int RPCCompDetId::minSubSectorId = 1
static

Definition at line 87 of file RPCCompDetId.h.

const int RPCCompDetId::RegionMask_ = 0X3
staticprivate

Definition at line 94 of file RPCCompDetId.h.

const int RPCCompDetId::RegionNumBits_ = 2
staticprivate

Definition at line 92 of file RPCCompDetId.h.

const int RPCCompDetId::RegionStartBit_ = 0
staticprivate

Definition at line 93 of file RPCCompDetId.h.

const int RPCCompDetId::RingBarrelOffSet = 3
static

Definition at line 67 of file RPCCompDetId.h.

const unsigned int RPCCompDetId::RingMask_ = 0X7
staticprivate

Definition at line 98 of file RPCCompDetId.h.

const int RPCCompDetId::RingNumBits_ = 3
staticprivate

Definition at line 96 of file RPCCompDetId.h.

const int RPCCompDetId::RingStartBit_ = RegionStartBit_+RegionNumBits_
staticprivate

Definition at line 97 of file RPCCompDetId.h.

const unsigned int RPCCompDetId::SectorMask_ = 0X3F
staticprivate

Definition at line 106 of file RPCCompDetId.h.

const int RPCCompDetId::SectorNumBits_ = 6
staticprivate

Definition at line 104 of file RPCCompDetId.h.

const int RPCCompDetId::SectorStartBit_ = StationStartBit_+StationNumBits_
staticprivate

Definition at line 105 of file RPCCompDetId.h.

const unsigned int RPCCompDetId::StationMask_ = 0X7
staticprivate

Definition at line 102 of file RPCCompDetId.h.

const int RPCCompDetId::StationNumBits_ = 3
staticprivate

Definition at line 100 of file RPCCompDetId.h.

const int RPCCompDetId::StationStartBit_ = RingStartBit_+RingNumBits_
staticprivate

Definition at line 101 of file RPCCompDetId.h.

const unsigned int RPCCompDetId::SubSectorMask_ = 0X3
staticprivate

Definition at line 114 of file RPCCompDetId.h.

const int RPCCompDetId::SubSectorNumBits_ = 2
staticprivate

Definition at line 112 of file RPCCompDetId.h.

const int RPCCompDetId::SubSectorStartBit_ = LayerStartBit_+LayerNumBits_
staticprivate

Definition at line 113 of file RPCCompDetId.h.