CMS 3D CMS Logo

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

#include <LocalError.h>

Public Member Functions

bool invalid () const
 
 LocalError ()
 
 LocalError (InvalidError)
 
 LocalError (float xx, float xy, float yy)
 
LocalError rotate (float x, float y) const
 Return a new LocalError, rotated by an angle defined by the direction (x,y) More...
 
LocalError rotate (float phi) const
 Return a new LocalError, rotated by an angle phi. More...
 
LocalError rotateCosSin (float c, float s, float mag2i=1.f) const
 Return a new LocalError, rotated by an angle defined by it's cosine and sine. More...
 
LocalError scale (float s) const
 
bool valid () const
 
float xx () const
 
float xy () const
 
float yy () const
 

Private Attributes

float thexx
 
float thexy
 
float theyy
 

Detailed Description

A very simple class for 2D error matrix components, used for the local frame.

Definition at line 12 of file LocalError.h.

Constructor & Destructor Documentation

LocalError::LocalError ( )
inline

Definition at line 14 of file LocalError.h.

Referenced by rotateCosSin(), and scale().

14 : thexx(0), thexy(0), theyy(0) {}
float thexy
Definition: LocalError.h:59
float thexx
Definition: LocalError.h:58
float theyy
Definition: LocalError.h:60
LocalError::LocalError ( InvalidError  )
inline

Definition at line 15 of file LocalError.h.

15 : thexx(-9999.e10f), thexy(0), theyy(-9999.e10f) {}
float thexy
Definition: LocalError.h:59
float thexx
Definition: LocalError.h:58
float theyy
Definition: LocalError.h:60
LocalError::LocalError ( float  xx,
float  xy,
float  yy 
)
inline

Definition at line 17 of file LocalError.h.

17  :
18  thexx(xx), thexy(xy), theyy(yy) {}
float xx() const
Definition: LocalError.h:24
float thexy
Definition: LocalError.h:59
float xy() const
Definition: LocalError.h:25
float yy() const
Definition: LocalError.h:26
float thexx
Definition: LocalError.h:58
float theyy
Definition: LocalError.h:60

Member Function Documentation

bool LocalError::invalid ( ) const
inline

Definition at line 20 of file LocalError.h.

References thexx.

Referenced by valid().

20 { return thexx<-1.e10f;}
float thexx
Definition: LocalError.h:58
LocalError LocalError::rotate ( float  x,
float  y 
) const
inline

Return a new LocalError, rotated by an angle defined by the direction (x,y)

Definition at line 39 of file LocalError.h.

References f, and rotateCosSin().

Referenced by CaloDetIdAssociator::crossedElement(), GlobalTrajectoryBuilderBase::fixTEC(), CachedTrajectory::getWideTrajectory(), DiskSectorBounds::inside(), TkClonerImpl::operator()(), TkClonerImpl::project(), GSRecHitMatcher::projectOnly(), and TkGluedMeasurementDet::testStrips().

39  {
40  return rotateCosSin( x, y, 1.f/(x*x+y*y) );
41  }
double f[11][100]
LocalError rotateCosSin(float c, float s, float mag2i=1.f) const
Return a new LocalError, rotated by an angle defined by it&#39;s cosine and sine.
Definition: LocalError.h:49
Definition: DDAxes.h:10
LocalError LocalError::rotate ( float  phi) const
inline

Return a new LocalError, rotated by an angle phi.

Definition at line 44 of file LocalError.h.

References funct::cos(), rotateCosSin(), and funct::sin().

44  {
45  return rotateCosSin( cos(phi), sin(phi));
46  }
Sin< T >::type sin(const T &t)
Definition: Sin.h:22
Cos< T >::type cos(const T &t)
Definition: Cos.h:22
LocalError rotateCosSin(float c, float s, float mag2i=1.f) const
Return a new LocalError, rotated by an angle defined by it&#39;s cosine and sine.
Definition: LocalError.h:49
Definition: DDAxes.h:10
LocalError LocalError::rotateCosSin ( float  c,
float  s,
float  mag2i = 1.f 
) const
inline

Return a new LocalError, rotated by an angle defined by it's cosine and sine.

