PerformanceCurvePlotter
Author: Evan K. Friis, UC Davis (friis@physics.ucdavis.edu)
Plot the efficiency for a given fake rate
for a series of cuts in a set pt range.
With the default cuts (20 < pt < 50), this is designed
to reproduce (independently) the TancBenchmark plots produced in
RecoTauTag/TauTagTools/test/MVABenchmarks.py
Instructions:
Add the releases to as shown. You must specify and signal
and backround file for each release, and a descriptive label.
To choose the chain of discriminators to plot, select the appropriate
EDProducer defined in Validation.RecoTau.TauTagValidation_cfi
PreFourTanc = TauValidationInfo("Signal.root",
"Background.root",
"310pre5 TaNC",
Validation.RecoTau.RecoTauValidation_cfi.RunTancValidation)
PreFourIso = TauValidationInfo("Signal.root",
"Background.root",
"310pre4 Iso",
Validation.RecoTau.RecoTauValidation_cfi.PFTausHighEfficiencyLeadingPionBothProngs)
ReleasesToBuildFrom = []
ReleasesToBuildFrom.append(PreFourTanc)
ReleasesToBuildFrom.append(PreFourIso)
PlotPerformanceCurves(ReleasesToBuildFrom, "output.png")