CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
Measurement1D Class Reference

#include <Measurement1D.h>

Public Member Functions

double error () const
 
 Measurement1D ()
 
 Measurement1D (const double &aValue)
 
 Measurement1D (const double &aValue, const double &aError)
 
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() [1/3]

Measurement1D::Measurement1D ( )
inline

Definition at line 15 of file Measurement1D.h.

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

◆ Measurement1D() [2/3]

Measurement1D::Measurement1D ( const double &  aValue)
inline

Definition at line 17 of file Measurement1D.h.

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

◆ Measurement1D() [3/3]

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

Definition at line 19 of file Measurement1D.h.

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

◆ ~Measurement1D()

Measurement1D::~Measurement1D ( )
inline

Definition at line 23 of file Measurement1D.h.

23 {};

Member Function Documentation

◆ error()

double Measurement1D::error ( ) const
inline

◆ significance()

double Measurement1D::significance ( ) const
inline

◆ value()

double Measurement1D::value ( ) const
inline

Definition at line 25 of file Measurement1D.h.

References theValue.

Referenced by Types.int32::__nonzero__(), Types.uint32::__nonzero__(), Types.int64::__nonzero__(), Types.uint64::__nonzero__(), Types.double::__nonzero__(), Types.bool::__nonzero__(), Types.string::__nonzero__(), addMeas(), MiniAODSVAnalyzer::analyze(), PatBJetTrackAnalyzer::analyze(), DiMuonVertexMonitor::analyze(), DiMuonVertexValidation::analyze(), DiElectronVertexValidation::analyze(), average.Average::average(), PixelTrackBuilder::build(), btagbtvdeep::TrackInfoBuilder::buildTrackInfo(), Types.string::configValue(), Types.FileInPath::configValue(), reco::TauImpactParameterInfo::discriminator(), VertexAnalysis::dist2D(), VertexCompatibleWithBeam::distanceToBeam(), DiMuonMassBiasClient::dqmEndJob(), Mixins.UsingBlock::dumpPython(), DiMuonMassBiasMonitor::fillDecayHistograms(), HeavyFlavorDQMAnalyzer::fillDecayHistograms(), PrimaryVertexValidation::fillMap(), DeepBoostedJetTagInfoProducer::fillParticleFeatures(), PrimaryVertexValidation::fillTrendPlot(), PrimaryVertexValidation::fillTrendPlotByIndex(), SplitVertexResolution::fillTrendPlotByIndex(), AlignmentTrackFromVertexSelector::findClosestVertex(), DiMuonVertexMonitor::findClosestVertex(), DivisiveVertexFinder::findVertexes(), PVValHelper::getMAD(), reco::GsfTangent::GsfTangent(), HLTmmkkFilter::hltFilter(), Mixins.UsingBlock::insertInto(), Types.int32::insertInto(), Types.uint32::insertInto(), Types.int64::insertInto(), Types.uint64::insertInto(), Types.double::insertInto(), Types.bool::insertInto(), Types.string::insertInto(), Types.FileInPath::insertInto(), Types.vint32::insertInto(), Types.vuint32::insertInto(), Types.vint64::insertInto(), Types.vuint64::insertInto(), Types.vdouble::insertInto(), Types.vbool::insertInto(), Types.vstring::insertInto(), Clusterizer1DCommons::ComparePairs< T >::operator()(), GhostTrackComputer::operator()(), reco::VertexSorting< reco::TemplatedSecondaryVertex >::operator()(), VertexCompatibleWithBeam::operator()(), Onia2MuMuPAT::produce(), VertexTableProducer::produce(), SoftPFElectronTagInfoProducer::produce(), SoftPFMuonTagInfoProducer::produce(), TemplatedInclusiveVertexFinder< InputContainer, VTX >::produce(), BJetEnergyRegressionVarProducer< T >::produce(), BtoCharmDecayVertexMergerT< VTX >::resolveBtoDchain(), PixelFitterByConformalMappingAndLine::run(), VertexDistanceXY::signedDistance(), VertexDistance3D::signedDistance(), ImpactParameterAlgorithm::tag(), SoftLepton::tag(), reco::TrackSelector::trackSelection(), and TrackVertexArbitration< VTX >::trackVertexArbitrator().

25 { return theValue; }

Member Data Documentation

◆ theError

double Measurement1D::theError
private

Definition at line 38 of file Measurement1D.h.

Referenced by error(), and significance().

◆ theValue

double Measurement1D::theValue
private

Definition at line 37 of file Measurement1D.h.

Referenced by significance(), and value().