CMS 3D CMS Logo

Public Member Functions | Protected Member Functions | Private Attributes | Friends

BoundSurface Class Reference

#include <BoundSurface.h>

Inheritance diagram for BoundSurface:
Surface GloballyPositioned< float > BasicReferenceCounted BoundCylinder BoundPlane BoundDisk BoundDiskSector

List of all members.

Public Member Functions

const Boundsbounds () const
 BoundSurface (const PositionType &pos, const RotationType &rot, const Bounds &bounds)
 BoundSurface (const PositionType &pos, const RotationType &rot, const Bounds &bounds, MediumProperties *mp)
 BoundSurface (const BoundSurface &iToCopy)
 BoundSurface (const PositionType &pos, const RotationType &rot, const Bounds *bounds, MediumProperties *mp)
 BoundSurface (const PositionType &pos, const RotationType &rot, const Bounds *bounds)
const BoundSurfaceoperator= (const BoundSurface &iRHS)
std::pair< float, float > const & phiSpan () const
std::pair< float, float > const & rSpan () const
std::pair< float, float > const & zSpan () const

Protected Member Functions

void computeSpan ()

Private Attributes

std::pair< float, float > m_phiSpan
std::pair< float, float > m_rSpan
std::pair< float, float > m_zSpan
std::auto_ptr< BoundstheBounds

Friends

void boundSpan::computeSpan (BoundSurface &plane)

Detailed Description

Adds Bounds to Surface.

The Bounds define a region AROUND the surface. Surfaces which differ only by the shape of their bounds are of the same "surface" type (e.g. Plane or Cylinder).

Definition at line 19 of file BoundSurface.h.


Constructor & Destructor Documentation

BoundSurface::BoundSurface ( const PositionType pos,
const RotationType rot,
const Bounds bounds 
) [inline]

Definition at line 22 of file BoundSurface.h.

References computeSpan().

                                      :
    Surface(   pos, rot ),
    m_phiSpan( 0., 0.),
    m_zSpan(   0., 0.),
    m_rSpan(   0., 0.),
    theBounds( bounds->clone() )
  { 
    computeSpan();
  }
BoundSurface::BoundSurface ( const PositionType pos,
const RotationType rot,
const Bounds bounds 
) [inline]

Definition at line 34 of file BoundSurface.h.

References computeSpan().

                                      :
    Surface(   pos, rot),
    m_phiSpan( 0., 0.),
    m_zSpan(   0., 0.),
    m_rSpan(   0., 0.),
    theBounds( bounds.clone()) 
  { 
    computeSpan();
  }
BoundSurface::BoundSurface ( const PositionType pos,
const RotationType rot,
const Bounds bounds,
MediumProperties mp 
) [inline]

Definition at line 46 of file BoundSurface.h.

References computeSpan().

                                      :
    Surface(   pos, rot, mp),  
    m_phiSpan( 0., 0.),
    m_zSpan(   0., 0.),
    m_rSpan(   0., 0.),
    theBounds( bounds->clone()) 
  { 
    computeSpan();
  }
BoundSurface::BoundSurface ( const PositionType pos,
const RotationType rot,
const Bounds bounds,
MediumProperties mp 
) [inline]

Definition at line 59 of file BoundSurface.h.

References computeSpan().

                                      :
    Surface(   pos, rot, mp),  
    m_phiSpan( 0., 0.),
    m_zSpan(   0., 0.),
    m_rSpan(   0., 0.),
    theBounds( bounds.clone()) 
  {
    computeSpan();
  }
BoundSurface::BoundSurface ( const BoundSurface iToCopy) [inline]

Definition at line 72 of file BoundSurface.h.

                                             :
    Surface(   iToCopy ), 
    m_phiSpan( iToCopy.m_phiSpan ),
    m_zSpan(   iToCopy.m_zSpan ),
    m_rSpan(   iToCopy.m_rSpan ),
    theBounds( iToCopy.theBounds->clone() ) 
  {}

Member Function Documentation

const Bounds& BoundSurface::bounds ( ) const [inline]

Reimplemented in BoundDiskSector.

Definition at line 89 of file BoundSurface.h.

References theBounds.

