ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/cbrown/Development/DistributedModelCalculations/ShapeLimits/ShapeWorkerScript.C
Revision: 1.4
Committed: Mon Apr 30 08:34:44 2012 UTC (13 years ago) by buchmann
Content type: text/plain
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +0 -1 lines
Log Message:
removed unused variable

File Contents

# User Rev Content
1 buchmann 1.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/CrossSectionReader.C"
16     #include "../../Plotting/Modules/Systematics.C"
17 buchmann 1.3 #include "../../Plotting/Modules/SugarCoating.C"
18     #include "../../Plotting/Modules/ExclusionPlot.C"
19 buchmann 1.1 #include "../../Plotting/Modules/SUSYScan.C"
20     #include "../last_configuration.C"
21    
22     #include <TCut.h>
23     #include <TROOT.h>
24     #include <TCanvas.h>
25     #include <TMath.h>
26     #include <TColor.h>
27     #include <TPaveText.h>
28     #include <TRandom.h>
29     #include <TH1.h>
30     #include <TH2.h>
31     #include <TF1.h>
32     #include <TSQLResult.h>
33    
34     #ifndef Verbosity
35     #define Verbosity 0
36     #endif
37     #ifndef HUSH
38     #define HUSH 1
39     #endif
40    
41     using namespace PlottingSetup;
42    
43     int main(int narg, char *args[])
44     {
45     if(narg<3||narg>3) {
46     cout << "USAGE : " << endl;
47     cout << args[0] << " Njobs thisjob" << endl;
48     cout << " where Njobs is the number of jobs, and thisjob correspond to this jobs' job number" << endl;
49     return -1;
50     }
51    
52     float njobs=atoi(args[1]);
53     float jobnumber=atoi(args[2]);
54    
55     cout << "Number of jobs: " << njobs << endl;
56     cout << "This is job number : " << jobnumber << endl;
57    
58 buchmann 1.2 read_config();
59    
60 buchmann 1.1 gROOT->SetStyle("Plain");
61     setTDRStyle();
62     gStyle->SetTextFont(42);
63     bool showList=false;
64     set_directory(PlottingSetup::directoryname);
65     set_treename("events");//you can set the treename here to be used; options are "events" (for reco) for "PFevents" (for particle flow)
66     define_SMS_sample(showList,allsamples,signalsamples,scansample);
67     setlumi(luminosity);
68     do_png(true);
69     do_pdf(false);
70     do_eps(false);
71     do_C(false);
72     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!
73    
74    
75     bool systonly=false;
76     bool efficiencyonly=false;
77     bool shapeanalysis=true;
78    
79 buchmann 1.2 scan_SUSY_parameter_space(mcjzb,datajzb,jzb_cuts,PlottingSetup::requireZ,MCPeakError,DataPeakError, njobs, jobnumber,systonly,efficiencyonly,shapeanalysis);
80 buchmann 1.1
81     return 0;
82     }
83