CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | Friends
GeomDet Class Reference

#include <GeomDet.h>

Inheritance diagram for GeomDet:
BeamSpotGeomDet CSCChamber CSCLayer DTChamber DTLayer DTSuperLayer GEMChamber GEMEtaPartition GEMSuperChamber KFBasedPixelFitter::MyBeamSpotGeomDet ME0Chamber ME0EtaPartition ME0Layer MuonGeomDet RPCChamber RPCRoll TrackerGeomDet

Public Types

using SubDetector = GeomDetEnumerators::SubDetector
 

Public Member Functions

AlignmentPositionError const * alignmentPositionError () const
 Return pointer to alignment errors. More...
 
virtual const GeomDetcomponent (DetId) const
 Returns a component GeomDet given its DetId, if existing. More...
 
virtual std::vector< const GeomDet * > components () const
 Returns direct components, if any. More...
 
int gdetIndex () const
 
DetId geographicalId () const
 The label of this GeomDet. More...
 
 GeomDet (const ReferenceCountingPointer< Plane > &plane)
 
 GeomDet (Plane *plane)
 
int index () const
 
virtual bool isLeaf () const
 is a Unit More...
 
const Surface::PositionTypeposition () const
 The position (origin of the R.F.) More...
 
const Surface::RotationTyperotation () const
 The rotation defining the local R.F. More...
 
void setGdetIndex (int i)
 
void setIndex (int i)
 
const PlanespecificSurface () const
 Same as surface(), kept for backward compatibility. More...
 
virtual SubDetector subDetector () const
 Which subdetector. More...
 
const Planesurface () const
 The nominal surface of the GeomDet. More...
 
virtual const SurfaceDeformationsurfaceDeformation () const
 
GlobalPoint toGlobal (const Local2DPoint &lp) const
 Conversion to the global R.F. from the R.F. of the GeomDet. More...
 
GlobalPoint toGlobal (const Local3DPoint &lp) const
 Conversion to the global R.F. from the R.F. of the GeomDet. More...
 
GlobalVector toGlobal (const LocalVector &lv) const
 Conversion to the global R.F. from the R.F. of the GeomDet. More...
 
LocalPoint toLocal (const GlobalPoint &gp) const
 Conversion to the R.F. of the GeomDet. More...
 
LocalVector toLocal (const GlobalVector &gv) const
 Conversion to the R.F. of the GeomDet. More...
 
virtual const Topologytopology () const
 
virtual const GeomDetTypetype () const
 
virtual ~GeomDet ()
 

Protected Member Functions

virtual bool setAlignmentPositionError (const AlignmentPositionError &ape)
 
void setDetId (DetId id)
 

Private Member Functions

void move (const GlobalVector &displacement)
 
void rotate (const Surface::RotationType &rotation)
 
void setPosition (const Surface::PositionType &position, const Surface::RotationType &rotation)
 
virtual void setSurfaceDeformation (const SurfaceDeformation *deformation)
 

Private Attributes

DetId m_detId
 
int m_gdetIndex = -1
 
int m_index = -1
 
AlignmentPositionErrortheAlignmentPositionError = nullptr
 
ReferenceCountingPointer< PlanethePlane
 

Friends

class DetPositioner
 Alignment part of interface, available only to friend. More...
 

Detailed Description

Base class for GeomDetUnit and for composite GeomDet s.

Definition at line 27 of file GeomDet.h.

Member Typedef Documentation

◆ SubDetector

Definition at line 29 of file GeomDet.h.

Constructor & Destructor Documentation

◆ GeomDet() [1/2]

GeomDet::GeomDet ( Plane plane)
inlineexplicit

Definition at line 31 of file GeomDet.h.

31 : thePlane(plane) {}

◆ GeomDet() [2/2]

GeomDet::GeomDet ( const ReferenceCountingPointer< Plane > &  plane)
inlineexplicit

Definition at line 32 of file GeomDet.h.

32 : thePlane(plane) {}

◆ ~GeomDet()

GeomDet::~GeomDet ( )
virtual

Definition at line 5 of file GeomDet.cc.

References theAlignmentPositionError.

Member Function Documentation

◆ alignmentPositionError()

AlignmentPositionError const* GeomDet::alignmentPositionError ( ) const
inline

◆ component()

virtual const GeomDet* GeomDet::component ( DetId  ) const
inlinevirtual

Returns a component GeomDet given its DetId, if existing.

Reimplemented in DTChamber, DTSuperLayer, GEMSuperChamber, CSCChamber, GEMChamber, RPCChamber, ME0Chamber, and ME0Layer.

Definition at line 77 of file GeomDet.h.

77 { return nullptr; }

◆ components()

virtual std::vector<const GeomDet*> GeomDet::components ( ) const
inlinevirtual

◆ gdetIndex()

int GeomDet::gdetIndex ( ) const
inline

Definition at line 87 of file GeomDet.h.

87 { return m_gdetIndex; }

References m_gdetIndex.

Referenced by PixelHitMatcher::operator()().

◆ geographicalId()

DetId GeomDet::geographicalId ( ) const
inline

The label of this GeomDet.

Definition at line 64 of file GeomDet.h.

64 { return m_detId; }

References m_detId.

