-
Notifications
You must be signed in to change notification settings - Fork 0
/
rootlogon.C
60 lines (52 loc) · 1.84 KB
/
rootlogon.C
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
{
//////////////////////////////////////////////////////
// load macros //
//////////////////////////////////////////////////////
gROOT->LoadMacro("MoritzLutzAchimTill.c");
gROOT->LoadMacro("Felix.C");
gROOT->LoadMacro("style_felix.C");
//////////////////////////////////////////////////////
// set new styles //
//////////////////////////////////////////////////////
gStyle->SetOptFit(0000);
gStyle->SetNumberContours(255);
gStyle->SetOptStat("");
//gROOT->ProcessLine(".L style_felix.C");
displaystyle();
color(2);//choose colorset from Achim_Lutz_Till
//////////////////////////////////////////////////////
// launch custom browser //
//////////////////////////////////////////////////////
//new TBrowser("MyBrowser","MyBrowser",1210,5,700,450,0,"");; // Felix.c for 1920 display width
new TBrowser("MyBrowser","MyBrowser",1210,5,700,850,0,"");; // for Office 122
//new TBrowser();
/*
//////////////////////////////////////////////////////
// build canvas //
//////////////////////////////////////////////////////
TCanvas * MyC = new TCanvas("MyC","MyCanvas",1,1,541.*1.,541.*1.);
// MyC->Divide(2,1,0.0001,0.0001);
for (int i=0;i<1;++i)
{
MyC->cd(i);
gPad->SetRightMargin(0.15);
gPad->SetLeftMargin(0.15);
gPad->SetTopMargin(0.15);
gPad->SetBottomMargin(0.15);
}
MyC->cd(1);
*/
// gStyle->SetCanvasDefX(1); doesn't work??!!
// gStyle->SetCanvasDefY(1);
newcd(1,1);
crosshair(); // Felix.c
//eventbar(); // Felix.c
//////////////////////////////////////////////////////
// laod root file //
//////////////////////////////////////////////////////
//TFile* f = new TFile("CO2_320p5_0318_horiz_calib1.root");
//////////////////////////////////////////////////////
// execute additional macros //
//////////////////////////////////////////////////////
//e1pxyphi->Draw();
}