-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathHistosRun.h
executable file
·75 lines (58 loc) · 2.04 KB
/
HistosRun.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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
// Purpose: Keep track of trigger rates and prescales per run
//
// Author: [email protected]
// Created: June 4, 2010
// Updated: June 4, 2010
#ifndef __HistosRun_h__
#define __HistosRun_h__
#include "TH1I.h"
#include "TH1D.h"
#include "TH2D.h"
#include "TProfile.h"
#include "TDirectory.h"
#include "TMath.h"
#include <string>
#include <map>
#include "settings.h"
class HistosRun {
public:
double etamin;
double etamax;
std::vector<std::string> trg;
std::map<std::string, double> pt;
double lumsum;
double lumsum2;
std::map<int, std::map<int, float> > lums;
std::map<int, float> runlums;
std::map<int, float> runlums2;
std::map<std::string, std::map<int, float> > runlums_trg;
// trigger rate counters
std::map<std::string, std::map<int, int> > t_trg;
std::map<std::string, std::map<int, int> > tw_trg; // prescale weight
std::map<std::string, std::map<int, int> > t_trgtp;
std::map<std::string, std::map<int, int> > c_trg; // calo
// Average number of vertices
std::map<std::string, std::map<int, int> > npv_trg;
std::map<std::string, std::map<int, int> > npvgood_trg;
// Average component fractions
std::map<std::string, std::map<int, double> > c_chf;
std::map<std::string, std::map<int, double> > c_nef;
std::map<std::string, std::map<int, double> > c_nhf;
std::map<std::string, std::map<int, double> > c_betastar;
std::map<std::string, std::map<int, double> > c_betaprime;
// Same with tag-and-probe method
std::map<std::string, std::map<int, double> > c_chftp;
std::map<std::string, std::map<int, double> > c_neftp;
std::map<std::string, std::map<int, double> > c_nhftp;
std::map<std::string, std::map<int, double> > c_betastartp;
std::map<std::string, std::map<int, double> > c_betaprimetp;
// prescale counters
std::map<std::string, std::map<int, int> > p_trg;
std::map<std::string, std::map<int, int> > p_trgpair;
// Other non-lumi checks
HistosRun(TDirectory *dir, double etamin = 0., double etamax = 3.);
~HistosRun();
private:
TDirectory *dir;
};
#endif // __HistosRun_h__