Referenced by SiPixelDigitizerAlgorithm::accumulateSimHits(), Phase2TrackerDigitizerAlgorithm::accumulateSimHits(), SiStripDigitizerAlgorithm::accumulateSimHits(), ME0Geometry::add(), RPCGeometry::add(), DTGeometry::add(), GEMGeometry::add(), PixelDigitizerAlgorithm::add_cross_talk(), Phase2TrackerDigitizerAlgorithm::add_cross_talk(), Phase2TrackerDigitizerAlgorithm::add_noise(), SiPixelDigitizerAlgorithm::add_noise(), Phase2TrackerDigitizerAlgorithm::add_noisy_cells(), CreateIdealTkAlRecords::addAlignmentInfo(), FWRecoGeometryESProducer::addCSCGeometry(), CSCGeometry::addDet(), FWTGeoRecoGeometryESProducer::addGEMGeometry(), FWRecoGeometryESProducer::addPixelBarrelGeometry(), FWRecoGeometryESProducer::addPixelForwardGeometry(), FWRecoGeometryESProducer::addRPCGeometry(), FWTGeoRecoGeometryESProducer::addRPCGeometry(), FWRecoGeometryESProducer::addTECGeometry(), FWRecoGeometryESProducer::addTIBGeometry(), FWRecoGeometryESProducer::addTIDGeometry(), FWRecoGeometryESProducer::addTOBGeometry(), AlignableDet::AlignableDet(), AlignableNavigator::alignableFromGeomDet(), AlignableSiStripDet::AlignableSiStripDet(), CkfDebugger::analyseRecHitExistance(), CkfDebugger::analyseRecHitNotFound(), SiStripNoiseNormalizedWithApvGainBuilder::analyze(), SiStripApvGainBuilderFromTag::analyze(), DuplicateRecHits::analyze(), ListIds::analyze(), SiPixelDetInfoFileWriter::beginRun(), SiStripDetInfoFileWriter::beginRun(), AlignableTrackerBuilder::buildPixelDetectorAlignable(), AlignableTrackerBuilder::buildStripDetectorAlignable(), PixelCPEClusterRepair::checkRecommend2D(), TkPixelMeasurementDet::compHits(), SiPixelDigitizerAlgorithm::digitize(), Phase2TrackerDigitizerAlgorithm::digitize(), SiStripDigitizerAlgorithm::digitize(), PreMixingSiStripWorker::DMinitializeDetUnit(), shallow::drift(), StripCPE::driftDirection(), Phase2StripCPE::driftDirection(), Phase2TrackerDigitizerAlgorithm::DriftDirection(), PixelCPEBase::driftDirection(), SiPixelDigitizerAlgorithm::DriftDirection(), SiStripLorentzAngleCalibration::effectiveThickness(), FakeCPE::Map::encode(), OccupancyPlots::endRun(), FakeCPE::Map::error(), ApeEstimator::fillHitVariables(), StripCPE::fillParams(), ClusterShapeHitFilter::fillPixelData(), ClusterShapeHitFilter::fillStripData(), CSCEfficiency::filter(), GenericProjectedRecHit2D::geographicalId(), StripCPE::getAlgoParam(), ClusterShapeHitFilter::getDrift(), LayerMeasurements::groupedMeasurements(), MuonShowerInformationFiller::hitsFromSegments(), CSCChamber::id(), Pixel3DDigitizerAlgorithm::induce_signal(), Phase2TrackerDigitizerAlgorithm::induce_signal(), SiPixelDigitizerAlgorithm::induce_signal(), MeasurementTrackerImpl::initGluedDet(), SiStripDigitizerAlgorithm::initializeDetUnit(), MeasurementTrackerImpl::initStackDet(), ProjectedSiStripRecHit2D::isMono(), CkfDebugger::layer(), PixelCPEGeneric::localError(), PixelCPETemplateReco::localPosition(), TrajectoryManager::makeSinglePSimHit(), TkGluedMeasurementDet::measurements(), MuonDetLayerMeasurements::measurements(), Phase2TrackerDigitizerAlgorithm::module_killing_DB(), CkfDebugger::nextCorrectHits(), MuonSeedCleaner::NRecHitsFromSegment(), ETLDetLayerGeometryBuilder::orderGeomDets(), SiPixelDigitizerAlgorithm::pixel_aging(), Phase2TrackerDigitizerAlgorithm::pixel_inefficiency(), SiPixelDigitizerAlgorithm::pixel_inefficiency(), VectorHitBuilderAlgorithmBase::printCluster(), SiPixelFedCablingMapBuilder::produce(), L2MuonSeedGeneratorFromL1T::produce(), L2MuonSeedGenerator::produce(), MuonSimHitProducer::produce(), ProjectedSiStripRecHit2D::ProjectedSiStripRecHit2D(), FastTrackerRecHitMatcher::projectOnly(), TSGForRoadSearch::pushTrajectorySeed(), PreMixingSiStripWorker::put(), TkGluedMeasurementDet::rawId(), TkStackMeasurementDet::recHits(), TkPhase2OTMeasurementDet::recHits(), MTDDetLayerMeasurements::recHits(), MuonDetLayerMeasurements::recHits(), MuonMillepedeAlgorithm::run(), MuonDTLocalMillepedeAlgorithm::run(), DigiSimLinkAlgorithm::run(), MuonSeedCleaner::SeedCandidates(), CSCBaseElectronicsSim::setLayer(), setSurfaceDeformation(), PixelTemplateSmearerBase::smearHit(), PixelTemplateSmearerBase::smearMergeGroup(), TracktoRPC::thePoints(), TrajectoryAtInvalidHit::TrajectoryAtInvalidHit(), MuonTransientTrackingRecHit::transientHits(), AlignableDet::update(), AlignableDetUnit::update(), AlignableComposite::update(), and ValidateGeometry::validateCSCLayerGeometry().

◆ index()

int GeomDet::index ( ) const
inline

◆ isLeaf()

virtual bool GeomDet::isLeaf ( ) const
inlinevirtual

is a Unit

Reimplemented in PixelGeomDetUnit, MTDGeomDetUnit, StripGeomDetUnit, GluedGeomDet, and StackGeomDet.

Definition at line 70 of file GeomDet.h.

70 { return components().empty(); }

References components().

Referenced by MeasurementTrackerImpl::addDets(), and AlignableTrackerBuilder::buildPixelDetectorAlignable().

◆ move()

void GeomDet::move ( const GlobalVector displacement)
private

Relative displacement (with respect to current position). Does not move components (if any).

Definition at line 7 of file GeomDet.cc.

7  {
8  //
9  // Should recreate the surface like the set* methods ?
10  //
11  thePlane->move(displacement);
12 }

References thePlane.

Referenced by DetPositioner::moveGeomDet().

◆ position()

const Surface::PositionType& GeomDet::position ( ) const
inline

The position (origin of the R.F.)

Definition at line 43 of file GeomDet.h.

43 { return surface().position(); }

References GloballyPositioned< T >::position(), and surface().

