#include <StackedTrackerDetId.h>
Public Member Functions | |
unsigned int | iDisk () const |
E: Z Redundancy. | |
unsigned int | iLayer () const |
B: Layer. | |
unsigned int | iPhi () const |
BE: Phi. | |
unsigned int | iRing () const |
E: Ring. | |
bool | isBarrel () const |
Barrel/Endcap. | |
bool | isEndcap () const |
unsigned int | iSide () const |
E: Side. | |
unsigned int | iZ () const |
BE: Z. | |
unsigned int | layer () const |
B: Layer redundancy for backward compatibility. | |
StackedTrackerDetId () | |
Constructors inherited from parent classes. | |
StackedTrackerDetId (uint32_t side, uint32_t disk, uint32_t ring, uint32_t module) | |
Constructor for Endcap. | |
StackedTrackerDetId (const DetId &id) | |
Construct from generic DetId. | |
StackedTrackerDetId (uint32_t layer, uint32_t rod, uint32_t module) | |
Constructor for Barrel. | |
StackedTrackerDetId (uint32_t rawid) | |
Constructor from a raw value. | |
unsigned int | subdet () const |
Methods to retrieve positioning index. | |
Static Private Attributes | |
static const unsigned int | iLayerMask_B_ = 0xF |
static const unsigned int | iLayerStartBit_B_ = 16 |
static const unsigned int | iPhiMask_B_ = 0xFF |
static const unsigned int | iPhiMask_E_ = 0x7F |
static const unsigned int | iPhiStartBit_B_ = 8 |
static const unsigned int | iPhiStartBit_E_ = 0 |
static const unsigned int | iRingMask_E_ = 0x1F |
static const unsigned int | iRingStartBit_E_ = 7 |
static const unsigned int | iSideMask_E_ = 0x3 |
static const unsigned int | iSideStartBit_E_ = 21 |
static const unsigned int | iSubDetMask_ = 0x7 |
static const unsigned int | iSubDetStartBit_ = 25 |
static const unsigned int | iSwitchMask_ = 0x3 |
static const unsigned int | iSwitchStartBit_ = 23 |
static const unsigned int | iZMask_B_ = 0xFF |
static const unsigned int | iZMask_E_ = 0xF |
static const unsigned int | iZStartBit_B_ = 0 |
static const unsigned int | iZStartBit_E_ = 12 |
static const unsigned int | StackedTracker = 7 |
//////////////////////////////////////// Stacked Tracker Simulations /// Written by: /// Andrew W. Rose /// 2008 /// / Changed by: /// Nicola Pozzobon /// UNIPD /// 2012, July /// / Added features: /// Expanded for Endcap /// ////////////////////////////////////// DetId class for of staked modules made of PXB+PXB and PXF+PXF NOTE this is complementary to PXB and PXF DetId's
Definition at line 29 of file StackedTrackerDetId.h.
StackedTrackerDetId::StackedTrackerDetId | ( | ) |
Constructors inherited from parent classes.
Constructors for compatibility with DetId parent class Constructor of a null id
//////////////////////////////////////// Stacked Tracker Simulations /// Written by: /// Andrew W. Rose /// 2008 /// / Changed by: /// Nicola Pozzobon /// UNIPD /// 2012, July /// / Added features: /// Expanded for Endcap /// //////////////////////////////////////
Definition at line 19 of file StackedTrackerDetId.cc.
: DetId() {}
StackedTrackerDetId::StackedTrackerDetId | ( | uint32_t | rawid | ) |
Constructor from a raw value.
Definition at line 20 of file StackedTrackerDetId.cc.
: DetId(rawid) {}
StackedTrackerDetId::StackedTrackerDetId | ( | const DetId & | id | ) |
Construct from generic DetId.
Definition at line 21 of file StackedTrackerDetId.cc.
StackedTrackerDetId::StackedTrackerDetId | ( | uint32_t | layer, |
uint32_t | rod, | ||
uint32_t | module | ||
) |
Constructor for Barrel.
Dedicated constructors Constructor for Barrel
Definition at line 24 of file StackedTrackerDetId.cc.
References DetId::id_, iLayerMask_B_, iLayerStartBit_B_, iPhiMask_B_, iPhiStartBit_B_, iSwitchMask_, iSwitchStartBit_, iZMask_B_, and iZStartBit_B_.
: DetId(DetId::Tracker, StackedTracker) { id_ |= (1 & iSwitchMask_) << iSwitchStartBit_ | (layer & iLayerMask_B_) << iLayerStartBit_B_ | (rod & iPhiMask_B_ ) << iPhiStartBit_B_ | (module & iZMask_B_ ) << iZStartBit_B_ ; }
StackedTrackerDetId::StackedTrackerDetId | ( | uint32_t | side, |
uint32_t | disk, | ||
uint32_t | ring, | ||
uint32_t | module | ||
) |
Constructor for Endcap.
Definition at line 34 of file StackedTrackerDetId.cc.
References DetId::id_, iPhiMask_E_, iPhiStartBit_E_, iRingMask_E_, iRingStartBit_E_, iSideMask_E_, iSideStartBit_E_, iSwitchMask_, iSwitchStartBit_, iZMask_E_, and iZStartBit_E_.
: DetId(DetId::Tracker, StackedTracker) { id_ |= (2 & iSwitchMask_) << iSwitchStartBit_ | (side & iSideMask_E_) << iSideStartBit_E_ | (disk & iZMask_E_ ) << iZStartBit_E_ | (ring & iRingMask_E_ ) << iRingStartBit_E_ | (module & iPhiMask_E_ ) << iPhiStartBit_E_ ; }
unsigned int StackedTrackerDetId::iDisk | ( | ) | const [inline] |
E: Z Redundancy.
Definition at line 102 of file StackedTrackerDetId.h.
References DetId::id_, isEndcap(), iZMask_E_, and iZStartBit_E_.
{ if (this->isEndcap()) return ((id_ >> iZStartBit_E_) & iZMask_E_); else return 999999; }
unsigned int StackedTrackerDetId::iLayer | ( | ) | const [inline] |
B: Layer.
Definition at line 67 of file StackedTrackerDetId.h.
References DetId::id_, iLayerMask_B_, iLayerStartBit_B_, and isBarrel().
Referenced by HitDump::analyze(), layer(), and L1TrackProducer::produce().
{ if (this->isBarrel()) return ((id_ >> iLayerStartBit_B_) & iLayerMask_B_); else return 999999; }
unsigned int StackedTrackerDetId::iPhi | ( | ) | const [inline] |
BE: Phi.
Definition at line 82 of file StackedTrackerDetId.h.
References DetId::id_, iPhiMask_B_, iPhiMask_E_, iPhiStartBit_B_, iPhiStartBit_E_, isBarrel(), and isEndcap().
Referenced by HitDump::analyze(), and L1TrackProducer::produce().
{ if (this->isBarrel()) return ((id_ >> iPhiStartBit_B_) & iPhiMask_B_); else if (this->isEndcap()) return ((id_ >> iPhiStartBit_E_) & iPhiMask_E_); else return 999999; }
unsigned int StackedTrackerDetId::iRing | ( | ) | const [inline] |
E: Ring.
Definition at line 110 of file StackedTrackerDetId.h.
References DetId::id_, iRingMask_E_, iRingStartBit_E_, and isEndcap().
Referenced by HitDump::analyze(), and L1TrackProducer::produce().
{ if (this->isEndcap()) return ((id_ >> iRingStartBit_E_) & iRingMask_E_); else return 999999; }
bool StackedTrackerDetId::isBarrel | ( | ) | const [inline] |
Barrel/Endcap.
Definition at line 57 of file StackedTrackerDetId.h.
References DetId::id_, iSwitchMask_, and iSwitchStartBit_.
Referenced by iLayer(), iPhi(), and iZ().
{ unsigned int layoutType = ((id_ >> iSwitchStartBit_) & iSwitchMask_); return (layoutType == 1); }
bool StackedTrackerDetId::isEndcap | ( | ) | const [inline] |
Definition at line 61 of file StackedTrackerDetId.h.
References DetId::id_, iSwitchMask_, and iSwitchStartBit_.
Referenced by iDisk(), iPhi(), iRing(), iSide(), and iZ().
{ unsigned int layoutType = ((id_ >> iSwitchStartBit_) & iSwitchMask_); return (layoutType == 2); }
unsigned int StackedTrackerDetId::iSide | ( | ) | const [inline] |
E: Side.
Definition at line 118 of file StackedTrackerDetId.h.
References DetId::id_, isEndcap(), iSideMask_E_, and iSideStartBit_E_.
{ if (this->isEndcap()) return ((id_ >> iSideStartBit_E_) & iSideMask_E_); else return 999999; }
unsigned int StackedTrackerDetId::iZ | ( | ) | const [inline] |
BE: Z.
Definition at line 92 of file StackedTrackerDetId.h.
References DetId::id_, isBarrel(), isEndcap(), iZMask_B_, iZMask_E_, iZStartBit_B_, and iZStartBit_E_.
Referenced by HitDump::analyze(), and L1TrackProducer::produce().
{ if (this->isBarrel()) return ((id_ >> iZStartBit_B_) & iZMask_B_); else if (this->isEndcap()) return ((id_ >> iZStartBit_E_) & iZMask_E_); else return 999999; }
unsigned int StackedTrackerDetId::layer | ( | ) | const [inline] |
B: Layer redundancy for backward compatibility.
Definition at line 75 of file StackedTrackerDetId.h.
References dtNoiseDBValidation_cfg::cerr, and iLayer().
unsigned int StackedTrackerDetId::subdet | ( | ) | const [inline] |
Methods to retrieve positioning index.
SubDet ID This should be equal to StackedTracker = 7
Definition at line 53 of file StackedTrackerDetId.h.
References DetId::id_, iSubDetMask_, and iSubDetStartBit_.
{ return ((id_ >> iSubDetStartBit_) & iSubDetMask_); }
const unsigned int StackedTrackerDetId::iLayerMask_B_ = 0xF [static, private] |
Definition at line 145 of file StackedTrackerDetId.h.
Referenced by iLayer(), and StackedTrackerDetId().
const unsigned int StackedTrackerDetId::iLayerStartBit_B_ = 16 [static, private] |
Definition at line 141 of file StackedTrackerDetId.h.
Referenced by iLayer(), and StackedTrackerDetId().
const unsigned int StackedTrackerDetId::iPhiMask_B_ = 0xFF [static, private] |
Definition at line 144 of file StackedTrackerDetId.h.
Referenced by iPhi(), and StackedTrackerDetId().
const unsigned int StackedTrackerDetId::iPhiMask_E_ = 0x7F [static, private] |
Definition at line 157 of file StackedTrackerDetId.h.
Referenced by iPhi(), and StackedTrackerDetId().
const unsigned int StackedTrackerDetId::iPhiStartBit_B_ = 8 [static, private] |
Definition at line 140 of file StackedTrackerDetId.h.
Referenced by iPhi(), and StackedTrackerDetId().
const unsigned int StackedTrackerDetId::iPhiStartBit_E_ = 0 [static, private] |
Definition at line 152 of file StackedTrackerDetId.h.
Referenced by iPhi(), and StackedTrackerDetId().
const unsigned int StackedTrackerDetId::iRingMask_E_ = 0x1F [static, private] |
Definition at line 158 of file StackedTrackerDetId.h.
Referenced by iRing(), and StackedTrackerDetId().
const unsigned int StackedTrackerDetId::iRingStartBit_E_ = 7 [static, private] |
Definition at line 153 of file StackedTrackerDetId.h.
Referenced by iRing(), and StackedTrackerDetId().
const unsigned int StackedTrackerDetId::iSideMask_E_ = 0x3 [static, private] |
Definition at line 160 of file StackedTrackerDetId.h.
Referenced by iSide(), and StackedTrackerDetId().
const unsigned int StackedTrackerDetId::iSideStartBit_E_ = 21 [static, private] |
Definition at line 155 of file StackedTrackerDetId.h.
Referenced by iSide(), and StackedTrackerDetId().
const unsigned int StackedTrackerDetId::iSubDetMask_ = 0x7 [static, private] |
Definition at line 129 of file StackedTrackerDetId.h.
Referenced by subdet().
const unsigned int StackedTrackerDetId::iSubDetStartBit_ = 25 [static, private] |
Definition at line 128 of file StackedTrackerDetId.h.
Referenced by subdet().
const unsigned int StackedTrackerDetId::iSwitchMask_ = 0x3 [static, private] |
Definition at line 132 of file StackedTrackerDetId.h.
Referenced by isBarrel(), isEndcap(), and StackedTrackerDetId().
const unsigned int StackedTrackerDetId::iSwitchStartBit_ = 23 [static, private] |
Definition at line 131 of file StackedTrackerDetId.h.
Referenced by isBarrel(), isEndcap(), and StackedTrackerDetId().
const unsigned int StackedTrackerDetId::iZMask_B_ = 0xFF [static, private] |
Definition at line 143 of file StackedTrackerDetId.h.
Referenced by iZ(), and StackedTrackerDetId().
const unsigned int StackedTrackerDetId::iZMask_E_ = 0xF [static, private] |
Definition at line 159 of file StackedTrackerDetId.h.
Referenced by iDisk(), iZ(), and StackedTrackerDetId().
const unsigned int StackedTrackerDetId::iZStartBit_B_ = 0 [static, private] |
Definition at line 139 of file StackedTrackerDetId.h.
Referenced by iZ(), and StackedTrackerDetId().
const unsigned int StackedTrackerDetId::iZStartBit_E_ = 12 [static, private] |
Definition at line 154 of file StackedTrackerDetId.h.
Referenced by iDisk(), iZ(), and StackedTrackerDetId().
const unsigned int StackedTrackerDetId::StackedTracker = 7 [static, private] |
Definition at line 31 of file StackedTrackerDetId.h.