Systematic Helper

InfoGetter

class Utilities.InfoGetter.InfoGetter(analysis, selection, infilename, plotInfo='plotInfo.py')[source]

Bases: object

getAnalysis()[source]
getGroupName(member)[source]
getGroups()[source]
getLegendName(group)[source]
getListOfHists()[source]
getLumi()[source]
getPlotSpec(histName)[source]
getSelection()[source]
getStyle(group)[source]
getSumweight(member)[source]
getUpBinUser(histName)[source]
getXSec(member)[source]
isDiscreteGraph(histName)[source]
isInPlotSpec(histName)[source]
readAllInfo(file_path)[source]
readInfo(file_path)[source]
readJson(json_file_name)[source]
setDrawStyle(drawStyle)[source]
setLumi(lumi)[source]
setupGraphSpecs(input)[source]
setupListOfHists(inFile)[source]
setupMember2GroupMap()[source]
setupSumWeight(inFile)[source]

Log File

class Utilities.LogFile.LogFile(name, info, path='.')[source]

Bases: object

Wrapper for Logfile for a plot

plotTable : PrettyTable
PrettyTable holding all the histogram information
output_name : string
Name/path of logfile to be created
analysis : string
Analysis running over
selection : string
Selection of analysis running over
lumi : float
Luminosity of this run (in ipb, but converted to ifb in class)
hists : list of lists
List of lists with Integral and Error^2 indexed by the constants BKG, SIGNAL, DATA, TOTAL
callTime : string
String of the time this script was called (any format)
command : string
Command used to start this script
name : string
Name of the histogram
add_mc(drawOrder)[source]

Add background data to this class

drawOrder : list of tuples (string, GenericHist)
List of all background hists with their names
add_metainfo(callTime, command)[source]

Set specific metadata for output file

callTime : string
Time script was call (not formated, must be done before here)
command : string
Full commandline string use for this run
add_signal(signal, groupName)[source]

Add signal data to this class

signal : GenericHist
Histogram of signal information
groupName : string
Name used to label the singal
get_likelihood()[source]

Get Figure of merit

tuple
tuple Figure of Merit (S/sqrt(S+B)) and its error
get_sig_bkg_ratio()[source]

Get S/B with its error

tuple
tuple S/B and its error
get_sqrt_err(idx)[source]

Grab the Integral and error on that information

idx : int
int pointed to self.hists list
write_out(isLatex=False)[source]

Write out all current information to the objects output file

isLatex : bool, optional
Whether table should be written out in latex or org style table

Helper Functions