forked from CMSAachen3B/PlottingTool
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMS_lumi.h
43 lines (32 loc) · 985 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
40
41
42
43
#ifndef CMS_lumi_h
#define CMS_lumi_h
#include "TPad.h"
#include "TLatex.h"
#include "TLine.h"
#include "TBox.h"
#include "TASImage.h"
//
// Global variables
//
TString cmsText = "CMS";
short cmsTextFont = 61; // default is helvetic-bold
bool writeExtraText = false;
TString extraText = "Preliminary";
short 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.6;
float lumiTextOffset = 0.2;
float cmsTextSize = 0.75;
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 = "20.1 fb^{-1}";
TString lumi_8TeV = "19.7 fb^{-1}";
TString lumi_7TeV = "5.1 fb^{-1}";
bool drawLogo = false;
void CMS_lumi( TPad* pad, int iPeriod=3, int iPosX=10 );
#endif