CMS 3D CMS Logo

Functions
ESTimingTask.cc File Reference
#include <memory>
#include <fstream>
#include <iostream>
#include "FWCore/ServiceRegistry/interface/Service.h"
#include "FWCore/MessageLogger/interface/MessageLogger.h"
#include "FWCore/Framework/interface/MakerMacros.h"
#include "FWCore/Framework/interface/Frameworkfwd.h"
#include "FWCore/ParameterSet/interface/FileInPath.h"
#include "DataFormats/DetId/interface/DetId.h"
#include "DataFormats/EcalDetId/interface/ESDetId.h"
#include "DataFormats/EcalDigi/interface/ESDataFrame.h"
#include "DataFormats/EcalRecHit/interface/EcalRecHitCollections.h"
#include "CondFormats/DataRecord/interface/ESGainRcd.h"
#include "DQMServices/Core/interface/DQMStore.h"
#include "DQM/EcalPreshowerMonitorModule/interface/ESTimingTask.h"
#include "TMath.h"
#include "TGraph.h"

Go to the source code of this file.

Functions

double fitf (double *x, double *par)
 
static const edm::ParameterSetDescriptionFillerPluginFactory::PMaker< edm::ParameterSetDescriptionFiller< ESTimingTask > > s_filler__LINE__ ("ESTimingTask")
 
static const edm::MakerPluginFactory::PMaker< edm::WorkerMaker< ESTimingTask > > s_maker__LINE__ ("ESTimingTask")
 

Function Documentation

double fitf ( double *  x,
double *  par 
)

Definition at line 26 of file ESTimingTask.cc.

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

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 }
Power< A, B >::type pow(const A &a, const B &b)
Definition: Power.h:30
static const edm::ParameterSetDescriptionFillerPluginFactory::PMaker<edm::ParameterSetDescriptionFiller< ESTimingTask > > s_filler__LINE__ ( "ESTimingTask"  )
static
static const edm::MakerPluginFactory ::PMaker< edm::WorkerMaker< ESTimingTask > > s_maker__LINE__ ( "ESTimingTask"  )
static