Referenced by CreateIdealTkAlRecords::addAlignmentInfo(), CkfDebugger::analyseCompatibleMeasurements(), ListIds::analyze(), ME0SegmentBuilder::build(), MuonRPCDetLayerGeometryBuilder::buildBarrelLayers(), MuonCSCDetLayerGeometryBuilder::buildLayer(), ETLDetLayerGeometryBuilder::buildLayer(), MuonGEMDetLayerGeometryBuilder::buildLayer(), MuonRPCDetLayerGeometryBuilder::buildLayer(), BTLDetLayerGeometryBuilder::buildLayers(), MuonDTDetLayerGeometryBuilder::buildLayers(), CSCSegAlgoTC::buildSegments(), CSCSegAlgoSK::buildSegments(), CSCSegAlgoDF::buildSegments(), CSCSegAlgoRU::buildSegments(), GEMSuperChamber::computeDeltaPhi(), ME0Chamber::computeDeltaPhi(), DTTrigGeomUtils::DTTrigGeomUtils(), DTTimingExtractor::fillTiming(), TrackerOfflineValidationSummary::fillTree(), StubPtConsistency::getConsistency(), MuonChamberResidual::hitposition(), MuonCosmicCompatibilityFiller::isOverlappingMuon(), PixelClusterShapeExtractor::isSuitable(), HLTDTActivityFilter::matchChamber(), MuonDT13ChamberResidual::MuonDT13ChamberResidual(), MuonTrackDT13ChamberResidual::MuonTrackDT13ChamberResidual(), TkClonerImpl::operator()(), CompareDetY_plus::operator()(), CompareDetY_minus::operator()(), TTStubAlgorithm_official< T >::PatternHitCorrelation(), DTLocalTriggerBaseTest::phiRange(), MeasurementDetWithData::position(), MeasurementDet::position(), FastPrimaryVertexWithWeightsProducer::produce(), FastPrimaryVertexProducer::produce(), TkClonerImpl::project(), trackerDTC::SensorModule::SensorModule(), setPosition(), TrackerOfflineValidation::setUpTreeMembers(), Traj2TrackHits::split(), tmtt::TrackerModule::TrackerModule(), and DTTrigGeomUtils::trigPos().

◆ rotate()

void GeomDet::rotate ( const Surface::RotationType rotation)
private

Relative rotation (with respect to current orientation). Does not move components (if any).

Definition at line 14 of file GeomDet.cc.

14  {
15  //
16  // Should recreate the surface like the set* methods ?
17  //
18  thePlane->rotate(rotation);
19 }

References rotation(), and thePlane.

Referenced by DetPositioner::rotateGeomDet().

◆ rotation()

const Surface::RotationType& GeomDet::rotation ( void  ) const
inline

The rotation defining the local R.F.

Definition at line 46 of file GeomDet.h.

46 { return surface().rotation(); }

References GloballyPositioned< T >::rotation(), and surface().

Referenced by CreateIdealTkAlRecords::addAlignmentInfo(), rotate(), and setPosition().

◆ setAlignmentPositionError()

bool GeomDet::setAlignmentPositionError ( const AlignmentPositionError ape)
protectedvirtual

set the LocalAlignmentError properly trasforming the ape Does not affect the AlignmentPositionError of components (if any).

Reimplemented in MuonGeomDet, and TrackerGeomDet.

Definition at line 25 of file GeomDet.cc.

25  {
27  if (ape.valid())
29  } else
31  return ape.valid();
32 }

References theAlignmentPositionError, and AlignmentPositionError::valid().

Referenced by TrackerGeomDet::setAlignmentPositionError(), and DetPositioner::setAlignmentPositionError().

◆ setDetId()

void GeomDet::setDetId ( DetId  id)
inlineprotected

◆ setGdetIndex()

void GeomDet::setGdetIndex ( int  i)
inline

Definition at line 88 of file GeomDet.h.

88 { m_gdetIndex = i; }

References mps_fire::i, and m_gdetIndex.

◆ setIndex()

void GeomDet::setIndex ( int  i)
inline

Definition at line 84 of file GeomDet.h.

84 { m_index = i; }

References mps_fire::i, and m_index.

◆ setPosition()

void GeomDet::setPosition ( const Surface::PositionType position,
const Surface::RotationType rotation 
)
private

Replaces the current position and rotation with new ones. actually replaces the surface with a new surface. Does not move components (if any).

Definition at line 21 of file GeomDet.cc.

References ModifiedSurfaceGenerator< T >::atNewPosition(), position(), rotation(), and thePlane.

Referenced by DetPositioner::setGeomDetPosition(), and DTSegmentUpdator::updateHits().

◆ setSurfaceDeformation()

void GeomDet::setSurfaceDeformation ( const SurfaceDeformation deformation)
privatevirtual

set the SurfaceDeformation for this GeomDetUnit. Does not affect the SurfaceDeformation of components (if any). Throws if not implemented in derived class.

Reimplemented in PixelGeomDetUnit, MTDGeomDetUnit, and StripGeomDetUnit.

Definition at line 40 of file GeomDet.cc.

40  {
41  throw cms::Exception("Geometry") << "setting SurfaceDeformation not implemented for DetId "
42  << geographicalId().rawId() << " det=" << geographicalId().det()
43  << " subdetId=" << geographicalId().subdetId();
44 }

References DetId::det(), Exception, geographicalId(), DetId::rawId(), and DetId::subdetId().

Referenced by DetPositioner::setSurfaceDeformation().

◆ specificSurface()

const Plane& GeomDet::specificSurface ( ) const
inline

◆ subDetector()

GeomDet::SubDetector GeomDet::subDetector ( ) const
virtual

◆ surface()

const Plane& GeomDet::surface ( ) const
inline

The nominal surface of the GeomDet.

Definition at line 37 of file GeomDet.h.

37 { return *thePlane; }

References thePlane.

