forked from cvernier/HH4b2016
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMS_lumi.h
40 lines (30 loc) · 953 Bytes
/
CMS_lumi.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
#include "TPad.h"
#include "TLatex.h"
#include "TLine.h"
#include "TBox.h"
#include "TASImage.h"
//
// Global variables
//
TString cmsText = "CMS";
float cmsTextFont = 61; // default is helvetic-bold
bool writeExtraText = false;
TString extraText = "Preliminary";
float extraTextFont = 52; // default is helvetica-italics
// text sizes and text offsets with respect to the top frame
// in unit of the top margin size
float lumiTextSize = 0.4;
float lumiTextOffset = 0.2;
float cmsTextSize = 0.475;
float cmsTextOffset = 0.1; // only used in outOfFrame version
float relPosX = 0.045;
float relPosY = 0.035;
float relExtraDY = 1.2;
// ratio of "CMS" and extra text size
float extraOverCmsTextSize = 0.76;
TString lumi_13TeV = "";
TString lumi_8TeV = "19.7 fb^{-1}";
TString lumi_7TeV = "5.1 fb^{-1}";
TString lumi_sqrtS = "";
bool drawLogo = false;
void CMS_lumi( TPad* pad, int iPeriod=3, int iPosX=10 );