ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/cbrown/AnalysisFramework/DistributedModelCalculations/LimitsFromSystematics/WorkerScript.C
Revision: 1.5
Committed: Wed Nov 23 15:32:37 2011 UTC (13 years, 5 months ago) by buchmann
Content type: text/plain
Branch: MAIN
CVS Tags: cbaf_4_98ifb_paper, cbaf_4p7ifb, HEAD
Changes since 1.4: +1 -3 lines
Log Message:
Updated includes; also including ResultLibrary

File Contents

# Content
1 #include <iostream>
2 #include <vector>
3 #include <sys/stat.h>
4 #include "../../Plotting/Modules/GeneralToolBox.C"
5 #include "../../Plotting/Modules/SampleClass.C"
6 #include "../../Plotting/Modules/Setup.C"
7 #include "../../Plotting/Modules/PeakFinder.C"
8 #include "../../Plotting/Modules/Poisson_Calculator.C"
9 #include "../../Plotting/Modules/setTDRStyle.C"
10 #include "../../Plotting/Modules/ActiveSamples.C"
11 #include "../../Plotting/Modules/UpperLimitsWithShape.C"
12 #include "../../Plotting/Modules/Plotting_Functions.C"
13 #include "../../Plotting/Modules/LimitCalculation.C"
14 #include "../../Plotting/Modules/ResultModule.C"
15 #include "../../Plotting/Modules/Systematics.C"
16 #include "../../Plotting/Modules/CrossSectionReader.C"
17 #include "../../Plotting/Modules/SUSYScan.C"
18 #include "../last_configuration.C"
19 #include <TCut.h>
20 #include <TROOT.h>
21 #include <TCanvas.h>
22 #include <TMath.h>
23 #include <TColor.h>
24 #include <TPaveText.h>
25 #include <TRandom.h>
26 #include <TH1.h>
27 #include <TH2.h>
28 #include <TF1.h>
29 #include <TSQLResult.h>
30
31 #ifndef Verbosity
32 #define Verbosity 0
33 #endif
34 #ifndef HUSH
35 #define HUSH 1
36 #endif
37
38 //using namespace std;
39
40 using namespace PlottingSetup;
41
42 int main(int narg, char *args[])
43 {
44 if(narg<4||narg>4) {
45 cout << "USAGE : " << endl;
46 cout << args[0] << " Njobs thisjob (syst file)" << endl;
47 cout << " where Njobs is the number of jobs, and thisjob correspond to this jobs' job number, and (syst file) is the ABSOLUTE path of the systematics file in shome" << endl;
48 return -1;
49 }
50
51 float njobs=atoi(args[1]);
52 float jobnumber=atoi(args[2]);
53 string fsystfilename=(string)args[3];
54
55 gROOT->SetStyle("Plain");
56 setTDRStyle();
57 gStyle->SetTextFont(42);
58 bool showList=false;
59 set_directory(PlottingSetup::directoryname);
60 set_treename("events");//you can set the treename here to be used; options are "events" (for reco) for "PFevents" (for particle flow)
61 define_SMS_sample(showList,allsamples,signalsamples,scansample);
62 setlumi(luminosity);
63 do_png(true);
64 do_pdf(false);
65 do_eps(false);
66 do_C(false);
67 setessentialcut(essential);//this sets the essential cut; this one is used in the draw command so it is AUTOMATICALLY applied everywhere. IMPORTANT: Do NOT store weights here!
68
69 read_config();
70
71 establish_SUSY_limits(mcjzb,datajzb,jzb_cuts,PlottingSetup::requireZ, MCPeakError, fsystfilename, njobs, jobnumber);
72
73
74
75 return 0;
76 }
77