CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | 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 (Plane *plane)
 
 GeomDet (const ReferenceCountingPointer< 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

void setDetId (DetId id)
 

Protected Attributes

AlignmentPositionErrortheAlignmentPositionError = 0
 

Private Member Functions

void move (const GlobalVector &displacement)
 
void rotate (const Surface::RotationType &rotation)
 
virtual bool setAlignmentPositionError (const AlignmentPositionError &ape)
 
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
 
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 29 of file GeomDet.h.

Member Typedef Documentation

Definition at line 31 of file GeomDet.h.

Constructor & Destructor Documentation

GeomDet::GeomDet ( Plane plane)
inlineexplicit

Definition at line 34 of file GeomDet.h.

34 : thePlane(plane) {}
ReferenceCountingPointer< Plane > thePlane
Definition: GeomDet.h:126
GeomDet::GeomDet ( const ReferenceCountingPointer< Plane > &  plane)
inlineexplicit

Definition at line 35 of file GeomDet.h.

References ~GeomDet().

35 : thePlane(plane) {}
ReferenceCountingPointer< Plane > thePlane
Definition: GeomDet.h:126
GeomDet::~GeomDet ( )
virtual

Definition at line 6 of file GeomDet.cc.

References theAlignmentPositionError.

Referenced by GeomDet().

AlignmentPositionError * theAlignmentPositionError
Definition: GeomDet.h:131

Member Function Documentation

AlignmentPositionError const* GeomDet::alignmentPositionError ( ) const
inline

Return pointer to alignment errors.

Definition at line 95 of file GeomDet.h.

References theAlignmentPositionError.

Referenced by AlignableDet::AlignableDet(), AlignableDetUnit::AlignableDetUnit(), MuonTransientTrackingRecHit::parametersError(), AlignableDet::update(), and AlignableDetUnit::update().

AlignmentPositionError * theAlignmentPositionError
Definition: GeomDet.h:131
virtual const GeomDet* GeomDet::component ( DetId  ) const
inlinevirtual

Returns a component GeomDet given its DetId, if existing.

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

Definition at line 92 of file GeomDet.h.

92 {return nullptr;}
virtual std::vector< const GeomDet*> GeomDet::components ( ) const
inlinevirtual
int GeomDet::gdetIndex ( ) const
inline
DetId GeomDet::geographicalId ( ) const
inline

The label of this GeomDet.

Definition at line 79 of file GeomDet.h.

References m_detId, and subDetector().

Referenced by PixelDigitizerAlgorithm::accumulateSimHits(), PSSDigitizerAlgorithm::accumulateSimHits(), SSDigitizerAlgorithm::accumulateSimHits(), PSPDigitizerAlgorithm::accumulateSimHits(), SiPixelDigitizerAlgorithm::accumulateSimHits(), SiStripDigitizerAlgorithm::accumulateSimHits(), ME0Geometry::add(), RPCGeometry::add(), DTGeometry::add(), GEMGeometry::add(), Phase2TrackerDigitizerAlgorithm::add_noise(), SiPixelDigitizerAlgorithm::add_noise(), CreateIdealTkAlRecords::addAlignmentInfo(), FWRecoGeometryESProducer::addCSCGeometry(), TrackerGeometry::addDet(), CSCGeometry::addDet(), TrackerGeometry::addDetUnit(), FWRecoGeometryESProducer::addDTGeometry(), FWTGeoRecoGeometryESProducer::addGEMGeometry(), CSCGeometry::addLayer(), 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(), DuplicateRecHits::analyze(), ListIds::analyze(), SiStripDetInfoFileWriter::beginRun(), SiPixelDetInfoFileWriter::beginRun(), AlignableTrackerBuilder::buildPixelDetectorAlignable(), AlignableTrackerBuilder::buildStripDetectorAlignable(), TkPixelMeasurementDet::compHits(), fastsim::TrackerSimHitProducer::createHitOnDetector(), SiStripLorentzAngleCalibration::derivatives(), SiPixelLorentzAngleCalibration::derivatives(), SiStripBackplaneCalibration::derivatives(), Phase2TrackerDigitizerAlgorithm::digitize(), SiPixelDigitizerAlgorithm::digitize(), SiStripDigitizerAlgorithm::digitize(), edm::DataMixingSiStripMCDigiWorker::DMinitializeDetUnit(), shallow::drift(), StripCPE::driftDirection(), Phase2TrackerDigitizerAlgorithm::DriftDirection(), PixelCPEBase::driftDirection(), SiPixelDigitizerAlgorithm::DriftDirection(), SiStripLorentzAngleCalibration::effectiveThickness(), ApeEstimator::fillHitVariables(), StripCPE::fillParams(), ClusterShapeHitFilter::fillPixelData(), ClusterShapeHitFilter::fillStripData(), CSCEfficiency::filter(), GenericProjectedRecHit2D::geographicalId(), StripCPE::getAlgoParam(), ClusterShapeHitFilter::getDrift(), LayerMeasurements::groupedMeasurements(), MuonShowerInformationFiller::hitsFromSegments(), CSCChamber::id(), Phase2TrackerDigitizerAlgorithm::induce_signal(), SiPixelDigitizerAlgorithm::induce_signal(), MeasurementTrackerImpl::initGluedDet(), SiStripDigitizerAlgorithm::initializeDetUnit(), MeasurementTrackerImpl::initStackDet(), ProjectedSiStripRecHit2D::isMono(), CkfDebugger::layer(), PixelCPEGeneric::localError(), StripCPEfromTemplate::localParameters(), PixelCPETemplateReco::localPosition(), TrajectoryManager::makeSinglePSimHit(), TkGluedMeasurementDet::measurements(), MuonDetLayerMeasurements::measurements(), CkfDebugger::nextCorrectHits(), MuonSeedCleaner::NRecHitsFromSegment(), SiPixelDigitizerAlgorithm::pixel_aging(), Phase2TrackerDigitizerAlgorithm::pixel_inefficiency(), SiPixelDigitizerAlgorithm::pixel_inefficiency(), SiPixelFedCablingMapBuilder::produce(), SiStripHashedDetIdESProducer::produce(), L2MuonSeedGeneratorFromL1T::produce(), L2MuonSeedGenerator::produce(), MuonSimHitProducer::produce(), ProjectedSiStripRecHit2D::ProjectedSiStripRecHit2D(), FastTrackerRecHitMatcher::projectOnly(), TSGForRoadSearch::pushTrajectorySeed(), edm::DataMixingSiPixelMCDigiWorker::putSiPixel(), edm::DataMixingSiStripMCDigiWorker::putSiStrip(), TkGluedMeasurementDet::rawId(), TkPhase2OTMeasurementDet::recHits(), MuonDetLayerMeasurements::recHits(), MuonMillepedeAlgorithm::run(), MuonDTLocalMillepedeAlgorithm::run(), DigiSimLinkAlgorithm::run(), MuonSeedCleaner::SeedCandidates(), CSCBaseElectronicsSim::setLayer(), setSurfaceDeformation(), PixelTemplateSmearerBase::smearHit(), MatchedHitRZCorrectionFromBending::tibMatchedHitZFixup(), TracktoRPC::TracktoRPC(), TrajectoryAtInvalidHit::TrajectoryAtInvalidHit(), MuonTransientTrackingRecHit::transientHits(), AlignableDet::update(), AlignableDetUnit::update(), AlignableComposite::update(), ValidateGeometry::validateCSChamberGeometry(), and ValidateGeometry::validateCSCLayerGeometry().

79 { return m_detId; }
DetId m_detId
Definition: GeomDet.h:127
int GeomDet::index ( ) const
inline
virtual bool GeomDet::isLeaf ( ) const
inlinevirtual

is a Unit

Reimplemented in PixelGeomDetUnit, StripGeomDetUnit, GluedGeomDet, and StackGeomDet.

Definition at line 85 of file GeomDet.h.

References components().

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

85 { return components().empty();}
virtual std::vector< const GeomDet * > components() const
Returns direct components, if any.
Definition: GeomDet.h:88
void GeomDet::move ( const GlobalVector displacement)
private

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

Definition at line 8 of file GeomDet.cc.

References thePlane.

Referenced by DetPositioner::moveGeomDet(), and Vispa.Gui.PortConnection.PointToPointConnection::updateConnection().

9 {
10  //
11  // Should recreate the surface like the set* methods ?
12  //
13  thePlane->move(displacement);
14 }
ReferenceCountingPointer< Plane > thePlane
Definition: GeomDet.h:126
const Surface::PositionType& GeomDet::position ( ) const
inline

The position (origin of the R.F.)

Definition at line 48 of file GeomDet.h.

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

Referenced by CreateIdealTkAlRecords::addAlignmentInfo(), CkfDebugger::analyseCompatibleMeasurements(), ListIds::analyze(), ME0SegmentBuilder::build(), MuonRPCDetLayerGeometryBuilder::buildBarrelLayers(), MuonCSCDetLayerGeometryBuilder::buildLayer(), MuonGEMDetLayerGeometryBuilder::buildLayer(), MuonRPCDetLayerGeometryBuilder::buildLayer(), MuonDTDetLayerGeometryBuilder::buildLayers(), CSCSegAlgoTC::buildSegments(), CSCSegAlgoSK::buildSegments(), CSCSegAlgoDF::buildSegments(), CSCSegAlgoRU::buildSegments(), ME0Chamber::computeDeltaPhi(), DTTrigGeomUtils::DTTrigGeomUtils(), DTTimingExtractor::fillTiming(), TrackerOfflineValidationSummary::fillTree(), 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(), SiStripRegionConnectivity::produceRegionCabling(), TkClonerImpl::project(), TrackerOfflineValidation::setUpTreeMembers(), Traj2TrackHits::split(), ME0Chamber::subDetector(), and DTTrigGeomUtils::trigPos().

48 {return surface().position();}
const Plane & surface() const
The nominal surface of the GeomDet.
Definition: GeomDet.h:42
const PositionType & position() const
void GeomDet::rotate ( const Surface::RotationType rotation)
private

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

Definition at line 16 of file GeomDet.cc.

References thePlane.

17 {
18  //
19  // Should recreate the surface like the set* methods ?
20  //
21  thePlane->rotate(rotation);
22 }
ReferenceCountingPointer< Plane > thePlane
Definition: GeomDet.h:126
const Surface::RotationType& GeomDet::rotation ( void  ) const
inline

The rotation defining the local R.F.

Definition at line 51 of file GeomDet.h.

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

Referenced by CreateIdealTkAlRecords::addAlignmentInfo().

51 { return surface().rotation();}
const Plane & surface() const
The nominal surface of the GeomDet.
Definition: GeomDet.h:42
const RotationType & rotation() const
bool GeomDet::setAlignmentPositionError ( const AlignmentPositionError ape)
privatevirtual

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

Reimplemented in MuonGeomDet, and TrackerGeomDet.

Definition at line 31 of file GeomDet.cc.

References theAlignmentPositionError, and AlignmentPositionError::valid().

Referenced by DetPositioner::setAlignmentPositionError().

32 {
35  }
36  else *theAlignmentPositionError = ape;
37  return ape.valid();
38 }
AlignmentPositionError * theAlignmentPositionError
Definition: GeomDet.h:131
void GeomDet::setDetId ( DetId  id)
inlineprotected
void GeomDet::setGdetIndex ( int  i)
inline

