CMS 3D CMS Logo

Functions

/data/refman/pasoursint/CMSSW_5_3_9_patch3/src/Validation/RecoJets/src/CompMethods.cc File Reference

#include <memory>
#include <string>
#include <fstream>
#include <iostream>
#include <cmath>
#include "Validation/RecoJets/interface/CompMethods.h"

Go to the source code of this file.

Functions

double Gauss (double *x, double *par)

Function Documentation

double Gauss ( double *  x,
double *  par 
)

Definition at line 13 of file CompMethods.cc.

References cmsCodeRulesChecker::arg.

                                    {
  double arg=0;
  if(par[2]!=0){
    arg = (x[0]-par[1])/par[2];
  }
  return par[0]*TMath::Exp(-0.5*arg*arg);
}