CMS 3D CMS Logo

Functions
ChiSquaredProbability.h File Reference

Go to the source code of this file.

Functions

float ChiSquaredProbability (double chiSquared, double nrDOF)
 
float LnChiSquaredProbability (double chiSquared, double nrDOF)
 

Function Documentation

◆ ChiSquaredProbability()

float ChiSquaredProbability ( double  chiSquared,
double  nrDOF 
)

Returns the probability that an observation, correctly described by a model with nrDOF, will give rise to a chi-squared larger than the one observed; from this, one can interpret this probability as how likely it is to observe as high (or higher) a chi-squared. source: Numerical Recipes

Definition at line 13 of file ChiSquaredProbability.cc.

13  {
14  return IncompleteGammaComplement::value(nrDOF / 2, chiSquared / 2);
15 }

References IncompleteGammaComplement::value().

Referenced by BPHGenericVertexSelect::accept(), OuterTrackerMonitorTTTrack::analyze(), ElectronConversionRejectionValidator::analyze(), TkConvValidator::analyze(), PhotonValidator::analyze(), OverlapValidation::analyze(), PhotonAnalyzer::analyze(), ConversionProducer::buildCollection(), ConfigurableTrimmedVertexFinder::clean(), egammaisolation::EgammaTrackExtractor::deposit(), CSCOfflineMonitor::doSegments(), CSCValidation::doSegments(), VertexFitterResult::fill(), MuonTrackAnalyzer::fillPlots(), SVTagInfoValidationAnalyzer::fillRecoToSim(), recoBSVTagInfoValidationAnalyzer::fillRecoToSim(), SVTagInfoValidationAnalyzer::fillSimToReco(), recoBSVTagInfoValidationAnalyzer::fillSimToReco(), LeptonSkimming::filter(), OniaPhotonConversionProducer::HighpuritySubset(), CSCSegAlgoTC::isSegmentGood(), egammaisolation::EgammaTrackSelector::operator()(), ChiSquared::probability(), PFConversionProducer::produce(), ConversionTrackMerger::produce(), CSCSegAlgoST::prune_bad_hits(), ConversionVertexFinder::run(), CSCSegAlgoTC::segmentSort(), TrimmedVertexFinder::theWorst(), and PrimaryVertexMonitor::vertexPlots().

◆ LnChiSquaredProbability()

float LnChiSquaredProbability ( double  chiSquared,
double  nrDOF 
)
IncompleteGammaComplement::value
static float value(float a, float x)
Definition: IncompleteGammaComplement.cc:11
IncompleteGammaComplement::ln
static float ln(float a, float x)
Definition: IncompleteGammaComplement.cc:22