Referenced by cms::Phase2TrackerDigitizer::accumulatePixelHits(), SiPixelDigitizerAlgorithm::accumulateSimHits(), Phase2TrackerDigitizerAlgorithm::accumulateSimHits(), SiStripDigitizerAlgorithm::accumulateSimHits(), FWRecoGeometryESProducer::addDTGeometry(), BetaCalculatorRPC::addInfoToCandidate(), SiStripHitEffFromCalibTree::algoAnalyze(), SiStripCalibLorentzAngle::algoBeginJob(), AlignableCSCChamber::AlignableCSCChamber(), AlignableDet::AlignableDet(), AlignableDTChamber::AlignableDTChamber(), AlignableDTSuperLayer::AlignableDTSuperLayer(), CkfDebugger::analyseCompatibleMeasurements(), CkfDebugger::analyseRecHitExistance(), GEMStripDigiValidation::analyze(), GEMCoPadDigiValidation::analyze(), GEMPadDigiClusterValidation::analyze(), GEMPadDigiValidation::analyze(), ME0DigisValidation::analyze(), ME0SegmentsValidation::analyze(), GEMEfficiencyAnalyzer::analyze(), GEMDigiSource::analyze(), ElectronSeedAnalyzer::analyze(), SiStripLAProfileBooker::analyze(), OuterTrackerMonitorTTCluster::analyze(), MuonAlignmentAnalyzer::analyze(), OuterTrackerMonitorTTStub::analyze(), SiPixelTrackResidualSource::analyze(), TestHits::analyze(), TestSmoothHits::analyze(), PixelLumiDQM::analyze(), HitEff::analyze(), SiPixelErrorEstimation::analyze(), SiPixelTrackingRecHitsValid::analyze(), TrackerTreeGenerator::analyze(), MuonGeometrySanityCheck::analyze(), analyzer::SiPixelLorentzAngle::analyze(), OverlapValidation::analyze(), L1MuonRecoTreeProducer::analyze(), TrackerDpgAnalysis::analyze(), BeamHaloAnalyzer::analyze(), PixelInactiveAreaFinder::badAdjecentDetsEndcap(), TrackerDpgAnalysis::beginRun(), CSCGeometryBuilder::buildChamber(), TrackerGeomBuilderFromGeometricDet::buildGeomDet(), SeedingOTEDProducer::buildInitialTSOS(), SeedFromGenericPairOrTriplet::buildSeed(), MuonTrackLoader::buildTrackExtra(), TrackExtenderWithMTDT< TrackCollection >::buildTrackExtra(), GlobalHaloAlgo::Calculate(), CSCHaloAlgo::Calculate(), barrelUtil::calculatePhiWindow(), CSCLayer::centerOfStrip(), CSCLayer::centerOfWireGroup(), TkGluedMeasurementDet::checkHitProjection(), DTGeometryValidate::compareShape(), GEMGeometryValidate::compareShape(), RPCGeometryValidate::compareShape(), ME0GeometryValidate::compareShape(), CSCGeometryValidate::compareShape(), ValidateGeometry::compareShape(), SiPixelErrorEstimation::computeAnglesFromDetPosition(), TIBRing::computeHelicity(), VectorHitBuilderAlgorithmBase::computeParallaxCorrection(), tkDetUtil::computeWindowSize(), barrelUtil::computeWindowSize(), TIBLayer::computeWindowSize(), TOBRod::computeWindowSize(), PixelBlade::computeWindowSize(), TIDLayer::computeWindowSize(), Phase1PixelBlade::computeWindowSize(), Phase2OTBarrelRod::computeWindowSize(), PixelForwardLayer::computeWindowSize(), Phase2EndcapLayer::computeWindowSize(), PixelForwardLayerPhase1::computeWindowSize(), CompositeTECPetal::computeWindowSize(), TIBRing::computeWindowSize(), ReferenceTrajectory::construct(), PrimitiveConversion::convert_rpc(), FWTGeoRecoGeometryESProducer::createShape(), PixelInactiveAreaFinder::detInfo(), SiStripDigitizerAlgorithm::digitize(), DTDigiSyncTOFCorr::digitizerOffset(), OutsideInMuonSeeder::doDebug(), shallow::drift(), Pixel3DDigitizerAlgorithm::drift(), Phase2TrackerDigitizerAlgorithm::drift(), StripCPE::driftDirection(), Phase2StripCPE::driftDirection(), SiHitDigitizer::DriftDirection(), Phase2TrackerDigitizerAlgorithm::DriftDirection(), PixelCPEBase::driftDirection(), SiPixelDigitizerAlgorithm::DriftDirection(), DTTrigGeomUtils::DTTrigGeomUtils(), SiStripLorentzAngleCalibration::effectiveThickness(), InsideBoundsMeasurementEstimator::estimate(), RPCSeedPattern::extropolateStep(), SiPixelClusterModule::fill(), SiPixelRecHitsValid::fillBarrel(), MuonSimHitsValidAnalyzer::fillDT(), ApeEstimator::fillHitVariables(), Phase2TrackerMonitorDigi::fillITPixelDigiHistos(), GlobalHitsAnalyzer::fillMuon(), GlobalHitsProdHist::fillMuon(), GlobalHitsProducer::fillMuon(), Phase2TrackerMonitorDigi::fillOTDigiHistos(), FWRecoGeometryESProducer::fillShapeAndPlacement(), Phase2TrackerValidateDigi::fillSimHitInfo(), CSCTimingExtractor::fillTiming(), DTTimingExtractor::fillTiming(), TrackerOfflineValidationSummary::fillTree(), GlobalHitsAnalyzer::fillTrk(), GlobalHitsProdHist::fillTrk(), GlobalHitsProducer::fillTrk(), GlobalRecHitsAnalyzer::fillTrk(), GlobalRecHitsProducer::fillTrk(), CSCEfficiency::filter(), SETFilter::findChi2(), StubPtConsistency::getConsistency(), ClusterShapeHitFilter::getCotangent(), MuonDetIdAssociator::getDetIdPoints(), ClusterShapeHitFilter::getDrift(), L1TMuon::GeometryTranslator::getGEMSpecificPoint(), DTTrigGeom::getGeom(), CSCSectorReceiverLUT::getGlobalEtaValue(), CSCTriggerPrimitivesReader::getGlobalPosition(), L1TMuon::GeometryTranslator::getME0SpecificPoint(), PixelInactiveAreaFinder::getPhiSpanBarrel(), SiPixelClusterSource::getrococcupancye(), L1TMuon::GeometryTranslator::getRPCSpecificPoint(), PixelInactiveAreaFinder::getRSpan(), TrackAssociatorByPositionImpl::getState(), TrackDetectorAssociator::getTAMuonChamberMatches(), GlobalTrajectoryBuilderBase::getTransientRecHits(), ConversionSeedFilter::getTSOS(), CSCDriftSim::getWireHit(), PixelInactiveAreaFinder::getZSpan(), VectorHit::globalDirectionVH(), HLTRPCTrigNoSyncFilter::hltFilter(), Pixel3DDigitizerAlgorithm::induce_signal(), Phase2TrackerDigitizerAlgorithm::induce_signal(), CSCStripElectronicsSim::initParameters(), MuonDetIdAssociator::insideElement(), ShallowGainCalibration::isFarFromBorder(), SiStripGainFromData::IsFarFromBorder(), DeDxTools::IsFarFromBorder(), CSCPairResidualsConstraint::isFiducial(), tmtt::StubKiller::killStub(), DTTrigGeom::localPosition(), HSCPValidator::makeSimDigiPlotsRPC(), TrajectoryManager::makeSinglePSimHit(), FastTrackerRecHitMatcher::match(), SiStripRecHitMatcher::match(), TkGluedMeasurementDet::measurements(), SiStripGainCosmicCalculator::moduleThickness(), SiStripGainCosmicCalculator::moduleWidth(), CosmicParametersDefinerForTP::momentum(), MuonResidualsFromTrack::MuonResidualsFromTrack(), NuclearTrackCorrector::newTrajNeeded(), DTTTrigSyncFromDB::offset(), TSOSFromSimHitFactory::operator()(), TkClonerImpl::operator()(), CylinderBuilderFromDet::operator()(), PixelHitMatcher::operator()(), CosmicTrackingParticleSelector::operator()(), SeedFromNuclearInteraction::outerHitPosition(), PixelBlade::overlap(), Phase1PixelBlade::overlap(), tkDetUtil::overlapInPhi(), VectorHit::phase2clusterGlobalPos(), VectorHit::phase2clusterGlobalPosErr(), position(), CtfSpecialSeedGenerator::postCheck(), VectorHitBuilderAlgorithmBase::printCluster(), GlobalMuonToMuonProducer::printTrackRecHits(), TrackingRecHitStripGSPlugin::process(), RecHitProcessor::process(), PixelTemplateSmearerBase::process(), StandaloneTrackMonitor::processClusters(), DeDxHitInfoProducer::processHit(), StandaloneTrackMonitor::processHit(), RecHitProcessor::processLook(), TrackProducerWithSCAssociation::produce(), JetCoreClusterSplitter::produce(), ShallowTrackClustersProducer::produce(), PixelClusterSelectorTopBottom::produce(), FastTrackerRecHitMatcher::produce(), ConversionSeedFilterCharge::produce(), FakeTrackProducer< T >::produce(), TrajectorySeedFromMuonProducer::produce(), ConvBremSeedProducer::produce(), DTDigitizer::produce(), FastPrimaryVertexWithWeightsProducer::produce(), MuonSimHitProducer::produce(), TrackerToMuonPropagator::produce(), CSCOverlapsTrackPreparation::produce(), FastPrimaryVertexProducer::produce(), reco::modules::CosmicTrackSplitter::produce(), TrackingRecHitPropagator::project(), TrackInfoProducerAlgorithm::project(), TkClonerImpl::project(), FastTrackerRecHitMatcher::project(), SiStripRecHitMatcher::project(), TestHits::projectHit(), TestSmoothHits::projectHit(), TestTrackHits::projectHit(), SiStripRecHitsValid::projectHit(), GlobalRecHitsAnalyzer::projectHit(), GlobalRecHitsProducer::projectHit(), SiStripTrackingRecHitsValid::projectHit(), FastTrackerRecHitMatcher::projectOnly(), PreMixingSiStripWorker::put(), CSCPairResidualsConstraint::radius(), SiStripTrackingRecHitsValid::rechitanalysis(), SiStripRecHitsValid::rechitanalysis_matched(), SiStripTrackingRecHitsValid::rechitanalysis_matched(), CSCEfficiency::recHitSegment_Efficiencies(), recHitSurface(), pTFrom2Stubs::rInvFrom2(), rotation(), KFBasedPixelFitter::run(), DigiSimLinkAlgorithm::run(), CosmicTrajectoryBuilder::seedMeasurements(), BaseCkfTrajectoryBuilder::seedMeasurements(), CRackTrajectoryBuilder::seedMeasurements(), SeedGeneratorForCRack::seeds(), SeedGeneratorForCosmics::seeds(), SETPatternRecognition::segmentCleaning(), ME0TriggerPseudoBuilder::segmentConversion(), TrackerGeomDet::setAlignmentPositionError(), RPCCosmicSeedrecHitFinder::setEdge(), TrackerOfflineValidation::setUpTreeMembers(), CSCPairResidualsConstraint::setZplane(), SETSeedFinder::sortByLayer(), tmtt::Stub::Stub(), TValidTrackingRecHit::surface(), MeasurementDetWithData::surface(), TRecHit2DPosConstraint::surface(), MeasurementDet::surface(), BaseTrackerRecHit::surface(), TrackingRecHit::surface(), StripSubClusterShapeFilterBase::testLastHit(), TkGluedMeasurementDet::testStrips(), DTSegtoRPC::thePoints(), CSCSegtoRPC::thePoints(), TracktoRPC::thePoints(), SiLinearChargeDivider::TimeResponse(), toGlobal(), DTTrigGeom::toGlobal(), toLocal(), DTTrigGeom::toLocal(), tmtt::TrackerModule::TrackerModule(), LaserDQM::trackerStatistics(), TrajectoryAtInvalidHit::TrajectoryAtInvalidHit(), SETFilter::transform(), ResidualRefitting::trkExtrap(), DTTrigGeom::tubePosInCh(), AlignableDet::update(), AlignableDetUnit::update(), AlignableCSCChamber::update(), AlignableComposite::update(), DynamicTruncation::updateWithCSChits(), ValidateGeometry::validateCSCLayerGeometry(), ValidateGeometry::validateDTLayerGeometry(), ValidateGeometry::validateRPCGeometry(), TracktoRPC::ValidRPCSurface(), and CosmicParametersDefinerForTP::vertex().

