#include <ME0DetId.h>
Public Member Functions | |
int | chamber () const |
Chamber id: it identifies a chamber in a ring it goes from 1 to 36. More... | |
ME0DetId | chamberId () const |
Return the corresponding ChamberId. More... | |
int | layer () const |
Layer id: each station have two layers of chambers: layer 1 is the inner chamber and layer 6 is the outer chamber. More... | |
ME0DetId () | |
ME0DetId (uint32_t id) | |
ME0DetId (DetId id) | |
ME0DetId (int region, int layer, int chamber, int roll) | |
Construct from fully qualified identifier. More... | |
bool | operator< (const ME0DetId &r) const |
Sort Operator based on the raw detector id. More... | |
int | region () const |
Region id: 0 for Barrel Not in use, +/-1 For +/- Endcap. More... | |
int | roll () 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 | maxChamberId = 36 |
static const int | maxLayerId = 31 |
static const int | maxRegionId = 1 |
static const int | maxRollId = 31 |
static const int | minChamberId = 0 |
static const int | minLayerId = 0 |
static const int | minRegionId = -1 |
static const int | minRollId = 0 |
Static Public Attributes inherited from DetId | |
static const int | kDetOffset = 28 |
static const int | kSubdetOffset = 25 |
Private Member Functions | |
void | init (int region, int layer, int chamber, int roll) |
Private Attributes | |
int | trind |
Static Private Attributes | |
static const uint32_t | chamberIdMask_ = ~(RollMask_<<RollStartBit_) |
static const unsigned int | ChamberMask_ = 0X3F |
static const int | ChamberNumBits_ = 6 |
static const int | ChamberStartBit_ = RegionStartBit_+RegionNumBits_ |
static const unsigned int | LayerMask_ = 0X1F |
static const int | LayerNumBits_ = 5 |
static const int | LayerStartBit_ = ChamberStartBit_+ChamberNumBits_ |
static const int | RegionMask_ = 0X3 |
static const int | RegionNumBits_ = 2 |
static const int | RegionStartBit_ = 0 |
static const unsigned int | RollMask_ = 0X1F |
static const int | RollNumBits_ = 5 |
static const int | RollStartBit_ = LayerStartBit_+LayerNumBits_ |
Additional Inherited Members | |
Public Types inherited from DetId | |
enum | Detector { Tracker =1, Muon =2, Ecal =3, Hcal =4, Calo =5, Forward =6 } |
Protected Attributes inherited from DetId | |
uint32_t | id_ |
DetUnit identifier for ME0s
Definition at line 16 of file ME0DetId.h.
ME0DetId::ME0DetId | ( | ) |
ME0DetId::ME0DetId | ( | uint32_t | id | ) |
Construct from a packed id. It is required that the Detector part of id is Muon and the SubDet part is ME0, otherwise an exception is thrown.
Definition at line 11 of file ME0DetId.cc.
References DetId::det(), edm::hlt::Exception, MuonSubdetId::ME0, DetId::Muon, and DetId::subdetId().
ME0DetId::ME0DetId | ( | DetId | id | ) |
Definition at line 20 of file ME0DetId.cc.
References DetId::det(), edm::hlt::Exception, MuonSubdetId::ME0, DetId::Muon, and DetId::subdetId().
ME0DetId::ME0DetId | ( | int | region, |
int | layer, | ||
int | chamber, | ||
int | roll | ||
) |
Construct from fully qualified identifier.
Definition at line 29 of file ME0DetId.cc.
References init().
|
inline |
Chamber id: it identifies a chamber in a ring it goes from 1 to 36.
Definition at line 56 of file ME0DetId.h.
References ChamberMask_, ChamberStartBit_, DetId::id_, and minChamberId.
Referenced by geometryXMLparser.CSCAlignable::index(), and fireworks::info().
|
inline |
Return the corresponding ChamberId.
Definition at line 68 of file ME0DetId.h.
References chamberIdMask_, DetId::id_, and ME0DetId().
|
private |
Definition at line 36 of file ME0DetId.cc.
References ChamberMask_, ChamberStartBit_, edm::hlt::Exception, DetId::id_, LayerMask_, LayerStartBit_, maxChamberId, maxLayerId, maxRegionId, maxRollId, minChamberId, minLayerId, minRegionId, minRollId, RegionMask_, RegionStartBit_, RollMask_, and RollStartBit_.
Referenced by ME0DetId().
|
inline |
Layer id: each station have two layers of chambers: layer 1 is the inner chamber and layer 6 is the outer chamber.
Definition at line 51 of file ME0DetId.h.
References DetId::id_, LayerMask_, LayerStartBit_, and minLayerId.
Referenced by geometryXMLparser.DTAlignable::index(), geometryXMLparser.CSCAlignable::index(), fireworks::info(), and operator<().
|
inline |
Sort Operator based on the raw detector id.
Definition at line 36 of file ME0DetId.h.
References layer(), and DetId::rawId().
|
inline |
Region id: 0 for Barrel Not in use, +/-1 For +/- Endcap.
Definition at line 46 of file ME0DetId.h.
References DetId::id_, minRegionId, RegionMask_, and RegionStartBit_.
Referenced by fireworks::info().
|
inline |
Roll id (also known as eta partition): each chamber is divided along the strip direction in several parts (rolls) ME0 up to 10
Definition at line 62 of file ME0DetId.h.
References DetId::id_, minRollId, RollMask_, and RollStartBit_.
|
staticprivate |
Definition at line 101 of file ME0DetId.h.
Referenced by chamberId().
|
staticprivate |
Definition at line 91 of file ME0DetId.h.
|
staticprivate |
Definition at line 89 of file ME0DetId.h.
|
staticprivate |
Definition at line 90 of file ME0DetId.h.
|
staticprivate |
Definition at line 95 of file ME0DetId.h.
|
staticprivate |
Definition at line 93 of file ME0DetId.h.
|
staticprivate |
Definition at line 94 of file ME0DetId.h.
|
static |
Definition at line 76 of file ME0DetId.h.
Referenced by init().
|
static |
Definition at line 79 of file ME0DetId.h.
Referenced by init().
|
static |
Definition at line 73 of file ME0DetId.h.
Referenced by init(), FWRPZViewGeometry::showME0(), and FW3DViewGeometry::showMuonEndcap().
|
static |
Definition at line 82 of file ME0DetId.h.
Referenced by init().
|
static |
Definition at line 75 of file ME0DetId.h.
|
static |
Definition at line 78 of file ME0DetId.h.
|
static |
Definition at line 72 of file ME0DetId.h.
Referenced by init(), region(), FWRPZViewGeometry::showME0(), and FW3DViewGeometry::showMuonEndcap().
|
static |
Definition at line 81 of file ME0DetId.h.
|
staticprivate |
Definition at line 87 of file ME0DetId.h.
|
staticprivate |
Definition at line 85 of file ME0DetId.h.
|
staticprivate |
Definition at line 86 of file ME0DetId.h.
|
staticprivate |
Definition at line 99 of file ME0DetId.h.
|
staticprivate |
Definition at line 97 of file ME0DetId.h.
|
staticprivate |
Definition at line 98 of file ME0DetId.h.
|
private |
Definition at line 109 of file ME0DetId.h.