CMS 3D CMS Logo

Functions
DTTimeBoxFitter.cc File Reference
#include "CalibMuon/DTCalibration/interface/DTTimeBoxFitter.h"
#include <iostream>
#include <vector>
#include "TFile.h"
#include "TH1F.h"
#include "TMath.h"
#include "TF1.h"
#include "TString.h"

Go to the source code of this file.

Functions

double intGauss (double *x, double *par)
 

Function Documentation

◆ intGauss()

double intGauss ( double *  x,
double *  par 
)

Definition at line 257 of file DTTimeBoxFitter.cc.

257  {
258  double media = par[1];
259  double sigma = par[2];
260  double var = (x[0] - media) / (sigma * sqrt(2.));
261 
262  return 0.5 * par[0] * (1 + TMath::Erf(var));
263 }

References mathSSE::sqrt(), trigObjTnPSource_cfi::var, and genVertex_cff::x.

Referenced by DTTimeBoxFitter::fitTimeBox().

trigObjTnPSource_cfi.var
var
Definition: trigObjTnPSource_cfi.py:21
mathSSE::sqrt
T sqrt(T t)
Definition: SSEVec.h:19
genVertex_cff.x
x
Definition: genVertex_cff.py:13