L1Trigger
L1CaloTrigger
interface
L1EGammaEECalibrator.h
Go to the documentation of this file.
1
#ifndef L1Trigger_L1CaloTrigger_L1EGammaEECalibrator_h
2
#define L1Trigger_L1CaloTrigger_L1EGammaEECalibrator_h
3
4
#include "
FWCore/Framework/interface/Frameworkfwd.h
"
5
#include <vector>
6
#include <set>
7
#include <cmath>
8
9
class
L1EGammaEECalibrator
{
10
public
:
11
explicit
L1EGammaEECalibrator
(
const
edm::ParameterSet
&);
12
13
float
calibrationFactor
(
const
float
&
pt
,
const
float
&
eta
)
const
;
14
15
private
:
16
int
etaBin
(
float
eta
)
const
{
return
bin
(
eta_bins
,
std::abs
(
eta
)); }
17
int
ptBin
(
float
pt
)
const
{
return
bin
(
pt_bins
,
pt
); }
18
int
bin
(
const
std::set<float>& container,
float
value
)
const
;
19
20
std::set<float>
eta_bins
;
21
std::set<float>
pt_bins
;
22
std::vector<float>
calib_factors
;
23
};
24
25
#endif
DiDispStaMuonMonitor_cfi.pt
pt
Definition:
DiDispStaMuonMonitor_cfi.py:39
L1EGammaEECalibrator::eta_bins
std::set< float > eta_bins
Definition:
L1EGammaEECalibrator.h:20
L1EGammaEECalibrator::etaBin
int etaBin(float eta) const
Definition:
L1EGammaEECalibrator.h:16
PVValHelper::eta
Definition:
PVValidationHelpers.h:70
L1EGammaEECalibrator::ptBin
int ptBin(float pt) const
Definition:
L1EGammaEECalibrator.h:17
L1EGammaEECalibrator::L1EGammaEECalibrator
L1EGammaEECalibrator(const edm::ParameterSet &)
Definition:
L1EGammaEECalibrator.cc:18
edm::ParameterSet
Definition:
ParameterSet.h:47
L1EGammaEECalibrator::calibrationFactor
float calibrationFactor(const float &pt, const float &eta) const
Definition:
L1EGammaEECalibrator.cc:54
L1EGammaEECalibrator::bin
int bin(const std::set< float > &container, float value) const
Definition:
L1EGammaEECalibrator.cc:45
value
Definition:
value.py:1
L1EGammaEECalibrator
Definition:
L1EGammaEECalibrator.h:9
Frameworkfwd.h
L1EGammaEECalibrator::pt_bins
std::set< float > pt_bins
Definition:
L1EGammaEECalibrator.h:21
funct::abs
Abs< T >::type abs(const T &t)
Definition:
Abs.h:22
L1EGammaEECalibrator::calib_factors
std::vector< float > calib_factors
Definition:
L1EGammaEECalibrator.h:22
Generated for CMSSW Reference Manual by
1.8.16