test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Functions
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().

137 {
138  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];
139  return value;
140 }
T x() const
Cartesian x coordinate.
T sqrt(T t)
Definition: SSEVec.h:48