forked from ltikvica/WZanalysis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMetSystematicsTool.h
52 lines (29 loc) · 900 Bytes
/
MetSystematicsTool.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#ifndef MetSystematicsTool_h
#define MetSystematicsTool_h
#include "TH1D.h"
#include "TLorentzVector.h"
#include <string>
#include <map>
#include <vector>
using namespace std;
// Define pure static class with histo definitions
typedef std::map< pair<int,int>, TLorentzVector> METEventMap;
class MetSystematicsTool {
public:
static MetSystematicsTool * GetInstance();
// void LoadMETValues();
void LoadMETMap(int type);
void SetInputFile(string s);
float GetMETValue(int run, int event, int type);
TLorentzVector GetMETVector(int run, int event, int type);
private:
MetSystematicsTool();
static MetSystematicsTool * _instance;
int metType;
std::string met_fileName;
// std::map< pair<int,int>, float> metValues;
// std::map< pair<int,int>, TLorentzVector> metVectors;
// METEventMap metVectors;
std::map<int,METEventMap * > metMaps;
};
#endif