ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/cbrown/Development/Plotting/ZbAnalysis.C
(Generate patch)

Comparing UserCode/cbrown/Development/Plotting/ZbAnalysis.C (file contents):
Revision 1.6 by buchmann, Mon Nov 19 16:21:52 2012 UTC vs.
Revision 1.7 by buchmann, Tue Dec 4 11:36:11 2012 UTC

# Line 5 | Line 5
5   #include <stdio.h>
6   #include <stdlib.h>
7   #include "Modules/GeneralToolBox.C"
8 + #include "Modules/JSON/JSONSampleLoader.C"
9   #include "Modules/SampleClass.C"
10   #include "Modules/setTDRStyle.C"
11   #include "Modules/Setup.C"
# Line 50 | Line 51 | using namespace PlottingSetup;
51   void usage(int passed=0 ) {
52    std::cout << "USAGE : " << std::endl;
53    std::cout << "You can use different options when running this program : " << std::endl;
54 <  std::cout << "\033[1;34m inclusive (i)\033[0m   \t\t  Run the algorithm with the inclusive (all jets) selection" << std::endl;
54 <  std::cout << "\033[1;34m exclusive (e)\033[0m   \t\t  Run the algorithm with the exclusive (b-jets only) selection" << std::endl;
54 >  std::cout << "\033[1;34m Full (f)\033[0m   \t\t  Run the FULL analysis including all systematics etc. " << std::endl;
55    std::cout << std::endl;
56    std::cout << "\033[1;34m all\033[0m  \t\t  All processes of the standard workflow" << std::endl;
57    std::cout << "\033[1;34m png\033[0m   \t\t  Save all plots as pngs (also available: --pdf, --root, --eps, --C) standard: png&pdf" << std::endl;
# Line 72 | Line 72 | int main (int argc, char ** argv)
72    int saveRoot=true;
73    int savepng=true;
74    int saveeps=false;
75 <  int do_inclusive=false;
75 >  int do_Full=false;
76  
77    std::string directory="";
78    int option_iterator;
# Line 91 | Line 91 | int main (int argc, char ** argv)
91                 {"pdf",      no_argument,       &savepdf,1},
92                 {"root",     no_argument,       &saveRoot,1},
93                 {"C",        no_argument,       &saveC,1},
94 <               {"inclusive", no_argument,      &do_inclusive,1},
95 <               {"exclusive", no_argument,      &do_inclusive,0},
94 >               {"full",     no_argument,       &do_Full,1},
95                 /* The following options store values.*/
96                 {"dir",     required_argument, 0, 'd'},
97                 {0, 0, 0, 0}
98               };
99      int option_index = 0;
100 <    option_iterator = getopt_long(argc, argv, "d:ei",long_options, &option_index);
100 >    option_iterator = getopt_long(argc, argv, "d:f",long_options, &option_index);
101      if(option_iterator == -1) moreoptions=false;
102      else {
103        option_counter++;
# Line 116 | Line 115 | int main (int argc, char ** argv)
115                 directory=(std::string)optarg;
116                 std::cout<<"Option directory was passed with argument " << optarg << std::endl;
117                 break;
118 <             case 'e':
119 <               do_inclusive=false;
121 <               break;
122 <             case 'i':
123 <               do_inclusive=true;
118 >             case 'f':
119 >               do_Full=true;
120                 break;
121               case '?':
122                 usage(option_iterator);
# Line 149 | Line 145 | int main (int argc, char ** argv)
145    
146    //define_Zb_samples(showList,allsamples,signalsamples,scansample,raresample,systsamples,qcdsamples);
147    write_warning(__FUNCTION__,"Need to adapt sample collection!");
152  write_warning(__FUNCTION__,"Where the hell are the b efficiency corrections?!");
148    define_samples(showList,allsamples,signalsamples,scansample,raresample,systsamples,qcdsamples,comparesamples);
149    setlumi(luminosity);
150    setessentialcut(essential&&TCut("id1==id2"));//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!
# Line 164 | Line 159 | int main (int argc, char ** argv)
159    
160  
161    
162 +  IsZbAnalysis=true;
163 +  IsWZAnalysis=false;
164 +  IsJZBAnalysis=false;
165    
166    
167    
# Line 172 | Line 170 | int main (int argc, char ** argv)
170    cout << " Still need to define errors in final plot " << endl;
171    
172    
173 <  do_basic_ZB_analysis(do_inclusive);
173 >  do_basic_ZB_analysis(do_Full);
174    return 0;  
175   }
176  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines