CMS 3D CMS Logo

EcalTPGParamBuilder.cc File Reference

#include "EcalTPGParamBuilder.h"
#include "CalibCalorimetry/EcalTPGTools/plugins/EcalTPGDBApp.h"
#include "Geometry/CaloGeometry/interface/CaloGeometry.h"
#include "Geometry/CaloGeometry/interface/CaloSubdetectorGeometry.h"
#include "Geometry/CaloGeometry/interface/CaloCellGeometry.h"
#include "Geometry/Records/interface/CaloGeometryRecord.h"
#include "Geometry/EcalMapping/interface/EcalElectronicsMapping.h"
#include "Geometry/EcalMapping/interface/EcalMappingRcd.h"
#include "DataFormats/EcalDetId/interface/EcalSubdetector.h"
#include "DataFormats/EcalDetId/interface/EBDetId.h"
#include "DataFormats/EcalDetId/interface/EEDetId.h"
#include "CondFormats/DataRecord/interface/EcalIntercalibConstantsRcd.h"
#include "CondFormats/EcalObjects/interface/EcalADCToGeVConstant.h"
#include "CondFormats/DataRecord/interface/EcalADCToGeVConstantRcd.h"
#include "CondFormats/EcalObjects/interface/EcalMGPAGainRatio.h"
#include "CondFormats/DataRecord/interface/EcalGainRatiosRcd.h"
#include "CondFormats/DataRecord/interface/EcalPedestalsRcd.h"
#include "SimCalorimetry/EcalSimAlgos/interface/EcalSimParameterMap.h"
#include <iostream>
#include <string>
#include <sstream>
#include <vector>
#include <time.h>
#include <TF1.h>
#include <iomanip>
#include <fstream>

Go to the source code of this file.

Functions

double oneOverEtResolEt (double *x, double *par)


Function Documentation

double oneOverEtResolEt ( double *  x,
double *  par 
)

Definition at line 37 of file EcalTPGParamBuilder.cc.

References e, and funct::sqrt().

Referenced by EcalTPGParamBuilder::computeLUT().

00037                                                 { 
00038   double Et = x[0] ;
00039   if (Et<1e-6) return 1./par[1] ; // to avoid division by 0.
00040   double resolEt_overEt = sqrt( (par[0]/sqrt(Et))*(par[0]/sqrt(Et)) + (par[1]/Et)*(par[1]/Et) + par[2]*par[2] ) ;
00041   return 1./(Et*resolEt_overEt) ;
00042 }


Generated on Tue Jun 9 17:51:03 2009 for CMSSW by  doxygen 1.5.4