ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/dhidas/OSUAnalysis/Tools/scripts/run_fit.cc
Revision: 1.1.1.1 (vendor branch)
Committed: Thu Dec 1 16:28:48 2011 UTC (13 years, 5 months ago) by dhidas
Content type: text/plain
Branch: dhidas, MAIN
CVS Tags: START, HEAD
Changes since 1.1: +0 -0 lines
Log Message:
osu copy modified

File Contents

# Content
1 //
2 // Try fit ranges of:
3 //
4 // 0.2 to 1.0, 1.2, 1.4
5 // 0.3 to 1.1, 1.3, 1.5
6 // 0.4 to 1.2, 1.4, 1.6
7 //
8 void run_fit(bool mc=true, bool data=false){
9
10
11 gROOT->LoadMacro("fit_new.C");
12
13 SetDrawMC(mc);
14 SetDrawData(data);
15
16
17
18 gROOT->ProcessLine(".!rm -f est_*gaus.txt");
19 gROOT->ProcessLine(".!rm -f est_*pol3.txt");
20
21 double begin[9] = { 0.1, 0.1, 0.1,
22 0.2, 0.2, 0.2,
23 0.3, 0.3, 0.3 };
24 double end[9] = { 1.0, 1.2, 1.4,
25 1.1, 1.3, 1.5,
26 1.2, 1.4, 1.6 };
27
28
29
30 cout << "\n Free Fit"<< endl;
31 cout << "==========\n"<< endl;
32 // no zoom
33 for(short i=0; i<9; ++i) fit("gaus", begin[i], end[i], false);
34 //for(short i=0; i<9; ++i) fit("landau", begin[i], end[i], false);
35 //for(short i=0; i<9; ++i) fit("pol3", begin[i], end[i], false);
36 // zoom in on y-axis
37 for(short i=0; i<9; ++i) fit("gaus", begin[i], end[i], true);
38 //for(short i=0; i<9; ++i) fit("landau", begin[i], end[i], true);
39 //for(short i=0; i<9; ++i) fit("pol3", begin[i], end[i], true);
40
41
42 cout << "\n Constrained Fit"<< endl;
43 cout << "=================\n"<< endl;
44
45 /*
46 // no zoom
47 for(short i=0; i<9; ++i) fit_fixPara("gaus", begin[i], end[i], false);
48 //for(short i=0; i<9; ++i) fit_fixPara("landau", begin[i], end[i], false);
49 //for(short i=0; i<9; ++i) fit_fixPara("pol3", begin[i], end[i], false);
50 // zoom in on y axis
51 for(short i=0; i<9; ++i) fit_fixPara("gaus", begin[i], end[i], true);
52 //for(short i=0; i<9; ++i) fit_fixPara("landau", begin[i], end[i], true);
53 //for(short i=0; i<9; ++i) fit_fixPara("pol3", begin[i], end[i], true);
54 */
55
56 gROOT->LoadMacro("plot_qcd_estimate.C");
57 plot_qcd_estimate("gaus");
58
59 }