Main Page
Namespaces
Classes
Package Documentation
FastSimulation
Calorimetry
interface
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
19
#include "
FWCore/Utilities/interface/Exception.h
"
20
#include "
FWCore/ParameterSet/interface/ParameterSet.h
"
21
22
#include <TH3F.h>
23
#include <TFile.h>
24
#include <TROOT.h>
25
26
27
class
KKCorrectionFactors
{
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
*/
33
KKCorrectionFactors
(
const
edm::ParameterSet
&
pset
);
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_
;
41
bool
interpolate3D_
;
42
43
};
44
45
#endif
KKCorrectionFactors::KKCorrectionFactors
KKCorrectionFactors(const edm::ParameterSet &pset)
Definition:
KKCorrectionFactors.cc:3
KKCorrectionFactors
Definition:
KKCorrectionFactors.h:27
muonDTDigis_cfi.pset
pset
Definition:
muonDTDigis_cfi.py:27
KKCorrectionFactors::interpolate3D_
bool interpolate3D_
Definition:
KKCorrectionFactors.h:41
KKCorrectionFactors::~KKCorrectionFactors
~KKCorrectionFactors()
Definition:
KKCorrectionFactors.h:34
ParameterSet.h
Exception.h
KKCorrectionFactors::getScale
float getScale(float genEnergy, float genEta, float simEnergy) const
Definition:
KKCorrectionFactors.cc:33
KKCorrectionFactors::h3_
TH3F * h3_
Definition:
KKCorrectionFactors.h:40
edm::ParameterSet
Definition:
ParameterSet.h:36
Generated for CMSSW Reference Manual by
1.8.11