CMS 3D CMS Logo

List of all members | Public Member Functions | Static Private Attributes
PXFDetId Class Reference

#include <PXFDetId.h>

Inheritance diagram for PXFDetId:
DetId

Public Member Functions

unsigned int blade () const
 blade id More...
 
unsigned int disk () const
 disk id More...
 
unsigned int module () const
 det id More...
 
unsigned int panel () const
 panel id More...
 
 PXFDetId ()
 
 PXFDetId (const DetId &id)
 
 PXFDetId (uint32_t rawid)
 
 PXFDetId (uint32_t side, uint32_t disk, uint32_t blade, uint32_t panel, uint32_t module)
 
unsigned int side () const
 positive or negative id More...
 
- Public Member Functions inherited from DetId
constexpr Detector det () const
 get the detector field from this detid More...
 
constexpr DetId ()
 Create an empty or null id (also for persistence) More...
 
constexpr DetId (Detector det, int subdet)
 Create an id, filling the detector and subdetector fields as specified. More...
 
constexpr DetId (uint32_t id)
 Create an id from a raw number. More...
 
constexpr bool null () const
 is this a null id ? More...
 
constexpr operator uint32_t () const
 
constexpr bool operator!= (DetId id) const
 inequality More...
 
constexpr uint32_t operator() () const
 
constexpr bool operator< (DetId id) const
 comparison More...
 
constexpr bool operator== (DetId id) const
 equality More...
 
constexpr uint32_t rawId () const
 get the raw id More...
 
