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
RPCDetId Class Reference

#include <RPCDetId.h>

Inheritance diagram for RPCDetId:
DetId

Public Member Functions

void buildfromDB (int region, int ring, int layer, int sector, const std::string &subsector, const std::string &roll, const std::string &dbname)
 
void buildfromTrIndex (int trIndex)
 Built from the trigger det Index. More...
 
RPCDetId chamberId () const
 Return the corresponding ChamberId. More...
 
int layer () const
 
bool operator< (const RPCDetId &r) const
 Sort Operator based on the raw detector id. More...
 
int region () const
 Region id: 0 for Barrel, +/-1 For +/- Endcap. More...
 
int ring () const
 
int roll () const
 
 RPCDetId ()
 
 RPCDetId (uint32_t id)
 
 RPCDetId (DetId id)
 
 RPCDetId (int region, int ring, int station, int sector, int layer, int subsector, int roll)
 Construct from fully qualified identifier. More...
 
int sector () const
 Sector id: the group of chambers at same phi (and increasing r) More...
 
int station () const
 
int subsector () const
 SubSector id : some sectors are divided along the phi direction in subsectors (from 1 to 4 in Barrel, from 1 to 6 in Endcap) More...
 
int trIndex () 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 maxLayerId = 2
 
static const int maxRegionId = 1
 
static const int maxRingBarrelId = 2
 
static const int maxRingForwardId = 3
 
static const int maxRollId = 5
 
static const int maxSectorBarrelId = 12
 
static const int maxSectorForwardId = 6
 
static const int maxSectorId = 12
 
static const int maxStationId = 4
 
static const int maxSubSectorBarrelId = 4
 
static const int maxSubSectorForwardId = 6
 
static const int maxSubSectorId = 6
 
static const int minLayerId = 1
 
static const int minRegionId = -1
 
static const int minRingBarrelId = -2
 
static const int minRingForwardId = 1
 
static const int minRollId = 0
 
static const int minSectorBarrelId = 1
 
static const int minSectorForwardId = 1
 
static const int minSectorId = 0
 
static const int minStationId = 1
 
static const int minSubSectorBarrelId = 1
 
static const int minSubSectorForwardId = 1
 
static const int minSubSectorId = 0
 
static const int RingBarrelOffSet = 3
 
- Static Public Attributes inherited from DetId
static const int kDetOffset = 28
 
static const int kSubdetOffset = 25
 

Private Member Functions

void init (int region, int ring, int station, int sector, int layer, int subsector, int roll)
 

Private Attributes

int trind
 

Static Private Attributes

static const uint32_t chamberIdMask_ = ~(RollMask_<<RollStartBit_)
 
static const unsigned int LayerMask_ = 0X1
 
static const int LayerNumBits_ = 1
 
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 RollMask_ = 0X7
 
static const int RollNumBits_ = 3
 
static const int RollStartBit_ = SubSectorStartBit_+SubSectorNumBits_
 
static const unsigned int SectorMask_ = 0XF
 
static const int SectorNumBits_ = 4
 
static const int SectorStartBit_ = StationStartBit_+StationNumBits_
 
static const unsigned int StationMask_ = 0X3
 
static const int StationNumBits_ = 2
 
static const int StationStartBit_ = RingStartBit_+RingNumBits_
 
static const unsigned int SubSectorMask_ = 0X7
 
static const int SubSectorNumBits_ = 3
 
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

DetUnit identifier for RPCs

Author
Ilaria Segoni

Definition at line 16 of file RPCDetId.h.

Constructor & Destructor Documentation

RPCDetId::RPCDetId ( )

Definition at line 13 of file RPCDetId.cc.

