CMS 3D CMS Logo

Functions
EcalTPGParamBuilder.cc File Reference
#include "EcalTPGParamBuilder.h"
#include "EcalTPGDBApp.h"
#include "Geometry/CaloGeometry/interface/CaloCellGeometry.h"
#include "DataFormats/EcalDetId/interface/EcalSubdetector.h"
#include "DataFormats/EcalDetId/interface/EBDetId.h"
#include "DataFormats/EcalDetId/interface/EEDetId.h"
#include "CondFormats/EcalObjects/interface/EcalMGPAGainRatio.h"
#include "CalibCalorimetry/EcalLaserCorrection/interface/EcalLaserDbService.h"
#include "CalibCalorimetry/EcalLaserCorrection/interface/EcalLaserDbRecord.h"
#include "SimCalorimetry/EcalSimAlgos/interface/EcalSimParameterMap.h"
#include "SimCalorimetry/EcalSimAlgos/interface/EBShape.h"
#include "SimCalorimetry/EcalSimAlgos/interface/EEShape.h"
#include "FWCore/MessageLogger/interface/MessageLogger.h"
#include <TF1.h>
#include <TH2F.h>
#include <TFile.h>
#include <TNtuple.h>
#include <ctime>
#include <iomanip>
#include <fstream>
#include <sstream>

Go to the source code of this file.

Functions

double oneOverEtResolEt (double *x, double *par)
 

Function Documentation

◆ oneOverEtResolEt()

double oneOverEtResolEt ( double *  x,
double *  par 
)

Definition at line 32 of file EcalTPGParamBuilder.cc.

32  {
33  double Et = x[0];
34  if (Et < 1e-6)
35  return 1. / par[1]; // to avoid division by 0.
36  double resolEt_overEt =
37  sqrt((par[0] / sqrt(Et)) * (par[0] / sqrt(Et)) + (par[1] / Et) * (par[1] / Et) + par[2] * par[2]);
38  return 1. / (Et * resolEt_overEt);
39 }

References MillePedeFileConverter_cfg::e, and mathSSE::sqrt().

Referenced by EcalTPGParamBuilder::computeLUT().

mathSSE::sqrt
T sqrt(T t)
Definition: SSEVec.h:19
genVertex_cff.x
x
Definition: genVertex_cff.py:13
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37