CMS 3D CMS Logo

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

Go to the source code of this file.

Functions

Double_t fitFunction_f (Double_t *x, Double_t *par)
 

Function Documentation

◆ fitFunction_f()

Double_t fitFunction_f ( Double_t *  x,
Double_t *  par 
)

Definition at line 121 of file Comparator.cc.

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

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

121  {
122  const Double_t value =
123  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])) /
124  x[0];
125  return value;
126 }
T sqrt(T t)
Definition: SSEVec.h:19
Definition: value.py:1
float x