RPCDetId::RPCDetId ( 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 16 of file RPCDetId.cc.

RPCDetId::RPCDetId ( DetId  id)

Definition at line 25 of file RPCDetId.cc.

RPCDetId::RPCDetId ( int  region,
int  ring,
int  station,
int  sector,
int  layer,
int  subsector,
int  roll 
)

Construct from fully qualified identifier.

Definition at line 37 of file RPCDetId.cc.

Member Function Documentation

void RPCDetId::buildfromDB ( int  region,
int  ring,
int  layer,
int  sector,
const std::string &  subsector,
const std::string &  roll,
const std::string &  dbname 
)

Definition at line 45 of file RPCDetId.cc.

Referenced by DBSpecToDetUnit::operator()().

void RPCDetId::buildfromTrIndex ( int  trIndex)

Built from the trigger det Index.

Definition at line 138 of file RPCDetId.cc.

RPCDetId RPCDetId::chamberId ( ) const
inline

Return the corresponding ChamberId.

Definition at line 130 of file RPCDetId.h.

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

Definition at line 226 of file RPCDetId.cc.

int RPCDetId::layer ( ) const
inline

Layer id: each station can have two layers of chambers: layer 1 is the inner chamber and layer 2 is the outer chamber (when present) Only in Barrel: RB1 and RB2.

Definition at line 108 of file RPCDetId.h.

Referenced by RPCGeometryBuilderFromCondDB::build().

bool RPCDetId::operator< ( const RPCDetId r) const
inline

Sort Operator based on the raw detector id.

Definition at line 39 of file RPCDetId.h.

int RPCDetId::region ( ) const
inline
int RPCDetId::ring ( ) const
inline

Ring id: Wheel number in Barrel (from -2 to +2) Ring Number in Endcap (from 1 to 3) Ring has a different meaning in Barrel and Endcap! In Barrel it is wheel, in Endcap it is the physical ring located on a disk (a disk contains three rings). In Endcap the ring is the group of chambers with same r (distance of beam axis) and increasing phi

Definition at line 72 of file RPCDetId.h.

Referenced by RPCGeometryBuilderFromCondDB::build(), RPCDeadChannelTest::clientOperation(), CSCObjectMap::CSCObjectMap(), DTObjectMap::DTObjectMap(), RPCMultiplicityTest::fillGlobalME(), and RPCBookFolderStructure::folderStructure().

int RPCDetId::roll ( ) const
inline

Roll id (also known as eta partition): each chamber is divided along the strip direction in two or three parts (rolls) for Barrel and two, three or four parts for endcap

Definition at line 120 of file RPCDetId.h.

Referenced by RPCDeadChannelTest::clientOperation(), and RPCMultiplicityTest::fillGlobalME().

int RPCDetId::sector ( ) const
inline
int RPCDetId::station ( ) const
inline

Station id : For Barrel: the four groups of chambers at same r (distance from beam axis) and increasing phi For Endcap: the three groups of chambers at same z (distance from interaction point), i.e. the disk

Definition at line 96 of file RPCDetId.h.

Referenced by RPCGeometryBuilderFromCondDB::build(), reco::helper::JetMuonHitsIDHelper::calculate(), RPCDeadChannelTest::clientOperation(), CSCObjectMap::CSCObjectMap(), DTObjectMap::DTObjectMap(), RPCMultiplicityTest::fillGlobalME(), RPCBookFolderStructure::folderStructure(), TAMuonChamberMatch::station(), and reco::MuonChamberMatch::station().

int RPCDetId::subsector ( ) const
inline

SubSector id : some sectors are divided along the phi direction in subsectors (from 1 to 4 in Barrel, from 1 to 6 in Endcap)

Definition at line 114 of file RPCDetId.h.

Referenced by RPCGeometryBuilderFromCondDB::build().

int RPCDetId::trIndex ( ) const
inline

Definition at line 125 of file RPCDetId.h.

Member Data Documentation

const uint32_t RPCDetId::chamberIdMask_ = ~(RollMask_<<RollStartBit_)
staticprivate

Definition at line 200 of file RPCDetId.h.

const unsigned int RPCDetId::LayerMask_ = 0X1
staticprivate

Definition at line 190 of file RPCDetId.h.

const int RPCDetId::LayerNumBits_ = 1
staticprivate

Definition at line 188 of file RPCDetId.h.

const int RPCDetId::LayerStartBit_ = SectorStartBit_+SectorNumBits_
staticprivate

Definition at line 189 of file RPCDetId.h.

const int RPCDetId::maxLayerId = 2
static

Definition at line 155 of file RPCDetId.h.

const int RPCDetId::maxRegionId = 1
static

Definition at line 136 of file RPCDetId.h.

const int RPCDetId::maxRingBarrelId = 2
static

Definition at line 141 of file RPCDetId.h.

const int RPCDetId::maxRingForwardId = 3
static

Definition at line 139 of file RPCDetId.h.

const int RPCDetId::maxRollId = 5
static

Definition at line 165 of file RPCDetId.h.

const int RPCDetId::maxSectorBarrelId = 12
static

Definition at line 150 of file RPCDetId.h.

const int RPCDetId::maxSectorForwardId = 6
static

Definition at line 152 of file RPCDetId.h.

const int RPCDetId::maxSectorId = 12
static

Definition at line 148 of file RPCDetId.h.

const int RPCDetId::maxStationId = 4
static

Definition at line 145 of file RPCDetId.h.

const int RPCDetId::maxSubSectorBarrelId = 4
static

Definition at line 160 of file RPCDetId.h.

const int RPCDetId::maxSubSectorForwardId = 6
static

Definition at line 162 of file RPCDetId.h.

const int RPCDetId::maxSubSectorId = 6
static

Definition at line 158 of file RPCDetId.h.

const int RPCDetId::minLayerId = 1
static

Definition at line 154 of file RPCDetId.h.

const int RPCDetId::minRegionId = -1
static

Definition at line 135 of file RPCDetId.h.

const int RPCDetId::minRingBarrelId = -2
static

Definition at line 140 of file RPCDetId.h.

const int RPCDetId::minRingForwardId = 1
static

Definition at line 138 of file RPCDetId.h.

const int RPCDetId::minRollId = 0
static

Definition at line 164 of file RPCDetId.h.

const int RPCDetId::minSectorBarrelId = 1
static

Definition at line 149 of file RPCDetId.h.

const int RPCDetId::minSectorForwardId = 1
static

Definition at line 151 of file RPCDetId.h.

const int RPCDetId::minSectorId = 0
static

Definition at line 147 of file RPCDetId.h.

const int RPCDetId::minStationId = 1
static

Definition at line 144 of file RPCDetId.h.

const int RPCDetId::minSubSectorBarrelId = 1
static

Definition at line 159 of file RPCDetId.h.

const int RPCDetId::minSubSectorForwardId = 1
static

Definition at line 161 of file RPCDetId.h.

const int RPCDetId::minSubSectorId = 0
static

Definition at line 157 of file RPCDetId.h.

const int RPCDetId::RegionMask_ = 0X3
staticprivate

Definition at line 173 of file RPCDetId.h.

const int RPCDetId::RegionNumBits_ = 2
staticprivate

Definition at line 171 of file RPCDetId.h.

const int RPCDetId::RegionStartBit_ = 0
staticprivate

Definition at line 172 of file RPCDetId.h.

const int RPCDetId::RingBarrelOffSet = 3
static

Definition at line 142 of file RPCDetId.h.

const unsigned int RPCDetId::RingMask_ = 0X7
staticprivate

Definition at line 177 of file RPCDetId.h.

const int RPCDetId::RingNumBits_ = 3
staticprivate

Definition at line 175 of file RPCDetId.h.

const int RPCDetId::RingStartBit_ = RegionStartBit_+RegionNumBits_
staticprivate

Definition at line 176 of file RPCDetId.h.

const unsigned int RPCDetId::RollMask_ = 0X7
staticprivate

Definition at line 198 of file RPCDetId.h.

const int RPCDetId::RollNumBits_ = 3
staticprivate

Definition at line 196 of file RPCDetId.h.

const int RPCDetId::RollStartBit_ = SubSectorStartBit_+SubSectorNumBits_
staticprivate

Definition at line 197 of file RPCDetId.h.

const unsigned int RPCDetId::SectorMask_ = 0XF
staticprivate

Definition at line 186 of file RPCDetId.h.

const int RPCDetId::SectorNumBits_ = 4
staticprivate

Definition at line 184 of file RPCDetId.h.

const int RPCDetId::SectorStartBit_ = StationStartBit_+StationNumBits_
staticprivate

Definition at line 185 of file RPCDetId.h.

const unsigned int RPCDetId::StationMask_ = 0X3
staticprivate

Definition at line 181 of file RPCDetId.h.

const int RPCDetId::StationNumBits_ = 2
staticprivate

Definition at line 179 of file RPCDetId.h.

const int RPCDetId::StationStartBit_ = RingStartBit_+RingNumBits_
staticprivate

Definition at line 180 of file RPCDetId.h.

const unsigned int RPCDetId::SubSectorMask_ = 0X7
staticprivate

Definition at line 194 of file RPCDetId.h.

const int RPCDetId::SubSectorNumBits_ = 3
staticprivate

Definition at line 192 of file RPCDetId.h.

const int RPCDetId::SubSectorStartBit_ = LayerStartBit_+LayerNumBits_
staticprivate

Definition at line 193 of file RPCDetId.h.

int RPCDetId::trind
private

Definition at line 211 of file RPCDetId.h.