WRanalysis
 All Classes Namespaces Files Functions Variables Typedefs Macros Groups Pages
Classes | Functions | Variables
python.combineTools Namespace Reference

Classes

class  AnalysisResultsInterface
 
class  Systematics
 

Functions

def makeDataCardSingleBin
 creates a datacard for combine for signal and background More...
 
def runCombine
 calls and parses command for `combine' More...
 

Variables

list datafolder = environ['LOCALRT']
 
list configfolder = environ['LOCALRT']
 
dictionary mass_cut
 
list ID = sys.argv[1]
 
string command = " "
 
tuple result = runCombine(command, ID)
 

Function Documentation

def python.combineTools.makeDataCardSingleBin (   outfile,
  bin_name,
  nObs,
  signal_tuple,
  background_tuples,
  systematics 
)

creates a datacard for combine for signal and background

Parameters
outfileString of filename
bin_nameName for bin
nObsnumber of observed
signal_tuple(sig_name, signal_rate)
background_tupleslist of (name, rate) for backgrounds
Returns
signal_rate, tuple of bg rates
def python.combineTools.runCombine (   command,
  ID 
)

calls and parses command for `combine'

Parameters
commanda list to pass to subprocess.check_output
Returns
(mean, meanError), (onesig_minus, onesig_plus), (twosig_minus, twosig_plus)

Variable Documentation

string python.combineTools.command = " "
list python.combineTools.configfolder = environ['LOCALRT']
list python.combineTools.datafolder = environ['LOCALRT']
list python.combineTools.ID = sys.argv[1]
dictionary python.combineTools.mass_cut
Initial value:
1 = {"ee":{},
2  "mumu":{}
3  }
tuple python.combineTools.result = runCombine(command, ID)