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

Comparing UserCode/cbrown/Development/Plotting/Modules/ExclusionPlot.C (file contents):
Revision 1.9 by buchmann, Mon Apr 30 08:39:44 2012 UTC vs.
Revision 1.10 by buchmann, Fri May 4 12:05:03 2012 UTC

# Line 266 | Line 266 | void produce_extensive_plots(TH2F *xsec,
266    stringstream partial;
267    partial << "Limits/exclusion__" << limits->GetName();
268    fill_with_text(exclline,excllined3,excllinet3,ca->cd(4),scantype);
269 <  CompleteSave(ca,partial.str());
269 > //  CompleteSave(ca,partial.str());
270  
271    ca->cd(5);
272    (hardlimit(rellimits))->Draw("COL");
273    exclline->Draw("same");
274 +  TText *a = write_title("Exclusion shape for 3x#sigma_{ref}");
275 +  a->Draw();
276    ca->cd(6);
277    (hardlimit(rellimitst3))->Draw("COL");
278    excllinet3->Draw("same");
279 +  TText *b = write_title("Exclusion shape for #sigma_{ref}");
280 +  b->Draw();
281    ca->cd(7);
282    (hardlimit(rellimitsd3))->Draw("COLZ");
283 +  TText *c = write_title("Exclusion shape for #sigma_{ref}/3");
284 +  c->Draw();
285    excllined3->Draw("same");
286    
287    CompleteSave(ca,partial.str()+"__PlusInfo");
# Line 865 | Line 871 | string give_nice_source_label(string nam
871    int mappoint=name.find("map");
872    if(mappoint<0||mappoint>500) return name; // this mean that something weird is happening
873    stringstream nice_label;
874 <  nice_label << "JZB > " << name.substr(mappoint+3,name.size()) << " GeV";
874 >  string identifier=name.substr(mappoint+3,name.size());
875 >  if(identifier!="0") nice_label << "JZB > " << name.substr(mappoint+3,name.size()) << " GeV";
876 >  else nice_label << "JZB shape";
877    return nice_label.str();
878   }
879  
# Line 959 | Line 967 | TH2F *make_best_limits(vector<TH2F*> exp
967    TLegend *sourceleg = new TLegend(0.2,0.5,0.55,0.75);
968    for(int i=0;i<(int)explimits.size();i++) {
969      stringstream legendentry;
970 <    legendentry << i+1 << " = " << give_nice_source_label(explimits[i]->GetName());
970 >    legendentry << give_nice_source_label(explimits[i]->GetName());
971      Int_t currcol=get_exclusion_region_color(i+1,bestlimitsource);
972      explimits[i]->SetFillColor(currcol);
973      explimits[i]->SetLineColor(currcol);
# Line 1214 | Line 1222 | void make_all_syst_plots(vector<TH2F*> a
1222    }
1223   }
1224  
1225 + string IdentifyScan(TString histoname) {
1226 +  cout << "We are dealing with a histo called " << histoname << endl;
1227 +  if (histoname.Contains("T5zzl")) return "0.75";
1228 +  if(histoname.Contains("T5zzh")) return "0.25";
1229 +  if(histoname.Contains("T5zz")) return "0.5";
1230 +  
1231 +  return "IdentifyScanError"+string(histoname.Data());
1232 + }
1233 +
1234   void process_file(TFile* file, float stdmargin) {
1235    standardmargin=stdmargin;
1236    xsecfilename=PlottingSetup::cbafbasedir+"/"+PlottingSetup::SMSReferenceXSFile;
# Line 1224 | Line 1241 | void process_file(TFile* file, float std
1241    
1242    int scantype=PlottingSetup::SMS;
1243    std::string scanx = "0"; // Just for the legend
1227  if (TString(file->GetName()).Contains("T5zzl")) scanx = "0.75";
1228  else  if(TString(file->GetName()).Contains("T5zzh")) scanx = "0.25";
1229  else if(TString(file->GetName()).Contains("T5zz")) scanx = "0.5";
1244    
1245    vector<TH2F*> systematics_histos;
1246    vector<TH2F*> limits_histos;
# Line 1271 | Line 1285 | void process_file(TFile* file, float std
1285        else if(is_systematic) systematics_histos.push_back((TH2F*) obj);
1286        if(name.Contains("mSUGRA")) scantype=PlottingSetup::mSUGRA;
1287        if(name.Contains("GMSB")) scantype=PlottingSetup::GMSB;
1288 +      if(name.Contains("ScanIdentifier")) scanx=IdentifyScan(name);
1289      }
1290 + //  if (TString(file->GetName()).Contains("T5zzl")) scanx = "0.75";
1291 + //  else  if(TString(file->GetName()).Contains("T5zzh")) scanx = "0.25";
1292 + //  else if(TString(file->GetName()).Contains("T5zz")) scanx = "0.5";
1293      write_warning(__FUNCTION__,"Deactivated systematics plots");
1294   //  if(systematics_histos.size()>0) make_all_syst_plots(systematics_histos,scantype,scanx);
1295    if(limits_histos.size()>0) create_exclusion_plots(limits_histos,scantype,scanx);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines