#include <TrackerTopology.h>
Classes | |
struct | PixelBarrelValues |
struct | PixelEndcapValues |
struct | TECValues |
struct | TIBValues |
struct | TIDValues |
struct | TOBValues |
Public Member Functions | |
unsigned int | layer (const DetId &id) const |
unsigned int | module (const DetId &id) const |
std::string | print (DetId detid) const |
DetId | pxbDetId (uint32_t layer, uint32_t ladder, uint32_t module) const |
unsigned int | pxbLadder (const DetId &id) const |
unsigned int | pxbLayer (const DetId &id) const |
unsigned int | pxbModule (const DetId &id) const |
unsigned int | pxfBlade (const DetId &id) const |
DetId | pxfDetId (uint32_t side, uint32_t disk, uint32_t blade, uint32_t panel, uint32_t module) const |
unsigned int | pxfDisk (const DetId &id) const |
unsigned int | pxfModule (const DetId &id) const |
unsigned int | pxfPanel (const DetId &id) const |
unsigned int | pxfSide (const DetId &id) const |
DetId | tecDetId (uint32_t side, uint32_t wheel, uint32_t petal_fw_bw, uint32_t petal, uint32_t ring, uint32_t module, uint32_t ster) const |
uint32_t | tecGlued (const DetId &id) const |
bool | tecIsBackPetal (const DetId &id) const |
bool | tecIsDoubleSide (const DetId &id) const |
bool | tecIsFrontPetal (const DetId &id) const |
bool | tecIsRPhi (const DetId &id) const |
bool | tecIsStereo (const DetId &id) const |
bool | tecIsZMinusSide (const DetId &id) const |
bool | tecIsZPlusSide (const DetId &id) const |
unsigned int | tecModule (const DetId &id) const |
unsigned int | tecOrder (const DetId &id) const |
std::vector< unsigned int > | tecPetalInfo (const DetId &id) const |
unsigned int | tecPetalNumber (const DetId &id) const |
unsigned int | tecRing (const DetId &id) const |
ring id | |
unsigned int | tecSide (const DetId &id) const |
uint32_t | tecStereo (const DetId &id) const |
unsigned int | tecWheel (const DetId &id) const |
DetId | tibDetId (uint32_t layer, uint32_t str_fw_bw, uint32_t str_int_ext, uint32_t str, uint32_t module, uint32_t ster) const |
uint32_t | tibGlued (const DetId &id) const |
bool | tibIsDoubleSide (const DetId &id) const |
bool | tibIsExternalString (const DetId &id) const |
bool | tibIsInternalString (const DetId &id) const |
bool | tibIsRPhi (const DetId &id) const |
bool | tibIsStereo (const DetId &id) const |
bool | tibIsZMinusSide (const DetId &id) const |
bool | tibIsZPlusSide (const DetId &id) const |
unsigned int | tibLayer (const DetId &id) const |
unsigned int | tibModule (const DetId &id) const |
unsigned int | tibOrder (const DetId &id) const |
unsigned int | tibSide (const DetId &id) const |
uint32_t | tibStereo (const DetId &id) const |
unsigned int | tibString (const DetId &id) const |
std::vector< unsigned int > | tibStringInfo (const DetId &id) const |
DetId | tidDetId (uint32_t side, uint32_t wheel, uint32_t ring, uint32_t module_fw_bw, uint32_t module, uint32_t ster) const |
uint32_t | tidGlued (const DetId &id) const |
bool | tidIsBackRing (const DetId &id) const |
bool | tidIsDoubleSide (const DetId &id) const |
bool | tidIsFrontRing (const DetId &id) const |
bool | tidIsRPhi (const DetId &id) const |
bool | tidIsStereo (const DetId &id) const |
bool | tidIsZMinusSide (const DetId &id) const |
bool | tidIsZPlusSide (const DetId &id) const |
unsigned int | tidModule (const DetId &id) const |
std::vector< unsigned int > | tidModuleInfo (const DetId &id) const |
unsigned int | tidOrder (const DetId &id) const |
unsigned int | tidRing (const DetId &id) const |
unsigned int | tidSide (const DetId &id) const |
uint32_t | tidStereo (const DetId &id) const |
unsigned int | tidWheel (const DetId &id) const |
DetId | tobDetId (uint32_t layer, uint32_t rod_fw_bw, uint32_t rod, uint32_t module, uint32_t ster) const |
uint32_t | tobGlued (const DetId &id) const |
bool | tobIsDoubleSide (const DetId &id) const |
bool | tobIsRPhi (const DetId &id) const |
bool | tobIsStereo (const DetId &id) const |
bool | tobIsZMinusSide (const DetId &id) const |
bool | tobIsZPlusSide (const DetId &id) const |
unsigned int | tobLayer (const DetId &id) const |
unsigned int | tobModule (const DetId &id) const |
unsigned int | tobRod (const DetId &id) const |
std::vector< unsigned int > | tobRodInfo (const DetId &id) const |
unsigned int | tobSide (const DetId &id) const |
uint32_t | tobStereo (const DetId &id) const |
TrackerTopology (const PixelBarrelValues pxb, const PixelEndcapValues pxf, const TECValues tecv, const TIBValues tibv, const TIDValues tidv, const TOBValues tobv) | |
Private Attributes | |
PixelBarrelValues | pbVals_ |
PixelEndcapValues | pfVals_ |
TECValues | tecVals_ |
TIBValues | tibVals_ |
TIDValues | tidVals_ |
TOBValues | tobVals_ |
Definition at line 18 of file TrackerTopology.h.
TrackerTopology::TrackerTopology | ( | const PixelBarrelValues | pxb, |
const PixelEndcapValues | pxf, | ||
const TECValues | tecv, | ||
const TIBValues | tibv, | ||
const TIDValues | tidv, | ||
const TOBValues | tobv | ||
) |
unsigned int TrackerTopology::layer | ( | const DetId & | id | ) | const |
Definition at line 20 of file TrackerTopology.cc.
References Exception, PixelSubdetector::PixelBarrel, PixelSubdetector::PixelEndcap, pxbLayer(), pxfDisk(), StripSubdetector::TEC, tecWheel(), StripSubdetector::TIB, tibLayer(), StripSubdetector::TID, tidWheel(), StripSubdetector::TOB, and tobLayer().
{ uint32_t subdet=id.subdetId(); if ( subdet == PixelSubdetector::PixelBarrel ) return pxbLayer(id); if ( subdet == PixelSubdetector::PixelEndcap ) return pxfDisk(id); if ( subdet == StripSubdetector::TIB ) return tibLayer(id); if ( subdet == StripSubdetector::TID ) return tidWheel(id); if ( subdet == StripSubdetector::TOB ) return tobLayer(id); if ( subdet == StripSubdetector::TEC ) return tecWheel(id); throw cms::Exception("Invalid DetId") << "Unsupported DetId in TrackerTopology::layer"; return 0; }
unsigned int TrackerTopology::module | ( | const DetId & | id | ) | const |
Definition at line 39 of file TrackerTopology.cc.
References Exception, PixelSubdetector::PixelBarrel, PixelSubdetector::PixelEndcap, pxbModule(), pxfModule(), StripSubdetector::TEC, tecModule(), StripSubdetector::TIB, tibModule(), StripSubdetector::TID, tidModule(), StripSubdetector::TOB, and tobModule().
{ uint32_t subdet=id.subdetId(); if ( subdet == PixelSubdetector::PixelBarrel ) return pxbModule(id); if ( subdet == PixelSubdetector::PixelEndcap ) return pxfModule(id); if ( subdet == StripSubdetector::TIB ) return tibModule(id); if ( subdet == StripSubdetector::TID ) return tidModule(id); if ( subdet == StripSubdetector::TOB ) return tobModule(id); if ( subdet == StripSubdetector::TEC ) return tecModule(id); throw cms::Exception("Invalid DetId") << "Unsupported DetId in TrackerTopology::module"; return 0; }
std::string TrackerTopology::print | ( | DetId | detid | ) | const |
Definition at line 58 of file TrackerTopology.cc.
References Exception, PixelSubdetector::PixelBarrel, PixelSubdetector::PixelEndcap, pxbLadder(), pxbLayer(), pxbModule(), pxfBlade(), pxfDisk(), pxfModule(), pxfPanel(), AlCaHLTBitMon_QueryRunRegistry::string, StripSubdetector::TEC, tecGlued(), tecIsDoubleSide(), tecModule(), tecPetalInfo(), tecRing(), tecSide(), tecStereo(), tecWheel(), StripSubdetector::TIB, tibGlued(), tibIsDoubleSide(), tibLayer(), tibModule(), tibStereo(), tibStringInfo(), StripSubdetector::TID, tidGlued(), tidIsDoubleSide(), tidModuleInfo(), tidRing(), tidSide(), tidStereo(), tidWheel(), StripSubdetector::TOB, tobGlued(), tobIsDoubleSide(), tobLayer(), tobModule(), tobRodInfo(), and tobStereo().
{ uint32_t subdet=id.subdetId(); std::stringstream strstr; if ( subdet == PixelSubdetector::PixelBarrel ) { strstr << "(PixelBarrel " << pxbLayer(id) << ',' << pxbLadder(id) << ',' << pxbModule(id) << ')'; return strstr.str(); } if ( subdet == PixelSubdetector::PixelEndcap ) { strstr << "(PixelEndcap " << pxfDisk(id) << ',' << pxfBlade(id) << ',' << pxfPanel(id) << ',' << pxfModule(id) << ')'; return strstr.str(); } if ( subdet == StripSubdetector::TIB ) { unsigned int theLayer = tibLayer(id); std::vector<unsigned int> theString = tibStringInfo(id); unsigned int theModule = tibModule(id); std::string side; std::string part; side = (theString[0] == 1 ) ? "-" : "+"; part = (theString[1] == 1 ) ? "int" : "ext"; std::string type; type = (tibStereo(id) == 0) ? "r-phi" : "stereo"; type = (tibGlued(id) == 0) ? type : type+" glued"; type = (tibIsDoubleSide(id)) ? "double side" : type; strstr << "TIB" << side << " Layer " << theLayer << " " << part << " String " << theString[2] << " Module " << theModule << " " << type << " (" << id.rawId() << ")"; return strstr.str(); } if ( subdet == StripSubdetector::TID ) { unsigned int theDisk = tidWheel(id); unsigned int theRing = tidRing(id); std::vector<unsigned int> theModule = tidModuleInfo(id); std::string side; std::string part; side = (tidSide(id) == 1 ) ? "-" : "+"; part = (theModule[0] == 1 ) ? "back" : "front"; std::string type; type = (tidStereo(id) == 0) ? "r-phi" : "stereo"; type = (tidGlued(id) == 0) ? type : type+" glued"; type = (tidIsDoubleSide(id)) ? "double side" : type; strstr << "TID" << side << " Disk " << theDisk << " Ring " << theRing << " " << part << " Module " << theModule[1] << " " << type << " (" << id.rawId() << ")"; return strstr.str(); } if ( subdet == StripSubdetector::TOB ) { unsigned int theLayer = tobLayer(id); std::vector<unsigned int> theRod = tobRodInfo(id); unsigned int theModule = tobModule(id); std::string side; std::string part; side = (theRod[0] == 1 ) ? "-" : "+"; std::string type; type = (tobStereo(id) == 0) ? "r-phi" : "stereo"; type = (tobGlued(id) == 0) ? type : type+" glued"; type = (tobIsDoubleSide(id)) ? "double side" : type; strstr << "TOB" << side << " Layer " << theLayer << " Rod " << theRod[1] << " Module " << theModule << " " << type << " (" << id.rawId() << ")"; return strstr.str(); } if ( subdet == StripSubdetector::TEC ) { unsigned int theWheel = tecWheel(id); unsigned int theModule = tecModule(id); std::vector<unsigned int> thePetal = tecPetalInfo(id); unsigned int theRing = tecRing(id); std::string side; std::string petal; side = (tecSide(id) == 1 ) ? "-" : "+"; petal = (thePetal[0] == 1 ) ? "back" : "front"; std::string type; type = (tecStereo(id) == 0) ? "r-phi" : "stereo"; type = (tecGlued(id) == 0) ? type : type+" glued"; type = (tecIsDoubleSide(id)) ? "double side" : type; strstr << "TEC" << side << " Wheel " << theWheel << " Petal " << thePetal[1] << " " << petal << " Ring " << theRing << " Module " << theModule << " " << type << " (" << id.rawId() << ")"; return strstr.str(); } throw cms::Exception("Invalid DetId") << "Unsupported DetId in TrackerTopology::module"; return strstr.str(); }
DetId TrackerTopology::pxbDetId | ( | uint32_t | layer, |
uint32_t | ladder, | ||
uint32_t | module | ||
) | const [inline] |
Definition at line 370 of file TrackerTopology.h.
References TrackerTopology::PixelBarrelValues::ladderMask_, TrackerTopology::PixelBarrelValues::ladderStartBit_, TrackerTopology::PixelBarrelValues::layerMask_, TrackerTopology::PixelBarrelValues::layerStartBit_, TrackerTopology::PixelBarrelValues::moduleMask_, TrackerTopology::PixelBarrelValues::moduleStartBit_, pbVals_, PixelSubdetector::PixelBarrel, and DetId::Tracker.
{ //uply DetId id(DetId::Tracker,PixelSubdetector::PixelBarrel); uint32_t rawid=id.rawId(); rawid |= (layer& pbVals_.layerMask_) << pbVals_.layerStartBit_ | (ladder& pbVals_.ladderMask_) << pbVals_.ladderStartBit_ | (module& pbVals_.moduleMask_) << pbVals_.moduleStartBit_; return DetId(rawid); }
unsigned int TrackerTopology::pxbLadder | ( | const DetId & | id | ) | const [inline] |
Definition at line 127 of file TrackerTopology.h.
References TrackerTopology::PixelBarrelValues::ladderMask_, TrackerTopology::PixelBarrelValues::ladderStartBit_, and pbVals_.
Referenced by print().
{ return ((id.rawId()>>pbVals_.ladderStartBit_) & pbVals_.ladderMask_) ; }
unsigned int TrackerTopology::pxbLayer | ( | const DetId & | id | ) | const [inline] |
Definition at line 115 of file TrackerTopology.h.
References TrackerTopology::PixelBarrelValues::layerMask_, TrackerTopology::PixelBarrelValues::layerStartBit_, and pbVals_.
Referenced by SiPixelMuonHLT::analyze(), SiPixelTrackResidualSource::analyze(), SiPixelDigitizerAlgorithm::digitize(), layer(), SiPixelDigitizerAlgorithm::make_digis(), SiPixelDigitizerAlgorithm::pixel_inefficiency(), and print().
{ return int((id.rawId()>>pbVals_.layerStartBit_) & pbVals_.layerMask_); }
unsigned int TrackerTopology::pxbModule | ( | const DetId & | id | ) | const [inline] |
Definition at line 132 of file TrackerTopology.h.
References TrackerTopology::PixelBarrelValues::moduleMask_, TrackerTopology::PixelBarrelValues::moduleStartBit_, and pbVals_.
Referenced by module(), and print().
{ return ((id.rawId()>>pbVals_.moduleStartBit_)& pbVals_.moduleMask_); }
unsigned int TrackerTopology::pxfBlade | ( | const DetId & | id | ) | const [inline] |
Definition at line 362 of file TrackerTopology.h.
References TrackerTopology::PixelEndcapValues::bladeMask_, TrackerTopology::PixelEndcapValues::bladeStartBit_, and pfVals_.
Referenced by print().
{ return int((id.rawId()>>pfVals_.bladeStartBit_) & pfVals_.bladeMask_); }
DetId TrackerTopology::pxfDetId | ( | uint32_t | side, |
uint32_t | disk, | ||
uint32_t | blade, | ||
uint32_t | panel, | ||
uint32_t | module | ||
) | const [inline] |
Definition at line 382 of file TrackerTopology.h.
References TrackerTopology::PixelEndcapValues::bladeMask_, TrackerTopology::PixelEndcapValues::bladeStartBit_, TrackerTopology::PixelEndcapValues::diskMask_, TrackerTopology::PixelEndcapValues::diskStartBit_, TrackerTopology::PixelEndcapValues::moduleMask_, TrackerTopology::PixelEndcapValues::moduleStartBit_, TrackerTopology::PixelEndcapValues::panelMask_, TrackerTopology::PixelEndcapValues::panelStartBit_, pfVals_, PixelSubdetector::PixelEndcap, TrackerTopology::PixelEndcapValues::sideMask_, TrackerTopology::PixelEndcapValues::sideStartBit_, and DetId::Tracker.
{ DetId id(DetId::Tracker,PixelSubdetector::PixelEndcap); uint32_t rawid=id.rawId(); rawid |= (side& pfVals_.sideMask_) << pfVals_.sideStartBit_ | (disk& pfVals_.diskMask_) << pfVals_.diskStartBit_ | (blade& pfVals_.bladeMask_) << pfVals_.bladeStartBit_ | (panel& pfVals_.panelMask_) << pfVals_.panelStartBit_ | (module& pfVals_.moduleMask_) << pfVals_.moduleStartBit_ ; return DetId(rawid); }
unsigned int TrackerTopology::pxfDisk | ( | const DetId & | id | ) | const [inline] |
Definition at line 359 of file TrackerTopology.h.
References TrackerTopology::PixelEndcapValues::diskMask_, TrackerTopology::PixelEndcapValues::diskStartBit_, and pfVals_.
Referenced by SiPixelMuonHLT::analyze(), layer(), and print().
{ return int((id.rawId()>>pfVals_.diskStartBit_) & pfVals_.diskMask_); }
unsigned int TrackerTopology::pxfModule | ( | const DetId & | id | ) | const [inline] |
Definition at line 135 of file TrackerTopology.h.
References TrackerTopology::PixelEndcapValues::moduleMask_, TrackerTopology::PixelEndcapValues::moduleStartBit_, and pfVals_.
Referenced by module(), and print().
{ return int((id.rawId()>>pfVals_.moduleStartBit_) & pfVals_.moduleMask_); }
unsigned int TrackerTopology::pxfPanel | ( | const DetId & | id | ) | const [inline] |
Definition at line 365 of file TrackerTopology.h.
References TrackerTopology::PixelEndcapValues::panelMask_, TrackerTopology::PixelEndcapValues::panelStartBit_, and pfVals_.
Referenced by print().
{ return int((id.rawId()>>pfVals_.panelStartBit_) & pfVals_.panelMask_); }
unsigned int TrackerTopology::pxfSide | ( | const DetId & | id | ) | const [inline] |
Definition at line 169 of file TrackerTopology.h.
References pfVals_, TrackerTopology::PixelEndcapValues::sideMask_, and TrackerTopology::PixelEndcapValues::sideStartBit_.
Referenced by SiPixelMuonHLT::analyze().
{ return ((id.rawId()>>pfVals_.sideStartBit_)&pfVals_.sideMask_); }
DetId TrackerTopology::tecDetId | ( | uint32_t | side, |
uint32_t | wheel, | ||
uint32_t | petal_fw_bw, | ||
uint32_t | petal, | ||
uint32_t | ring, | ||
uint32_t | module, | ||
uint32_t | ster | ||
) | const [inline] |
Definition at line 397 of file TrackerTopology.h.
References TrackerTopology::TECValues::moduleMask_, TrackerTopology::TECValues::moduleStartBit_, TrackerTopology::TECValues::petal_fw_bwMask_, TrackerTopology::TECValues::petal_fw_bwStartBit_, TrackerTopology::TECValues::petalMask_, TrackerTopology::TECValues::petalStartBit_, TrackerTopology::TECValues::ringMask_, TrackerTopology::TECValues::ringStartBit_, TrackerTopology::TECValues::sideMask_, TrackerTopology::TECValues::sideStartBit_, TrackerTopology::TECValues::sterMask_, TrackerTopology::TECValues::sterStartBit_, StripSubdetector::TEC, tecVals_, DetId::Tracker, TrackerTopology::TECValues::wheelMask_, and TrackerTopology::TECValues::wheelStartBit_.
{ DetId id=SiStripDetId(DetId::Tracker,StripSubdetector::TEC); uint32_t rawid=id.rawId(); rawid |= (side& tecVals_.sideMask_) << tecVals_.sideStartBit_ | (wheel& tecVals_.wheelMask_) << tecVals_.wheelStartBit_ | (petal_fw_bw& tecVals_.petal_fw_bwMask_) << tecVals_.petal_fw_bwStartBit_ | (petal& tecVals_.petalMask_) << tecVals_.petalStartBit_ | (ring& tecVals_.ringMask_) << tecVals_.ringStartBit_ | (module& tecVals_.moduleMask_) << tecVals_.moduleStartBit_ | (ster& tecVals_.sterMask_) << tecVals_.sterStartBit_ ; return DetId(rawid); }
uint32_t TrackerTopology::tecGlued | ( | const DetId & | id | ) | const [inline] |
Definition at line 278 of file TrackerTopology.h.
References TrackerTopology::TECValues::sterMask_, TrackerTopology::TECValues::sterStartBit_, and tecVals_.
Referenced by print().
{ if ( ((id.rawId()>>tecVals_.sterStartBit_) & tecVals_.sterMask_ ) == 1 ) { return ( id.rawId() - 1 ); } else if ( ((id.rawId()>>tecVals_.sterStartBit_) & tecVals_.sterMask_ ) == 2 ) { return ( id.rawId() - 2 ); } else { return 0; } }
bool TrackerTopology::tecIsBackPetal | ( | const DetId & | id | ) | const [inline] |
Definition at line 316 of file TrackerTopology.h.
References tecOrder().
Referenced by tecIsFrontPetal().
{ return (tecOrder(id)==1); }
bool TrackerTopology::tecIsDoubleSide | ( | const DetId & | id | ) | const [inline] |
Definition at line 223 of file TrackerTopology.h.
References SiStripDetId::glued(), and tecRing().
Referenced by print(), tecIsRPhi(), and tecIsStereo().
{ return SiStripDetId(id).glued()==0 && (tecRing(id)==1 || tecRing(id)==2 || tecRing(id)==5);}
bool TrackerTopology::tecIsFrontPetal | ( | const DetId & | id | ) | const [inline] |
Definition at line 320 of file TrackerTopology.h.
References tecIsBackPetal().
{return !tecIsBackPetal(id);}
bool TrackerTopology::tecIsRPhi | ( | const DetId & | id | ) | const [inline] |
Definition at line 303 of file TrackerTopology.h.
References SiStripDetId::stereo(), and tecIsDoubleSide().
{ return SiStripDetId(id).stereo()==0 && !tecIsDoubleSide(id);}
bool TrackerTopology::tecIsStereo | ( | const DetId & | id | ) | const [inline] |
Definition at line 241 of file TrackerTopology.h.
References tecIsDoubleSide(), and tecStereo().
{return tecStereo(id)!=0 && !tecIsDoubleSide(id);}
bool TrackerTopology::tecIsZMinusSide | ( | const DetId & | id | ) | const [inline] |
Definition at line 237 of file TrackerTopology.h.
References tecSide().
Referenced by tecIsZPlusSide().
{ return tecSide(id)==1;}
bool TrackerTopology::tecIsZPlusSide | ( | const DetId & | id | ) | const [inline] |
Definition at line 236 of file TrackerTopology.h.
References tecIsZMinusSide().
{return !tecIsZMinusSide(id);}
unsigned int TrackerTopology::tecModule | ( | const DetId & | id | ) | const [inline] |
Definition at line 141 of file TrackerTopology.h.
References TrackerTopology::TECValues::moduleMask_, TrackerTopology::TECValues::moduleStartBit_, and tecVals_.
Referenced by module(), and print().
{ return ((id.rawId()>>tecVals_.moduleStartBit_) & tecVals_.moduleMask_); }
unsigned int TrackerTopology::tecOrder | ( | const DetId & | id | ) | const [inline] |
Definition at line 187 of file TrackerTopology.h.
References TrackerTopology::TECValues::petal_fw_bwMask_, TrackerTopology::TECValues::petal_fw_bwStartBit_, and tecVals_.
Referenced by tecIsBackPetal(), and tecPetalInfo().
{ return ((id.rawId()>>tecVals_.petal_fw_bwStartBit_) & tecVals_.petal_fw_bwMask_); }
std::vector<unsigned int> TrackerTopology::tecPetalInfo | ( | const DetId & | id | ) | const [inline] |
Definition at line 309 of file TrackerTopology.h.
References tecOrder(), and tecPetalNumber().
Referenced by print().
{ std::vector<unsigned int> num; num.push_back(tecOrder(id)); num.push_back(tecPetalNumber(id)); return num ; }
unsigned int TrackerTopology::tecPetalNumber | ( | const DetId & | id | ) | const [inline] |
Definition at line 208 of file TrackerTopology.h.
References TrackerTopology::TECValues::petalMask_, TrackerTopology::TECValues::petalStartBit_, and tecVals_.
Referenced by tecPetalInfo().
{ return ((id.rawId()>>tecVals_.petalStartBit_) & tecVals_.petalMask_);}
unsigned int TrackerTopology::tecRing | ( | const DetId & | id | ) | const [inline] |
ring id
Definition at line 199 of file TrackerTopology.h.
References TrackerTopology::TECValues::ringMask_, TrackerTopology::TECValues::ringStartBit_, and tecVals_.
Referenced by print(), and tecIsDoubleSide().
{ return ((id.rawId()>>tecVals_.ringStartBit_) & tecVals_.ringMask_) ; }
unsigned int TrackerTopology::tecSide | ( | const DetId & | id | ) | const [inline] |
Definition at line 157 of file TrackerTopology.h.
References TrackerTopology::TECValues::sideMask_, TrackerTopology::TECValues::sideStartBit_, and tecVals_.
Referenced by print(), and tecIsZMinusSide().
{ return ((id.rawId()>>tecVals_.sideStartBit_)&tecVals_.sideMask_); }
uint32_t TrackerTopology::tecStereo | ( | const DetId & | id | ) | const [inline] |
Definition at line 264 of file TrackerTopology.h.
References TrackerTopology::TECValues::sterMask_, TrackerTopology::TECValues::sterStartBit_, and tecVals_.
Referenced by print(), and tecIsStereo().
{ if ( ((id.rawId() >>tecVals_.sterStartBit_ ) & tecVals_.sterMask_ ) == 1 ) { return ( (id.rawId()>>tecVals_.sterStartBit_) & tecVals_.sterMask_ ); } else { return 0; } }
unsigned int TrackerTopology::tecWheel | ( | const DetId & | id | ) | const [inline] |
Definition at line 179 of file TrackerTopology.h.
References tecVals_, TrackerTopology::TECValues::wheelMask_, and TrackerTopology::TECValues::wheelStartBit_.
Referenced by layer(), and print().
{ return ((id.rawId()>>tecVals_.wheelStartBit_) & tecVals_.wheelMask_) ; }
DetId TrackerTopology::tibDetId | ( | uint32_t | layer, |
uint32_t | str_fw_bw, | ||
uint32_t | str_int_ext, | ||
uint32_t | str, | ||
uint32_t | module, | ||
uint32_t | ster | ||
) | const [inline] |
Definition at line 414 of file TrackerTopology.h.
References TrackerTopology::TIBValues::layerMask_, TrackerTopology::TIBValues::layerStartBit_, TrackerTopology::TIBValues::moduleMask_, TrackerTopology::TIBValues::moduleStartBit_, TrackerTopology::TIBValues::sterMask_, TrackerTopology::TIBValues::sterStartBit_, TrackerTopology::TIBValues::str_fw_bwMask_, TrackerTopology::TIBValues::str_fw_bwStartBit_, TrackerTopology::TIBValues::str_int_extMask_, TrackerTopology::TIBValues::str_int_extStartBit_, TrackerTopology::TIBValues::strMask_, TrackerTopology::TIBValues::strStartBit_, StripSubdetector::TIB, tibVals_, and DetId::Tracker.
{ DetId id=SiStripDetId(DetId::Tracker,StripSubdetector::TIB); uint32_t rawid=id.rawId(); rawid |= (layer& tibVals_.layerMask_) << tibVals_.layerStartBit_ | (str_fw_bw& tibVals_.str_fw_bwMask_) << tibVals_.str_fw_bwStartBit_ | (str_int_ext& tibVals_.str_int_extMask_) << tibVals_.str_int_extStartBit_ | (str& tibVals_.strMask_) << tibVals_.strStartBit_ | (module& tibVals_.moduleMask_) << tibVals_.moduleStartBit_ | (ster& tibVals_.sterMask_) << tibVals_.sterStartBit_ ; return DetId(rawid); }
uint32_t TrackerTopology::tibGlued | ( | const DetId & | id | ) | const [inline] |
Definition at line 270 of file TrackerTopology.h.
References TrackerTopology::TIBValues::sterMask_, TrackerTopology::TIBValues::sterStartBit_, and tibVals_.
Referenced by print().
{ if ( ((id.rawId()>>tibVals_.sterStartBit_) & tibVals_.sterMask_ ) == 1 ) { return ( id.rawId() - 1 ); } else if ( ((id.rawId()>>tibVals_.sterStartBit_) & tibVals_.sterMask_ ) == 2 ) { return ( id.rawId() - 2 ); } else { return 0; } }
bool TrackerTopology::tibIsDoubleSide | ( | const DetId & | id | ) | const [inline] |
Definition at line 224 of file TrackerTopology.h.
References SiStripDetId::glued(), and tibLayer().
Referenced by print(), tibIsRPhi(), and tibIsStereo().
{ return SiStripDetId(id).glued()==0 && (tibLayer(id)==1 || tibLayer(id)==2);}
bool TrackerTopology::tibIsExternalString | ( | const DetId & | id | ) | const [inline] |
Definition at line 339 of file TrackerTopology.h.
References tibIsInternalString().
{ return !tibIsInternalString(id); }
bool TrackerTopology::tibIsInternalString | ( | const DetId & | id | ) | const [inline] |
Definition at line 335 of file TrackerTopology.h.
References tibOrder().
Referenced by tibIsExternalString().
{ return (tibOrder(id)==1); }
bool TrackerTopology::tibIsRPhi | ( | const DetId & | id | ) | const [inline] |
Definition at line 304 of file TrackerTopology.h.
References SiStripDetId::stereo(), and tibIsDoubleSide().
{ return SiStripDetId(id).stereo()==0 && !tibIsDoubleSide(id);}
bool TrackerTopology::tibIsStereo | ( | const DetId & | id | ) | const [inline] |
Definition at line 242 of file TrackerTopology.h.
References tibIsDoubleSide(), and tibStereo().
{return tibStereo(id)!=0 && !tibIsDoubleSide(id);}
bool TrackerTopology::tibIsZMinusSide | ( | const DetId & | id | ) | const [inline] |
Definition at line 231 of file TrackerTopology.h.
References tibSide().
Referenced by tibIsZPlusSide().
{ return tibSide(id)==1;}
bool TrackerTopology::tibIsZPlusSide | ( | const DetId & | id | ) | const [inline] |
Definition at line 230 of file TrackerTopology.h.
References tibIsZMinusSide().
{return !tibIsZMinusSide(id);}
unsigned int TrackerTopology::tibLayer | ( | const DetId & | id | ) | const [inline] |
Definition at line 121 of file TrackerTopology.h.
References TrackerTopology::TIBValues::layerMask_, TrackerTopology::TIBValues::layerStartBit_, and tibVals_.
Referenced by layer(), print(), and tibIsDoubleSide().
{ return int((id.rawId()>>tibVals_.layerStartBit_) & tibVals_.layerMask_); }
unsigned int TrackerTopology::tibModule | ( | const DetId & | id | ) | const [inline] |
Definition at line 144 of file TrackerTopology.h.
References TrackerTopology::TIBValues::moduleMask_, TrackerTopology::TIBValues::moduleStartBit_, and tibVals_.
Referenced by module(), and print().
{ return ((id.rawId()>>tibVals_.moduleStartBit_)& tibVals_.moduleMask_); }
unsigned int TrackerTopology::tibOrder | ( | const DetId & | id | ) | const [inline] |
Definition at line 190 of file TrackerTopology.h.
References TrackerTopology::TIBValues::str_int_extMask_, TrackerTopology::TIBValues::str_int_extStartBit_, and tibVals_.
Referenced by tibIsInternalString(), and tibStringInfo().
{ return ((id.rawId()>>tibVals_.str_int_extStartBit_) & tibVals_.str_int_extMask_); }
unsigned int TrackerTopology::tibSide | ( | const DetId & | id | ) | const [inline] |
Definition at line 161 of file TrackerTopology.h.
References TrackerTopology::TIBValues::str_fw_bwMask_, TrackerTopology::TIBValues::str_fw_bwStartBit_, and tibVals_.
Referenced by tibIsZMinusSide(), and tibStringInfo().
{ return ((id.rawId()>>tibVals_.str_fw_bwStartBit_) & tibVals_.str_fw_bwMask_); }
uint32_t TrackerTopology::tibStereo | ( | const DetId & | id | ) | const [inline] |
Definition at line 252 of file TrackerTopology.h.
References TrackerTopology::TIBValues::sterMask_, TrackerTopology::TIBValues::sterStartBit_, and tibVals_.
Referenced by print(), and tibIsStereo().
{ if ( ((id.rawId() >>tibVals_.sterStartBit_ ) & tibVals_.sterMask_ ) == 1 ) { return ( (id.rawId()>>tibVals_.sterStartBit_) & tibVals_.sterMask_ ); } else { return 0; } }
unsigned int TrackerTopology::tibString | ( | const DetId & | id | ) | const [inline] |
Definition at line 323 of file TrackerTopology.h.
References TrackerTopology::TIBValues::strMask_, TrackerTopology::TIBValues::strStartBit_, and tibVals_.
Referenced by tibStringInfo().
{ return (id.rawId()>>tibVals_.strStartBit_)&tibVals_.strMask_; }
std::vector<unsigned int> TrackerTopology::tibStringInfo | ( | const DetId & | id | ) | const [inline] |
Definition at line 327 of file TrackerTopology.h.
References tibOrder(), tibSide(), and tibString().
Referenced by print().
DetId TrackerTopology::tidDetId | ( | uint32_t | side, |
uint32_t | wheel, | ||
uint32_t | ring, | ||
uint32_t | module_fw_bw, | ||
uint32_t | module, | ||
uint32_t | ster | ||
) | const [inline] |
Definition at line 431 of file TrackerTopology.h.
References TrackerTopology::TIDValues::module_fw_bwMask_, TrackerTopology::TIDValues::module_fw_bwStartBit_, TrackerTopology::TIDValues::moduleMask_, TrackerTopology::TIDValues::moduleStartBit_, TrackerTopology::TIDValues::ringMask_, TrackerTopology::TIDValues::ringStartBit_, TrackerTopology::TIDValues::sideMask_, TrackerTopology::TIDValues::sideStartBit_, TrackerTopology::TIDValues::sterMask_, TrackerTopology::TIDValues::sterStartBit_, StripSubdetector::TID, tidVals_, DetId::Tracker, TrackerTopology::TIDValues::wheelMask_, and TrackerTopology::TIDValues::wheelStartBit_.
{ DetId id=SiStripDetId(DetId::Tracker,StripSubdetector::TID); uint32_t rawid=id.rawId(); rawid |= (side& tidVals_.sideMask_) << tidVals_.sideStartBit_ | (wheel& tidVals_.wheelMask_) << tidVals_.wheelStartBit_ | (ring& tidVals_.ringMask_) << tidVals_.ringStartBit_ | (module_fw_bw& tidVals_.module_fw_bwMask_) << tidVals_.module_fw_bwStartBit_ | (module& tidVals_.moduleMask_) << tidVals_.moduleStartBit_ | (ster& tidVals_.sterMask_) << tidVals_.sterStartBit_ ; return DetId(rawid); }
uint32_t TrackerTopology::tidGlued | ( | const DetId & | id | ) | const [inline] |
Definition at line 294 of file TrackerTopology.h.
References TrackerTopology::TIDValues::sterMask_, TrackerTopology::TIDValues::sterStartBit_, and tidVals_.
Referenced by print().
{ if ( ((id.rawId()>>tidVals_.sterStartBit_) & tidVals_.sterMask_ ) == 1 ) { return ( id.rawId() - 1 ); } else if ( ((id.rawId()>>tidVals_.sterStartBit_) & tidVals_.sterMask_ ) == 2 ) { return ( id.rawId() - 2 ); } else { return 0; } }
bool TrackerTopology::tidIsBackRing | ( | const DetId & | id | ) | const [inline] |
Definition at line 351 of file TrackerTopology.h.
References tidOrder().
Referenced by tidIsFrontRing().
{ return (tidOrder(id)==1); }
bool TrackerTopology::tidIsDoubleSide | ( | const DetId & | id | ) | const [inline] |
Definition at line 225 of file TrackerTopology.h.
References SiStripDetId::glued(), and tidRing().
Referenced by print(), tidIsRPhi(), and tidIsStereo().
{ return SiStripDetId(id).glued()==0 && (tidRing(id)==1 || tidRing(id)==2);}
bool TrackerTopology::tidIsFrontRing | ( | const DetId & | id | ) | const [inline] |
Definition at line 355 of file TrackerTopology.h.
References tidIsBackRing().
{return !tidIsBackRing(id);}
bool TrackerTopology::tidIsRPhi | ( | const DetId & | id | ) | const [inline] |
Definition at line 305 of file TrackerTopology.h.
References SiStripDetId::stereo(), and tidIsDoubleSide().
{ return SiStripDetId(id).stereo()==0 && !tidIsDoubleSide(id);}
bool TrackerTopology::tidIsStereo | ( | const DetId & | id | ) | const [inline] |
Definition at line 243 of file TrackerTopology.h.
References tidIsDoubleSide(), and tidStereo().
{return tidStereo(id)!=0 && !tidIsDoubleSide(id);}
bool TrackerTopology::tidIsZMinusSide | ( | const DetId & | id | ) | const [inline] |
Definition at line 234 of file TrackerTopology.h.
References tidSide().
Referenced by tidIsZPlusSide().
{ return tidSide(id)==1;}
bool TrackerTopology::tidIsZPlusSide | ( | const DetId & | id | ) | const [inline] |
Definition at line 233 of file TrackerTopology.h.
References tidIsZMinusSide().
{return !tidIsZMinusSide(id);}
unsigned int TrackerTopology::tidModule | ( | const DetId & | id | ) | const [inline] |
Definition at line 147 of file TrackerTopology.h.
References TrackerTopology::TIDValues::moduleMask_, TrackerTopology::TIDValues::moduleStartBit_, and tidVals_.
Referenced by module(), and tidModuleInfo().
{ return ((id.rawId()>>tidVals_.moduleStartBit_)& tidVals_.moduleMask_); }
std::vector<unsigned int> TrackerTopology::tidModuleInfo | ( | const DetId & | id | ) | const [inline] |
Definition at line 344 of file TrackerTopology.h.
References tidModule(), and tidOrder().
Referenced by print().
unsigned int TrackerTopology::tidOrder | ( | const DetId & | id | ) | const [inline] |
Definition at line 193 of file TrackerTopology.h.
References TrackerTopology::TIDValues::module_fw_bwMask_, TrackerTopology::TIDValues::module_fw_bwStartBit_, and tidVals_.
Referenced by tidIsBackRing(), and tidModuleInfo().
{ return ((id.rawId()>>tidVals_.module_fw_bwStartBit_) & tidVals_.module_fw_bwMask_); }
unsigned int TrackerTopology::tidRing | ( | const DetId & | id | ) | const [inline] |
Definition at line 202 of file TrackerTopology.h.
References TrackerTopology::TIDValues::ringMask_, TrackerTopology::TIDValues::ringStartBit_, and tidVals_.
Referenced by print(), and tidIsDoubleSide().
{ return ((id.rawId()>>tidVals_.ringStartBit_) & tidVals_.ringMask_) ; }
unsigned int TrackerTopology::tidSide | ( | const DetId & | id | ) | const [inline] |
Definition at line 165 of file TrackerTopology.h.
References TrackerTopology::TIDValues::sideMask_, TrackerTopology::TIDValues::sideStartBit_, and tidVals_.
Referenced by print(), and tidIsZMinusSide().
{ return ((id.rawId()>>tidVals_.sideStartBit_)&tidVals_.sideMask_); }
uint32_t TrackerTopology::tidStereo | ( | const DetId & | id | ) | const [inline] |
Definition at line 258 of file TrackerTopology.h.
References TrackerTopology::TIDValues::sterMask_, TrackerTopology::TIDValues::sterStartBit_, and tidVals_.
Referenced by print(), and tidIsStereo().
{ if ( ((id.rawId() >>tidVals_.sterStartBit_ ) & tidVals_.sterMask_ ) == 1 ) { return ( (id.rawId()>>tidVals_.sterStartBit_) & tidVals_.sterMask_ ); } else { return 0; } }
unsigned int TrackerTopology::tidWheel | ( | const DetId & | id | ) | const [inline] |
Definition at line 182 of file TrackerTopology.h.
References tidVals_, TrackerTopology::TIDValues::wheelMask_, and TrackerTopology::TIDValues::wheelStartBit_.
Referenced by layer(), and print().
{ return ((id.rawId()>>tidVals_.wheelStartBit_) & tidVals_.wheelMask_) ; }
DetId TrackerTopology::tobDetId | ( | uint32_t | layer, |
uint32_t | rod_fw_bw, | ||
uint32_t | rod, | ||
uint32_t | module, | ||
uint32_t | ster | ||
) | const [inline] |
Definition at line 448 of file TrackerTopology.h.
References TrackerTopology::TOBValues::layerMask_, TrackerTopology::TOBValues::layerStartBit_, TrackerTopology::TOBValues::moduleMask_, TrackerTopology::TOBValues::moduleStartBit_, TrackerTopology::TOBValues::rod_fw_bwMask_, TrackerTopology::TOBValues::rod_fw_bwStartBit_, TrackerTopology::TOBValues::rodMask_, TrackerTopology::TOBValues::rodStartBit_, TrackerTopology::TOBValues::sterMask_, TrackerTopology::TOBValues::sterStartBit_, StripSubdetector::TOB, tobVals_, and DetId::Tracker.
{ DetId id=SiStripDetId(DetId::Tracker,StripSubdetector::TOB); uint32_t rawid=id.rawId(); rawid |= (layer& tobVals_.layerMask_) << tobVals_.layerStartBit_ | (rod_fw_bw& tobVals_.rod_fw_bwMask_) << tobVals_.rod_fw_bwStartBit_ | (rod& tobVals_.rodMask_) << tobVals_.rodStartBit_ | (module& tobVals_.moduleMask_) << tobVals_.moduleStartBit_ | (ster& tobVals_.sterMask_) << tobVals_.sterStartBit_ ; return DetId(rawid); }
uint32_t TrackerTopology::tobGlued | ( | const DetId & | id | ) | const [inline] |
Definition at line 286 of file TrackerTopology.h.
References TrackerTopology::TOBValues::sterMask_, TrackerTopology::TOBValues::sterStartBit_, and tobVals_.
Referenced by print().
{ if ( ((id.rawId()>>tobVals_.sterStartBit_) & tobVals_.sterMask_ ) == 1 ) { return ( id.rawId() - 1 ); } else if ( ((id.rawId()>>tobVals_.sterStartBit_) & tobVals_.sterMask_ ) == 2 ) { return ( id.rawId() - 2 ); } else { return 0; } }
bool TrackerTopology::tobIsDoubleSide | ( | const DetId & | id | ) | const [inline] |
Definition at line 222 of file TrackerTopology.h.
References SiStripDetId::glued(), and tobLayer().
Referenced by print(), tobIsRPhi(), and tobIsStereo().
{ return SiStripDetId(id).glued()==0 && (tobLayer(id)==1 || tobLayer(id)==2);}
bool TrackerTopology::tobIsRPhi | ( | const DetId & | id | ) | const [inline] |
Definition at line 302 of file TrackerTopology.h.
References SiStripDetId::stereo(), and tobIsDoubleSide().
{ return SiStripDetId(id).stereo()==0 && !tobIsDoubleSide(id);}
bool TrackerTopology::tobIsStereo | ( | const DetId & | id | ) | const [inline] |
Definition at line 240 of file TrackerTopology.h.
References tobIsDoubleSide(), and tobStereo().
{return tobStereo(id)!=0 && !tobIsDoubleSide(id);}
bool TrackerTopology::tobIsZMinusSide | ( | const DetId & | id | ) | const [inline] |
Definition at line 228 of file TrackerTopology.h.
References tobSide().
Referenced by tobIsZPlusSide().
{ return tobSide(id)==1;}
bool TrackerTopology::tobIsZPlusSide | ( | const DetId & | id | ) | const [inline] |
Definition at line 227 of file TrackerTopology.h.
References tobIsZMinusSide().
{return !tobIsZMinusSide(id);}
unsigned int TrackerTopology::tobLayer | ( | const DetId & | id | ) | const [inline] |
Definition at line 118 of file TrackerTopology.h.
References TrackerTopology::TOBValues::layerMask_, TrackerTopology::TOBValues::layerStartBit_, and tobVals_.
Referenced by layer(), print(), and tobIsDoubleSide().
{ return int((id.rawId()>>tobVals_.layerStartBit_) & tobVals_.layerMask_); }
unsigned int TrackerTopology::tobModule | ( | const DetId & | id | ) | const [inline] |
Definition at line 138 of file TrackerTopology.h.
References TrackerTopology::TOBValues::moduleMask_, TrackerTopology::TOBValues::moduleStartBit_, and tobVals_.
Referenced by module(), and print().
{ return ((id.rawId()>>tobVals_.moduleStartBit_)& tobVals_.moduleMask_); }
unsigned int TrackerTopology::tobRod | ( | const DetId & | id | ) | const [inline] |
Definition at line 174 of file TrackerTopology.h.
References TrackerTopology::TOBValues::rodMask_, TrackerTopology::TOBValues::rodStartBit_, and tobVals_.
Referenced by tobRodInfo().
{ return ((id.rawId()>>tobVals_.rodStartBit_) & tobVals_.rodMask_); }
std::vector<unsigned int> TrackerTopology::tobRodInfo | ( | const DetId & | id | ) | const [inline] |
unsigned int TrackerTopology::tobSide | ( | const DetId & | id | ) | const [inline] |
Definition at line 153 of file TrackerTopology.h.
References TrackerTopology::TOBValues::rod_fw_bwMask_, TrackerTopology::TOBValues::rod_fw_bwStartBit_, and tobVals_.
Referenced by tobIsZMinusSide(), and tobRodInfo().
{ return ((id.rawId()>>tobVals_.rod_fw_bwStartBit_) & tobVals_.rod_fw_bwMask_); }
uint32_t TrackerTopology::tobStereo | ( | const DetId & | id | ) | const [inline] |
Definition at line 246 of file TrackerTopology.h.
References TrackerTopology::TOBValues::sterMask_, TrackerTopology::TOBValues::sterStartBit_, and tobVals_.
Referenced by print(), and tobIsStereo().
{ if ( ((id.rawId() >>tobVals_.sterStartBit_ ) & tobVals_.sterMask_ ) == 1 ) { return ( (id.rawId()>>tobVals_.sterStartBit_) & tobVals_.sterMask_ ); } else { return 0; } }
PixelBarrelValues TrackerTopology::pbVals_ [private] |
Definition at line 467 of file TrackerTopology.h.
Referenced by pxbDetId(), pxbLadder(), pxbLayer(), pxbModule(), and TrackerTopology().
PixelEndcapValues TrackerTopology::pfVals_ [private] |
Definition at line 468 of file TrackerTopology.h.
Referenced by pxfBlade(), pxfDetId(), pxfDisk(), pxfModule(), pxfPanel(), pxfSide(), and TrackerTopology().
TECValues TrackerTopology::tecVals_ [private] |
Definition at line 473 of file TrackerTopology.h.
Referenced by tecDetId(), tecGlued(), tecModule(), tecOrder(), tecPetalNumber(), tecRing(), tecSide(), tecStereo(), tecWheel(), and TrackerTopology().
TIBValues TrackerTopology::tibVals_ [private] |
Definition at line 471 of file TrackerTopology.h.
Referenced by tibDetId(), tibGlued(), tibLayer(), tibModule(), tibOrder(), tibSide(), tibStereo(), tibString(), and TrackerTopology().
TIDValues TrackerTopology::tidVals_ [private] |
Definition at line 472 of file TrackerTopology.h.
Referenced by tidDetId(), tidGlued(), tidModule(), tidOrder(), tidRing(), tidSide(), tidStereo(), tidWheel(), and TrackerTopology().
TOBValues TrackerTopology::tobVals_ [private] |
Definition at line 470 of file TrackerTopology.h.
Referenced by tobDetId(), tobGlued(), tobLayer(), tobModule(), tobRod(), tobSide(), tobStereo(), and TrackerTopology().