ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/cbrown/AnalysisFramework/Plotting/Modules/GeneralToolBox.C
Revision 1.60 - (view) (annotate) - [select for diffs]
Wed Apr 18 12:19:39 2012 UTC (13 years ago) by fronga
Branch: MAIN
CVS Tags: HEAD, cbaf_4_98ifb_paper
Changes since 1.59: +5 -4 lines
Diff to previous 1.59
Small changes for paper (more bold: we can still revert!)

Revision 1.59 - (view) (annotate) - [select for diffs]
Thu Jan 19 08:39:06 2012 UTC (13 years, 3 months ago) by buchmann
Branch: MAIN
CVS Tags: beforeFR20120418, cbaf_4p7ifb
Changes since 1.58: +5 -2 lines
Diff to previous 1.58
Added --paper switch, which removed 'Preliminary' from plots

Revision 1.58 - (view) (annotate) - [select for diffs]
Wed Jan 18 14:06:12 2012 UTC (13 years, 3 months ago) by fronga
Branch: MAIN
Changes since 1.57: +6 -5 lines
Diff to previous 1.57
Add possibility to change y axis title in ratio plot.

Revision 1.57 - (view) (annotate) - [select for diffs]
Tue Jan 10 13:57:28 2012 UTC (13 years, 3 months ago) by pablom
Branch: MAIN
Changes since 1.56: +2 -2 lines
Diff to previous 1.56
Blank space removed before a comma in the window text.

Revision 1.56 - (view) (annotate) - [select for diffs]
Tue Jan 10 13:49:37 2012 UTC (13 years, 3 months ago) by pablom
Branch: MAIN
Changes since 1.55: +7 -2 lines
Diff to previous 1.55
Adapted range for efficiency_curve_jzb and new option in DrawPrelim. If the input argument is 0 no luminosity tag is added to the text.

Revision 1.55 - (view) (annotate) - [select for diffs]
Thu Dec 8 16:14:40 2011 UTC (13 years, 5 months ago) by buchmann
Branch: MAIN
Changes since 1.54: +32 -26 lines
Diff to previous 1.54
Added public mode to suppress ASCII branding

Revision 1.54 - (view) (annotate) - [select for diffs]
Mon Dec 5 18:06:26 2011 UTC (13 years, 5 months ago) by buchmann
Branch: MAIN
Changes since 1.53: +13 -3 lines
Diff to previous 1.53
Added function to provide number with a given number of significant digits; updated CompleteSave for Virtualpads for saving to pdf

Revision 1.53 - (view) (annotate) - [select for diffs]
Wed Nov 30 16:13:43 2011 UTC (13 years, 5 months ago) by buchmann
Branch: MAIN
Changes since 1.52: +57 -1 lines
Diff to previous 1.52
Added chi2/ndf information on separate ratio plot

Revision 1.52 - (view) (annotate) - [select for diffs]
Wed Nov 16 14:50:33 2011 UTC (13 years, 5 months ago) by buchmann
Branch: MAIN
Changes since 1.51: +2 -2 lines
Diff to previous 1.51
Removed remaining calls to getaddrinfo to improve site compatibilty

Revision 1.51 - (view) (annotate) - [select for diffs]
Wed Nov 16 08:36:38 2011 UTC (13 years, 5 months ago) by buchmann
Branch: MAIN
Changes since 1.50: +1 -1 lines
Diff to previous 1.50
Removed weird box around Preliminary text (now in a way that will stop complaints when compiling)

Revision 1.50 - (view) (annotate) - [select for diffs]
Mon Nov 14 15:45:15 2011 UTC (13 years, 5 months ago) by fronga
Branch: MAIN
Changes since 1.49: +3 -3 lines
Diff to previous 1.49
Added possibility to also set Y position of Legend.

Revision 1.49 - (view) (annotate) - [select for diffs]
Sun Nov 13 18:26:04 2011 UTC (13 years, 5 months ago) by buchmann
Branch: MAIN
Changes since 1.48: +1 -0 lines
Diff to previous 1.48
First commit from Paris: Removing weird frame from CMS Preliminary text

Revision 1.48 - (view) (annotate) - [select for diffs]
Wed Nov 9 12:13:46 2011 UTC (13 years, 5 months ago) by buchmann
Branch: MAIN
Changes since 1.47: +2 -3 lines
Diff to previous 1.47
Reduced verbose compiling output (e.g. double instead of float and such)