◆ surfaceDeformation()

virtual const SurfaceDeformation* GeomDet::surfaceDeformation ( ) const
inlinevirtual

Return pointer to surface deformation. Defaults to "null" if not reimplemented in the derived classes.

Reimplemented in PixelGeomDetUnit, MTDGeomDetUnit, and StripGeomDetUnit.

Definition at line 96 of file GeomDet.h.

96 { return nullptr; }

Referenced by AlignableDetUnit::AlignableDetUnit(), and AlignableDetUnit::update().

◆ toGlobal() [1/3]

GlobalPoint GeomDet::toGlobal ( const Local2DPoint lp) const
inline

Conversion to the global R.F. from the R.F. of the GeomDet.

Definition at line 49 of file GeomDet.h.

49 { return surface().toGlobal(lp); }

References surface(), and Surface::toGlobal().

Referenced by MuonDT2ChamberResidual::addResidual(), MuonCSCChamberResidual::addResidual(), MuonDT13ChamberResidual::addResidual(), RPCStripsRing::addRoll(), ME0HitsValidation::analyze(), ME0RecHitsValidation::analyze(), CSCRecHit2DValidation::analyze(), GEMRecHitSource::analyze(), RPCDigiValid::analyze(), ElectronSeedAnalyzer::analyze(), DTVDriftCalibration::analyze(), EtlDigiHitsValidation::analyze(), SiStripLAProfileBooker::analyze(), EtlLocalRecoValidation::analyze(), DTEfficiencyTask::analyze(), BtlDigiHitsValidation::analyze(), SiStripElectronAnalyzer::analyze(), DTResolutionAnalysisTask::analyze(), MuonTrackResidualAnalyzer::analyze(), MuonAlignmentAnalyzer::analyze(), EtlSimHitsValidation::analyze(), MuonPathAnalyzerPerSL::analyze(), BtlSimHitsValidation::analyze(), MuonPathAnalyzerInChamber::analyze(), TestOutliers::analyze(), BtlLocalRecoValidation::analyze(), MuonIdVal::analyze(), L1MuonRecoTreeProducer::analyze(), CSCSegAlgoSK::areHitsCloseInGlobalPhi(), CSCSegAlgoTC::areHitsCloseInGlobalPhi(), CSCSegAlgoRU::areHitsCloseInGlobalPhi(), CSCSegAlgoRU::areHitsCloseInR(), HoughGrouping::associateHits(), GEMSegmentAlgorithm::buildSegments(), CSCSegAlgoTC::buildSegments(), CSCSegAlgoDF::buildSegments(), CSCSegAlgoSK::buildSegments(), DTCombinatorialExtendedPatternReco::buildSegments(), DTCombinatorialPatternReco::buildSegments(), DTMeantimerPatternReco::buildSegments(), CSCTriggerPrimitivesReader::calcEfficiency(), CSCTriggerPrimitivesReader::calcResolution(), reco::helper::JetMuonHitsIDHelper::calculate(), GlobalHaloAlgo::Calculate(), CSCHaloAlgo::Calculate(), GEMCSCSegAlgoRR::chainHitsToSegm(), MuonIdTruthInfo::checkSimHitForBestMatch(), GEMSegmentAlgorithm::clusterHits(), DTRecHitSegmentResidual::compute(), DTLinearDriftAlgo::compute(), DTLinearDriftFromDBAlgo::compute(), DTNoDriftAlgo::compute(), DTCalibValidationFromMuons::compute(), DTCalibValidation::compute(), DTRecHitQuality::compute(), GEMSuperChamber::computeDeltaPhi(), ME0Chamber::computeDeltaPhi(), CSCCondSegFit::correctTheCovX(), CSCUpgradeMotherboardLUTGenerator::cscHsToGemPadLUT(), CSCUpgradeMotherboardLUTGenerator::cscWgToEtaLimitsLUT(), CSCSegFit::derivativeMatrix(), CSCAnodeLCTAnalyzer::digiSimHitAssociator(), CSCCathodeLCTAnalyzer::digiSimHitAssociator(), CSCOfflineMonitor::doEfficiencies(), CSCValidation::doEfficiencies(), CSCOfflineMonitor::doRecHits(), CSCValidation::doRecHits(), CSCOfflineMonitor::doSegments(), CSCValidation::doSegments(), CSCValidation::doTimeMonitoring(), DTSegment2DQuality::dqmAnalyze(), DTHitPairForFit::DTHitPairForFit(), ME0TriggerPseudoBuilder::dumpAllME0Segments(), DTTrigGeom::dumpGeom(), CSCSegAlgoSK::dumpHits(), CSCSegAlgoTC::dumpHits(), DTTrigGeom::dumpLUT(), DTCombinatorialExtendedPatternReco::extendCandidates(), QcdLowPtDQM::fillPixels(), CSCEfficiency::fillRechitsSegments_info(), CSCTimingExtractor::fillTiming(), DTTimingExtractor::fillTiming(), CSCValidation::findNonAssociatedRecHits(), GEMEfficiencyAnalyzer::findStartingState(), SiStripFineDelayTLA::findtrackangle(), CSCCondSegFit::fit(), DTSegmentUpdator::fit(), CSCSegFit::fit2(), GEMCSCSegFit::fit2(), CSCSegFit::fitlsq(), GEMCSCSegFit::fitlsq(), CSCUpgradeMotherboardLUTGenerator::gemPadToCscHsLUT(), MuonDetIdAssociator::getDetIdPoints(), DTTrigGeom::getGeom(), PixelTripletLowPtGenerator::getGlobalPosition(), ClusterShapeTrackFilter::getGlobalPoss(), pat::PATMuonProducer::getMuonDirection(), AngleConverter::getProcessorPhi(), RPCSeedPattern::getSpecialAlgorithmErrorMatrix(), CSCCathodeLCTAnalyzer::getStripPhi(), CSCAnodeLCTAnalyzer::getWGEta(), ME0SegAlgoRU::globalAtZ(), GE0SegAlgoRU::globalAtZ(), CkfDebugger::SimHit::globalPosition(), CSCMake2DRecHit::hitFromStripAndWire(), NuclearTester::HitPositions(), SiStripMonitorTrack::hitStudy(), HLTCSCOverlapFilter::hltFilter(), HLTCSCRing2or3Filter::hltFilter(), HLTPixelClusterShapeFilter::hltFilter(), DTTMax::InfoLayer::InfoLayer(), DTClusterer::initHits(), MuonMesh::isClusteredWith(), GEMSegmentAlgorithm::isGoodToMerge(), CSCSegAlgoShowering::isHitNearSegment(), CSCSegAlgoSK::isHitNearSegment(), CSCSegAlgoTC::isHitNearSegment(), CSCSegAlgoDF::isHitNearSegment(), CSCSegAlgoRU::isHitNearSegment(), ClusterShapeHitFilter::isNormalOriented(), RPCSeedOverlapper::isShareHit(), DTTrigGeom::localPosition(), RPCtoDTTranslator::localX(), MuonResidualsFromTrack::MuonResidualsFromTrack(), CSCCathodeLCTAnalyzer::nearestHS(), CSCAnodeLCTAnalyzer::nearestWG(), CkfDebugger::nextCorrectHits(), HoughGrouping::obtainGeometricalBorders(), DTTTrigSyncFromDB::offset(), DTTTrigSyncTOFCorr::offset(), CompareHitPairsY::operator()(), CompareHitY::operator()(), TrackMerger::MomentumSort::operator()(), CompareHitY_plus::operator()(), MuonTrackResidualAnalyzer::RadiusComparatorInOut::operator()(), MuonSeedCleaner::OverlapSegments(), CSCSegAlgoSK::phiAtZ(), CSCSegAlgoTC::phiAtZ(), CSCSegAlgoRU::phiAtZ(), CSCSegmentValidation::plotResolution(), CSCRecHit2DValidation::plotResolution(), GlobalRecHitsAnalyzer::plotResolution(), GlobalRecHitsProducer::plotResolution(), CkfDebugger::position(), GlobalMuonToMuonProducer::printTrackRecHits(), PixelVertexProducerClusters::produce(), ShallowRechitClustersProducer::produce(), HIPixelClusterVtxProducer::produce(), ShallowTrackClustersProducer::produce(), ClusterCompatibilityProducer::produce(), FakeTrackProducer< T >::produce(), MuonSegmentProducer::produce(), reco::CentralityProducer::produce(), CSCSegAlgoST::prune_bad_hits(), CSCSegAlgoShowering::pruneFromResidual(), CSCSegAlgoDF::pruneFromResidual(), RPCtoDTTranslator::radialAngle(), SiStripTrackingRecHitsValid::rechitanalysis_matched(), SiStripMonitorTrack::RecHitInfo(), DTCalibValidationFromMuons::recHitPosition(), DTCalibValidation::recHitPosition(), CSCEfficiency::recHitSegment_Efficiencies(), DTRefitAndCombineReco4D::reconstruct(), DTMeantimerPatternReco4D::reconstruct(), DTCombinatorialPatternReco4D::reconstruct(), TrackInfoProducerAlgorithm::run(), ETLElectronicsSim::run(), KFBasedPixelFitter::run(), HoughGrouping::run(), MuonDTLocalMillepedeAlgorithm::run(), SeedFromGenericPairOrTriplet::seedFromPair(), SeedFromGenericPairOrTriplet::seedFromTriplet(), SimpleCosmicBONSeeder::seeds(), ME0TriggerPseudoBuilder::segmentConversion(), DTResidualCalibration::segmentToWireDistance(), CSCCondSegFit::setChi2(), CSCSegFit::setChi2(), SeedFromNuclearInteraction::setMeasurements(), CSCSegFit::setOutFromIP(), CSCSegAlgoShowering::showerSeg(), GEMSimHitMatcher::simHitsGEMCentralPosition(), ME0SimpleModel::simulateClustering(), CSCSegtoRPC::thePoints(), TracktoRPC::thePoints(), SiStripMonitorTrack::trajectoryStudy(), CSCSegAlgoSK::tryAddingHitsToSegment(), CSCSegAlgoTC::tryAddingHitsToSegment(), and DTTrigGeom::tubePosInCh().

