CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Classes | Namespaces | Functions | Variables
pileupCalc.py File Reference

Go to the source code of this file.

Classes

class  pileupCalc.EquidistantBinning
 

Namespaces

 pileupCalc
 

Functions

def pileupCalc.fillPileupHistogram
 
def pileupCalc.MyErf
 
def pileupCalc.parseInputFile
 
def pileupCalc.poisson
 

Variables

tuple pileupCalc.binning = EquidistantBinning(options.numPileupBins, 0., options.maxPileupBin)
 
list pileupCalc.choices = ['true', 'observed']
 
string pileupCalc.default = 'pileup'
 
tuple pileupCalc.hContents = np.zeros(binning.centers.shape)
 
string pileupCalc.help = 'input Run/LS file for your analysis in JSON format'
 
tuple pileupCalc.histFile = ROOT.TFile.Open(output, 'recreate')
 
tuple pileupCalc.inpf = open(options.inputfile, 'r')
 
tuple pileupCalc.inputfilecontent = inpf.read()
 
tuple pileupCalc.inputPileupRange = parseInputFile(options.inputLumiJSON)
 
tuple pileupCalc.inputRange = selectionParser.selectionParser(inputfilecontent)
 
list pileupCalc.LSPUlist = inputPileupRange[run]
 
list pileupCalc.lumiInfo = LSPUlist[LSnumber]
 
tuple pileupCalc.options = parser.parse_args()
 
 pileupCalc.output = options.outputfile
 
tuple pileupCalc.parser = argparse.ArgumentParser(description = "Script to estimate pileup distribution using bunch instantaneous luminosity information and minimum bias cross section. Outputs a TH1D of the pileup distribution stored in a ROOT file.")
 

## Main Program

More...
 
tuple pileupCalc.pileupHist
 
tuple pileupCalc.req_group = parser.add_argument_group('required arguments')
 
tuple pileupCalc.Sqrt2 = np.sqrt(2)
 
float pileupCalc.type = 69200.0
 
string pileupCalc.VERSION = '1.00'