CMS 3D CMS Logo

Classes | Functions

/afs/cern.ch/work/a/aaltunda/public/www/CMSSW_6_2_7/src/DQM/EcalPreshowerMonitorModule/interface/ESTimingTask.h File Reference

#include "FWCore/Framework/interface/EDAnalyzer.h"
#include "FWCore/Framework/interface/Event.h"
#include "FWCore/ParameterSet/interface/ParameterSet.h"
#include "FWCore/Framework/interface/ESHandle.h"
#include "FWCore/Framework/interface/EventSetup.h"
#include "CondFormats/ESObjects/interface/ESGain.h"
#include "TF1.h"
#include "TH1F.h"

Go to the source code of this file.

Classes

class  ESTimingTask

Functions

double fitf (double *x, double *par)

Function Documentation

double fitf ( double *  x,
double *  par 
)

Definition at line 30 of file ESTimingTask.cc.

References n, funct::pow(), and findQualityFiles::v.

Referenced by ESRecHitFitAlgo::ESRecHitFitAlgo(), and ESTimingTask::ESTimingTask().

                                    {

  double wc = par[2];
  double n  = par[3]; // n-1 (in fact)
  double v1 = pow(wc/n*(x[0]-par[1]), n);
  double v2 = TMath::Exp(n-wc*(x[0]-par[1]));
  double v  = par[0]*v1*v2;

  if (x[0] < par[1]) v = 0;

  return v;
}