Revision 1.47 - (view) (annotate) - [select for diffs]
Tue Nov 8 08:45:29 2011 UTC (13 years, 6 months ago) by buchmann
Branch: MAIN
Changes since 1.46: +31 -0 lines
Diff to previous 1.46
Better detection of host for scans (plus safety check before deleting anything)

Revision 1.46 - (view) (annotate) - [select for diffs]
Mon Nov 7 15:20:26 2011 UTC (13 years, 6 months ago) by buchmann
Branch: MAIN
Changes since 1.45: +10 -1 lines
Diff to previous 1.45
Improved ratio canvas presentation

Revision 1.45 - (view) (annotate) - [select for diffs]
Mon Nov 7 11:25:20 2011 UTC (13 years, 6 months ago) by buchmann
Branch: MAIN
Changes since 1.44: +26 -9 lines
Diff to previous 1.44
Ratio plot (with jzb ratio binning) directly on bpred plot; adapted draw_ratio_on_canvas to more intuitive save_with_ratio (which saves the canvas along with a canvas also containing the ratio [suffix _withratio); implemented saving of flipped template; and some extras ...

Revision 1.44 - (view) (annotate) - [select for diffs]
Thu Nov 3 10:40:27 2011 UTC (13 years, 6 months ago) by buchmann
Branch: MAIN
Changes since 1.43: +23 -0 lines
Diff to previous 1.43
Added a function to read content of a directory

Revision 1.43 - (view) (annotate) - [select for diffs]
Fri Oct 28 14:56:52 2011 UTC (13 years, 6 months ago) by buchmann
Branch: MAIN
Changes since 1.42: +27 -0 lines
Diff to previous 1.42
You can now also specify the jzb cuts you'd like to use with ./Selective_Plot_Generator.exec --jzbcuts cut1,cut2,cut3,cut4

Revision 1.42 - (view) (annotate) - [select for diffs]
Thu Oct 27 08:12:06 2011 UTC (13 years, 6 months ago) by buchmann
Branch: MAIN
Changes since 1.41: +3 -1 lines
Diff to previous 1.41
Different colors for the different analysis types (yes, big change...)

Revision 1.41 - (view) (annotate) - [select for diffs]
Tue Oct 25 12:28:18 2011 UTC (13 years, 6 months ago) by buchmann
Branch: MAIN
Changes since 1.40: +25 -0 lines
Diff to previous 1.40
Writing analysis type on screen

Revision 1.40 - (view) (annotate) - [select for diffs]
Mon Oct 24 15:05:37 2011 UTC (13 years, 6 months ago) by buchmann
Branch: MAIN
Changes since 1.39: +64 -20 lines
Diff to previous 1.39
Upgrade from HoneyPot to IceCreamBowl: merged in offpeak stuff, different warning color for frederic, saving to rootfile, only 3 attempts when computing limits and much, much more

Revision 1.39 - (view) (annotate) - [select for diffs]
Thu Oct 13 09:53:54 2011 UTC (13 years, 6 months ago) by buchmann
Branch: MAIN
CVS Tags: Honeypot, cbaf_2p1ifb
Changes since 1.38: +0 -8 lines
Diff to previous 1.38
Removed duplicate flagging function

Revision 1.38 - (view) (annotate) - [select for diffs]
Thu Oct 13 09:51:31 2011 UTC (13 years, 6 months ago) by buchmann
Branch: MAIN
Changes since 1.37: +123 -1 lines
Diff to previous 1.37
Changed the way ratios are drawn; no more smoothing.

Revision 1.37 - (view) (annotate) - [select for diffs]
Thu Sep 29 14:19:30 2011 UTC (13 years, 7 months ago) by buchmann
Branch: MAIN
Changes since 1.36: +1 -1 lines
Diff to previous 1.36
Flagging some changes

Revision 1.36 - (view) (annotate) - [select for diffs]
Thu Sep 29 14:16:17 2011 UTC (13 years, 7 months ago) by buchmann
Branch: MAIN
Changes since 1.35: +7 -0 lines
Diff to previous 1.35
Added a function to allow us to flag modified code segments and to verify that they have been double checked

Revision 1.35 - (view) (annotate) - [select for diffs]
Thu Sep 29 07:38:48 2011 UTC (13 years, 7 months ago) by buchmann
Branch: MAIN
Changes since 1.34: +52 -0 lines
Diff to previous 1.34
Added function to visualize memory consumption

Revision 1.34 - (view) (annotate) - [select for diffs]
Thu Sep 15 09:09:40 2011 UTC (13 years, 7 months ago) by buchmann
Branch: MAIN
Changes since 1.33: +14 -14 lines
Diff to previous 1.33
Save CBAF top directory in PlottingSetup namespace; this can be used e.g. for limit capsules and so on

Revision 1.33 - (view) (annotate) - [select for diffs]
Tue Sep 13 09:57:26 2011 UTC (13 years, 7 months ago) by buchmann
Branch: MAIN
Changes since 1.32: +49 -1 lines
Diff to previous 1.32
Added feature to save all plots (canvases) to a root file. The feature is currently deactivated (ROOT complains about filenames when opening the produced file, but displays all plots perfectly; since this is not exactly elegant it is deactivated ATM)

Revision 1.32 - (view) (annotate) - [select for diffs]
Tue Sep 6 10:39:13 2011 UTC (13 years, 8 months ago) by buchmann
Branch: MAIN
Changes since 1.31: +20 -1 lines
Diff to previous 1.31
Implemented an 'external' capsule called LimitCapsule to calculate the limits. If this capsule fails, it returns a non-zero exit code, prompting the script to run it again (up to five times).

Revision 1.31 - (view) (annotate) - [select for diffs]
Fri Sep 2 07:41:30 2011 UTC (13 years, 8 months ago) by fronga
Branch: MAIN
Changes since 1.30: +3 -3 lines
Diff to previous 1.30
Modified legend to match standards (see https://hypernews.cern.ch/HyperNews/CMS/get/SUS-11-015/66/1/2/1/2/1.html ).

Revision 1.30 - (view) (annotate) - [select for diffs]
Wed Aug 31 10:12:14 2011 UTC (13 years, 8 months ago) by buchmann
Branch: MAIN
Changes since 1.29: +1 -1 lines
Diff to previous 1.29
Little bugfix in Contains function

Revision 1.29 - (view) (annotate) - [select for diffs]
Wed Aug 31 08:08:33 2011 UTC (13 years, 8 months ago) by buchmann
Branch: MAIN
Changes since 1.28: +11 -2 lines
Diff to previous 1.28
Included SMS/mSUGRA info in maps as well (for plotting later on)

Revision 1.28 - (view) (annotate) - [select for diffs]
Fri Aug 26 10:37:21 2011 UTC (13 years, 8 months ago) by buchmann
Branch: MAIN
Changes since 1.27: +58 -0 lines
Diff to previous 1.27
Added a neat little feature to have CBAF write the limit chart in TeX for us

Revision 1.27 - (view) (annotate) - [select for diffs]
Thu Aug 25 14:24:00 2011 UTC (13 years, 8 months ago) by buchmann
Branch: MAIN
Changes since 1.26: +7 -13 lines
Diff to previous 1.26
Removed unnecessary lines in PlottingFunctions, removed potential memory leaks, added new kind of header for MC

Revision 1.26 - (view) (annotate) - [select for diffs]
Thu Aug 25 13:09:38 2011 UTC (13 years, 8 months ago) by buchmann
Branch: MAIN
Changes since 1.25: +32 -40 lines
Diff to previous 1.25
Adapted legend function so that one can draw a legend without the header; also, the header can now be drawn with a customized luminosity though it defaults to the official luminosity.

Revision 1.25 - (view) (annotate) - [select for diffs]
Wed Aug 24 19:41:58 2011 UTC (13 years, 8 months ago) by buchmann
Branch: MAIN
Changes since 1.24: +3 -3 lines
Diff to previous 1.24
Making the CMS Prelim stuff a tiny bit larger

Revision 1.24 - (view) (annotate) - [select for diffs]
Fri Aug 19 17:05:20 2011 UTC (13 years, 8 months ago) by buchmann
Branch: MAIN
Changes since 1.23: +4 -4 lines
Diff to previous 1.23
Fixing an issue with similarly named variables (lumi and luminosity; the former is now called gentoolboxlumi, as it is only set in the general toolbox at one point and forgotten afterwards)

Revision 1.23 - (view) (annotate) - [select for diffs]
Wed Aug 17 14:14:45 2011 UTC (13 years, 8 months ago) by buchmann
Branch: MAIN
Changes since 1.22: +4 -3 lines
Diff to previous 1.22
First commits towards Poisson ratio plots

Revision 1.22 - (view) (annotate) - [select for diffs]
Tue Aug 16 11:49:47 2011 UTC (13 years, 8 months ago) by buchmann
Branch: MAIN
Changes since 1.21: +27 -1 lines
Diff to previous 1.21
Some time functions to display the grace time for the limit calculation wrapper nicely

Revision 1.21 - (view) (annotate) - [select for diffs]
Tue Aug 16 07:36:26 2011 UTC (13 years, 8 months ago) by buchmann
Branch: MAIN
Changes since 1.20: +4 -0 lines
Diff to previous 1.20
Now providing the option to run ./Create_All_Plots.exec 1 to calculate peak positions, observed and predicted yields, and save all information in a file that can then be used for the susy model scans; this means that all these steps are just once and the data can then be used, instead of having each job redo this.

Revision 1.20 - (view) (annotate) - [select for diffs]
Mon Aug 15 14:27:40 2011 UTC (13 years, 8 months ago) by buchmann
Branch: MAIN
Changes since 1.19: +1 -1 lines
Diff to previous 1.19
Minimal change to keep the directory from getting too crowded (plots now saved in Plots subdirectory)

Revision 1.19 - (view) (annotate) - [select for diffs]
Mon Aug 15 07:02:49 2011 UTC (13 years, 8 months ago) by buchmann
Branch: MAIN
Changes since 1.18: +68 -0 lines
Diff to previous 1.18
Adapted fill_result_histos to only have functions that root 5.18 (i.e. my local installation) also has; since IntegralAndError is not part of that version, I've implemented it myself in the general toolbox, along with DoIntegral, using the exact code from root v5.30

Revision 1.18 - (view) (annotate) - [select for diffs]
Tue Aug 9 13:49:02 2011 UTC (13 years, 8 months ago) by fronga
Branch: MAIN
Changes since 1.17: +4 -2 lines
Diff to previous 1.17
Redraw canvas axes above plots before saving (with option to switch this off).

Revision 1.17 - (view) (annotate) - [select for diffs]
Mon Aug 8 14:21:16 2011 UTC (13 years, 9 months ago) by fronga
Branch: MAIN
Changes since 1.16: +5 -2 lines
Diff to previous 1.16
Small touches to the legend and luminosity labels.

Revision 1.16 - (view) (annotate) - [select for diffs]
Mon Jul 25 15:57:41 2011 UTC (13 years, 9 months ago) by buchmann
Branch: MAIN
Changes since 1.15: +21 -1 lines
Diff to previous 1.15
Updated scripts to permit processing in parallel. This affects function brokers but not the functions themselves. When being called the standard way (locally), no changes are in effect

Revision 1.15 - (view) (annotate) - [select for diffs]
Fri Jul 22 10:16:02 2011 UTC (13 years, 9 months ago) by buchmann
Branch: MAIN
Changes since 1.14: +8 -2 lines
Diff to previous 1.14
Added function to detect infinities; adapted titlebox to fit the new style

Revision 1.14 - (view) (annotate) - [select for diffs]
Wed Jul 20 12:26:53 2011 UTC (13 years, 9 months ago) by buchmann
Branch: MAIN
Changes since 1.13: +3 -1 lines
Diff to previous 1.13
Error log file now in LOGerr.txt

Revision 1.13 - (view) (annotate) - [select for diffs]
Wed Jul 20 08:51:33 2011 UTC (13 years, 9 months ago) by buchmann
Branch: MAIN
Changes since 1.12: +105 -68 lines
Diff to previous 1.12
Adapted the output; all output is now written on screen and to a file simultaneously

Revision 1.12 - (view) (annotate) - [select for diffs]
Tue Jul 19 15:45:28 2011 UTC (13 years, 9 months ago) by buchmann
Branch: MAIN
Changes since 1.11: +54 -0 lines
Diff to previous 1.11
New feature (currently disabled) : Simultaneous output to file and screen

Revision 1.11 - (view) (annotate) - [select for diffs]
Fri Jul 15 10:12:05 2011 UTC (13 years, 9 months ago) by buchmann
Branch: MAIN
Changes since 1.10: +10 -0 lines
Diff to previous 1.10
Added a function for rounding

Revision 1.10 - (view) (annotate) - [select for diffs]
Thu Jul 14 15:49:37 2011 UTC (13 years, 9 months ago) by buchmann
Branch: MAIN
Changes since 1.9: +2 -2 lines
Diff to previous 1.9
Adapted the size of the CMS Preliminary text and legends; The CMS Preliminary text is now at the top

Revision 1.9 - (view) (annotate) - [select for diffs]
Thu Jul 14 06:25:07 2011 UTC (13 years, 9 months ago) by buchmann
Branch: MAIN
Changes since 1.8: +2 -2 lines
Diff to previous 1.8
Style update

Revision 1.8 - (view) (annotate) - [select for diffs]
Wed Jul 13 14:27:09 2011 UTC (13 years, 9 months ago) by buchmann
Branch: MAIN
Changes since 1.7: +11 -19 lines
Diff to previous 1.7
Nicer way to present prelim text

Revision 1.7 - (view) (annotate) - [select for diffs]
Wed Jul 13 14:23:57 2011 UTC (13 years, 9 months ago) by buchmann
Branch: MAIN
Changes since 1.6: +44 -2 lines
Diff to previous 1.6
Updated style: exponent is now legible, cut isn't drawn on top anymore. CMS Preliminary 2011 (etc.) is now right above the plot, allowing the legend to take up more space.

Revision 1.6 - (view) (annotate) - [select for diffs]
Tue Jul 12 10:41:27 2011 UTC (13 years, 9 months ago) by buchmann
Branch: MAIN
Changes since 1.5: +13 -0 lines
Diff to previous 1.5
Moved newjzbexpression function to GeneralToolBox

Revision 1.5 - (view) (annotate) - [select for diffs]
Fri Jul 8 14:52:00 2011 UTC (13 years, 10 months ago) by buchmann
Branch: MAIN
Changes since 1.4: +25 -6 lines
Diff to previous 1.4
Changed the way CMS Preliminary XYZ is drawn

Revision 1.4 - (view) (annotate) - [select for diffs]
Fri Jul 8 06:20:31 2011 UTC (13 years, 10 months ago) by buchmann
Branch: MAIN
Changes since 1.3: +18 -2 lines
Diff to previous 1.3
Introduced some very early and preliminary sideband checks; fixed bug in Create_All_Plots (global canvas was passed to a lot of functions and at some point wasn't saved correctly anymore); added response correction function (correcting for |pfmet-pt|/pt deficiency); changed the fitting function (cb_fit_...) to return the result (functions) as a vector with 0 being the down variation, 1 the central and 2 the up variation instead of using global tf1s that could be (falsely) misused; updated to sample with 1068 /pb; introduced very simplistic histo integral function (to be improved); other changes ...

Revision 1.3 - (view) (annotate) - [select for diffs]
Tue Jul 5 13:55:47 2011 UTC (13 years, 10 months ago) by buchmann
Branch: MAIN
Changes since 1.2: +24 -4 lines
Diff to previous 1.2
Adapted makehistofromfunction function to avoid objects with the same name

Revision 1.2 - (view) (annotate) - [select for diffs]
Thu Jun 30 16:07:50 2011 UTC (13 years, 10 months ago) by buchmann
Branch: MAIN
Changes since 1.1: +21 -0 lines
Diff to previous 1.1
Added function to convert function to histo

Revision 1.1 - (view) (annotate) - [select for diffs]
Wed Jun 22 11:07:37 2011 UTC (13 years, 10 months ago) by buchmann
Branch: MAIN
Initial commit of Plotting tools

Convenience Links

Links to HEAD: (view) (annotate)

Compare Revisions

This form allows you to request diffs between any two revisions of this file. For each of the two "sides" of the diff, select a symbolic revision name using the selection box, or choose 'Use Text Field' and enter a numeric revision.

  Diffs between and
  Type of Diff should be a