-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrootlogon.C
More file actions
executable file
·59 lines (53 loc) · 1.88 KB
/
rootlogon.C
File metadata and controls
executable file
·59 lines (53 loc) · 1.88 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
47
48
49
50
51
52
53
54
55
56
57
58
59
{
printf("Using GitHub version of rootlogon.C.\n");
//Set macro location in .rootrc
//------------------------------------
//Historic settings
//------------------------------------
//gROOT->LoadMacro("/net/bavarians/utilities/util.cc");
//gROOT->LoadMacro("/net/bavarians/utilities/dsp.cc");
//gROOT->LoadMacro("/net/helios/B12/helios_b12_plottools.cc");
//------------------------------------
//Load general macros and settings
//------------------------------------
gROOT->LoadMacro("fit.cc");
//gROOT->LoadMacro("scripts/online_plot_tools.cc");
setdisplay(); //calls function in fit.cc
settime(true);
sethome();
//------------------------------------
//Load specfic macros and settings
//------------------------------------
gROOT->LoadMacro("load_and_plot.cc");
//gROOT->LoadMacro("temp.cc");
gStyle->SetStatH(0.05);//reduces the size of the stat box
//------------------------------------
//Load HELIOS simulation
//------------------------------------
//gROOT->LoadMacro("C:/root/macros/PlotSim.cxx");
//------------------------------------
//Load PGAC simulation
//------------------------------------
//gROOT->LoadMacro("generator.cc");
//setbeam(0,0);
//setangles(0,4.5,0,360);
//setresm(0.6);
//source();
//------------------------------------
//Load ANASEN trees
//------------------------------------
//printf("loading tree_structure.h...\n");
//gROOT->LoadMacro("/home/lighthall/anasen/analysis_software/tree_structure.h");
//gROOT->ProcessLine(".L /home/lighthall/anasen/analysis_software/tree_structure.h");
Double_t radius=3.846284509;
Double_t gold_pos=27.7495;
TF1 *wfit = new TF1("wfit","[0]*sin(fmod(6-x+24,24)*TMath::TwoPi()/24+[1])+[2]",0,24);
Double_t spacer[8]={27.7495,
22.8988,
16.8789,
15.6083,
12.4741,
7.4268,
61.5495,
-2.8505};
}