-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathUnfoldingHistogramFactory.h
More file actions
46 lines (25 loc) · 1 KB
/
Copy pathUnfoldingHistogramFactory.h
File metadata and controls
46 lines (25 loc) · 1 KB
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
#ifndef UnfoldingHistoFactory_h
#define UnfoldingHistoFactory_h
#include "TH1D.h"
#include <string>
#include <map>
#include <vector>
using namespace std;
// Define pure static class with histo definitions
class UnfoldingHistogramFactory {
public:
static UnfoldingHistogramFactory * GetInstance();
void SetBinning(std::string file);
TH1D * createHistogram(std::string key, std::string name, std::string title);
static TH1D * createZPtHistogram(std::string name, std::string title);
static TH1D * createLeadingJetHistogram(std::string name, std::string title);
static TH1D * createNjetsHistogram(std::string name, std::string title);
static TH1D * createHistogramForVar(std::string variable, std::string s, std::string title);
private:
UnfoldingHistogramFactory() {};
UnfoldingHistogramFactory(UnfoldingHistogramFactory const & ) {};
void createDefaultBinning(std::string key);
static UnfoldingHistogramFactory * _instance;
std::map<string,vector<double> > binLimitsMap;
};
#endif