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::Measurement1D ( )
inline

Definition at line 16 of file Measurement1D.h.

16 : theValue(0.) , theError(0.) {};
Measurement1D::Measurement1D ( const double &  aValue)
inline

Definition at line 18 of file Measurement1D.h.

18  :
19  theValue(aValue) , theError(0.) {};
Measurement1D::Measurement1D ( const double &  aValue,
const double &  aError 
)
inline

Definition at line 21 of file Measurement1D.h.

22  : theValue(aValue) , theError(aError) {};
Measurement1D::~Measurement1D ( )
inline

Definition at line 26 of file Measurement1D.h.

26 {} ;

Member Function Documentation

double Measurement1D::error ( ) const
inline

Definition at line 30 of file Measurement1D.h.

References theError.

Referenced by argparse.ArgumentParser::_get_option_tuples(), python.rootplot.argparse.ArgumentParser::_get_option_tuples(), argparse.ArgumentParser::_parse_known_args(), python.rootplot.argparse.ArgumentParser::_parse_known_args(), argparse.ArgumentParser::_parse_optional(), python.rootplot.argparse.ArgumentParser::_parse_optional(), argparse.ArgumentParser::_read_args_from_files(), python.rootplot.argparse.ArgumentParser::_read_args_from_files(), argparse.ArgumentParser::add_subparsers(), python.rootplot.argparse.ArgumentParser::add_subparsers(), addMeas(), PatBJetTrackAnalyzer::analyze(), PatBJetVertexAnalyzer::analyze(), PixelTrackBuilder::build(), Page1Parser.Page1Parser::check_for_whole_start_tag(), DAClusterizerInZ::dump(), DAClusterizerInZ_vect::dump(), DAClusterizerInZT_vect::dump(), DAClusterizerInZ::fill(), DAClusterizerInZ_vect::fill(), DAClusterizerInZT_vect::fill(), BJetEnergyRegressionMVA::fillAdditionalVariables(), PrimaryVertexValidation::fillMap(), PrimaryVertexValidation::fillTrendPlot(), PrimaryVertexValidation::fillTrendPlotByIndex(), DivisiveVertexFinder::findVertexes(), reco::GsfTangent::GsfTangent(), TrackFilterForPVFinding::operator()(), Cluster1DMerger< T >::operator()(), pixeltemp::Cluster1DMerger< T >::operator()(), reco::VertexSorting< SecondaryVertex >::operator()(), reco::VertexFilter::operator()(), argparse.ArgumentParser::parse_args(), python.rootplot.argparse.ArgumentParser::parse_args(), argparse.ArgumentParser::parse_known_args(), python.rootplot.argparse.ArgumentParser::parse_known_args(), Onia2MuMuPAT::produce(), BoostedDoubleSVProducer::produce(), TemplatedInclusiveVertexFinder< InputContainer, VTX >::produce(), PixelFitterByConformalMappingAndLine::run(), pat::VertexAssociation::setDr(), pat::VertexAssociation::setDz(), VertexDistanceXY::signedDistance(), VertexDistance3D::signedDistance(), sqr(), and ImpactParameterAlgorithm::tag().

30 { return theError;}
double Measurement1D::significance ( ) const
inline

Definition at line 32 of file Measurement1D.h.

References theError, and theValue.

