CMS 3D CMS Logo

Measurement1D Class Reference

A class that combines a value and it's associated uncertainty, or error, together. More...

#include <DataFormats/GeometryCommonDetAlgo/interface/Measurement1D.h>

List of all members.

Public Member Functions

double error () const
 Measurement1D (const double &aValue, const double &aError)
 Measurement1D (const double &aValue)
 Measurement1D ()
double significance () const
double value () const
 ~Measurement1D ()

Private Attributes

double theError
double theValue


Detailed Description

A class that combines a value and it's associated uncertainty, or error, together.

Provides a more explicit interface than a pair<double,double>. If you don't like the name, propose a better one!

Definition at line 11 of file Measurement1D.h.


Constructor & Destructor Documentation

Measurement1D::Measurement1D (  )  [inline]

Definition at line 16 of file Measurement1D.h.

00016 : theValue(0.) , theError(0.) {};

Measurement1D::Measurement1D ( const double &  aValue  )  [inline]

Definition at line 18 of file Measurement1D.h.

00018                                      : 
00019   theValue(aValue) , theError(0.) {};

Measurement1D::Measurement1D ( const double &  aValue,
const double &  aError 
) [inline]

Definition at line 21 of file Measurement1D.h.

00022   : theValue(aValue) , theError(aError) {}; 

Measurement1D::~Measurement1D (  )  [inline]

Definition at line 26 of file Measurement1D.h.

00026 {} ;


Member Function Documentation

double Measurement1D::error (  )  const [inline]

Definition at line 30 of file Measurement1D.h.

References theError.

Referenced by PixelTrackBuilder::build(), DivisiveVertexFinder::findVertexes(), pixeltemp::Cluster1DMerger< T >::operator()(), Cluster1DMerger< T >::operator()(), reco::VertexSorting::operator()(), PixelTrackBuilder::print(), PixelFitterByConformalMappingAndLine::run(), pat::VertexAssociation::setDr(), pat::VertexAssociation::setDz(), VertexDistanceXY::signedDistance(), DistanceOfVertices2D::signedDistance(), VertexDistance3D::signedDistance(), and ImpactParameterAlgorithm::tag().

00030 { return theError;}

double Measurement1D::significance (  )  const [inline]

Definition at line 32 of file Measurement1D.h.

References theError, and theValue.

Referenced by SimpleSecondaryVertexComputer::discriminator(), reco::TauImpactParameterInfo::discriminator(), Flight2DSvFilter::operator()(), reco::VertexFilter::operator()(), TrackFilterForPVFinding::operator()(), CombinedSVComputer::operator()(), reco::TrackSelector::operator()(), reco::VertexSorting::operator()(), TrackIPProducer::produce(), and reco::TrackIPTagInfo::taggingVariables().

00032                             {
00033   if (theError == 0) return 0;
00034   else return theValue/theError;
00035 }

double Measurement1D::value (  )  const [inline]

Definition at line 28 of file Measurement1D.h.

References theValue.

Referenced by PixelTrackBuilder::build(), SimpleSecondaryVertexComputer::discriminator(), reco::TauImpactParameterInfo::discriminator(), VertexCompatibleWithBeam::distanceToBeam(), DivisiveVertexFinder::findVertexes(), Flight2DSvFilter::operator()(), reco::VertexFilter::operator()(), CombinedSVComputer::operator()(), reco::TrackSelector::operator()(), pixeltemp::Cluster1DMerger< T >::operator()(), VertexCompatibleWithBeam::operator()(), Cluster1DMerger< T >::operator()(), reco::VertexSorting::operator()(), Clusterizer1DCommons::ComparePairs< T >::operator()(), PixelTrackBuilder::print(), PixelFitterByConformalMappingAndLine::run(), pat::VertexAssociation::setDr(), pat::VertexAssociation::setDz(), VertexDistanceXY::signedDistance(), DistanceOfVertices2D::signedDistance(), VertexDistance3D::signedDistance(), ImpactParameterAlgorithm::tag(), and reco::TrackIPTagInfo::taggingVariables().

00028 { return theValue;}


Member Data Documentation

double Measurement1D::theError [private]

Definition at line 40 of file Measurement1D.h.

Referenced by error(), and significance().

double Measurement1D::theValue [private]

Definition at line 39 of file Measurement1D.h.

Referenced by significance(), and value().


The documentation for this class was generated from the following file:
Generated on Tue Jun 9 18:28:10 2009 for CMSSW by  doxygen 1.5.4