test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Classes | Public Types | Public Member Functions | Private Attributes
TrackerTopology Class Reference

#include <TrackerTopology.h>

Classes

struct  BitmaskAndSubdet
 
struct  PixelBarrelValues
 
struct  PixelEndcapValues
 
class  SameLayerComparator
 
struct  TECValues
 
struct  TIBValues
 
struct  TIDValues
 
struct  TOBValues
 

Public Types

enum  DetIdFields {
  PBModule, PBLadder, PBLayer, PFModule,
  PFPanel, PFBlade, PFDisk, PFSide,
  DETID_FIELDS_MAX
}
 

Public Member Functions

unsigned int getField (const DetId &id, DetIdFields idx) const
 
int getITPixelLayerNumber (const DetId &id) const
 
int getOTLayerNumber (const DetId &id) const
 
uint32_t glued (const DetId &id) const
 
bool hasField (const DetId &id, DetIdFields idx) const
 
bool isLower (const DetId &id) const
 
bool isRPhi (const DetId &id) const
 
bool isStereo (const DetId &id) const
 
bool isUpper (const DetId &id) const
 
unsigned int layer (const DetId &id) const
 
uint32_t lower (const DetId &id) const
 
unsigned int module (const DetId &id) const
 
SiStripDetId::ModuleGeometry moduleGeometry (const DetId &id) const
 
DetId partnerDetId (const DetId &id) const
 
std::string print (DetId detid) const
 
DetId pxbDetId (uint32_t layer, uint32_t ladder, uint32_t module) const
 
std::pair< DetId,
SameLayerComparator
pxbDetIdLayerComparator (uint32_t layer) 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
 
std::pair< DetId,
SameLayerComparator
pxfDetIdDiskComparator (uint32_t side, uint32_t disk) 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
 
unsigned int side (const DetId &id) const
 