Referenced by MuonNavigationSchool::addBarrelLayer(), MuonTkNavigationSchool::addBarrelLayer(), FWRecoGeometryESProducer::addDTGeometry(), MuonNavigationSchool::addEndcapLayer(), MuonTkNavigationSchool::addEndcapLayer(), SiStripGainFromData::algoBeginJob(), DeDxDiscriminatorLearner::algoBeginJob(), DeDxDiscriminatorLearnerFromCalibTree::algoBeginJob(), SiStripGainFromCalibTree::algoBeginJob(), SiStripCalibLorentzAngle::algoBeginJob(), CkfDebugger::analyseRecHitNotFound(), SiStripLAProfileBooker::analyze(), SiStripTrackingRecHitsValid::analyze(), TkLayerLess::barrelForwardLess(), DeDxDiscriminatorProducer::beginRun(), DeDxEstimatorProducerPixelTripplet::beginRun(), SiStripLAProfileBooker::beginRun(), SiStripDetInfoFileWriter::beginRun(), DeDxEstimatorProducer::beginRun(), BoundingBox::BoundingBox(), CSCGeometryBuilder::buildChamber(), MuonTrackLoader::buildTrackExtra(), DirectTrackerNavigation::checkCompatible(), DirectMuonNavigation::checkCompatible(), ValidateGeometry::compareShape(), MuRingForwardDoubleLayer::compatible(), ForwardDetLayer::compatible(), MuDetRod::compatibleDets(), MuRodBarrelLayer::compatibleDets(), boundSpan::computeSpan(), MuRingForwardDoubleLayer::computeSurface(), TIBLayer::computeWindowSize(), ForwardDetLayer::contains(), BoundingBox::corners(), HICTrajectoryCorrector::correct(), MuonShowerInformationFiller::crossingPoint(), RingMaker::determineExtensions(), MultipleScatteringGeometry::detLayers(), SiPixelDigitizerAlgorithm::digitize(), shallow::drift(), cms::HICSeedMeasurementEstimator::estimate(), InsideBoundsMeasurementEstimator::estimate(), HICMeasurementEstimator::estimate(), Chi2MeasurementEstimatorBase::estimate(), RectangularEtaPhiTrackingRegion::estimator(), TrackerValidationVariables::fillHitQuantities(), StripCPE::fillParam(), cms::HICTkOuterStartingLayerFinder::findBarrelLayers(), SiTrackerGaussianSmearingRecHitConverter::gaussianSmearing(), ClusterShapeHitFilter::getCotangent(), MuonDetIdAssociator::getDetIdPoints(), HitPairGeneratorFromLayerPairForPhotonConversion::getLayerRadius(), HitPairGeneratorFromLayerPairForPhotonConversion::getLayerZ(), TrackDetectorAssociator::getTAMuonChamberMatches(), GlobalDetRangeRPhi::GlobalDetRangeRPhi(), GlobalDetRangeZPhi::GlobalDetRangeZPhi(), GlobalDetRodRangeZPhi::GlobalDetRodRangeZPhi(), PixelTripletNoTipGenerator::hitTriplets(), PropagateToMuon::init(), InnerDeltaPhi::initBarrelLayer(), InnerDeltaPhi::initForwardLayer(), ThirdHitRZPredictionBase::initLayer(), ThirdHitPrediction::initLayer(), BoundDisk::innerRadius(), MuonDetIdAssociator::insideElement(), SmartPropagator::insideTkVol(), ShallowGainCalibration::IsFarFromBorder(), DeDxDiscriminatorTools::IsFarFromBorder(), SiStripGainFromData::IsFarFromBorder(), SimpleNavigationSchool::linkNextForwardLayer(), TrajectoryManager::makeSinglePSimHit(), SiStripGainCosmicCalculator::moduleThickness(), SiStripGainCosmicCalculator::moduleWidth(), MSLayer::MSLayer(), SiStripMonitorMuonHLT::Normalizer(), CylinderBuilderFromDet::operator()(), BoundDisk::outerRadius(), TIBLayer::overlap(), PixelBlade::overlap(), TOBRod::overlap(), TIDLayer::overlapInR(), MuonNavigationPrinter::printLayer(), SiHitDigitizer::processHit(), MuonSimHitProducer::produce(), SETPatternRecognition::segmentCleaning(), ParticlePropagator::setPropagationConditions(), PixelCPEBase::setTheDet(), cms::HICTkOuterStartingLayerFinder::startingLayers(), TIBLayer::TIBLayer(), TIDLayer::TIDLayer(), TOBLayer::TOBLayer(), TrajectoryAtInvalidHit::TrajectoryAtInvalidHit(), ValidateGeometry::validateDTLayerGeometry(), and SimpleNavigableLayer::wellInside().

{ return *theBounds; }
void BoundSurface::computeSpan ( ) [protected]

Definition at line 4 of file BoundSurface.cc.

Referenced by BoundSurface().

const BoundSurface& BoundSurface::operator= ( const BoundSurface iRHS) [inline]

Definition at line 80 of file BoundSurface.h.

References m_phiSpan, m_rSpan, m_zSpan, and theBounds.

                                                            {
    Surface::operator=( iRHS );
    m_phiSpan = iRHS.m_phiSpan;
    m_zSpan   = iRHS.m_zSpan;
    m_rSpan   = iRHS.m_rSpan;
    theBounds.reset( iRHS.theBounds->clone() );
    return *this;
  }
std::pair<float,float> const& BoundSurface::phiSpan ( ) const [inline]

Definition at line 91 of file BoundSurface.h.

References m_phiSpan.

Referenced by PixelBarrelLayer::overlap(), TOBLayer::overlap(), and tkDetUtil::overlapInPhi().

{ return m_phiSpan; }
std::pair<float,float> const& BoundSurface::rSpan ( ) const [inline]

Definition at line 93 of file BoundSurface.h.

References m_rSpan.

{ return m_rSpan; }
std::pair<float,float> const& BoundSurface::zSpan ( ) const [inline]

Definition at line 92 of file BoundSurface.h.

References m_zSpan.

{ return m_zSpan; }

Friends And Related Function Documentation

void boundSpan::computeSpan ( BoundSurface plane) [friend]

Member Data Documentation

std::pair<float,float> BoundSurface::m_phiSpan [private]

Definition at line 101 of file BoundSurface.h.

Referenced by boundSpan::computeSpan(), operator=(), and phiSpan().

std::pair<float,float> BoundSurface::m_rSpan [private]

Definition at line 103 of file BoundSurface.h.

Referenced by operator=(), and rSpan().

std::pair<float,float> BoundSurface::m_zSpan [private]

Definition at line 102 of file BoundSurface.h.

Referenced by boundSpan::computeSpan(), operator=(), and zSpan().

std::auto_ptr<Bounds> BoundSurface::theBounds [private]

Definition at line 105 of file BoundSurface.h.

Referenced by bounds(), and operator=().