◆ toGlobal() [2/3]

GlobalPoint GeomDet::toGlobal ( const Local3DPoint lp) const
inline

Conversion to the global R.F. from the R.F. of the GeomDet.

Definition at line 52 of file GeomDet.h.

52 { return surface().toGlobal(lp); }

References surface(), and Surface::toGlobal().

◆ toGlobal() [3/3]

GlobalVector GeomDet::toGlobal ( const LocalVector lv) const
inline

Conversion to the global R.F. from the R.F. of the GeomDet.

Definition at line 55 of file GeomDet.h.

55 { return surface().toGlobal(lv); }

References surface(), and Surface::toGlobal().

◆ toLocal() [1/2]

LocalPoint GeomDet::toLocal ( const GlobalPoint gp) const
inline

Conversion to the R.F. of the GeomDet.

Definition at line 58 of file GeomDet.h.

58 { return surface().toLocal(gp); }

References runTauDisplay::gp, surface(), and GloballyPositioned< T >::toLocal().

Referenced by GEMEfficiencyAnalyzer::analyze(), SiStripLAProfileBooker::analyze(), HoughGrouping::associateHits(), BeamSpotTransientTrackingRecHit::BeamSpotTransientTrackingRecHit(), GEMSegmentAlgorithm::buildSegments(), CSCSegAlgoDF::buildSegments(), MuonTrackLoader::buildTrackExtra(), TrackExtenderWithMTDT< TrackCollection >::buildTrackExtra(), GEMCSCSegAlgoRR::chainHitsToSegm(), MuonIdTruthInfo::checkSimHitForBestMatch(), GEMSegmentAlgorithm::clusterHits(), SiStripMonitorTrack::clusterInfos(), DTLinearDriftFromDBAlgo::compute(), DTParametrizedDriftAlgo::compute(), FineDelayHistosUsingDb::computeDelays(), MuonTrackResidualAnalyzer::computeResolution(), CSCCondSegFit::correctTheCovX(), CSCUpgradeMotherboardLUTGenerator::cscHsToGemPadLUT(), CSCSegFit::derivativeMatrix(), CSCOfflineMonitor::doEfficiencies(), CSCValidation::doEfficiencies(), DTSegment4DQuality::dqmAnalyze(), DTHitPairForFit::DTHitPairForFit(), DTTMax::DTTMax(), DTTrigGeomUtils::DTTrigGeomUtils(), CSCEfficiency::efficienciesPerChamber(), DTCombinatorialExtendedPatternReco::extendCandidates(), DTTimingExtractor::fillTiming(), SETFilter::findChi2(), GEMEfficiencyAnalyzer::findClosetHit(), SiStripFineDelayTLA::findtrackangle(), CSCCondSegFit::fit(), DTSegmentUpdator::fit(), CSCSegFit::fit2(), GEMCSCSegFit::fit2(), CSCSegFit::fitlsq(), GEMCSCSegFit::fitlsq(), CSCUpgradeMotherboardLUTGenerator::gemPadToCscHsLUT(), CSCUpgradeMotherboardLUTGenerator::gemRollToCscWgLUT(), RPCSeedPattern::getSpecialAlgorithmErrorMatrix(), CSCDriftSim::getWireHit(), SiStripMonitorTrack::hitStudy(), DTTMax::InfoLayer::InfoLayer(), DTClusterer::initHits(), MuonDetIdAssociator::insideElement(), ClusterShapeHitFilter::isCompatible(), CSCSegAlgoShowering::isHitNearSegment(), CSCSegAlgoDF::isHitNearSegment(), PixelClusterShapeExtractor::isSuitable(), TrajectoryManager::makeSinglePSimHit(), MuonCSCChamberResidual::MuonCSCChamberResidual(), MuonDT13ChamberResidual::MuonDT13ChamberResidual(), MuonDT2ChamberResidual::MuonDT2ChamberResidual(), MuonTrackCSCChamberResidual::MuonTrackCSCChamberResidual(), MuonTrackDT13ChamberResidual::MuonTrackDT13ChamberResidual(), MuonTrackDT2ChamberResidual::MuonTrackDT2ChamberResidual(), HoughGrouping::obtainGeometricalBorders(), DTTTrigSyncFromDB::offset(), DTTTrigSyncTOFCorr::offset(), DTLocalTriggerBaseTest::phiRange(), ShallowTrackClustersProducer::produce(), MuonSimHitProducer::produce(), CSCSegAlgoShowering::pruneFromResidual(), CSCSegAlgoDF::pruneFromResidual(), DTSurvey::ReadChambers(), SiStripTrackingRecHitsValid::rechitanalysis_matched(), CSCEfficiency::recHitSegment_Efficiencies(), DTRefitAndCombineReco4D::reconstruct(), DTCombinatorialPatternReco4D::reconstruct(), DTMeantimerPatternReco4D::reconstruct(), TrackInfoProducerAlgorithm::run(), HoughGrouping::run(), CSCCondSegFit::setChi2(), CSCSegFit::setChi2(), CSCSegAlgoShowering::showerSeg(), StripSubClusterShapeFilterBase::testLastHit(), CSCSegtoRPC::thePoints(), SiStripMonitorTrack::trajectoryStudy(), and DTSegmentUpdator::updateHits().