Definition at line 104 of file GeomDet.h.

References mps_fire::i, m_gdetIndex, topology(), and type().

104 { m_gdetIndex=i;}
int m_gdetIndex
Definition: GeomDet.h:129
void GeomDet::setIndex ( int  i)
inline

Definition at line 100 of file GeomDet.h.

References mps_fire::i, and m_index.

100 { m_index=i;}
int m_index
Definition: GeomDet.h:128
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 24 of file GeomDet.cc.

References thePlane.

Referenced by DetPositioner::setGeomDetPosition().

26 {
27  thePlane = ModifiedSurfaceGenerator<Plane>(thePlane).atNewPosition(position,
28  rotation);
29 }
ReferenceCountingPointer< Plane > thePlane
Definition: GeomDet.h:126
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 StripGeomDetUnit, and PixelGeomDetUnit.

Definition at line 48 of file GeomDet.cc.

References DetId::det(), Exception, geographicalId(), GeomDetEnumerators::invalidDet, AlCaHLTBitMon_ParallelJobs::p, DetId::rawId(), DetId::subdetId(), and topology().

Referenced by DetPositioner::setSurfaceDeformation().

49 {
50  throw cms::Exception("Geometry")
51  << "setting SurfaceDeformation not implemented for DetId "
52  << geographicalId().rawId() << " det="
53  << geographicalId().det() << " subdetId="
54  << geographicalId().subdetId();
55 }
uint32_t rawId() const
get the raw id
Definition: DetId.h:44
DetId geographicalId() const
The label of this GeomDet.
Definition: GeomDet.h:79
int subdetId() const
get the contents of the subdetector field (not cast into any detector&#39;s numbering enum) ...
Definition: DetId.h:38
Detector det() const
get the detector field from this detid
Definition: DetId.h:36
const Plane& GeomDet::specificSurface ( ) const
inline
GeomDet::SubDetector GeomDet::subDetector ( ) const
virtual
const Plane& GeomDet::surface ( ) const
inline

The nominal surface of the GeomDet.

Definition at line 42 of file GeomDet.h.

References thePlane.

Referenced by cms::Phase2TrackerDigitizer::accumulatePixelHits(), PixelDigitizerAlgorithm::accumulateSimHits(), PSSDigitizerAlgorithm::accumulateSimHits(), SSDigitizerAlgorithm::accumulateSimHits(), PSPDigitizerAlgorithm::accumulateSimHits(), SiPixelDigitizerAlgorithm::accumulateSimHits(), SiStripDigitizerAlgorithm::accumulateSimHits(), FWRecoGeometryESProducer::addDTGeometry(), BetaCalculatorRPC::addInfoToCandidate(), SiStripHitEffFromCalibTree::algoAnalyze(), SiStripCalibLorentzAngle::algoBeginJob(), AlignableCSCChamber::AlignableCSCChamber(), AlignableDet::AlignableDet(), AlignableDTChamber::AlignableDTChamber(), AlignableDTSuperLayer::AlignableDTSuperLayer(), CkfDebugger::analyseCompatibleMeasurements(), CkfDebugger::analyseRecHitExistance(), GEMCoPadDigiValidation::analyze(), GEMPadDigiValidation::analyze(), GEMStripDigiValidation::analyze(), ME0DigisValidation::analyze(), ME0SegmentsValidation::analyze(), OuterTrackerMonitorTTCluster::analyze(), OuterTrackerMonitorTTStub::analyze(), ElectronSeedAnalyzer::analyze(), SiStripLAProfileBooker::analyze(), MuonAlignmentAnalyzer::analyze(), TestHits::analyze(), SiPixelTrackResidualSource::analyze(), TestSmoothHits::analyze(), PixelLumiDQM::analyze(), HitEff::analyze(), SiPixelErrorEstimation::analyze(), TrackerTreeGenerator::analyze(), SiPixelTrackingRecHitsValid::analyze(), MuonAlignment::analyze(), analyzer::SiPixelLorentzAngle::analyze(), MuonGeometrySanityCheck::analyze(), RPCEfficiency::analyze(), L1MuonRecoTreeProducer::analyze(), TrackerDpgAnalysis::analyze(), BeamHaloAnalyzer::analyze(), PixelInactiveAreaFinder::badAdjecentDetsEndcap(), TrackerDpgAnalysis::beginRun(), CSCGeometryBuilder::buildChamber(), SeedFromGenericPairOrTriplet::buildSeed(), MuonTrackLoader::buildTrackExtra(), GlobalHaloAlgo::Calculate(), CSCHaloAlgo::Calculate(), barrelUtil::calculatePhiWindow(), CSCLayer::centerOfStrip(), CSCLayer::centerOfWireGroup(), TkGluedMeasurementDet::checkHitProjection(), ValidateGeometry::compareShape(), PixelHitMatcher::compatibleSeeds(), SiPixelErrorEstimation::computeAnglesFromDetPosition(), TIBRing::computeHelicity(), tkDetUtil::computeWindowSize(), TIBLayer::computeWindowSize(), barrelUtil::computeWindowSize(), TOBRod::computeWindowSize(), PixelBlade::computeWindowSize(), Phase2EndcapLayer::computeWindowSize(), Phase1PixelBlade::computeWindowSize(), Phase2OTBarrelRod::computeWindowSize(), TIDLayer::computeWindowSize(), PixelForwardLayer::computeWindowSize(), PixelForwardLayerPhase1::computeWindowSize(), TIBRing::computeWindowSize(), CompositeTECPetal::computeWindowSize(), ReferenceTrajectory::construct(), fastsim::TrackerSimHitProducer::createHitOnDetector(), FWTGeoRecoGeometryESProducer::createShape(), CSCSegtoRPC::CSCSegtoRPC(), SiLinearChargeDivider::DeconvolutionShape(), SiStripLorentzAngleCalibration::derivatives(), SiPixelLorentzAngleCalibration::derivatives(), SiStripBackplaneCalibration::derivatives(), PixelInactiveAreaFinder::detInfo(), DTDigiSyncTOFCorr::digitizerOffset(), OutsideInMuonSeeder::doDebug(), shallow::drift(), Phase2TrackerDigitizerAlgorithm::drift(), StripCPE::driftDirection(), Phase2StripCPE::driftDirection(), SiHitDigitizer::DriftDirection(), Phase2TrackerDigitizerAlgorithm::DriftDirection(), PixelCPEBase::driftDirection(), SiPixelDigitizerAlgorithm::DriftDirection(), DTSegtoRPC::DTSegtoRPC(), DTTrigGeomUtils::DTTrigGeomUtils(), SiStripLorentzAngleCalibration::effectiveThickness(), InsideBoundsMeasurementEstimator::estimate(), ForwardMeasurementEstimator::estimate(), BarrelMeasurementEstimator::estimate(), RPCSeedPattern::extropolateStep(), SiPixelClusterModule::fill(), SiPixelRecHitsValid::fillBarrel(), MuonSimHitsValidAnalyzer::fillDT(), ApeEstimator::fillHitVariables(), GlobalHitsAnalyzer::fillMuon(), GlobalHitsProdHist::fillMuon(), GlobalHitsProducer::fillMuon(), FWRecoGeometryESProducer::fillShapeAndPlacement(), CSCTimingExtractor::fillTiming(), DTTimingExtractor::fillTiming(), TrackerOfflineValidationSummary::fillTree(), GlobalHitsProdHist::fillTrk(), GlobalHitsAnalyzer::fillTrk(), GlobalHitsProducer::fillTrk(), GlobalRecHitsAnalyzer::fillTrk(), GlobalRecHitsProducer::fillTrk(), CSCEfficiency::filter(), SETFilter::findChi2(), CSCComparatorDigiFitter::fit(), CSCComparatorDigiFitter::getComparatorDigiCoordinates(), ClusterShapeHitFilter::getCotangent(), MuonDetIdAssociator::getDetIdPoints(), ClusterShapeHitFilter::getDrift(), DTTrigGeom::getGeom(), CSCSectorReceiverLUT::getGlobalEtaValue(), PixelInactiveAreaFinder::getPhiSpanBarrel(), SiPixelClusterSource::getrococcupancye(), PixelInactiveAreaFinder::getRSpan(), TrackAssociatorByPositionImpl::getState(), TrackDetectorAssociator::getTAMuonChamberMatches(), TrajSeedMatcher::getTrajStateFromPoint(), TrajSeedMatcher::getTrajStateFromVtx(), GlobalTrajectoryBuilderBase::getTransientRecHits(), ConversionSeedFilter::getTSOS(), CSCDriftSim::getWireHit(), PixelInactiveAreaFinder::getZSpan(), HLTRPCTrigNoSyncFilter::hltFilter(), CSCStripElectronicsSim::initParameters(), trajectoryStateTransform::innerStateOnSurface(), MultiTrajectoryStateTransform::innerStateOnSurface(), MuonDetIdAssociator::insideElement(), DeDxTools::IsFarFromBorder(), ShallowGainCalibration::IsFarFromBorder(), SiStripGainFromData::IsFarFromBorder(), CSCPairResidualsConstraint::isFiducial(), PixelTemplateSmearerBase::isFlipped(), PixelCPEBase::isFlipped(), StripCPEfromTemplate::localParameters(), DTTrigGeom::localPosition(), TkClonerImpl::makeShared(), HSCPValidator::makeSimDigiPlotsRPC(), TrajectoryManager::makeSinglePSimHit(), FastTrackerRecHitMatcher::match(), SiStripRecHitMatcher::match(), TkGluedMeasurementDet::measurements(), SiStripGainCosmicCalculator::moduleThickness(), SiStripGainCosmicCalculator::moduleWidth(), CosmicParametersDefinerForTP::momentum(), MuonResidualsFromTrack::MuonResidualsFromTrack(), NuclearTrackCorrector::newTrajNeeded(), DTTTrigSyncFromDB::offset(), DTTTrigSyncTOFCorr::offset(), TSOSFromSimHitFactory::operator()(), TkClonerImpl::operator()(), CylinderBuilderFromDet::operator()(), CosmicTrackingParticleSelector::operator()(), SeedFromNuclearInteraction::outerHitPosition(), trajectoryStateTransform::outerStateOnSurface(), MultiTrajectoryStateTransform::outerStateOnSurface(), PixelBlade::overlap(), Phase1PixelBlade::overlap(), tkDetUtil::overlapInPhi(), SiLinearChargeDivider::PeakShape(), position(), CtfSpecialSeedGenerator::postCheck(), GlobalMuonToMuonProducer::printTrackRecHits(), TrackingRecHitStripGSPlugin::process(), RecHitProcessor::process(), PixelTemplateSmearerBase::process(), StandaloneTrackMonitor::processClusters(), StandaloneTrackMonitor::processHit(), DeDxHitInfoProducer::processHit(), DeDxEstimatorProducer::processHit(), RecHitProcessor::processLook(), ShallowTrackClustersProducer::produce(), JetCoreClusterSplitter::produce(), PixelClusterSelectorTopBottom::produce(), HSCPDeDxInfoProducer::produce(), FastTrackerRecHitMatcher::produce(), ConversionSeedFilterCharge::produce(), FakeTrackProducer< T >::produce(), DTDigitizer::produce(), TrajectorySeedFromMuonProducer::produce(), ConvBremSeedProducer::produce(), FastPrimaryVertexWithWeightsProducer::produce(), TrackerToMuonPropagator::produce(), TrackClusterSplitter::produce(), CSCOverlapsTrackPreparation::produce(), FastPrimaryVertexProducer::produce(), MuonSimHitProducer::produce(), reco::modules::CosmicTrackSplitter::produce(), cms::CkfTrackCandidateMakerBase::produceBase(), 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(), CSCPairResidualsConstraint::radius(), SiStripTrackingRecHitsValid::rechitanalysis(), SiStripRecHitsValid::rechitanalysis_matched(), SiStripTrackingRecHitsValid::rechitanalysis_matched(), GEMRecHitMatcher::recHitPosition(), CSCEfficiency::recHitSegment_Efficiencies(), recHitSurface(), rotation(), KFBasedPixelFitter::run(), DigiSimLinkAlgorithm::run(), CosmicTrajectoryBuilder::seedMeasurements(), BaseCkfTrajectoryBuilder::seedMeasurements(), CRackTrajectoryBuilder::seedMeasurements(), SeedGeneratorForCRack::seeds(), SeedGeneratorForCosmics::seeds(), SETPatternRecognition::segmentCleaning(), TrackerGeomDet::setAlignmentPositionError(), RPCCosmicSeedrecHitFinder::setEdge(), TrackerOfflineValidation::setUpTreeMembers(), CSCPairResidualsConstraint::setZplane(), SETSeedFinder::sortByLayer(), TrackClusterSplitter::splitCluster(), StartingLayerFinder::startingLayers(), TValidTrackingRecHit::surface(), MeasurementDetWithData::surface(), MeasurementDet::surface(), TrackingRecHit::surface(), StripSubClusterShapeFilterBase::testLastHit(), TkGluedMeasurementDet::testStrips(), toGlobal(), DTTrigGeom::toGlobal(), toLocal(), DTTrigGeom::toLocal(), FastTSGFromPropagation::trackerSeeds(), LaserDQM::trackerStatistics(), InOutConversionTrackFinder::tracks(), OutInConversionTrackFinder::tracks(), TracktoRPC::TracktoRPC(), TrajectoryAtInvalidHit::TrajectoryAtInvalidHit(), SETFilter::transform(), ResidualRefitting::trkExtrap(), DTTrigGeom::tubePosInCh(), AlignableDet::update(), AlignableDetUnit::update(), AlignableCSCChamber::update(), AlignableComposite::update(), DynamicTruncation::updateWithCSChits(), ValidateGeometry::validateCSChamberGeometry(), ValidateGeometry::validateCSCLayerGeometry(), ValidateGeometry::validateDTChamberGeometry(), ValidateGeometry::validateDTLayerGeometry(), ValidateGeometry::validateRPCGeometry(), TracktoRPC::ValidRPCSurface(), CosmicParametersDefinerForTP::vertex(), and FWTGeoRecoGeometryESProducer::~FWTGeoRecoGeometryESProducer().

42 {return *thePlane;}
ReferenceCountingPointer< Plane > thePlane
Definition: GeomDet.h:126
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, and StripGeomDetUnit.

Definition at line 114 of file GeomDet.h.

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

114 { return nullptr; }
GlobalPoint GeomDet::toGlobal ( const Local2DPoint lp) const
inline

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

Definition at line 54 of file GeomDet.h.

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

Referenced by MuonDT2ChamberResidual::addResidual(), MuonCSCChamberResidual::addResidual(), MuonDT13ChamberResidual::addResidual(), RPCStripsRing::addRoll(), TrackDetectorAssociator::addTAMuonSegmentMatch(), SiStripElectronSeedGenerator::altCheckHitsAndTSOS(), ME0HitsValidation::analyze(), GEMHitsValidation::analyze(), GEMRecHitsValidation::analyze(), CSCRecHit2DValidation::analyze(), ME0RecHitsValidation::analyze(), RPCDigiValid::analyze(), DTVDriftSegmentCalibration::analyze(), DTTTrigOffsetCalibration::analyze(), DTResidualCalibration::analyze(), ElectronSeedAnalyzer::analyze(), SiStripLAProfileBooker::analyze(), DTVDriftCalibration::analyze(), DTEfficiencyTask::analyze(), MuonAlignmentAnalyzer::analyze(), DTResolutionAnalysisTask::analyze(), SiStripElectronAnalyzer::analyze(), MuonTrackResidualAnalyzer::analyze(), TestOutliers::analyze(), MuonIdVal::analyze(), RPCEfficiency::analyze(), L1MuonRecoTreeProducer::analyze(), CSCSegAlgoSK::areHitsCloseInGlobalPhi(), CSCSegAlgoTC::areHitsCloseInGlobalPhi(), CSCSegAlgoRU::areHitsCloseInGlobalPhi(), CSCSegAlgoRU::areHitsCloseInR(), GEMSegmentAlgorithm::buildSegments(), CSCSegAlgoTC::buildSegments(), CSCSegAlgoSK::buildSegments(), CSCSegAlgoDF::buildSegments(), DTCombinatorialPatternReco::buildSegments(), DTCombinatorialExtendedPatternReco::buildSegments(), DTMeantimerPatternReco::buildSegments(), reco::helper::JetMuonHitsIDHelper::calculate(), GlobalHaloAlgo::Calculate(), CSCHaloAlgo::Calculate(), GEMCSCSegAlgoRR::chainHitsToSegm(), SiStripElectronSeedGenerator::checkHitsAndTSOS(), MuonIdTruthInfo::checkSimHitForBestMatch(), GEMSegmentAlgorithm::clusterHits(), DTRecHitSegmentResidual::compute(), DTLinearDriftAlgo::compute(), DTLinearDriftFromDBAlgo::compute(), DTNoDriftAlgo::compute(), DTCalibValidation::compute(), DTRecHitQuality::compute(), ME0Chamber::computeDeltaPhi(), CSCCondSegFit::correctTheCovX(), CSCUpgradeMotherboardLUTGenerator::cscHsToGemPadLUT(), CSCSegtoRPC::CSCSegtoRPC(), CSCUpgradeMotherboardLUTGenerator::cscWgToEtaLimitsLUT(), CSCSegFit::derivativeMatrix(), GEMCSCSegFit::derivativeMatrix(), CSCOfflineMonitor::doEfficiencies(), CSCValidation::doEfficiencies(), CSCOfflineMonitor::doRecHits(), CSCValidation::doRecHits(), CSCOfflineMonitor::doSegments(), CSCValidation::doSegments(), CSCValidation::doTimeMonitoring(), DTSegment2DQuality::dqmAnalyze(), DTSegment2DSLPhiQuality::dqmAnalyze(), DTSegment4DQuality::dqmAnalyze(), DTHitPairForFit::DTHitPairForFit(), DTTrigGeom::dumpGeom(), CSCSegAlgoSK::dumpHits(), CSCSegAlgoTC::dumpHits(), DTTrigGeom::dumpLUT(), OccupancyPlots::endRun(), DTCombinatorialExtendedPatternReco::extendCandidates(), QcdLowPtDQM::fillPixels(), CSCEfficiency::fillRechitsSegments_info(), CSCTimingExtractor::fillTiming(), DTTimingExtractor::fillTiming(), DTHitQualityUtils::findMuSimSegmentDirAndPos(), CSCValidation::findNonAssociatedRecHits(), SiStripElectronSeedGenerator::findSeedsFromCluster(), SiStripFineDelayTLA::findtrackangle(), CSCCondSegFit::fit(), DTSegmentUpdator::fit(), CSCSegFit::fit2(), GEMCSCSegFit::fit2(), CSCSegFit::fitlsq(), GEMCSCSegFit::fitlsq(), CSCUpgradeMotherboardLUTGenerator::gemPadToCscHsLUT(), MuonDetIdAssociator::getDetIdPoints(), L1TMuon::GeometryTranslator::getGEMSpecificPoint(), DTTrigGeom::getGeom(), PixelTripletLowPtGenerator::getGlobalPosition(), ClusterShapeTrackFilter::getGlobalPoss(), AngleConverter::getProcessorPhi(), L1TMuon::GeometryTranslator::getRPCSpecificPoint(), RPCSeedPattern::getSpecialAlgorithmErrorMatrix(), ME0SegAlgoRU::globalAtZ(), CkfDebugger::SimHit::globalPosition(), CSCMake2DRecHit::hitFromStripAndWire(), NuclearTester::HitPositions(), SiStripMonitorTrack::hitStudy(), HLTCSCOverlapFilter::hltFilter(), HLTCSCRing2or3Filter::hltFilter(), HLTPixelClusterShapeFilter::hltFilter(), DTTMax::InfoLayer::InfoLayer(), DTClusterer::initHits(), MuonMesh::isClusteredWith(), MuonMesh::isDuplicateOf(), GEMSegmentAlgorithm::isGoodToMerge(), CSCSegAlgoShowering::isHitNearSegment(), CSCSegAlgoSK::isHitNearSegment(), CSCSegAlgoTC::isHitNearSegment(), CSCSegAlgoRU::isHitNearSegment(), CSCSegAlgoDF::isHitNearSegment(), ClusterShapeHitFilter::isNormalOriented(), RPCSeedOverlapper::isShareHit(), DTTrigGeom::localPosition(), RPCtoDTTranslator::localX(), MuonResidualsFromTrack::MuonResidualsFromTrack(), CkfDebugger::nextCorrectHits(), DTTTrigSyncTOFCorr::offset(), DTTTrigSyncFromDB::offset(), DTSegmentCand::operator DTChamberRecSegment2D *(), DTSegmentCand::operator DTSLRecSegment2D *(), CompareHitPairsY::operator()(), TrackMerger::MomentumSort::operator()(), CompareHitY::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(), ShallowTrackClustersProducer::produce(), HIPixelClusterVtxProducer::produce(), ClusterCompatibilityProducer::produce(), FakeTrackProducer< T >::produce(), MuonSegmentProducer::produce(), reco::CentralityProducer::produce(), SiStripElectronAlgo::projectPhiBand(), CSCSegAlgoST::prune_bad_hits(), CSCSegAlgoShowering::pruneFromResidual(), CSCSegAlgoDF::pruneFromResidual(), RPCtoDTTranslator::radialAngle(), SiStripTrackingRecHitsValid::rechitanalysis_matched(), SiStripMonitorTrack::RecHitInfo(), DTCalibValidation::recHitPosition(), CSCEfficiency::recHitSegment_Efficiencies(), DTRefitAndCombineReco4D::reconstruct(), DTMeantimerPatternReco4D::reconstruct(), DTCombinatorialPatternReco4D::reconstruct(), KFBasedPixelFitter::run(), TrackInfoProducerAlgorithm::run(), MuonDTLocalMillepedeAlgorithm::run(), SeedFromGenericPairOrTriplet::seedFromPair(), SeedFromGenericPairOrTriplet::seedFromTriplet(), DTResidualCalibration::segmentToWireDistance(), CSCCondSegFit::setChi2(), CSCSegFit::setChi2(), GEMCSCSegFit::setChi2(), DTParametrizedDriftAlgo::setES(), SeedFromNuclearInteraction::setMeasurements(), CSCSegFit::setOutFromIP(), GEMCSCSegFit::setOutFromIP(), CSCSegAlgoShowering::showerSeg(), SimHitMatcher::simHitsMeanPosition(), GEMSimpleModel::simulateClustering(), ME0SimpleModel::simulateClustering(), TracktoRPC::TracktoRPC(), SiStripMonitorTrack::trajectoryStudy(), CSCSegAlgoSK::tryAddingHitsToSegment(), CSCSegAlgoTC::tryAddingHitsToSegment(), and DTTrigGeom::tubePosInCh().

54  {
55  return surface().toGlobal( lp);
56  }
GlobalPoint toGlobal(const Point2DBase< Scalar, LocalTag > lp) const
Definition: Surface.h:106
const Plane & surface() const
The nominal surface of the GeomDet.
Definition: GeomDet.h:42
GlobalPoint GeomDet::toGlobal ( const Local3DPoint lp) const
inline

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

Definition at line 59 of file GeomDet.h.

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

59  {
60  return surface().toGlobal( lp);
61  }
GlobalPoint toGlobal(const Point2DBase< Scalar, LocalTag > lp) const
Definition: Surface.h:106
const Plane & surface() const
The nominal surface of the GeomDet.
Definition: GeomDet.h:42
GlobalVector GeomDet::toGlobal ( const LocalVector lv) const
inline

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

Definition at line 64 of file GeomDet.h.

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

64  {
65  return surface().toGlobal( lv);
66  }
GlobalPoint toGlobal(const Point2DBase< Scalar, LocalTag > lp) const
Definition: Surface.h:106
const Plane & surface() const
The nominal surface of the GeomDet.
Definition: GeomDet.h:42
LocalPoint GeomDet::toLocal ( const GlobalPoint gp) const
inline

Conversion to the R.F. of the GeomDet.

Definition at line 69 of file GeomDet.h.

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

Referenced by SiStripLAProfileBooker::analyze(), DTVDriftCalibration::analyze(), DTEfficiencyTask::analyze(), DTResolutionAnalysisTask::analyze(), RPCEfficiency::analyze(), BeamSpotTransientTrackingRecHit::BeamSpotTransientTrackingRecHit(), ME0SegmentBuilder::build(), GEMSegmentAlgorithm::buildSegments(), CSCSegAlgoDF::buildSegments(), MuonTrackLoader::buildTrackExtra(), GEMCSCSegAlgoRR::chainHitsToSegm(), MuonIdTruthInfo::checkSimHitForBestMatch(), GEMSegmentAlgorithm::clusterHits(), SiStripMonitorTrack::clusterInfos(), DTRecHitSegmentResidual::compute(), DTLinearDriftFromDBAlgo::compute(), DTCalibValidation::compute(), FineDelayHistosUsingDb::computeDelays(), MuonTrackResidualAnalyzer::computeResolution(), CSCCondSegFit::correctTheCovX(), fastsim::TrackerSimHitProducer::createHitOnDetector(), CSCUpgradeMotherboardLUTGenerator::cscHsToGemPadLUT(), CSCSegtoRPC::CSCSegtoRPC(), CSCSegFit::derivativeMatrix(), GEMCSCSegFit::derivativeMatrix(), CSCOfflineMonitor::doEfficiencies(), CSCValidation::doEfficiencies(), DTSegment4DQuality::dqmAnalyze(), DTHitPairForFit::DTHitPairForFit(), DTTMax::DTTMax(), DTTrigGeomUtils::DTTrigGeomUtils(), CSCEfficiency::efficienciesPerChamber(), DTCombinatorialExtendedPatternReco::extendCandidates(), DTTimingExtractor::fillTiming(), SETFilter::findChi2(), SiStripFineDelayTLA::findtrackangle(), CSCCondSegFit::fit(), DTSegmentUpdator::fit(), CSCSegFit::fit2(), GEMCSCSegFit::fit2(), CSCSegFit::fitlsq(), GEMCSCSegFit::fitlsq(), CSCUpgradeMotherboardLUTGenerator::gemPadToCscHsLUT(), 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(), DTTTrigSyncTOFCorr::offset(), DTTTrigSyncFromDB::offset(), DTSegmentCand::operator DTChamberRecSegment2D *(), DTLocalTriggerBaseTest::phiRange(), ShallowTrackClustersProducer::produce(), MuonSimHitProducer::produce(), CSCSegAlgoShowering::pruneFromResidual(), CSCSegAlgoDF::pruneFromResidual(), DTSurvey::ReadChambers(), SiStripTrackingRecHitsValid::rechitanalysis_matched(), DTCalibValidation::recHitPosition(), CSCEfficiency::recHitSegment_Efficiencies(), DTCombinatorialPatternReco4D::reconstruct(), DTMeantimerPatternReco4D::reconstruct(), DTRefitAndCombineReco4D::reconstruct(), TrackInfoProducerAlgorithm::run(), DTResidualCalibration::segmentToWireDistance(), CSCCondSegFit::setChi2(), CSCSegFit::setChi2(), GEMCSCSegFit::setChi2(), DTParametrizedDriftAlgo::setES(), CSCSegAlgoShowering::showerSeg(), StripSubClusterShapeFilterBase::testLastHit(), SiStripMonitorTrack::trajectoryStudy(), and DTSegmentUpdator::updateHits().

69  {
70  return surface().toLocal( gp);
71  }
const Plane & surface() const
The nominal surface of the GeomDet.
Definition: GeomDet.h:42
LocalPoint toLocal(const GlobalPoint &gp) const
LocalVector GeomDet::toLocal ( const GlobalVector gv) const
inline

Conversion to the R.F. of the GeomDet.

Definition at line 74 of file GeomDet.h.

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

74  {
75  return surface().toLocal( gv);
76  }
const Plane & surface() const
The nominal surface of the GeomDet.
Definition: GeomDet.h:42
LocalPoint toLocal(const GlobalPoint &gp) const
const Topology & GeomDet::topology ( ) const
virtual
const GeomDetType & GeomDet::type ( ) const
virtual

Friends And Related Function Documentation

friend class DetPositioner
friend

Alignment part of interface, available only to friend.

Definition at line 136 of file GeomDet.h.

Member Data Documentation

DetId GeomDet::m_detId
private

Definition at line 127 of file GeomDet.h.

Referenced by geographicalId(), and setDetId().

int GeomDet::m_gdetIndex =-1
private

Definition at line 129 of file GeomDet.h.

Referenced by gdetIndex(), and setGdetIndex().

int GeomDet::m_index =-1
private

Definition at line 128 of file GeomDet.h.

Referenced by index(), and setIndex().

AlignmentPositionError* GeomDet::theAlignmentPositionError = 0
protected
ReferenceCountingPointer<Plane> GeomDet::thePlane
private

Definition at line 126 of file GeomDet.h.

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