Definition at line 49 of file LocalError.h.

References f, LocalError(), xx(), xy(), and yy().

Referenced by rotate().

49  {
50  return LocalError( mag2i*( (c*c)*xx() + (s*s)*yy() - 2.f*(c*s)*xy()),
51  mag2i*( (c*s)*(xx() - yy()) + (c*c-s*s)*xy()) ,
52  mag2i*( (s*s)*xx() + (c*c)*yy() + 2.f*(c*s)*xy())
53  );
54  }
float xx() const
Definition: LocalError.h:24
float xy() const
Definition: LocalError.h:25
float yy() const
Definition: LocalError.h:26
double f[11][100]
LocalError LocalError::scale ( float  s) const
inline
bool LocalError::valid ( ) const
inline
float LocalError::xx ( ) const
inline

Definition at line 24 of file LocalError.h.

References thexx.

Referenced by MuonCSCChamberResidual::addResidual(), MuonDT13ChamberResidual::addResidual(), MuonDT2ChamberResidual::addResidual(), TrackDetectorAssociator::addTAMuonSegmentMatch(), CkfDebugger::analyseCompatibleMeasurements(), DTSegment2DQuality::analyze(), DTSegment2DSLPhiQuality::analyze(), SiStripElectronAnalyzer::analyze(), DTSegment4DQuality::analyze(), MuonIdDQM::analyze(), SiPixelRecHitSource::analyze(), MuonIdVal::analyze(), SiPixelErrorEstimation::analyze(), SiPixelTrackingRecHitsValid::analyze(), TrackerDpgAnalysis::analyze(), BaseTrackerRecHit::BaseTrackerRecHit(), FWCSCRecHitProxyBuilder::build(), FWRPCRecHitProxyBuilder::buildViewType(), FWGEMRecHitProxyBuilder::buildViewType(), CSCPairResidualsConstraint::calculatePhi(), TkGluedMeasurementDet::checkHitProjection(), Traj2TrackHits::clone(), ForwardDetLayer::compatible(), MuRingForwardDoubleLayer::compatible(), MuRingForwardLayer::compatibleDets(), CSCSegAlgoST::correctTheCovX(), geometryXMLparser.Alignable::covariance(), CaloDetIdAssociator::crossedElement(), OutsideInMuonSeeder::doLayer(), CSCValidation::doRecHits(), AlignmentMonitorMuonResiduals::event(), AlignmentMonitorGeneric::event(), SiPixelRecHitsValid::fillBarrel(), CSCSegAlgoHitPruning::fillChiSquared(), CSCSegAlgoST::fillChiSquared(), CSCSegAlgoSK::fillChiSquared(), CSCSegAlgoTC::fillChiSquared(), SiPixelRecHitsValid::fillForward(), TrackerValidationVariables::fillHitQuantities(), ReferenceTrajectory::fillMeasurementAndError(), MuonIdProducer::fillMuonId(), CSCEfficiency::fillRechitsSegments_info(), SETFilter::findChi2(), CollinearFitAtTM::fit(), CollinearFitAtTM2::fit(), DTSegmentUpdator::fit(), CSCSegAlgoHitPruning::fitSlopes(), CSCSegAlgoST::fitSlopes(), CSCSegAlgoSK::fitSlopes(), CSCSegAlgoTC::fitSlopes(), GlobalTrajectoryBuilderBase::fixTEC(), BaseTrackerRecHit::getKfComponents1D(), BaseTrackerRecHit::getKfComponents2D(), TrackDetectorAssociator::getTAMuonChamberMatches(), CachedTrajectory::getWideTrajectory(), TkPixelMeasurementDet::hasBadComponents(), TrackerMuonHitExtractor::init(), RectangularPlaneBounds::inout(), SimpleDiskBounds::inside(), DiskSectorBounds::inside(), GeneralNSurfaceDelimitedBounds::inside(), TrapezoidalPlaneBounds::inside(), RectangularPlaneBounds::inside(), CSCLayerGeometry::inside(), DTSegmentExtendedCand::isCompatible(), TrackerRecHit::largerError(), TrackerRecHit::localError(), TwoBodyDecayTrajectoryFactory::match(), GlobalMuonTrackMatcher::match_dist(), Chi2MeasurementEstimatorBase::maximalLocalDisplacement(), ForwardMeasurementEstimator::maximalLocalDisplacement(), BarrelMeasurementEstimator::maximalLocalDisplacement(), RectangularStripTopology::measurementError(), DTTopology::measurementError(), TrapezoidalStripTopology::measurementError(), RectangularPixelTopology::measurementError(), CSCRadialStripTopology::measurementError(), TkRadialStripTopology::measurementError(), MuonResidualsFromTrack::MuonResidualsFromTrack(), TkClonerImpl::operator()(), operator<<(), RecHit2DLocalPos::parametersError(), TRecHit2DPosConstraint::parametersError(), RecHit1D::parametersError(), MuonTransientTrackingRecHit::parametersError(), KFBasedPixelFitter::MyBeamSpotHit::parametersError(), BeamSpotTransientTrackingRecHit::parametersError(), HelpertRecHit2DLocalPos::parError(), DTSLRecCluster::parError(), CSCSegmentValidation::plotResolution(), CSCRecHit2DValidation::plotResolution(), HIPAlignmentAlgorithm::processHit1D(), HIPAlignmentAlgorithm::processHit2D(), ShallowRechitClustersProducer::produce(), MuonTrackProducer::produce(), AlignmentMuonHIPTrajectorySelector::produce(), TkClonerImpl::project(), GSRecHitMatcher::projectOnly(), RecHitPropagator::propagate(), CSCSegAlgoST::prune_bad_hits(), CSCSegAlgoHitPruning::pruneBadHits(), SiStripRecHitsValid::rechitanalysis(), SiStripTrackingRecHitsValid::rechitanalysis(), SiStripRecHitsValid::rechitanalysis_matched(), SiStripTrackingRecHitsValid::rechitanalysis_matched(), DTRecHitQuality::recHitPositionError(), rotateCosSin(), TrackCandidateProducer::sameLocalParameters(), scale(), StateSegmentMatcher::setAPE2d(), StateSegmentMatcher::setAPE4d(), SiTrackerGaussianSmearingRecHitConverter::smearHits(), TkGluedMeasurementDet::testStrips(), TrackEfficiencyMonitor::testTrackerTracks(), trajectoryToResiduals(), ErrorFrameTransformer::transform(), CSCSegAlgoShowering::updateParameters(), CSCSegAlgoDF::updateParameters(), HelpertRecHit2DLocalPos::updateWithAPE(), CSCSegAlgoHitPruning::weightMatrix(), CSCSegAlgoShowering::weightMatrix(), CSCSegAlgoTC::weightMatrix(), CSCSegAlgoST::weightMatrix(), CSCSegAlgoSK::weightMatrix(), CSCSegAlgoDF::weightMatrix(), SimpleNavigableLayer::wellInside(), and MuRodBarrelLayer::xError().