uint32_t stack (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
 
std::pair< DetId,
SameLayerComparator
tecDetIdWheelComparator (uint32_t side, uint32_t wheel) 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
 
uint32_t tecLower (const DetId &id) const
 
unsigned int tecModule (const DetId &id) const
 
unsigned int tecOrder (const DetId &id) const
 
uint32_t tecPartnerDetId (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 More...
 
uint32_t tecRPhi (const DetId &id) const
 
unsigned int tecSide (const DetId &id) const
 
uint32_t tecStack (const DetId &id) const
 
uint32_t tecStereo (const DetId &id) const
 
uint32_t tecUpper (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
 
std::pair< DetId,
SameLayerComparator
tibDetIdLayerComparator (uint32_t layer) 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
 
uint32_t tibLower (const DetId &id) const
 
unsigned int tibModule (const DetId &id) const
 
unsigned int tibOrder (const DetId &id) const
 
DetId tibPartnerDetId (const DetId &id) const
 
uint32_t tibRPhi (const DetId &id) const
 
unsigned int tibSide (const DetId &id) const
 
uint32_t tibStack (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
 
uint32_t tibUpper (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
 
std::pair< DetId,
SameLayerComparator
tidDetIdWheelComparator (uint32_t side, uint32_t wheel) 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
 
uint32_t tidLower (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
 
DetId tidPartnerDetId (const DetId &id) const
 
unsigned int tidRing (const DetId &id) const
 
uint32_t tidRPhi (const DetId &id) const
 
unsigned int tidSide (const DetId &id) const
 
uint32_t tidStack (const DetId &id) const
 
uint32_t tidStereo (const DetId &id) const
 
uint32_t tidUpper (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
 
std::pair< DetId,
SameLayerComparator
tobDetIdLayerComparator (uint32_t layer) 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
 
uint32_t tobLower (const DetId &id) const
 
unsigned int tobModule (const DetId &id) const
 
DetId tobPartnerDetId (const DetId &id) const
 
unsigned int tobRod (const DetId &id) const
 
std::vector< unsigned int > tobRodInfo (const DetId &id) const
 
uint32_t tobRPhi (const DetId &id) const
 
unsigned int tobSide (const DetId &id) const
 
uint32_t tobStack (const DetId &id) const
 
uint32_t tobStereo (const DetId &id) const
 
uint32_t tobUpper (const DetId &id) const
 
 TrackerTopology (const PixelBarrelValues &pxb, const PixelEndcapValues &pxf, const TECValues &tecv, const TIBValues &tibv, const TIDValues &tidv, const TOBValues &tobv)
 
uint32_t upper (const DetId &id) const
 

Private Attributes

const BitmaskAndSubdet bits_per_field [DETID_FIELDS_MAX]
 
const PixelBarrelValues pbVals_
 
const PixelEndcapValues pfVals_
 
const TECValues tecVals_
 
const TIBValues tibVals_
 
const TIDValues tidVals_
 
const TOBValues tobVals_
 

Detailed Description

Definition at line 18 of file TrackerTopology.h.

Member Enumeration Documentation

Enumerator
PBModule 
PBLadder 
PBLayer 
PFModule 
PFPanel 
PFBlade 
PFDisk 
PFSide 
DETID_FIELDS_MAX 

Definition at line 105 of file TrackerTopology.h.

Constructor & Destructor Documentation

TrackerTopology::TrackerTopology ( const PixelBarrelValues pxb,
const PixelEndcapValues pxf,
const TECValues tecv,
const TIBValues tibv,
const TIDValues tidv,
const TOBValues tobv 
)

Definition at line 8 of file TrackerTopology.cc.

References TrackerTopology::PixelEndcapValues::bladeMask_, TrackerTopology::PixelEndcapValues::bladeStartBit_, TrackerTopology::PixelEndcapValues::diskMask_, TrackerTopology::PixelEndcapValues::diskStartBit_, TrackerTopology::PixelBarrelValues::ladderMask_, TrackerTopology::PixelBarrelValues::ladderStartBit_, TrackerTopology::PixelBarrelValues::layerMask_, TrackerTopology::PixelBarrelValues::layerStartBit_, TrackerTopology::PixelBarrelValues::moduleMask_, TrackerTopology::PixelEndcapValues::moduleMask_, TrackerTopology::PixelBarrelValues::moduleStartBit_, TrackerTopology::PixelEndcapValues::moduleStartBit_, TrackerTopology::PixelEndcapValues::panelMask_, TrackerTopology::PixelEndcapValues::panelStartBit_, PBLadder, PBLayer, PBModule, pbVals_, PFBlade, PFDisk, PFModule, PFPanel, PFSide, pfVals_, PixelSubdetector::PixelBarrel, PixelSubdetector::PixelEndcap, TrackerTopology::PixelEndcapValues::sideMask_, and TrackerTopology::PixelEndcapValues::sideStartBit_.

11  : pbVals_(pxb),
12  pfVals_(pxf),
13  tobVals_(tobv),
14  tibVals_(tibv),
15  tidVals_(tidv),
16  tecVals_(tecv),
const TECValues tecVals_
const PixelEndcapValues pfVals_
const BitmaskAndSubdet bits_per_field[DETID_FIELDS_MAX]
const PixelBarrelValues pbVals_
const TIBValues tibVals_
const TOBValues tobVals_
const TIDValues tidVals_

Member Function Documentation

unsigned int TrackerTopology::getField ( const DetId id,
DetIdFields  idx 
) const
inline

Definition at line 595 of file TrackerTopology.h.

References bits_per_field.

595  {
596  return ((id.rawId()>>bits_per_field[idx].startBit)&bits_per_field[idx].mask);
597  }
const BitmaskAndSubdet bits_per_field[DETID_FIELDS_MAX]
int TrackerTopology::getITPixelLayerNumber ( const DetId id) const
int TrackerTopology::getOTLayerNumber ( const DetId id) const
uint32_t TrackerTopology::glued ( const DetId id) const
bool TrackerTopology::hasField ( const DetId id,
DetIdFields  idx 
) const
inline

Definition at line 600 of file TrackerTopology.h.

References bits_per_field, and TrackerTopology::BitmaskAndSubdet::subdet.

600  {
601  return id.subdetId() == bits_per_field[idx].subdet;
602  }
const BitmaskAndSubdet bits_per_field[DETID_FIELDS_MAX]
bool TrackerTopology::isLower ( const DetId id) const
bool TrackerTopology::isRPhi ( const DetId id) const
bool TrackerTopology::isStereo ( const DetId id) const
bool TrackerTopology::isUpper ( const DetId id) const
unsigned int TrackerTopology::layer ( const DetId id) const
uint32_t TrackerTopology::lower ( const DetId id) const
unsigned int TrackerTopology::module ( const DetId id) const
SiStripDetId::ModuleGeometry TrackerTopology::moduleGeometry ( const DetId id) const
DetId TrackerTopology::partnerDetId ( const DetId id) const
std::string TrackerTopology::print ( DetId  detid) const
DetId TrackerTopology::pxbDetId ( uint32_t  layer,
uint32_t  ladder,
uint32_t  module 
) const
inline

Definition at line 466 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.

Referenced by ValidHitPairFilter::getCloseDets(), PixelBarrelName::getDetId(), and pxbDetIdLayerComparator().

468  {
469  //uply
471  uint32_t rawid=id.rawId();
475  return DetId(rawid);
476  }
const PixelBarrelValues pbVals_
Definition: DetId.h:18
unsigned int layer(const DetId &id) const
Definition: vlib.h:208
std::pair<DetId, SameLayerComparator> TrackerTopology::pxbDetIdLayerComparator ( uint32_t  layer) const
inline

Definition at line 559 of file TrackerTopology.h.

References pxbDetId().

Referenced by ctfseeding::HitExtractorPIX::hits().

559  {
560  return std::make_pair(pxbDetId(layer, 1,1), SameLayerComparator(this));
561  }
unsigned int layer(const DetId &id) const
DetId pxbDetId(uint32_t layer, uint32_t ladder, uint32_t module) const
unsigned int TrackerTopology::pxbLadder ( const DetId id) const
inline
unsigned int TrackerTopology::pxbLayer ( const DetId id) const
inline

Definition at line 144 of file TrackerTopology.h.

References TrackerTopology::PixelBarrelValues::layerMask_, TrackerTopology::PixelBarrelValues::layerStartBit_, and pbVals_.

Referenced by FWTGeoRecoGeometryESProducer::addPixelBarrelGeometry(), SiPixelDigiValid::analyze(), SiPixelRecHitsValid::analyze(), SiPixelTrackResidualSource::analyze(), SiPixelErrorEstimation::analyze(), analyzer::SiPixelLorentzAngle::analyze(), TrackingLayer::createFromDetId(), AlignmentStats::endJob(), SiPixelRecHitsValid::fillBarrel(), TrackerGeometryCompare::fillIdentifiers(), QcdLowPtDQM::fillPixels(), TrackerOfflineValidationSummary::fillTree(), GlobalDigisProducer::fillTrk(), GlobalDigisAnalyzer::fillTrk(), GlobalRecHitsAnalyzer::fillTrk(), GlobalRecHitsProducer::fillTrk(), MonitorTrackResidualsBase< pixel_or_strip >::findSubdetAndLayer(), HitInfo::getInfo(), ValidHitPairFilter::getLayer(), GlobalMuonRefitter::getRidOfSelectStationHits(), align::tpb::halfBarrelNumber(), GeometricSearchTracker::idToLayer(), TrackCleaner::isCompatible(), SeedMergerPixelLayer::isContainsDetector(), align::tpb::ladderNumber(), TkAlCaOverlapTagger::layerFromId(), AlignmentPrescaler::layerFromId(), align::tpb::layerNumber(), TrajectoryManager::makeSinglePSimHit(), AlignmentParameterSelector::outsideDetIdRanges(), Phase2TrackerDigitizerAlgorithm::pixel_inefficiency(), PixelBarrelName::PixelBarrelName(), TrackerOfflineValidation::setUpTreeMembers(), ResidualRefitting::StoreTrackerRecHits(), and TrackerAlignableId::typeAndLayerFromDetId().

144  {
145  return int((id.rawId()>>pbVals_.layerStartBit_) & pbVals_.layerMask_);
146  }
const PixelBarrelValues pbVals_
unsigned int TrackerTopology::pxbModule ( const DetId id) const
inline
unsigned int TrackerTopology::pxfBlade ( const DetId id) const
inline
DetId TrackerTopology::pxfDetId ( uint32_t  side,
uint32_t  disk,
uint32_t  blade,
uint32_t  panel,
uint32_t  module 
) const
inline

Definition at line 478 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.

Referenced by ValidHitPairFilter::getCloseDets(), PixelEndcapName::getDetId(), and pxfDetIdDiskComparator().

482  {
484  uint32_t rawid=id.rawId();
485  rawid |= (side& pfVals_.sideMask_) << pfVals_.sideStartBit_ |
490  return DetId(rawid);
491  }
const PixelEndcapValues pfVals_
unsigned int side(const DetId &id) const
Definition: DetId.h:18
Definition: vlib.h:208
std::pair<DetId, SameLayerComparator> TrackerTopology::pxfDetIdDiskComparator ( uint32_t  side,
uint32_t  disk 
) const
inline

Definition at line 563 of file TrackerTopology.h.

References pxfDetId().

Referenced by ctfseeding::HitExtractorPIX::hits().

563  {
564  return std::make_pair(pxfDetId(side, disk, 1,1,1), SameLayerComparator(this));
565  }
unsigned int side(const DetId &id) const
DetId pxfDetId(uint32_t side, uint32_t disk, uint32_t blade, uint32_t panel, uint32_t module) const
unsigned int TrackerTopology::pxfDisk ( const DetId id) const
inline

Definition at line 455 of file TrackerTopology.h.

References TrackerTopology::PixelEndcapValues::diskMask_, TrackerTopology::PixelEndcapValues::diskStartBit_, and pfVals_.

Referenced by FWTGeoRecoGeometryESProducer::addPixelForwardGeometry(), SiPixelDigiValid::analyze(), SiPixelRecHitsValid::analyze(), SiPixelErrorEstimation::analyze(), analyzer::SiPixelLorentzAngle::analyze(), TrackingLayer::createFromDetId(), AlignmentStats::endJob(), SiPixelRecHitsValid::fillForward(), TrackerGeometryCompare::fillIdentifiers(), TrackerOfflineValidationSummary::fillTree(), GlobalDigisProducer::fillTrk(), GlobalDigisAnalyzer::fillTrk(), GlobalRecHitsAnalyzer::fillTrk(), GlobalRecHitsProducer::fillTrk(), MonitorTrackResidualsBase< pixel_or_strip >::findSubdetAndLayer(), SiPixelTrackResidualSource::getepixrococcupancyontrk(), HitInfo::getInfo(), ValidHitPairFilter::getLayer(), GlobalMuonRefitter::getRidOfSelectStationHits(), align::tpe::halfDiskNumber(), GeometricSearchTracker::idToLayer(), TrackCleaner::isCompatible(), SeedMergerPixelLayer::isContainsDetector(), TkAlCaOverlapTagger::layerFromId(), AlignmentPrescaler::layerFromId(), TrajectoryManager::makeSinglePSimHit(), AlignmentParameterSelector::outsideDetIdRanges(), Phase2TrackerDigitizerAlgorithm::pixel_inefficiency(), PixelEndcapName::PixelEndcapName(), TrackerOfflineValidation::setUpTreeMembers(), ResidualRefitting::StoreTrackerRecHits(), and TrackerAlignableId::typeAndLayerFromDetId().

455  {
456  return int((id.rawId()>>pfVals_.diskStartBit_) & pfVals_.diskMask_);
457  }
const PixelEndcapValues pfVals_
unsigned int TrackerTopology::pxfModule ( const DetId id) const
inline
unsigned int TrackerTopology::pxfPanel ( const DetId id) const
inline
unsigned int TrackerTopology::pxfSide ( const DetId id) const
inline

Definition at line 196 of file TrackerTopology.h.

References pfVals_, TrackerTopology::PixelEndcapValues::sideMask_, and TrackerTopology::PixelEndcapValues::sideStartBit_.

Referenced by SiPixelDigiValid::analyze(), SiPixelErrorEstimation::analyze(), analyzer::SiPixelLorentzAngle::analyze(), TrackingLayer::createFromDetId(), AlignmentTrackSelector::detailedHitsCheck(), align::tpe::endcapNumber(), TrackerGeometryCompare::fillIdentifiers(), MillePedeMonitor::fillTrack(), TrackerOfflineValidationSummary::fillTree(), GlobalDigisProducer::fillTrk(), GlobalDigisAnalyzer::fillTrk(), GlobalRecHitsAnalyzer::fillTrk(), GlobalRecHitsProducer::fillTrk(), MonitorTrackResidualsBase< pixel_or_strip >::findSubdetAndLayer(), HitInfo::getInfo(), ValidHitPairFilter::getLayer(), GeometricSearchTracker::idToLayer(), TrackCleaner::isCompatible(), SeedMergerPixelLayer::isContainsDetector(), TkAlCaOverlapTagger::layerFromId(), AlignmentPrescaler::layerFromId(), AlignmentParameterSelector::outsideDetIdRanges(), Phase2TrackerDigitizerAlgorithm::pixel_inefficiency(), PixelEndcapName::PixelEndcapName(), TrackerOfflineValidation::setUpTreeMembers(), and ResidualRefitting::StoreTrackerRecHits().

196  {
197  return ((id.rawId()>>pfVals_.sideStartBit_)&pfVals_.sideMask_);
198  }
const PixelEndcapValues pfVals_
unsigned int TrackerTopology::side ( const DetId id) const
uint32_t TrackerTopology::stack ( const DetId id) const
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 493 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_.

Referenced by tecDetIdWheelComparator().

495  {
496 
498  uint32_t rawid=id.rawId();
499 
500  rawid |= (side& tecVals_.sideMask_) << tecVals_.sideStartBit_ |
507  return DetId(rawid);
508  }
const TECValues tecVals_
unsigned int side(const DetId &id) const
Detector identifier class for the strip tracker.
Definition: SiStripDetId.h:17
Definition: DetId.h:18
Definition: vlib.h:208
std::pair<DetId, SameLayerComparator> TrackerTopology::tecDetIdWheelComparator ( uint32_t  side,
uint32_t  wheel 
) const
inline

Definition at line 567 of file TrackerTopology.h.

References tecDetId().

Referenced by ctfseeding::HitExtractorSTRP::hits(), and CosmicLayerPairs::selectTECHit().

567  {
568  return std::make_pair(tecDetId(side, wheel, 1,1,1,1,1), SameLayerComparator(this));
569  }
unsigned int side(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 TrackerTopology::tecGlued ( const DetId id) const
inline

Definition at line 348 of file TrackerTopology.h.

References reco::return(), TrackerTopology::TECValues::sterMask_, TrackerTopology::TECValues::sterStartBit_, and tecVals_.

Referenced by tecIsDoubleSide(), and tecStack().

348  {
349  uint32_t testId = (id.rawId()>>tecVals_.sterStartBit_) & tecVals_.sterMask_;
350  return ( testId == 0 ) ? 0 : (id.rawId() - testId);
351  }
const TECValues tecVals_
return(e1-e2)*(e1-e2)+dp *dp
bool TrackerTopology::tecIsBackPetal ( const DetId id) const
inline
bool TrackerTopology::tecIsDoubleSide ( const DetId id) const
inline

Definition at line 262 of file TrackerTopology.h.

References tecGlued(), and tecRing().

Referenced by AlignmentStats::endJob(), TrackerOfflineValidationSummary::fillTree(), TrackerOfflineValidation::setUpTreeMembers(), tecIsRPhi(), tecIsStereo(), and TrackerDpgAnalysis::toStringName().

262 { return tecGlued(id)==0 && (tecRing(id)==1 || tecRing(id)==2 || tecRing(id)==5);}
unsigned int tecRing(const DetId &id) const
ring id
uint32_t tecGlued(const DetId &id) const
bool TrackerTopology::tecIsFrontPetal ( const DetId id) const
inline

Definition at line 416 of file TrackerTopology.h.

References tecIsBackPetal().

Referenced by SiStripBadModuleConfigurableFakeESSource::selectDetectors(), and TrackerDpgAnalysis::toStringName().

416 {return !tecIsBackPetal(id);}
bool tecIsBackPetal(const DetId &id) const
bool TrackerTopology::tecIsRPhi ( const DetId id) const
inline

Definition at line 284 of file TrackerTopology.h.

References tecIsDoubleSide(), and tecRPhi().

Referenced by TrackingParticleNumberOfLayers::calculate(), and TrackerDpgAnalysis::toStringName().

284 { return tecRPhi(id)!=0 && !tecIsDoubleSide(id);}
bool tecIsDoubleSide(const DetId &id) const
uint32_t tecRPhi(const DetId &id) const
bool TrackerTopology::tecIsStereo ( const DetId id) const
inline
bool TrackerTopology::tecIsZMinusSide ( const DetId id) const
inline
bool TrackerTopology::tecIsZPlusSide ( const DetId id) const
inline
uint32_t TrackerTopology::tecLower ( const DetId id) const
inline

Definition at line 309 of file TrackerTopology.h.

References tecStereo().

309 { return tecStereo(id); }
uint32_t tecStereo(const DetId &id) const
unsigned int TrackerTopology::tecModule ( const DetId id) const
inline
unsigned int TrackerTopology::tecOrder ( const DetId id) const
inline
uint32_t TrackerTopology::tecPartnerDetId ( const DetId id) const
inline

Definition at line 396 of file TrackerTopology.h.

References TrackerTopology::TECValues::sterMask_, TrackerTopology::TECValues::sterStartBit_, and tecVals_.

396  {
397  if ( ((id.rawId()>>tecVals_.sterStartBit_) & tecVals_.sterMask_ ) == 1 ) {
398  return DetId( id.rawId() + 1 );
399  } else if ( ((id.rawId()>>tecVals_.sterStartBit_) & tecVals_.sterMask_ ) == 2 ) {
400  return DetId( id.rawId() - 1 );
401  } else { return DetId(); }
402  }
const TECValues tecVals_
Definition: DetId.h:18
std::vector<unsigned int> TrackerTopology::tecPetalInfo ( const DetId id) const
inline

Definition at line 405 of file TrackerTopology.h.

References pileupDistInMC::num, tecOrder(), and tecPetalNumber().

Referenced by SiStripLAProfileBooker::analyze(), TrackerGeometryCompare::fillIdentifiers(), TrackerOfflineValidationSummary::fillTree(), align::tec::petalNumber(), TrackerOfflineValidation::setUpTreeMembers(), and align::tec::sideNumber().

405  {
406  std::vector<unsigned int> num;
407  num.push_back(tecOrder(id));
408  num.push_back(tecPetalNumber(id));
409  return num ;
410  }
unsigned int tecOrder(const DetId &id) const
unsigned int tecPetalNumber(const DetId &id) const
unsigned int TrackerTopology::tecPetalNumber ( const DetId id) const
inline
unsigned int TrackerTopology::tecRing ( const DetId id) const
inline

ring id

Definition at line 226 of file TrackerTopology.h.

References TrackerTopology::TECValues::ringMask_, TrackerTopology::TECValues::ringStartBit_, and tecVals_.

Referenced by FWTGeoRecoGeometryESProducer::addTECGeometry(), SiStripDigiValid::analyze(), SiStripBadAPVAlgorithmFromClusterOccupancy::extractBadAPVs(), SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::extractBadAPVSandStrips(), SiStripHotStripAlgorithmFromClusterOccupancy::extractBadStrips(), TrackerGeometryCompare::fillIdentifiers(), TrackerOfflineValidationSummary::fillTree(), SiStripFolderOrganizer::getFolderName(), SiStripFakeAPVParameters::getIndex(), SiStripLAProfileBooker::getlayer(), SiStripFolderOrganizer::getLayerFolderName(), SiStripCalibLorentzAngle::getNewObject(), SiStripFolderOrganizer::GetSubDetAndLayer(), SiStripFolderOrganizer::GetSubDetAndLayerThickness(), SiStripFolderOrganizer::GetSubDetAndRing(), SiStripHistoId::getSubdetid(), ctfseeding::HitExtractorSTRP::hits(), TrajectoryAtInvalidHit::isDoubleSided(), HitEff::isDoubleSided(), TrajectoryManager::makeSinglePSimHit(), ShallowClustersProducer::moduleVars::moduleVars(), AlignmentParameterSelector::outsideDetIdRanges(), PixelMatchNextLayers::PixelMatchNextLayers(), align::tec::ringNumber(), SiStripBadModuleConfigurableFakeESSource::selectDetectors(), SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::setBasicTreeParameters(), SiStripFolderOrganizer::setLayerFolder(), TrackerOfflineValidation::setUpTreeMembers(), ResidualRefitting::StoreTrackerRecHits(), tecIsDoubleSide(), and TrackerDpgAnalysis::toStringName().

226  {
227  return ((id.rawId()>>tecVals_.ringStartBit_) & tecVals_.ringMask_) ;
228  }
const TECValues tecVals_
uint32_t TrackerTopology::tecRPhi ( const DetId id) const
inline

Definition at line 330 of file TrackerTopology.h.

References TrackerTopology::TECValues::sterMask_, TrackerTopology::TECValues::sterStartBit_, and tecVals_.

Referenced by tecIsRPhi(), and tecUpper().

330  {
331  if ( ((id.rawId() >>tecVals_.sterStartBit_ ) & tecVals_.sterMask_ ) == 2 ) {
332  return ( (id.rawId()>>tecVals_.sterStartBit_) & tecVals_.sterMask_ );
333  } else { return 0; }
334  }
const TECValues tecVals_
unsigned int TrackerTopology::tecSide ( const DetId id) const
inline

Definition at line 184 of file TrackerTopology.h.

References TrackerTopology::TECValues::sideMask_, TrackerTopology::TECValues::sideStartBit_, and tecVals_.

Referenced by SiStripHitEffFromCalibTree::algoAnalyze(), SiStripGainFromData::algoBeginJob(), SiStripDigiValid::analyze(), SiStripQualityStatistics::analyze(), HitEff::analyze(), TrackingLayer::createFromDetId(), SiStripBadComponentsDQMServiceReader::detIdToString(), align::tec::endcapNumber(), SiStripQualityDQM::fillGrandSummaryMEs(), TrackerGeometryCompare::fillIdentifiers(), TrackerOfflineValidationSummary::fillTree(), MonitorTrackResidualsBase< pixel_or_strip >::findSubdetAndLayer(), SiStripCablingDQM::getActiveDetIds(), SiStripFolderOrganizer::getFolderName(), SiStripCorrelateBadStripAndNoise::getHistos(), SiStripPlotGain::getHistos(), SiStripCorrelateNoise::getHistos(), SiStripFolderOrganizer::getLayerFolderName(), SiStripBaseCondObjDQM::getLayerNameAndId(), SiStripBaseCondObjDQM::GetSameLayerDetId(), PrintRecoObjects::getString(), SiStripFolderOrganizer::GetSubDetAndLayer(), SiStripFolderOrganizer::GetSubDetAndLayerThickness(), SiStripFolderOrganizer::GetSubDetAndRing(), SiStripUtility::getSubDetectorTag(), SiStripFolderOrganizer::getSubDetFolderAndTag(), SiStripHistoId::getSubdetid(), GeometricSearchTracker::idToLayer(), SiStripDCSStatus::initialise(), TkAlCaOverlapTagger::layerFromId(), AlignmentParameterSelector::outsideDetIdRanges(), SiStripTrackerMapCreator::printBadModuleList(), SiStripTrackerMapCreator::printTopModules(), SiStripFolderOrganizer::setLayerFolder(), TrackerOfflineValidation::setUpTreeMembers(), tecIsZMinusSide(), and LaserDQM::trackerStatistics().

184  {
185  return ((id.rawId()>>tecVals_.sideStartBit_)&tecVals_.sideMask_);
186  }
const TECValues tecVals_
uint32_t TrackerTopology::tecStack ( const DetId id) const
inline

Definition at line 367 of file TrackerTopology.h.

References tecGlued().

367 { return tecGlued(id); }
uint32_t tecGlued(const DetId &id) const
uint32_t TrackerTopology::tecStereo ( const DetId id) const
inline
uint32_t TrackerTopology::tecUpper ( const DetId id) const
inline

Definition at line 340 of file TrackerTopology.h.

References tecRPhi().

340 { return tecRPhi(id); }
uint32_t tecRPhi(const DetId &id) const
unsigned int TrackerTopology::tecWheel ( const DetId id) const
inline

Definition at line 206 of file TrackerTopology.h.

References tecVals_, TrackerTopology::TECValues::wheelMask_, and TrackerTopology::TECValues::wheelStartBit_.

Referenced by SiStripHitEffFromCalibTree::algoAnalyze(), SiStripDigiValid::analyze(), SiStripQualityStatistics::analyze(), SiStripLAProfileBooker::analyze(), HitEff::checkLayer(), TrackingLayer::createFromDetId(), SiStripBadComponentsDQMServiceReader::detIdToString(), align::tec::diskNumber(), AlignmentStats::endJob(), SiStripBadAPVAlgorithmFromClusterOccupancy::extractBadAPVs(), SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::extractBadAPVSandStrips(), SiStripHotStripAlgorithmFromClusterOccupancy::extractBadStrips(), SiStripQualityDQM::fillGrandSummaryMEs(), TrackerGeometryCompare::fillIdentifiers(), TrackerOfflineValidationSummary::fillTree(), GlobalDigisProducer::fillTrk(), GlobalDigisAnalyzer::fillTrk(), GlobalRecHitsAnalyzer::fillTrk(), GlobalRecHitsProducer::fillTrk(), MonitorTrackResidualsBase< pixel_or_strip >::findSubdetAndLayer(), SiStripCablingDQM::getActiveDetIds(), SiStripFolderOrganizer::getFolderName(), SiStripCorrelateBadStripAndNoise::getHistos(), SiStripPlotGain::getHistos(), SiStripCorrelateNoise::getHistos(), SiStripFolderOrganizer::getLayerFolderName(), SiStripBaseCondObjDQM::getLayerNameAndId(), GlobalMuonRefitter::getRidOfSelectStationHits(), SiStripBaseCondObjDQM::GetSameLayerDetId(), PrintRecoObjects::getString(), SiStripFolderOrganizer::GetSubDetAndLayer(), SiStripFolderOrganizer::GetSubDetAndLayerThickness(), SiStripHistoId::getSubdetid(), GeometricSearchTracker::idToLayer(), TkAlCaOverlapTagger::layerFromId(), AlignmentPrescaler::layerFromId(), TrajectoryManager::makeSinglePSimHit(), ShallowClustersProducer::moduleVars::moduleVars(), AlignmentParameterSelector::outsideDetIdRanges(), PixelMatchNextLayers::PixelMatchNextLayers(), SiStripBadModuleConfigurableFakeESSource::selectDetectors(), SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::setBasicTreeParameters(), SiStripFolderOrganizer::setLayerFolder(), TrackerOfflineValidation::setUpTreeMembers(), TrackerDpgAnalysis::toStringName(), LaserDQM::trackerStatistics(), and TrackerAlignableId::typeAndLayerFromDetId().

206  {
207  return ((id.rawId()>>tecVals_.wheelStartBit_) & tecVals_.wheelMask_) ;
208  }
const TECValues tecVals_
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 510 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.

Referenced by SurveyDataReader::readFile(), and tibDetIdLayerComparator().

515  {
517  uint32_t rawid=id.rawId();
524  return DetId(rawid);
525  }
const TIBValues tibVals_
Detector identifier class for the strip tracker.
Definition: SiStripDetId.h:17
Definition: DetId.h:18
unsigned int layer(const DetId &id) const
Definition: vlib.h:208
std::pair<DetId, SameLayerComparator> TrackerTopology::tibDetIdLayerComparator ( uint32_t  layer) const
inline

Definition at line 571 of file TrackerTopology.h.

References tibDetId().

Referenced by ctfseeding::HitExtractorSTRP::hits(), CosmicLayerTriplets::init(), and CosmicLayerPairs::selectTIBHit().

571  {
572  return std::make_pair(tibDetId(layer, 1,1,1,1,1), SameLayerComparator(this));
573  }
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
unsigned int layer(const DetId &id) const
uint32_t TrackerTopology::tibGlued ( const DetId id) const
inline

Definition at line 343 of file TrackerTopology.h.

References reco::return(), TrackerTopology::TIBValues::sterMask_, TrackerTopology::TIBValues::sterStartBit_, and tibVals_.

Referenced by cms::ClusterMTCCFilter::filter(), SiStripGainCosmicCalculator::getNewObject(), tibIsDoubleSide(), and tibStack().

343  {
344  uint32_t testId = (id.rawId()>>tibVals_.sterStartBit_) & tibVals_.sterMask_;
345  return ( testId == 0 ) ? 0 : (id.rawId() - testId);
346  }
const TIBValues tibVals_
return(e1-e2)*(e1-e2)+dp *dp
bool TrackerTopology::tibIsDoubleSide ( const DetId id) const
inline
bool TrackerTopology::tibIsExternalString ( const DetId id) const
inline
bool TrackerTopology::tibIsInternalString ( const DetId id) const
inline
bool TrackerTopology::tibIsRPhi ( const DetId id) const
inline
bool TrackerTopology::tibIsStereo ( const DetId id) const
inline
bool TrackerTopology::tibIsZMinusSide ( const DetId id) const
inline
bool TrackerTopology::tibIsZPlusSide ( const DetId id) const
inline
unsigned int TrackerTopology::tibLayer ( const DetId id) const
inline

Definition at line 150 of file TrackerTopology.h.

References TrackerTopology::TIBValues::layerMask_, TrackerTopology::TIBValues::layerStartBit_, and tibVals_.

Referenced by SiStripHitEffFromCalibTree::algoAnalyze(), SiStripCalibLorentzAngle::algoBeginJob(), SiStripDigiValid::analyze(), SiStripQualityStatistics::analyze(), SiStripLAProfileBooker::analyze(), SiPixelErrorEstimation::analyze(), SiStripBaseCondObjDQM::bookSummaryProfileMEs(), HitEff::checkLayer(), TrackingLayer::createFromDetId(), SiStripBadComponentsDQMServiceReader::detIdToString(), AlignmentStats::endJob(), SiStripBadAPVAlgorithmFromClusterOccupancy::extractBadAPVs(), SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::extractBadAPVSandStrips(), SiStripHotStripAlgorithmFromClusterOccupancy::extractBadStrips(), SiStripQualityDQM::fillGrandSummaryMEs(), TrackerGeometryCompare::fillIdentifiers(), SiStripBackPlaneCorrectionDQM::fillMEsForLayer(), SiStripLorentzAngleDQM::fillMEsForLayer(), TrackerOfflineValidationSummary::fillTree(), GlobalDigisProducer::fillTrk(), GlobalDigisAnalyzer::fillTrk(), GlobalRecHitsAnalyzer::fillTrk(), GlobalRecHitsProducer::fillTrk(), cms::ClusterMTCCFilter::filter(), MonitorTrackResidualsBase< pixel_or_strip >::findSubdetAndLayer(), SiStripCablingDQM::getActiveDetIds(), SiStripFolderOrganizer::getFolderName(), SiStripCorrelateBadStripAndNoise::getHistos(), SiStripPlotGain::getHistos(), SiStripCorrelateNoise::getHistos(), SiStripFakeAPVParameters::getIndex(), SiStripLAProfileBooker::getlayer(), SiStripFolderOrganizer::getLayerFolderName(), SiStripBaseCondObjDQM::getLayerNameAndId(), SiStripGainCosmicCalculator::getNewObject(), SiStripCalibLorentzAngle::getNewObject(), GlobalMuonRefitter::getRidOfSelectStationHits(), SiStripBaseCondObjDQM::GetSameLayerDetId(), PrintRecoObjects::getString(), SiStripBaseCondObjDQM::getStringNameAndId(), SiStripFolderOrganizer::GetSubDetAndLayer(), SiStripFolderOrganizer::GetSubDetAndLayerThickness(), SiStripHistoId::getSubdetid(), align::tib::halfShellNumber(), GeometricSearchTracker::idToLayer(), TrajectoryAtInvalidHit::isDoubleSided(), HitEff::isDoubleSided(), TkAlCaOverlapTagger::layerFromId(), AlignmentPrescaler::layerFromId(), align::tib::layerNumber(), TrajectoryManager::makeSinglePSimHit(), ShallowClustersProducer::moduleVars::moduleVars(), AlignmentParameterSelector::outsideDetIdRanges(), SiStripElectronAlgo::projectPhiBand(), SiStripBadModuleConfigurableFakeESSource::selectDetectors(), SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::setBasicTreeParameters(), SiStripFolderOrganizer::setLayerFolder(), TrackerOfflineValidation::setUpTreeMembers(), ResidualRefitting::StoreTrackerRecHits(), align::tib::stringNumber(), tibIsDoubleSide(), MatchedHitRZCorrectionFromBending::tibMatchedHitZFixup(), TrackerDpgAnalysis::toStringName(), LaserDQM::trackerStatistics(), and TrackerAlignableId::typeAndLayerFromDetId().

150  {
151  return int((id.rawId()>>tibVals_.layerStartBit_) & tibVals_.layerMask_);
152  }
const TIBValues tibVals_
uint32_t TrackerTopology::tibLower ( const DetId id) const
inline

Definition at line 306 of file TrackerTopology.h.

References tibStereo().

306 { return tibStereo(id); }
uint32_t tibStereo(const DetId &id) const
unsigned int TrackerTopology::tibModule ( const DetId id) const
inline
unsigned int TrackerTopology::tibOrder ( const DetId id) const
inline
DetId TrackerTopology::tibPartnerDetId ( const DetId id) const
inline

Definition at line 372 of file TrackerTopology.h.

References TrackerTopology::TIBValues::sterMask_, TrackerTopology::TIBValues::sterStartBit_, and tibVals_.

372  {
373  if ( ((id.rawId()>>tibVals_.sterStartBit_) & tibVals_.sterMask_ ) == 1 ) {
374  return DetId( id.rawId() + 1 );
375  } else if ( ((id.rawId()>>tibVals_.sterStartBit_) & tibVals_.sterMask_ ) == 2 ) {
376  return DetId( id.rawId() - 1 );
377  } else { return DetId(); }
378  }
const TIBValues tibVals_
Definition: DetId.h:18
uint32_t TrackerTopology::tibRPhi ( const DetId id) const
inline

Definition at line 318 of file TrackerTopology.h.

References TrackerTopology::TIBValues::sterMask_, TrackerTopology::TIBValues::sterStartBit_, and tibVals_.

Referenced by tibIsRPhi(), and tibUpper().

318  {
319  if ( ((id.rawId() >>tibVals_.sterStartBit_ ) & tibVals_.sterMask_ ) == 2 ) {
320  return ( (id.rawId()>>tibVals_.sterStartBit_) & tibVals_.sterMask_ );
321  } else { return 0; }
322  }
const TIBValues tibVals_
unsigned int TrackerTopology::tibSide ( const DetId id) const
inline
uint32_t TrackerTopology::tibStack ( const DetId id) const
inline

Definition at line 364 of file TrackerTopology.h.

References tibGlued().

364 { return tibGlued(id); }
uint32_t tibGlued(const DetId &id) const
uint32_t TrackerTopology::tibStereo ( const DetId id) const
inline
unsigned int TrackerTopology::tibString ( const DetId id) const
inline
std::vector<unsigned int> TrackerTopology::tibStringInfo ( const DetId id) const
inline

Definition at line 423 of file TrackerTopology.h.

References pileupDistInMC::num, tibOrder(), tibSide(), and tibString().

Referenced by SiStripDigiValid::analyze(), SiStripLAProfileBooker::analyze(), TrackerGeometryCompare::fillIdentifiers(), TrackerOfflineValidationSummary::fillTree(), align::tib::halfBarrelNumber(), align::tib::halfShellNumber(), TrackerOfflineValidation::setUpTreeMembers(), align::tib::stringNumber(), and align::tib::surfaceNumber().

424  { std::vector<unsigned int> num;
425  num.push_back( tibSide(id) );
426  num.push_back( tibOrder(id) );
427  num.push_back(tibString(id));
428  return num ;
429  }
unsigned int tibString(const DetId &id) const
unsigned int tibSide(const DetId &id) const
unsigned int tibOrder(const DetId &id) const
uint32_t TrackerTopology::tibUpper ( const DetId id) const
inline

Definition at line 337 of file TrackerTopology.h.

References tibRPhi().

337 { return tibRPhi(id); }
uint32_t tibRPhi(const DetId &id) const
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 527 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_.

Referenced by SurveyDataReader::readFile(), and tidDetIdWheelComparator().

532  {
534  uint32_t rawid=id.rawId();
535  rawid |= (side& tidVals_.sideMask_) << tidVals_.sideStartBit_ |
541  return DetId(rawid);
542  }
unsigned int side(const DetId &id) const
Detector identifier class for the strip tracker.
Definition: SiStripDetId.h:17
Definition: DetId.h:18
unsigned int module_fw_bwStartBit_
const TIDValues tidVals_
Definition: vlib.h:208
std::pair<DetId, SameLayerComparator> TrackerTopology::tidDetIdWheelComparator ( uint32_t  side,
uint32_t  wheel 
) const
inline

Definition at line 575 of file TrackerTopology.h.

References tidDetId().

Referenced by ctfseeding::HitExtractorSTRP::hits().

575  {
576  return std::make_pair(tidDetId(side, wheel, 1,1,1,1), SameLayerComparator(this));
577  }
unsigned int side(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 TrackerTopology::tidGlued ( const DetId id) const
inline

Definition at line 358 of file TrackerTopology.h.

References reco::return(), TrackerTopology::TIDValues::sterMask_, TrackerTopology::TIDValues::sterStartBit_, and tidVals_.

Referenced by tidIsDoubleSide(), and tidStack().

358  {
359  uint32_t testId = (id.rawId()>>tidVals_.sterStartBit_) & tidVals_.sterMask_;
360  return ( testId == 0 ) ? 0 : (id.rawId() - testId);
361  }
return(e1-e2)*(e1-e2)+dp *dp
const TIDValues tidVals_
bool TrackerTopology::tidIsBackRing ( const DetId id) const
inline
bool TrackerTopology::tidIsDoubleSide ( const DetId id) const
inline

Definition at line 264 of file TrackerTopology.h.

References tidGlued(), and tidRing().

Referenced by AlignmentStats::endJob(), TrackerOfflineValidationSummary::fillTree(), TrackerOfflineValidation::setUpTreeMembers(), tidIsRPhi(), tidIsStereo(), and TrackerDpgAnalysis::toStringName().

264 { return tidGlued(id)==0 && (tidRing(id)==1 || tidRing(id)==2);}
unsigned int tidRing(const DetId &id) const
uint32_t tidGlued(const DetId &id) const
bool TrackerTopology::tidIsFrontRing ( const DetId id) const
inline

Definition at line 451 of file TrackerTopology.h.

References tidIsBackRing().

Referenced by TrackerDpgAnalysis::toStringName().

451 {return !tidIsBackRing(id);}
bool tidIsBackRing(const DetId &id) const
bool TrackerTopology::tidIsRPhi ( const DetId id) const
inline

Definition at line 286 of file TrackerTopology.h.

References tidIsDoubleSide(), and tidRPhi().

Referenced by TrackingParticleNumberOfLayers::calculate(), SiStripBadModuleConfigurableFakeESSource::selectDetectors(), and TrackerDpgAnalysis::toStringName().

286 { return tidRPhi(id)!=0 && !tidIsDoubleSide(id);}
uint32_t tidRPhi(const DetId &id) const
bool tidIsDoubleSide(const DetId &id) const
bool TrackerTopology::tidIsStereo ( const DetId id) const
inline
bool TrackerTopology::tidIsZMinusSide ( const DetId id) const
inline
bool TrackerTopology::tidIsZPlusSide ( const DetId id) const
inline
uint32_t TrackerTopology::tidLower ( const DetId id) const
inline

Definition at line 307 of file TrackerTopology.h.

References tidStereo().

307 { return tidStereo(id); }
uint32_t tidStereo(const DetId &id) const
unsigned int TrackerTopology::tidModule ( const DetId id) const
inline
std::vector<unsigned int> TrackerTopology::tidModuleInfo ( const DetId id) const
inline

Definition at line 440 of file TrackerTopology.h.

References pileupDistInMC::num, tidModule(), and tidOrder().

Referenced by SiStripLAProfileBooker::analyze(), TrackerGeometryCompare::fillIdentifiers(), TrackerOfflineValidationSummary::fillTree(), align::tid::moduleNumber(), TrackerOfflineValidation::setUpTreeMembers(), and align::tid::sideNumber().

440  {
441  std::vector<unsigned int> num;
442  num.push_back( tidOrder(id) );
443  num.push_back( tidModule(id) );
444  return num ;
445  }
unsigned int tidModule(const DetId &id) const
unsigned int tidOrder(const DetId &id) const
unsigned int TrackerTopology::tidOrder ( const DetId id) const
inline
DetId TrackerTopology::tidPartnerDetId ( const DetId id) const
inline

Definition at line 388 of file TrackerTopology.h.

References TrackerTopology::TIDValues::sterMask_, TrackerTopology::TIDValues::sterStartBit_, and tidVals_.

388  {
389  if ( ((id.rawId()>>tidVals_.sterStartBit_) & tidVals_.sterMask_ ) == 1 ) {
390  return DetId( id.rawId() + 1 );
391  } else if ( ((id.rawId()>>tidVals_.sterStartBit_) & tidVals_.sterMask_ ) == 2 ) {
392  return DetId( id.rawId() - 1 );
393  } else { return DetId(); }
394  }
Definition: DetId.h:18
const TIDValues tidVals_
unsigned int TrackerTopology::tidRing ( const DetId id) const
inline

Definition at line 229 of file TrackerTopology.h.

References TrackerTopology::TIDValues::ringMask_, TrackerTopology::TIDValues::ringStartBit_, and tidVals_.

Referenced by FWTGeoRecoGeometryESProducer::addTIDGeometry(), SiStripDigiValid::analyze(), SiStripBadAPVAlgorithmFromClusterOccupancy::extractBadAPVs(), SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::extractBadAPVSandStrips(), SiStripHotStripAlgorithmFromClusterOccupancy::extractBadStrips(), TrackerGeometryCompare::fillIdentifiers(), TrackerOfflineValidationSummary::fillTree(), SiStripFolderOrganizer::getFolderName(), SiStripFakeAPVParameters::getIndex(), SiStripLAProfileBooker::getlayer(), SiStripFolderOrganizer::getLayerFolderName(), SiStripFolderOrganizer::GetSubDetAndLayer(), SiStripFolderOrganizer::GetSubDetAndRing(), SiStripHistoId::getSubdetid(), ctfseeding::HitExtractorSTRP::hits(), TrajectoryAtInvalidHit::isDoubleSided(), HitEff::isDoubleSided(), TrajectoryManager::makeSinglePSimHit(), ShallowClustersProducer::moduleVars::moduleVars(), AlignmentParameterSelector::outsideDetIdRanges(), PixelMatchNextLayers::PixelMatchNextLayers(), align::tid::ringNumber(), SiStripBadModuleConfigurableFakeESSource::selectDetectors(), SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::setBasicTreeParameters(), SiStripFolderOrganizer::setLayerFolder(), TrackerOfflineValidation::setUpTreeMembers(), ResidualRefitting::StoreTrackerRecHits(), tidIsDoubleSide(), and TrackerDpgAnalysis::toStringName().

229  {
230  return ((id.rawId()>>tidVals_.ringStartBit_) & tidVals_.ringMask_) ;
231  }
const TIDValues tidVals_
uint32_t TrackerTopology::tidRPhi ( const DetId id) const
inline

Definition at line 324 of file TrackerTopology.h.

References TrackerTopology::TIDValues::sterMask_, TrackerTopology::TIDValues::sterStartBit_, and tidVals_.

Referenced by tidIsRPhi(), and tidUpper().

324  {
325  if ( ((id.rawId() >>tidVals_.sterStartBit_ ) & tidVals_.sterMask_ ) == 2 ) {
326  return ( (id.rawId()>>tidVals_.sterStartBit_) & tidVals_.sterMask_ );
327  } else { return 0; }
328  }
const TIDValues tidVals_
unsigned int TrackerTopology::tidSide ( const DetId id) const
inline

Definition at line 192 of file TrackerTopology.h.

References TrackerTopology::TIDValues::sideMask_, TrackerTopology::TIDValues::sideStartBit_, and tidVals_.

Referenced by FWTGeoRecoGeometryESProducer::addTIDGeometry(), SiStripHitEffFromCalibTree::algoAnalyze(), SiStripDigiValid::analyze(), SiStripQualityStatistics::analyze(), TrackingLayer::createFromDetId(), SiStripBadComponentsDQMServiceReader::detIdToString(), align::tid::endcapNumber(), SiStripQualityDQM::fillGrandSummaryMEs(), TrackerGeometryCompare::fillIdentifiers(), TrackerOfflineValidationSummary::fillTree(), MonitorTrackResidualsBase< pixel_or_strip >::findSubdetAndLayer(), SiStripCablingDQM::getActiveDetIds(), SiStripFolderOrganizer::getFolderName(), SiStripCorrelateBadStripAndNoise::getHistos(), SiStripPlotGain::getHistos(), SiStripCorrelateNoise::getHistos(), SiStripFolderOrganizer::getLayerFolderName(), SiStripBaseCondObjDQM::getLayerNameAndId(), SiStripBaseCondObjDQM::GetSameLayerDetId(), PrintRecoObjects::getString(), SiStripFolderOrganizer::GetSubDetAndLayer(), SiStripFolderOrganizer::GetSubDetAndLayerThickness(), SiStripFolderOrganizer::GetSubDetAndRing(), SiStripUtility::getSubDetectorTag(), SiStripFolderOrganizer::getSubDetFolderAndTag(), SiStripHistoId::getSubdetid(), GeometricSearchTracker::idToLayer(), TkAlCaOverlapTagger::layerFromId(), AlignmentPrescaler::layerFromId(), AlignmentParameterSelector::outsideDetIdRanges(), SiStripTrackerMapCreator::printBadModuleList(), SiStripTrackerMapCreator::printTopModules(), SiStripFolderOrganizer::setLayerFolder(), TrackerOfflineValidation::setUpTreeMembers(), ResidualRefitting::StoreTrackerRecHits(), and tidIsZMinusSide().

192  {
193  return ((id.rawId()>>tidVals_.sideStartBit_)&tidVals_.sideMask_);
194  }
const TIDValues tidVals_
uint32_t TrackerTopology::tidStack ( const DetId id) const
inline

Definition at line 365 of file TrackerTopology.h.

References tidGlued().

365 { return tidGlued(id); }
uint32_t tidGlued(const DetId &id) const
uint32_t TrackerTopology::tidStereo ( const DetId id) const
inline
uint32_t TrackerTopology::tidUpper ( const DetId id) const
inline

Definition at line 338 of file TrackerTopology.h.

References tidRPhi().

338 { return tidRPhi(id); }
uint32_t tidRPhi(const DetId &id) const
unsigned int TrackerTopology::tidWheel ( const DetId id) const
inline

Definition at line 209 of file TrackerTopology.h.

References tidVals_, TrackerTopology::TIDValues::wheelMask_, and TrackerTopology::TIDValues::wheelStartBit_.

Referenced by FWTGeoRecoGeometryESProducer::addTIDGeometry(), SiStripHitEffFromCalibTree::algoAnalyze(), SiStripDigiValid::analyze(), SiStripQualityStatistics::analyze(), SiStripLAProfileBooker::analyze(), HitEff::checkLayer(), TrackingLayer::createFromDetId(), SiStripBadComponentsDQMServiceReader::detIdToString(), align::tid::diskNumber(), AlignmentStats::endJob(), SiStripBadAPVAlgorithmFromClusterOccupancy::extractBadAPVs(), SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::extractBadAPVSandStrips(), SiStripHotStripAlgorithmFromClusterOccupancy::extractBadStrips(), SiStripQualityDQM::fillGrandSummaryMEs(), TrackerGeometryCompare::fillIdentifiers(), TrackerOfflineValidationSummary::fillTree(), GlobalDigisProducer::fillTrk(), GlobalDigisAnalyzer::fillTrk(), GlobalRecHitsAnalyzer::fillTrk(), GlobalRecHitsProducer::fillTrk(), MonitorTrackResidualsBase< pixel_or_strip >::findSubdetAndLayer(), SiStripCablingDQM::getActiveDetIds(), SiStripFolderOrganizer::getFolderName(), SiStripCorrelateBadStripAndNoise::getHistos(), SiStripPlotGain::getHistos(), SiStripCorrelateNoise::getHistos(), SiStripFolderOrganizer::getLayerFolderName(), SiStripBaseCondObjDQM::getLayerNameAndId(), GlobalMuonRefitter::getRidOfSelectStationHits(), SiStripBaseCondObjDQM::GetSameLayerDetId(), PrintRecoObjects::getString(), SiStripFolderOrganizer::GetSubDetAndLayer(), SiStripFolderOrganizer::GetSubDetAndLayerThickness(), SiStripHistoId::getSubdetid(), GeometricSearchTracker::idToLayer(), TkAlCaOverlapTagger::layerFromId(), AlignmentPrescaler::layerFromId(), TrajectoryManager::makeSinglePSimHit(), ShallowClustersProducer::moduleVars::moduleVars(), AlignmentParameterSelector::outsideDetIdRanges(), SiStripBadModuleConfigurableFakeESSource::selectDetectors(), SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::setBasicTreeParameters(), SiStripFolderOrganizer::setLayerFolder(), TrackerOfflineValidation::setUpTreeMembers(), ResidualRefitting::StoreTrackerRecHits(), TrackerDpgAnalysis::toStringName(), and TrackerAlignableId::typeAndLayerFromDetId().

209  {
210  return ((id.rawId()>>tidVals_.wheelStartBit_) & tidVals_.wheelMask_) ;
211  }
const TIDValues tidVals_
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 544 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.

Referenced by tobDetIdLayerComparator().

548  {
550  uint32_t rawid=id.rawId();
556  return DetId(rawid);
557  }
Detector identifier class for the strip tracker.
Definition: SiStripDetId.h:17
const TOBValues tobVals_
Definition: DetId.h:18
unsigned int layer(const DetId &id) const
Definition: vlib.h:208
std::pair<DetId, SameLayerComparator> TrackerTopology::tobDetIdLayerComparator ( uint32_t  layer) const
inline

Definition at line 579 of file TrackerTopology.h.

References tobDetId().

Referenced by ctfseeding::HitExtractorSTRP::hits(), CosmicLayerTriplets::init(), and CosmicLayerPairs::selectTOBHit().

579  {
580  return std::make_pair(tobDetId(layer, 1,1,1,1), SameLayerComparator(this));
581  }
DetId tobDetId(uint32_t layer, uint32_t rod_fw_bw, uint32_t rod, uint32_t module, uint32_t ster) const
unsigned int layer(const DetId &id) const
uint32_t TrackerTopology::tobGlued ( const DetId id) const
inline

Definition at line 353 of file TrackerTopology.h.

References reco::return(), TrackerTopology::TOBValues::sterMask_, TrackerTopology::TOBValues::sterStartBit_, and tobVals_.

Referenced by tobIsDoubleSide(), and tobStack().

353  {
354  uint32_t testId = (id.rawId()>>tobVals_.sterStartBit_) & tobVals_.sterMask_;
355  return ( testId == 0 ) ? 0 : (id.rawId() - testId);
356  }
const TOBValues tobVals_
return(e1-e2)*(e1-e2)+dp *dp
bool TrackerTopology::tobIsDoubleSide ( const DetId id) const
inline

Definition at line 261 of file TrackerTopology.h.

References tobGlued(), and tobLayer().

Referenced by SiPixelErrorEstimation::analyze(), AlignmentStats::endJob(), TrackerOfflineValidationSummary::fillTree(), TrackerOfflineValidation::setUpTreeMembers(), tobIsRPhi(), tobIsStereo(), and TrackerDpgAnalysis::toStringName().

261 { return tobGlued(id)==0 && (tobLayer(id)==1 || tobLayer(id)==2);}
uint32_t tobGlued(const DetId &id) const
unsigned int tobLayer(const DetId &id) const
bool TrackerTopology::tobIsRPhi ( const DetId id) const
inline
bool TrackerTopology::tobIsStereo ( const DetId id) const
inline
bool TrackerTopology::tobIsZMinusSide ( const DetId id) const
inline
bool TrackerTopology::tobIsZPlusSide ( const DetId id) const
inline
unsigned int TrackerTopology::tobLayer ( const DetId id) const
inline

Definition at line 147 of file TrackerTopology.h.

References TrackerTopology::TOBValues::layerMask_, TrackerTopology::TOBValues::layerStartBit_, and tobVals_.

Referenced by SiStripHitEffFromCalibTree::algoAnalyze(), SiStripCalibLorentzAngle::algoBeginJob(), SiStripDigiValid::analyze(), SiStripQualityStatistics::analyze(), SiStripLAProfileBooker::analyze(), SiPixelErrorEstimation::analyze(), SiStripBaseCondObjDQM::bookSummaryProfileMEs(), HitEff::checkLayer(), TrackingLayer::createFromDetId(), SiStripBadComponentsDQMServiceReader::detIdToString(), AlignmentStats::endJob(), SiStripBadAPVAlgorithmFromClusterOccupancy::extractBadAPVs(), SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::extractBadAPVSandStrips(), SiStripHotStripAlgorithmFromClusterOccupancy::extractBadStrips(), SiStripQualityDQM::fillGrandSummaryMEs(), TrackerGeometryCompare::fillIdentifiers(), SiStripBackPlaneCorrectionDQM::fillMEsForLayer(), SiStripLorentzAngleDQM::fillMEsForLayer(), TrackerOfflineValidationSummary::fillTree(), GlobalDigisProducer::fillTrk(), GlobalDigisAnalyzer::fillTrk(), GlobalRecHitsAnalyzer::fillTrk(), GlobalRecHitsProducer::fillTrk(), cms::ClusterMTCCFilter::filter(), MonitorTrackResidualsBase< pixel_or_strip >::findSubdetAndLayer(), SiStripCablingDQM::getActiveDetIds(), SiStripFolderOrganizer::getFolderName(), SiStripCorrelateBadStripAndNoise::getHistos(), SiStripPlotGain::getHistos(), SiStripCorrelateNoise::getHistos(), SiStripFakeAPVParameters::getIndex(), SiStripLAProfileBooker::getlayer(), SiStripFolderOrganizer::getLayerFolderName(), SiStripBaseCondObjDQM::getLayerNameAndId(), SiStripGainCosmicCalculator::getNewObject(), SiStripCalibLorentzAngle::getNewObject(), GlobalMuonRefitter::getRidOfSelectStationHits(), SiStripBaseCondObjDQM::GetSameLayerDetId(), PrintRecoObjects::getString(), SiStripBaseCondObjDQM::getStringNameAndId(), SiStripFolderOrganizer::GetSubDetAndLayer(), SiStripFolderOrganizer::GetSubDetAndLayerThickness(), SiStripHistoId::getSubdetid(), GeometricSearchTracker::idToLayer(), TrajectoryAtInvalidHit::isDoubleSided(), HitEff::isDoubleSided(), TkAlCaOverlapTagger::layerFromId(), AlignmentPrescaler::layerFromId(), align::tob::layerNumber(), TrajectoryManager::makeSinglePSimHit(), ShallowClustersProducer::moduleVars::moduleVars(), AlignmentParameterSelector::outsideDetIdRanges(), SiStripElectronAlgo::projectPhiBand(), SiStripBadModuleConfigurableFakeESSource::selectDetectors(), SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::setBasicTreeParameters(), SiStripFolderOrganizer::setLayerFolder(), TrackerOfflineValidation::setUpTreeMembers(), ResidualRefitting::StoreTrackerRecHits(), tobIsDoubleSide(), TrackerDpgAnalysis::toStringName(), LaserDQM::trackerStatistics(), and TrackerAlignableId::typeAndLayerFromDetId().

147  {
148  return int((id.rawId()>>tobVals_.layerStartBit_) & tobVals_.layerMask_);
149  }
const TOBValues tobVals_
uint32_t TrackerTopology::tobLower ( const DetId id) const
inline

Definition at line 308 of file TrackerTopology.h.

References tobStereo().

308 { return tobStereo(id); }
uint32_t tobStereo(const DetId &id) const
unsigned int TrackerTopology::tobModule ( const DetId id) const
inline
DetId TrackerTopology::tobPartnerDetId ( const DetId id) const
inline

Definition at line 380 of file TrackerTopology.h.

References TrackerTopology::TOBValues::sterMask_, TrackerTopology::TOBValues::sterStartBit_, and tobVals_.

380  {
381  if ( ((id.rawId()>>tobVals_.sterStartBit_) & tobVals_.sterMask_ ) == 1 ) {
382  return DetId( id.rawId() + 1 );
383  } else if ( ((id.rawId()>>tobVals_.sterStartBit_) & tobVals_.sterMask_ ) == 2 ) {
384  return DetId( id.rawId() - 1 );
385  } else { return DetId(); }
386  }
const TOBValues tobVals_
Definition: DetId.h:18
unsigned int TrackerTopology::tobRod ( const DetId id) const
inline
std::vector<unsigned int> TrackerTopology::tobRodInfo ( const DetId id) const
inline

Definition at line 242 of file TrackerTopology.h.

References pileupDistInMC::num, tobRod(), and tobSide().

Referenced by SiStripDigiValid::analyze(), SiStripLAProfileBooker::analyze(), TrackerGeometryCompare::fillIdentifiers(), TrackerOfflineValidationSummary::fillTree(), align::tob::halfBarrelNumber(), align::tob::rodNumber(), and TrackerOfflineValidation::setUpTreeMembers().

242  {
243  std::vector<unsigned int> num;
244  num.push_back( tobSide(id) );
245  num.push_back( tobRod(id) );
246  return num ;
247  }
unsigned int tobSide(const DetId &id) const
unsigned int tobRod(const DetId &id) const
uint32_t TrackerTopology::tobRPhi ( const DetId id) const
inline

Definition at line 312 of file TrackerTopology.h.

References TrackerTopology::TOBValues::sterMask_, TrackerTopology::TOBValues::sterStartBit_, and tobVals_.

Referenced by tobIsRPhi(), and tobUpper().

312  {
313  if ( ((id.rawId() >>tobVals_.sterStartBit_ ) & tobVals_.sterMask_ ) == 2 ) {
314  return ( (id.rawId()>>tobVals_.sterStartBit_) & tobVals_.sterMask_ );
315  } else { return 0; }
316  }
const TOBValues tobVals_
unsigned int TrackerTopology::tobSide ( const DetId id) const
inline
uint32_t TrackerTopology::tobStack ( const DetId id) const
inline

Definition at line 366 of file TrackerTopology.h.

References tobGlued().

366 { return tobGlued(id); }
uint32_t tobGlued(const DetId &id) const
uint32_t TrackerTopology::tobStereo ( const DetId id) const
inline
uint32_t TrackerTopology::tobUpper ( const DetId id) const
inline

Definition at line 339 of file TrackerTopology.h.

References tobRPhi().

339 { return tobRPhi(id); }
uint32_t tobRPhi(const DetId &id) const
uint32_t TrackerTopology::upper ( const DetId id) const

Member Data Documentation

const BitmaskAndSubdet TrackerTopology::bits_per_field[DETID_FIELDS_MAX]
private

Definition at line 619 of file TrackerTopology.h.

Referenced by getField(), and hasField().

const PixelBarrelValues TrackerTopology::pbVals_
private

Definition at line 606 of file TrackerTopology.h.

Referenced by pxbDetId(), pxbLadder(), pxbLayer(), pxbModule(), and TrackerTopology().

const PixelEndcapValues TrackerTopology::pfVals_
private
const TECValues TrackerTopology::tecVals_
private
const TIBValues TrackerTopology::tibVals_
private
const TIDValues TrackerTopology::tidVals_
private
const TOBValues TrackerTopology::tobVals_
private