◆ toLocal() [2/2]

LocalVector GeomDet::toLocal ( const GlobalVector gv) const
inline

Conversion to the R.F. of the GeomDet.

Definition at line 61 of file GeomDet.h.

61 { return surface().toLocal(gv); }

References surface(), and GloballyPositioned< T >::toLocal().

◆ topology()

const Topology & GeomDet::topology ( ) const
virtual

◆ type()

const GeomDetType & GeomDet::type ( ) const
virtual

Friends And Related Function Documentation

◆ DetPositioner

friend class DetPositioner
friend

Alignment part of interface, available only to friend.

Definition at line 115 of file GeomDet.h.

Member Data Documentation

◆ m_detId

DetId GeomDet::m_detId
private

Definition at line 103 of file GeomDet.h.

Referenced by geographicalId(), and setDetId().

◆ m_gdetIndex

int GeomDet::m_gdetIndex = -1
private

Definition at line 105 of file GeomDet.h.

Referenced by gdetIndex(), and setGdetIndex().

◆ m_index

int GeomDet::m_index = -1
private

Definition at line 104 of file GeomDet.h.

Referenced by index(), and setIndex().

◆ theAlignmentPositionError

AlignmentPositionError* GeomDet::theAlignmentPositionError = nullptr
private

Definition at line 106 of file GeomDet.h.