24 { return thexx;}
float thexx
Definition: LocalError.h:58
float LocalError::xy ( ) const
inline

Definition at line 25 of file LocalError.h.

References thexy.

Referenced by MuonCSCChamberResidual::addResidual(), TrackDetectorAssociator::addTAMuonSegmentMatch(), SiStripElectronAnalyzer::analyze(), BaseTrackerRecHit::BaseTrackerRecHit(), CSCPairResidualsConstraint::calculatePhi(), TkGluedMeasurementDet::checkHitProjection(), geometryXMLparser.Alignable::covariance(), CaloDetIdAssociator::crossedElement(), CSCValidation::doRecHits(), CSCSegAlgoHitPruning::fillChiSquared(), CSCSegAlgoST::fillChiSquared(), CSCSegAlgoSK::fillChiSquared(), CSCSegAlgoTC::fillChiSquared(), ReferenceTrajectory::fillMeasurementAndError(), CSCEfficiency::fillRechitsSegments_info(), SETFilter::findChi2(), CollinearFitAtTM::fit(), CollinearFitAtTM2::fit(), CSCSegAlgoHitPruning::fitSlopes(), CSCSegAlgoST::fitSlopes(), CSCSegAlgoSK::fitSlopes(), CSCSegAlgoTC::fitSlopes(), BaseTrackerRecHit::getKfComponents2D(), CachedTrajectory::getWideTrajectory(), SimpleDiskBounds::inside(), DiskSectorBounds::inside(), TrackerRecHit::largerError(), TrackerRecHit::localError(), StripCPEfromTemplate::localParameters(), GlobalMuonTrackMatcher::match_dist(), RectangularStripTopology::measurementError(), TrapezoidalStripTopology::measurementError(), CSCRadialStripTopology::measurementError(), TkRadialStripTopology::measurementError(), TkClonerImpl::operator()(), operator<<(), TRecHit2DPosConstraint::parametersError(), RecHit2DLocalPos::parametersError(), MuonTransientTrackingRecHit::parametersError(), HelpertRecHit2DLocalPos::parError(), HIPAlignmentAlgorithm::processHit2D(), AlignmentMuonHIPTrajectorySelector::produce(), TkClonerImpl::project(), GSRecHitMatcher::projectOnly(), RecHitPropagator::propagate(), SiStripRecHitsValid::rechitanalysis(), SiStripTrackingRecHitsValid::rechitanalysis(), SiStripRecHitsValid::rechitanalysis_matched(), SiStripTrackingRecHitsValid::rechitanalysis_matched(), rotateCosSin(), TrackCandidateProducer::sameLocalParameters(), scale(), SiTrackerGaussianSmearingRecHitConverter::smearHits(), TkGluedMeasurementDet::testStrips(), ErrorFrameTransformer::transform(), CSCSegAlgoShowering::updateParameters(), CSCSegAlgoDF::updateParameters(), HelpertRecHit2DLocalPos::updateWithAPE(), CSCSegAlgoHitPruning::weightMatrix(), CSCSegAlgoShowering::weightMatrix(), CSCSegAlgoTC::weightMatrix(), CSCSegAlgoST::weightMatrix(), CSCSegAlgoDF::weightMatrix(), and CSCSegAlgoSK::weightMatrix().

