/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
FastSimulation/Calorimetry/interface/KKCorrectionFactors.h
41 строка
949 B
Cms Build
Clang-Format
16 май 2019, 15:48
16 май 2019, 15:48
12a0cf0
Код
Авторство
О чём код?
// -*- C++ -*- // // Package: FastSimulation/Calorimetry // Class: KKCorrectionFactors // /**\class KKCorrectionFactorsr Description: Returns scale from an TH3F histogram in a root file */ // // Original Author: Maximilian Knut Kiesel // Created: Fri, 07 Aug 2015 // // #ifndef CALORESPONSE_H #define CALORESPONSE_H #include "FWCore/Utilities/interface/Exception.h" #include "FWCore/ParameterSet/interface/ParameterSet.h" #include <TH3F.h> #include <TFile.h> #include <TROOT.h> class KKCorrectionFactors { public: /* Constructor: pset must contain two strings: "fileName" is the name of the * file in which the TH3F named "histogramName" is saved. */ KKCorrectionFactors(const edm::ParameterSet& pset); ~KKCorrectionFactors() { delete h3_; }; float getScale(float genEnergy, float genEta, float simEnergy) const; private: // histogram which contains the scales TH3F* h3_; bool interpolate3D_; }; #endif