CMS 3D CMS Logo

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

Double_t fitFunction_f ( Double_t *  x,
Double_t *  par 
)

Definition at line 121 of file Comparator.cc.

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

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
uint16_t const *__restrict__ x
Definition: gpuClustering.h:39