25 { return thexy;}
float thexy
Definition: LocalError.h:59
float LocalError::yy ( ) const
inline

Definition at line 26 of file LocalError.h.

References theyy.

Referenced by MuonCSCChamberResidual::addResidual(), TrackDetectorAssociator::addTAMuonSegmentMatch(), CkfDebugger::analyseCompatibleMeasurements(), SiStripElectronAnalyzer::analyze(), DTSegment4DQuality::analyze(), MuonIdDQM::analyze(), SiPixelRecHitSource::analyze(), MuonIdVal::analyze(), SiPixelErrorEstimation::analyze(), SiPixelTrackingRecHitsValid::analyze(), TrackerDpgAnalysis::analyze(), BaseTrackerRecHit::BaseTrackerRecHit(), FWCSCRecHitProxyBuilder::build(), FWRPCRecHitProxyBuilder::buildViewType(), FWGEMRecHitProxyBuilder::buildViewType(), CSCPairResidualsConstraint::calculatePhi(), TkGluedMeasurementDet::checkHitProjection(), ForwardDetLayer::compatible(), MuRingForwardDoubleLayer::compatible(), MuRingForwardLayer::compatibleDets(), geometryXMLparser.Alignable::covariance(), CaloDetIdAssociator::crossedElement(), OutsideInMuonSeeder::doLayer(), CSCValidation::doRecHits(), ConversionForwardEstimator::estimate(), ConversionBarrelEstimator::estimate(), AlignmentMonitorMuonResiduals::event(), AlignmentMonitorGeneric::event(), SiPixelRecHitsValid::fillBarrel(), CSCSegAlgoHitPruning::fillChiSquared(), CSCSegAlgoST::fillChiSquared(), CSCSegAlgoSK::fillChiSquared(), CSCSegAlgoTC::fillChiSquared(), SiPixelRecHitsValid::fillForward(), TrackerValidationVariables::fillHitQuantities(), ReferenceTrajectory::fillMeasurementAndError(), MuonIdProducer::fillMuonId(), CSCEfficiency::fillRechitsSegments_info(), SETFilter::findChi2(), CollinearFitAtTM::fit(), CollinearFitAtTM2::fit(), CSCSegAlgoHitPruning::fitSlopes(), CSCSegAlgoST::fitSlopes(), CSCSegAlgoSK::fitSlopes(), CSCSegAlgoTC::fitSlopes(), GlobalTrajectoryBuilderBase::fixTEC(), BaseTrackerRecHit::getKfComponents2D(), TrackDetectorAssociator::getTAMuonChamberMatches(), CachedTrajectory::getWideTrajectory(), TkPixelMeasurementDet::hasBadComponents(), TrackerMuonHitExtractor::init(), RectangularPlaneBounds::inout(), DiskSectorBounds::inside(), SimpleDiskBounds::inside(), SimpleCylinderBounds::inside(), GeneralNSurfaceDelimitedBounds::inside(), TrapezoidalPlaneBounds::inside(), RectangularPlaneBounds::inside(), SimpleConeBounds::inside(), CSCLayerGeometry::inside(), DeDxDiscriminatorTools::IsFarFromBorder(), ShallowGainCalibration::IsFarFromBorder(), SiStripGainFromData::IsFarFromBorder(), SiStripGainFromCalibTree::IsFarFromBorder(), TrackerRecHit::largerError(), TrackerRecHit::localError(), StripCPEfromTemplate::localParameters(), TwoBodyDecayTrajectoryFactory::match(), GlobalMuonTrackMatcher::match_dist(), Chi2MeasurementEstimatorBase::maximalLocalDisplacement(), ForwardMeasurementEstimator::maximalLocalDisplacement(), BarrelMeasurementEstimator::maximalLocalDisplacement(), RectangularStripTopology::measurementError(), DTTopology::measurementError(), TrapezoidalStripTopology::measurementError(), RectangularPixelTopology::measurementError(), CSCRadialStripTopology::measurementError(), TkRadialStripTopology::measurementError(), TkClonerImpl::operator()(), operator<<(), TRecHit2DPosConstraint::parametersError(), RecHit2DLocalPos::parametersError(), MuonTransientTrackingRecHit::parametersError(), HelpertRecHit2DLocalPos::parError(), CSCSegmentValidation::plotResolution(), CSCRecHit2DValidation::plotResolution(), HIPAlignmentAlgorithm::processHit2D(), ShallowRechitClustersProducer::produce(), MuonTrackProducer::produce(), AlignmentMuonHIPTrajectorySelector::produce(), TkClonerImpl::project(), GSRecHitMatcher::projectOnly(), RecHitPropagator::propagate(), SiStripRecHitsValid::rechitanalysis(), SiStripTrackingRecHitsValid::rechitanalysis(), SiStripRecHitsValid::rechitanalysis_matched(), SiStripTrackingRecHitsValid::rechitanalysis_matched(), rotateCosSin(), TrackCandidateProducer::sameLocalParameters(), scale(), StateSegmentMatcher::setAPE4d(), SiTrackerGaussianSmearingRecHitConverter::smearHits(), TkGluedMeasurementDet::testStrips(), TrackEfficiencyMonitor::testTrackerTracks(), trajectoryToResiduals(), ErrorFrameTransformer::transform(), CSCSegAlgoShowering::updateParameters(), CSCSegAlgoDF::updateParameters(), HelpertRecHit2DLocalPos::updateWithAPE(), CSCSegAlgoHitPruning::weightMatrix(), CSCSegAlgoShowering::weightMatrix(), CSCSegAlgoTC::weightMatrix(), CSCSegAlgoST::weightMatrix(), CSCSegAlgoDF::weightMatrix(), CSCSegAlgoSK::weightMatrix(), and SimpleNavigableLayer::wellInside().

26 { return theyy;}
float theyy
Definition: LocalError.h:60

Member Data Documentation

float LocalError::thexx
private

Definition at line 58 of file LocalError.h.

Referenced by invalid(), and xx().

float LocalError::thexy
private

Definition at line 59 of file LocalError.h.

Referenced by xy().

float LocalError::theyy
private

Definition at line 60 of file LocalError.h.

Referenced by yy().