CMS 3D CMS Logo

Functions

CMSSW_4_4_3_patch1/src/Validation/RecoParticleFlow/src/Comparator.cc File Reference

#include <TFile.h>
#include <TH1.h>
#include <TH2.h>
#include <TStyle.h>
#include <TPaveStats.h>
#include <sstream>
#include <cstdlib>
#include <cassert>
#include "Validation/RecoParticleFlow/interface/Comparator.h"
#include "Validation/RecoParticleFlow/interface/TH2Analyzer.h"
#include "Validation/RecoParticleFlow/interface/NicePlot.h"

Go to the source code of this file.

Functions

Double_t fitFunction_f (Double_t *x, Double_t *par)

Function Documentation

Double_t fitFunction_f ( Double_t *  x,
Double_t *  par 
)

Definition at line 136 of file Comparator.cc.

References mathSSE::sqrt(), and relativeConstraints::value.

Referenced by Comparator::DrawGaussSigmaOverMeanXSlice(), and Comparator::DrawGaussSigmaSlice().

{
  const Double_t value=sqrt(par[0]*par[0]+par[1]*par[1]*(x[0]-par[3])+par[2]*par[2]*(x[0]-par[3])*(x[0]-par[3]))/x[0];
  return value;
}