Referenced by PatBJetTrackAnalyzer::analyze(), PatBJetVertexAnalyzer::analyze(), PFRecoTauDiscriminationByFlight::discriminate(), TemplatedSimpleSecondaryVertexComputer< IPTI, VTX >::discriminator(), reco::TauImpactParameterInfo::discriminator(), BJetEnergyRegressionMVA::fillAdditionalVariables(), CombinedSVComputer::fillCommonVariables(), HLTmmkkFilter::hltFilter(), HLTmmkFilter::hltFilter(), VertexMerging::mergeVertex(), TracksClusteringFromDisplacedSeed::nearTracks(), TrackFilterForPVFinding::operator()(), GhostTrackComputer::operator()(), reco::VertexSorting< SecondaryVertex >::operator()(), reco::VertexFilter::operator()(), TemplatedVertexMerger< VTX >::produce(), SoftPFMuonTagInfoProducer::produce(), SoftPFElectronTagInfoProducer::produce(), HLTmumutktkVtxProducer::produce(), HLTmumutkVtxProducer::produce(), VertexTableProducer::produce(), BoostedDoubleSVProducer::produce(), TemplatedInclusiveVertexFinder< InputContainer, VTX >::produce(), significanceHigher(), SoftLepton::tag(), reco::IPTagInfo< Container, Base >::taggingVariables(), reco::TrackSelector::trackSelection(), TrackVertexArbitration< VTX >::trackVertexArbitrator(), and PFRecoTauDiscriminationByFlightPathSignificance::vertexSignificance().

32  {
33  if (theError == 0) return 0;
34  else return theValue/theError;
35 }
double Measurement1D::value ( ) const
inline

Definition at line 28 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__(), BPHCompositeVertexSelect::accept(), BPHFittedVertexSelect::accept(), addMeas(), PatBJetTrackAnalyzer::analyze(), PatBJetVertexAnalyzer::analyze(), average.Average::average(), PixelTrackBuilder::build(), Vispa.Views.PropertyView.FileProperty::buttonClicked(), Types.string::configValue(), Types.FileInPath::configValue(), TemplatedSimpleSecondaryVertexComputer< IPTI, VTX >::discriminator(), reco::TauImpactParameterInfo::discriminator(), VertexCompatibleWithBeam::distanceToBeam(), DAClusterizerInZ::dump(), DAClusterizerInZ_vect::dump(), DAClusterizerInZT_vect::dump(), Mixins.UsingBlock::dumpPython(), DAClusterizerInZ::fill(), DAClusterizerInZ_vect::fill(), DAClusterizerInZT_vect::fill(), BJetEnergyRegressionMVA::fillAdditionalVariables(), CombinedSVComputer::fillCommonVariables(), PrimaryVertexValidation::fillMap(), PrimaryVertexValidation::fillTrendPlot(), PrimaryVertexValidation::fillTrendPlotByIndex(), DivisiveVertexFinder::findVertexes(), PVValHelper::getMAD(), reco::GsfTangent::GsfTangent(), HLTmmkkFilter::hltFilter(), Types.int32::insertInto(), Types.uint32::insertInto(), Types.int64::insertInto(), Types.uint64::insertInto(), Types.double::insertInto(), Mixins.UsingBlock::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(), Vispa.Views.PropertyView.FileProperty::labelDoubleClicked(), main(), Clusterizer1DCommons::ComparePairs< T >::operator()(), Cluster1DMerger< T >::operator()(), GhostTrackComputer::operator()(), pixeltemp::Cluster1DMerger< T >::operator()(), reco::VertexSorting< SecondaryVertex >::operator()(), VertexCompatibleWithBeam::operator()(), reco::VertexFilter::operator()(), SoftPFMuonTagInfoProducer::produce(), SoftPFElectronTagInfoProducer::produce(), Onia2MuMuPAT::produce(), VertexTableProducer::produce(), TemplatedInclusiveVertexFinder< InputContainer, VTX >::produce(), BtoCharmDecayVertexMergerT< VTX >::resolveBtoDchain(), PixelFitterByConformalMappingAndLine::run(), pat::VertexAssociation::setDr(), pat::VertexAssociation::setDz(), VertexDistanceXY::signedDistance(), VertexDistance3D::signedDistance(), sqr(), ImpactParameterAlgorithm::tag(), SoftLepton::tag(), reco::IPTagInfo< Container, Base >::taggingVariables(), reco::TrackSelector::trackSelection(), and TrackVertexArbitration< VTX >::trackVertexArbitrator().

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