CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
KKCorrectionFactors.h
Go to the documentation of this file.
1 // -*- C++ -*-
2 //
3 // Package: FastSimulation/Calorimetry
4 // Class: KKCorrectionFactors
5 //
9 //
10 // Original Author: Maximilian Knut Kiesel
11 // Created: Fri, 07 Aug 2015
12 //
13 //
14 
15 
16 #ifndef CALORESPONSE_H
17 #define CALORESPONSE_H
18 
21 
22 #include <TH3F.h>
23 #include <TFile.h>
24 #include <TROOT.h>
25 
26 
28 
29  public:
30  /* Constructor: pset must contain two strings: "fileName" is the name of the
31  * file in which the TH3F named "histogramName" is saved.
32  */
34  ~KKCorrectionFactors() { delete h3_; };
35 
36  float getScale( float genEnergy, float genEta, float simEnergy ) const;
37 
38  private:
39  // histogram which contains the scales
40  TH3F* h3_;
42 
43 };
44 
45 #endif
KKCorrectionFactors(const edm::ParameterSet &pset)
float getScale(float genEnergy, float genEta, float simEnergy) const