1 |
peiffer |
1.1 |
#ifndef MCDataScaleFactors_H
|
2 |
|
|
#define MCDataScaleFactors_H
|
3 |
|
|
|
4 |
|
|
#include "include/Utils.h"
|
5 |
|
|
#include "include/EventCalc.h"
|
6 |
|
|
|
7 |
|
|
/**
|
8 |
|
|
* @short module to apply data-MC lepton scale factors for trigger and ID
|
9 |
|
|
*
|
10 |
|
|
*
|
11 |
|
|
*/
|
12 |
|
|
class LeptonScaleFactors{
|
13 |
|
|
public:
|
14 |
|
|
/**
|
15 |
|
|
* constructor
|
16 |
|
|
*
|
17 |
|
|
* first argument: list of corrections to be applied together with weight factors for luminosity, example: "MuonRunA 1.5 MuonRunB 2.6 MuonRunC 7.8"
|
18 |
|
|
*
|
19 |
|
|
* second argument: systematic shift
|
20 |
|
|
* @see E_SystShift
|
21 |
|
|
*/
|
22 |
|
|
LeptonScaleFactors(std::vector<std::string> correctionlist, E_SystShift syst_shift=e_Default);
|
23 |
|
|
///Default destructor
|
24 |
|
|
~LeptonScaleFactors(){};
|
25 |
|
|
|
26 |
|
|
///return the weighted correction factor
|
27 |
|
|
double GetWeight();
|
28 |
|
|
|
29 |
|
|
private:
|
30 |
|
|
E_SystShift m_syst_shift;
|
31 |
|
|
std::vector<std::pair<std::string, double> > m_correctionlist;
|
32 |
|
|
|
33 |
|
|
};
|
34 |
|
|
|
35 |
|
|
|
36 |
|
|
#endif
|