constexpr int subdetId () const
 get the contents of the subdetector field (not cast into any detector's numbering enum) More...
 

Static Private Attributes

static const unsigned int bladeMask_ = 0x3F
 
static const unsigned int bladeStartBit_ = 10
 
static const unsigned int diskMask_ = 0xF
 
static const unsigned int diskStartBit_ = 16
 
static const unsigned int moduleMask_ = 0x3F
 
static const unsigned int moduleStartBit_ = 2
 
static const unsigned int panelMask_ = 0x3
 
static const unsigned int panelStartBit_ = 8
 
static const unsigned int sideMask_ = 0x3
 two bits would be enough, but we could use the number "0" as a wildcard More...
 
static const unsigned int sideStartBit_ = 23
 two bits would be enough, but we could use the number "0" as a wildcard More...
 

Additional Inherited Members

- Public Types inherited from DetId
enum  Detector {
  Tracker = 1, Muon = 2, Ecal = 3, Hcal = 4,
  Calo = 5, Forward = 6, VeryForward = 7, HGCalEE = 8,
  HGCalHSi = 9, HGCalHSc = 10, HGCalTrigger = 11
}
 
- Static Public Attributes inherited from DetId
static const int kDetMask = 0xF
 
static const int kDetOffset = 28
 
static const int kSubdetMask = 0x7
 
static const int kSubdetOffset = 25
 
- Protected Attributes inherited from DetId
uint32_t id_
 

Detailed Description

Definition at line 15 of file PXFDetId.h.

Constructor & Destructor Documentation

◆ PXFDetId() [1/4]

PXFDetId::PXFDetId ( )

Constructor of a null id

Definition at line 3 of file PXFDetId.cc.

3 : DetId() {}

◆ PXFDetId() [2/4]

PXFDetId::PXFDetId ( uint32_t  rawid)

Constructor from a raw value

Definition at line 5 of file PXFDetId.cc.

5 : DetId(rawid) {}

◆ PXFDetId() [3/4]

PXFDetId::PXFDetId ( const DetId id)

Construct from generic DetId

Definition at line 6 of file PXFDetId.cc.

6 : DetId(id.rawId()) {}

◆ PXFDetId() [4/4]

PXFDetId::PXFDetId ( uint32_t  side,
uint32_t  disk,
uint32_t  blade,
uint32_t  panel,
uint32_t  module 
)
inline

Member Function Documentation

◆ blade()

unsigned int PXFDetId::blade ( ) const
inline

◆ disk()

unsigned int PXFDetId::disk ( ) const
inline

◆ module()

unsigned int PXFDetId::module ( ) const
inline

◆ panel()

unsigned int PXFDetId::panel ( ) const
inline

◆ side()

unsigned int PXFDetId::side ( ) const
inline

positive or negative id

Definition at line 32 of file PXFDetId.h.

32 { return int((id_ >> sideStartBit_) & sideMask_); }

References DetId::id_, createfilelist::int, sideMask_, and sideStartBit_.

Referenced by PixelEndcapName::PixelEndcapName(), PixelEndcapNameUpgrade::PixelEndcapNameUpgrade(), and PXFDetId().

Member Data Documentation

◆ bladeMask_

const unsigned int PXFDetId::bladeMask_ = 0x3F
staticprivate

Definition at line 57 of file PXFDetId.h.

Referenced by blade(), and PXFDetId().

◆ bladeStartBit_

const unsigned int PXFDetId::bladeStartBit_ = 10
staticprivate

Definition at line 50 of file PXFDetId.h.

Referenced by blade(), and PXFDetId().

◆ diskMask_

const unsigned int PXFDetId::diskMask_ = 0xF
staticprivate

Definition at line 56 of file PXFDetId.h.

Referenced by disk(), and PXFDetId().

◆ diskStartBit_

const unsigned int PXFDetId::diskStartBit_ = 16
staticprivate

Definition at line 49 of file PXFDetId.h.

Referenced by disk(), and PXFDetId().

◆ moduleMask_

const unsigned int PXFDetId::moduleMask_ = 0x3F
staticprivate

Definition at line 59 of file PXFDetId.h.

Referenced by module(), and PXFDetId().

◆ moduleStartBit_

const unsigned int PXFDetId::moduleStartBit_ = 2
staticprivate

Definition at line 52 of file PXFDetId.h.

Referenced by module(), and PXFDetId().

◆ panelMask_

const unsigned int PXFDetId::panelMask_ = 0x3
staticprivate

Definition at line 58 of file PXFDetId.h.

Referenced by panel(), and PXFDetId().

◆ panelStartBit_

const unsigned int PXFDetId::panelStartBit_ = 8
staticprivate

Definition at line 51 of file PXFDetId.h.

Referenced by panel(), and PXFDetId().

◆ sideMask_

const unsigned int PXFDetId::sideMask_ = 0x3
staticprivate

two bits would be enough, but we could use the number "0" as a wildcard

Definition at line 55 of file PXFDetId.h.

Referenced by PXFDetId(), and side().

◆ sideStartBit_

const unsigned int PXFDetId::sideStartBit_ = 23
staticprivate

two bits would be enough, but we could use the number "0" as a wildcard

Definition at line 48 of file PXFDetId.h.

Referenced by PXFDetId(), and side().

PixelSubdetector::PixelEndcap
Definition: PixelSubdetector.h:11
PXFDetId::bladeStartBit_
static const unsigned int bladeStartBit_
Definition: PXFDetId.h:50
PXFDetId::sideMask_
static const unsigned int sideMask_
two bits would be enough, but we could use the number "0" as a wildcard
Definition: PXFDetId.h:55
PXFDetId::diskStartBit_
static const unsigned int diskStartBit_
Definition: PXFDetId.h:49
PXFDetId::moduleStartBit_
static const unsigned int moduleStartBit_
Definition: PXFDetId.h:52
PXFDetId::blade
unsigned int blade() const
blade id
Definition: PXFDetId.h:38
PXFDetId::panelMask_
static const unsigned int panelMask_
Definition: PXFDetId.h:58
PXFDetId::panelStartBit_
static const unsigned int panelStartBit_
Definition: PXFDetId.h:51
DetId::Tracker
Definition: DetId.h:25
DetId::id_
uint32_t id_
Definition: DetId.h:69
PXFDetId::disk
unsigned int disk() const
disk id
Definition: PXFDetId.h:35
createfilelist.int
int
Definition: createfilelist.py:10
module
Definition: vlib.h:198
DetId::rawId
constexpr uint32_t rawId() const
get the raw id
Definition: DetId.h:57
PXFDetId::panel
unsigned int panel() const
panel id
Definition: PXFDetId.h:41
PXFDetId::bladeMask_
static const unsigned int bladeMask_
Definition: PXFDetId.h:57
PXFDetId::side
unsigned int side() const
positive or negative id
Definition: PXFDetId.h:32
DetId::DetId
constexpr DetId()
Create an empty or null id (also for persistence)
Definition: DetId.h:38
PXFDetId::moduleMask_
static const unsigned int moduleMask_
Definition: PXFDetId.h:59
PXFDetId::sideStartBit_
static const unsigned int sideStartBit_
two bits would be enough, but we could use the number "0" as a wildcard
Definition: PXFDetId.h:48
PXFDetId::diskMask_
static const unsigned int diskMask_
Definition: PXFDetId.h:56