Referenced by alignmentPositionError(), setAlignmentPositionError(), and ~GeomDet().

◆ thePlane

ReferenceCountingPointer<Plane> GeomDet::thePlane
private

Definition at line 102 of file GeomDet.h.

Referenced by move(), rotate(), setPosition(), specificSurface(), and surface().

GeomDet::position
const Surface::PositionType & position() const
The position (origin of the R.F.)
Definition: GeomDet.h:43
ModifiedSurfaceGenerator::atNewPosition
SurfacePointer atNewPosition(const Surface::PositionType &position, const Surface::RotationType &rotation) const
Definition: ModifiedSurfaceGenerator.h:27
mps_fire.i
i
Definition: mps_fire.py:428
GeomDetType::subDetector
SubDetector subDetector() const
Definition: GeomDetType.h:21
GeomDet::m_detId
DetId m_detId
Definition: GeomDet.h:103
GeomDet::type
virtual const GeomDetType & type() const
Definition: GeomDet.cc:69
DetId::det
constexpr Detector det() const
get the detector field from this detid
Definition: DetId.h:46
GeomDet::m_index
int m_index
Definition: GeomDet.h:104
AlignmentPositionError::valid
bool valid() const
Definition: AlignmentPositionError.h:22
GeomDet::components
virtual std::vector< const GeomDet * > components() const
Returns direct components, if any.
Definition: GeomDet.h:73
GeomDet::thePlane
ReferenceCountingPointer< Plane > thePlane
Definition: GeomDet.h:102
GeomDet::surface
const Plane & surface() const
The nominal surface of the GeomDet.
Definition: GeomDet.h:37
Surface::toGlobal
GlobalPoint toGlobal(const Point2DBase< Scalar, LocalTag > lp) const
Definition: Surface.h:79
GeomDet::theAlignmentPositionError
AlignmentPositionError * theAlignmentPositionError
Definition: GeomDet.h:106
DetId::subdetId
constexpr int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum)
Definition: DetId.h:48
runTauDisplay.gp
gp
Definition: runTauDisplay.py:431
GeomDet::geographicalId
DetId geographicalId() const
The label of this GeomDet.
Definition: GeomDet.h:64
GloballyPositioned::position
const PositionType & position() const
Definition: GloballyPositioned.h:36
GeomDet::m_gdetIndex
int m_gdetIndex
Definition: GeomDet.h:105
DetId::rawId
constexpr uint32_t rawId() const
get the raw id
Definition: DetId.h:57
triggerObjects_cff.id
id
Definition: triggerObjects_cff.py:31
GloballyPositioned::toLocal
LocalPoint toLocal(const GlobalPoint &gp) const
Definition: GloballyPositioned.h:98
Exception
Definition: hltDiff.cc:246
GloballyPositioned::rotation
const RotationType & rotation() const
Definition: GloballyPositioned.h:38
ModifiedSurfaceGenerator
Definition: ModifiedSurfaceGenerator.h:16
AlignmentPositionError
Definition: AlignmentPositionError.h:10
GeomDet::rotation
const Surface::RotationType & rotation() const
The rotation defining the local R.F.
Definition: GeomDet.h:46