CMS 3D CMS Logo

Classes | Functions
ESTimingTask.h File Reference
#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 "DataFormats/EcalDigi/interface/EcalDigiCollections.h"
#include "DQMServices/Core/interface/DQMEDAnalyzer.h"
#include "TF1.h"
#include "TH1F.h"
#include "DQMServices/Core/interface/DQMStore.h"

Go to the source code of this file.

Classes

class  ESTimingTask
 

Functions

double fitf (double *x, double *par)
 

Function Documentation

◆ fitf()

double fitf ( double *  x,
double *  par 
)

Definition at line 26 of file ESTimingTask.cc.

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

Referenced by ESTimingTask::ESTimingTask().

26  {
27  double wc = par[2];
28  double n = par[3]; // n-1 (in fact)
29  double v1 = pow(wc / n * (x[0] - par[1]), n);
30  double v2 = TMath::Exp(n - wc * (x[0] - par[1]));
31  double v = par[0] * v1 * v2;
32 
33  if (x[0] < par[1])
34  v = 0;
35 
36  return v;
37 }
float x
Power< A, B >::type pow(const A &a, const B &b)
Definition: Power.h:29