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

Comparing UserCode/cbrown/Development/Plotting/Modules/GeneralToolBox.C (file contents):
Revision 1.5 by buchmann, Tue Apr 10 13:44:59 2012 UTC vs.
Revision 1.6 by buchmann, Wed Apr 18 12:48:24 2012 UTC

# Line 58 | Line 58 | namespace PlottingSetup {
58      vector<float> global_ratio_binning;
59      int publicmode=0;
60      int PaperMode=0; // PaperMode=true will suppress "Preliminary" in DrawPrelim()
61 +    int Approved=0; // Approved=true will only plot approved plots
62   }
63  
64   bool dopng=false;
# Line 552 | Line 553 | void DrawPrelim(float writelumi=generalt
553      if(isMC) prelimtext << "CMS Simulation, #sqrt{s} = 7 TeV";
554      else prelimtext << "CMS" << prel << ", #sqrt{s} = 7 TeV";
555    } else {
556 <    if(isMC) prelimtext << "CMS Simulation, #sqrt{s} = 7 TeV, L_{int} = " << std::setprecision(2) <<writelumi<<" "<<barn<<"^{-1}";
557 <    else prelimtext << "CMS" << prel << ", #sqrt{s} = 7 TeV, L_{int} = " << std::setprecision(2) <<writelumi<<" "<<barn<<"^{-1}";
556 >    if(isMC) prelimtext << "CMS Simulation, #sqrt{s} = 7 TeV, L_{int} = " << std::setprecision(3) <<writelumi<<" "<<barn<<"^{-1}";
557 >     else prelimtext << "CMS" << prel << ", #sqrt{s} = 7 TeV, L_{int} = " << std::setprecision(3) <<writelumi<<" "<<barn<<"^{-1}";
558    }
559    TPaveText *eventSelectionPaveText = new TPaveText(0.27, 0.93,0.77, 1.0,"blNDC");
560    eventSelectionPaveText->SetFillStyle(4000);
561    eventSelectionPaveText->SetBorderSize(0);
562    eventSelectionPaveText->SetFillColor(kWhite);
563    eventSelectionPaveText->SetTextFont(42);
564 +  //eventSelectionPaveText->SetTextFont(62); // paper style
565    eventSelectionPaveText->SetTextSize(0.042);
566    eventSelectionPaveText->AddText(prelimtext.str().c_str());
567    eventSelectionPaveText->Draw();

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines