test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 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.

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

Definition at line 6 of file GeomDet.cc.

References theAlignmentPositionError.

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(), and MuonTransientTrackingRecHit::parametersError().

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, ME0Chamber, and RPCChamber.

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

Definition at line 103 of file GeomDet.h.

References m_gdetIndex.

Referenced by PixelHitMatcher::compatibleSeeds().

103 { return m_gdetIndex;}
int m_gdetIndex
Definition: GeomDet.h:129
DetId GeomDet::geographicalId ( ) const
inline

The label of this GeomDet.

Definition at line 79 of file GeomDet.h.

References m_detId.

Referenced by SiPixelDigitizerAlgorithm::accumulateSimHits(), SiStripDigitizerAlgorithm::accumulateSimHits(), ME0Geometry::add(), RPCGeometry::add(), DTGeometry::add(), GEMGeometry::add(), SiPixelDigitizerAlgorithm::add_noise(), 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(), SiStripLorentzAngleCalibration::derivatives(), SiPixelLorentzAngleCalibration::derivatives(), SiStripBackplaneCalibration::derivatives(), SiPixelDigitizerAlgorithm::digitize(), SiStripDigitizerAlgorithm::digitize(), edm::DataMixingSiStripMCDigiWorker::DMinitializeDetUnit(), shallow::drift(), StripCPE::driftDirection(), PixelCPEBase::driftDirection(), SiPixelDigitizerAlgorithm::DriftDirection(), SiStripLorentzAngleCalibration::effectiveThickness(), ApeEstimator::fillHitVariables(), StripCPE::fillParams(), ClusterShapeHitFilter::fillPixelData(), CSCEfficiency::filter(), GenericProjectedRecHit2D::geographicalId(), StripCPE::getAlgoParam(), ClusterShapeHitFilter::getDrift(), LayerMeasurements::groupedMeasurements(), MuonShowerInformationFiller::hitsFromSegments(), CSCChamber::id(), SiPixelDigitizerAlgorithm::induce_signal(), MeasurementTrackerImpl::initGluedDet(), SiStripDigitizerAlgorithm::initializeDetUnit(), MeasurementTrackerImpl::initStackDet(), GeomDetLess::insideOutLess(), ProjectedSiStripRecHit2D::isMono(), CkfDebugger::layer(), PixelCPEGeneric::localError(), StripCPEfromTemplate::localParameters(), PixelCPETemplateReco::localPosition(), TrajectoryManager::makeSinglePSimHit(), TkGluedMeasurementDet::measurements(), MuonDetLayerMeasurements::measurements(), CkfDebugger::nextCorrectHits(), MuonSeedCleaner::NRecHitsFromSegment(), SiPixelDigitizerAlgorithm::pixel_aging(), SiPixelDigitizerAlgorithm::pixel_inefficiency(), SiPixelFedCablingMapBuilder::produce(), SiStripHashedDetIdESProducer::produce(), L2MuonSeedGeneratorFromL1T::produce(), L2MuonSeedGenerator::produce(), MuonSimHitProducer::produce(), TrajectorySeedProducer::produce(), ProjectedSiStripRecHit2D::ProjectedSiStripRecHit2D(), FastTrackerRecHitMatcher::projectOnly(), TSGForRoadSearch::pushTrajectorySeed(), edm::DataMixingSiPixelMCDigiWorker::putSiPixel(), edm::DataMixingSiStripMCDigiWorker::putSiStrip(), TkGluedMeasurementDet::rawId(), TkPixelMeasurementDet::recHits(), MuonDetLayerMeasurements::recHits(), MuonMillepedeAlgorithm::run(), MuonDTLocalMillepedeAlgorithm::run(), DigiSimLinkAlgorithm::run(), MuonSeedCleaner::SeedCandidates(), CSCBaseElectronicsSim::setLayer(), setSurfaceDeformation(), MatchedHitRZCorrectionFromBending::tibMatchedHitZFixup(), TracktoRPC::TracktoRPC(), TrajectoryAtInvalidHit::TrajectoryAtInvalidHit(), MuonTransientTrackingRecHit::transientHits(), 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().

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
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().

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 i, and m_gdetIndex.

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

Definition at line 100 of file GeomDet.h.

References i, and m_index.

100 { m_index=i;}
int i
Definition: DBlmapReader.cc:9
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(), DetId::rawId(), and DetId::subdetId().

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:43
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:37
Detector det() const
get the detector field from this detid
Definition: DetId.h:35
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 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(), ElectronSeedAnalyzer::analyze(), SiStripLAProfileBooker::analyze(), MuonAlignmentAnalyzer::analyze(), SiPixelTrackResidualSource::analyze(), HitEff::analyze(), PixelLumiDQM::analyze(), SiPixelErrorEstimation::analyze(), SiPixelTrackingRecHitsValid::analyze(), MuonAlignment::analyze(), analyzer::SiPixelLorentzAngle::analyze(), RPCEfficiency::analyze(), TrackerDpgAnalysis::analyze(), BeamHaloAnalyzer::analyze(), GeomDetLess::barrelForwardLess(), TrackingRecHitLessFromGlobalPosition::barrelForwardLess(), 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(), barrelUtil::computeWindowSize(), TIBLayer::computeWindowSize(), TOBRod::computeWindowSize(), Phase2OTEndcapLayer::computeWindowSize(), PixelBlade::computeWindowSize(), Phase1PixelBlade::computeWindowSize(), Phase2OTBarrelRod::computeWindowSize(), TIDLayer::computeWindowSize(), PixelForwardLayer::computeWindowSize(), PixelForwardLayerPhase1::computeWindowSize(), TIBRing::computeWindowSize(), CompositeTECPetal::computeWindowSize(), ReferenceTrajectory::construct(), FWTGeoRecoGeometryESProducer::createShape(), CSCSegtoRPC::CSCSegtoRPC(), SiLinearChargeDivider::DeconvolutionShape(), SiStripLorentzAngleCalibration::derivatives(), SiPixelLorentzAngleCalibration::derivatives(), SiStripBackplaneCalibration::derivatives(), DTDigiSyncTOFCorr::digitizerOffset(), OutsideInMuonSeeder::doDebug(), shallow::drift(), StripCPE::driftDirection(), SiHitDigitizer::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(), SETFilter::findChi2(), ClusterShapeHitFilter::getCotangent(), MuonDetIdAssociator::getDetIdPoints(), ClusterShapeHitFilter::getDrift(), DTTrigGeom::getGeom(), CSCSectorReceiverLUT::getGlobalEtaValue(), SiPixelClusterSource::getrococcupancye(), TrackAssociatorByPositionImpl::getState(), TrackDetectorAssociator::getTAMuonChamberMatches(), CSCDriftSim::getWireHit(), HLTRPCTrigNoSyncFilter::hltFilter(), CSCStripElectronicsSim::initParameters(), trajectoryStateTransform::innerStateOnSurface(), MultiTrajectoryStateTransform::innerStateOnSurface(), MuonDetIdAssociator::insideElement(), GeomDetLess::insideOutLess(), TrackingRecHitLessFromGlobalPosition::insideOutLess(), DeDxTools::IsFarFromBorder(), ShallowGainCalibration::IsFarFromBorder(), SiStripGainFromData::IsFarFromBorder(), CSCPairResidualsConstraint::isFiducial(), SiPixelGaussianSmearingRecHitConverterAlgorithm::isFlipped(), PixelCPEBase::isFlipped(), StripCPEfromTemplate::localParameters(), DTTrigGeom::localPosition(), HSCPValidator::makeSimDigiPlotsRPC(), TrajectoryManager::makeSinglePSimHit(), FastTrackerRecHitMatcher::match(), SiStripRecHitMatcher::match(), TkGluedMeasurementDet::measurements(), SiStripGainCosmicCalculator::moduleThickness(), SiStripGainCosmicCalculator::moduleWidth(), CosmicParametersDefinerForTP::momentum(), MuonResidualsFromTrack::MuonResidualsFromTrack(), DTTTrigSyncTOFCorr::offset(), DTTTrigSyncFromDB::offset(), TSOSFromSimHitFactory::operator()(), TkClonerImpl::operator()(), CylinderBuilderFromDet::operator()(), CosmicTrackingParticleSelector::operator()(), SeedFromNuclearInteraction::outerHitPosition(), trajectoryStateTransform::outerStateOnSurface(), MultiTrajectoryStateTransform::outerStateOnSurface(), PixelBlade::overlap(), Phase1PixelBlade::overlap(), tkDetUtil::overlapInPhi(), SiLinearChargeDivider::PeakShape(), position(), QuadrupletSeedMerger::printHit(), GlobalMuonToMuonProducer::printTrackRecHits(), StandaloneTrackMonitor::processClusters(), StandaloneTrackMonitor::processHit(), DeDxEstimatorProducer::processHit(), ShallowTrackClustersProducer::produce(), JetCoreClusterSplitter::produce(), PixelClusterSelectorTopBottom::produce(), DeDxHitInfoProducer::produce(), HSCPDeDxInfoProducer::produce(), FastTrackerRecHitMatcher::produce(), FakeTrackProducer< T >::produce(), DTDigitizer::produce(), DeDxEstimatorProducer::produce(), ConvBremSeedProducer::produce(), TrackClusterSplitter::produce(), MuonSimHitProducer::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(), DigiSimLinkAlgorithm::run(), CosmicTrajectoryBuilder::seedMeasurements(), BaseCkfTrajectoryBuilder::seedMeasurements(), CRackTrajectoryBuilder::seedMeasurements(), SETPatternRecognition::segmentCleaning(), TrackerGeomDet::setAlignmentPositionError(), TrackerOfflineValidation::setUpTreeMembers(), CSCPairResidualsConstraint::setZplane(), SiTrackerGaussianSmearingRecHitConverter::smear(), SETSeedFinder::sortByLayer(), TrackClusterSplitter::splitCluster(), StartingLayerFinder::startingLayers(), TValidTrackingRecHit::surface(), MeasurementDetWithData::surface(), MeasurementDet::surface(), BaseTrackerRecHit::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(), DynamicTruncation::updateWithCSChits(), ValidateGeometry::validateCSChamberGeometry(), ValidateGeometry::validateCSCLayerGeometry(), ValidateGeometry::validateDTChamberGeometry(), ValidateGeometry::validateDTLayerGeometry(), ValidateGeometry::validateRPCGeometry(), and CosmicParametersDefinerForTP::vertex().

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().

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 RPCStripsRing::addRoll(), TrackDetectorAssociator::addTAMuonSegmentMatch(), GEMHitsValidation::analyze(), GEMRecHitsValidation::analyze(), CSCRecHit2DValidation::analyze(), RPCDigiValid::analyze(), DTVDriftSegmentCalibration::analyze(), DTTTrigOffsetCalibration::analyze(), DTResidualCalibration::analyze(), ElectronSeedAnalyzer::analyze(), SiStripLAProfileBooker::analyze(), DTSegment2DQuality::analyze(), DTVDriftCalibration::analyze(), DTSegment2DSLPhiQuality::analyze(), MuonAlignmentAnalyzer::analyze(), DTEfficiencyTask::analyze(), DTResolutionAnalysisTask::analyze(), DTSegment4DQuality::analyze(), MuonTrackResidualAnalyzer::analyze(), MuonIdVal::analyze(), RPCEfficiency::analyze(), L1MuonRecoTreeProducer::analyze(), CSCSegAlgoTC::areHitsCloseInGlobalPhi(), CSCSegAlgoSK::areHitsCloseInGlobalPhi(), CSCSegAlgoTC::buildSegments(), CSCSegAlgoSK::buildSegments(), CSCSegAlgoDF::buildSegments(), DTCombinatorialPatternReco::buildSegments(), DTCombinatorialExtendedPatternReco::buildSegments(), DTMeantimerPatternReco::buildSegments(), reco::helper::JetMuonHitsIDHelper::calculate(), GlobalHaloAlgo::Calculate(), CSCHaloAlgo::Calculate(), l1t::EmtfPtAssignment::calculateAddress(), GEMCSCSegAlgoRR::chainHitsToSegm(), MuonIdTruthInfo::checkSimHitForBestMatch(), DTRecHitSegmentResidual::compute(), DTLinearDriftAlgo::compute(), DTLinearDriftFromDBAlgo::compute(), DTNoDriftAlgo::compute(), DTCalibValidation::compute(), DTRecHitQuality::compute(), CSCCondSegFit::correctTheCovX(), CSCSegtoRPC::CSCSegtoRPC(), CSCSegFit::derivativeMatrix(), GEMCSCSegFit::derivativeMatrix(), CSCOfflineMonitor::doEfficiencies(), CSCValidation::doEfficiencies(), CSCOfflineMonitor::doRecHits(), CSCValidation::doRecHits(), CSCOfflineMonitor::doSegments(), CSCValidation::doSegments(), CSCValidation::doTimeMonitoring(), DTHitPairForFit::DTHitPairForFit(), DTTrigGeom::dumpGeom(), CSCSegAlgoSK::dumpHits(), CSCSegAlgoTC::dumpHits(), DTTrigGeom::dumpLUT(), DTCombinatorialExtendedPatternReco::extendCandidates(), QcdLowPtDQM::fillPixels(), CSCEfficiency::fillRechitsSegments_info(), CSCTimingExtractor::fillTiming(), DTTimingExtractor::fillTiming(), DTHitQualityUtils::findMuSimSegmentDirAndPos(), CSCValidation::findNonAssociatedRecHits(), SiStripFineDelayTLA::findtrackangle(), CSCCondSegFit::fit(), DTSegmentUpdator::fit(), CSCSegFit::fit2(), ME0SegFit::fit2(), GEMCSCSegFit::fit2(), CSCSegFit::fitlsq(), GEMCSCSegFit::fitlsq(), MuonDetIdAssociator::getDetIdPoints(), DTTrigGeom::getGeom(), AngleConverter::getProcessorPhi(), L1TMuon::GeometryTranslator::getRPCSpecificPoint(), RPCSeedPattern::getSpecialAlgorithmErrorMatrix(), CkfDebugger::SimHit::globalPosition(), CSCMake2DRecHit::hitFromStripAndWire(), NuclearTester::HitPositions(), SiStripMonitorTrack::hitStudy(), HLTPixelClusterShapeFilter::hltFilter(), DTTMax::InfoLayer::InfoLayer(), DTClusterer::initHits(), MuonMesh::isClusteredWith(), CSCSegAlgoShowering::isHitNearSegment(), CSCSegAlgoSK::isHitNearSegment(), CSCSegAlgoTC::isHitNearSegment(), CSCSegAlgoDF::isHitNearSegment(), ClusterShapeHitFilter::isNormalOriented(), RPCSeedOverlapper::isShareHit(), DTTrigGeom::localPosition(), CkfDebugger::nextCorrectHits(), DTTTrigSyncFromDB::offset(), DTTTrigSyncTOFCorr::offset(), FTSFromSimHitFactory::operator()(), TrackMerger::MomentumSort::operator()(), CompareHitY::operator()(), CompareHitY_plus::operator()(), MuonTrackResidualAnalyzer::RadiusComparatorInOut::operator()(), MuonSeedCleaner::OverlapSegments(), CSCSegAlgoSK::phiAtZ(), CSCSegAlgoTC::phiAtZ(), CSCSegmentValidation::plotResolution(), CSCRecHit2DValidation::plotResolution(), GlobalRecHitsAnalyzer::plotResolution(), GlobalRecHitsProducer::plotResolution(), CkfDebugger::position(), QuadrupletSeedMerger::printHit(), QuadrupletSeedMerger::printNtuplet(), 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(), SiStripTrackingRecHitsValid::rechitanalysis_matched(), DTCalibValidation::recHitPosition(), CSCEfficiency::recHitSegment_Efficiencies(), DTMeantimerPatternReco4D::reconstruct(), DTCombinatorialPatternReco4D::reconstruct(), DTRefitAndCombineReco4D::reconstruct(), TrackInfoProducerAlgorithm::run(), MuonDTLocalMillepedeAlgorithm::run(), SeedFromGenericPairOrTriplet::seedFromPair(), SeedFromGenericPairOrTriplet::seedFromTriplet(), DTResidualCalibration::segmentToWireDistance(), CSCCondSegFit::setChi2(), CSCSegFit::setChi2(), GEMCSCSegFit::setChi2(), SeedFromNuclearInteraction::setMeasurements(), CSCSegFit::setOutFromIP(), ME0SegFit::setOutFromIP(), GEMCSCSegFit::setOutFromIP(), CSCSegAlgoShowering::showerSeg(), SimHitMatcher::simHitsMeanPosition(), GEMSimpleModel::simulateClustering(), 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(), DTSegment4DQuality::analyze(), RPCEfficiency::analyze(), BeamSpotTransientTrackingRecHit::BeamSpotTransientTrackingRecHit(), CSCSegAlgoDF::buildSegments(), MuonTrackLoader::buildTrackExtra(), GEMCSCSegAlgoRR::chainHitsToSegm(), MuonIdTruthInfo::checkSimHitForBestMatch(), SiStripMonitorTrack::clusterInfos(), L1TwinMux::PrimitiveCombiner::combineDt(), L1TwinMux::PrimitiveCombiner::combineDtRpc(), L1TwinMux::PrimitiveCombiner::combineRpcRpc(), DTRecHitSegmentResidual::compute(), DTLinearDriftFromDBAlgo::compute(), DTCalibValidation::compute(), FineDelayHistosUsingDb::computeDelays(), MuonTrackResidualAnalyzer::computeResolution(), CSCCondSegFit::correctTheCovX(), CSCSegtoRPC::CSCSegtoRPC(), CSCSegFit::derivativeMatrix(), ME0SegFit::derivativeMatrix(), GEMCSCSegFit::derivativeMatrix(), CSCOfflineMonitor::doEfficiencies(), CSCValidation::doEfficiencies(), DTHitPairForFit::DTHitPairForFit(), DTTMax::DTTMax(), DTTrigGeomUtils::DTTrigGeomUtils(), CSCEfficiency::efficienciesPerChamber(), DTCombinatorialExtendedPatternReco::extendCandidates(), DTTimingExtractor::fillTiming(), SETFilter::findChi2(), SiStripFineDelayTLA::findtrackangle(), CSCCondSegFit::fit(), DTSegmentUpdator::fit(), CSCSegFit::fit2(), ME0SegFit::fit2(), GEMCSCSegFit::fit2(), CSCSegFit::fitlsq(), ME0SegFit::fitlsq(), GEMCSCSegFit::fitlsq(), RPCSeedPattern::getSpecialAlgorithmErrorMatrix(), CSCDriftSim::getWireHit(), SiStripMonitorTrack::hitStudy(), DTTMax::InfoLayer::InfoLayer(), DTClusterer::initHits(), MuonDetIdAssociator::insideElement(), ClusterShapeHitFilter::isCompatible(), CSCSegAlgoShowering::isHitNearSegment(), CSCSegAlgoDF::isHitNearSegment(), TrajectoryManager::makeSinglePSimHit(), DTTTrigSyncFromDB::offset(), DTTTrigSyncTOFCorr::offset(), DTLocalTriggerBaseTest::phiRange(), ShallowTrackClustersProducer::produce(), MuonSimHitProducer::produce(), CSCSegAlgoShowering::pruneFromResidual(), CSCSegAlgoDF::pruneFromResidual(), DTSurvey::ReadChambers(), SiStripTrackingRecHitsValid::rechitanalysis_matched(), DTCalibValidation::recHitPosition(), CSCEfficiency::recHitSegment_Efficiencies(), DTMeantimerPatternReco4D::reconstruct(), DTRefitAndCombineReco4D::reconstruct(), DTCombinatorialPatternReco4D::reconstruct(), TrackInfoProducerAlgorithm::run(), DTResidualCalibration::segmentToWireDistance(), CSCCondSegFit::setChi2(), CSCSegFit::setChi2(), ME0SegFit::setChi2(), GEMCSCSegFit::setChi2(), 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().