CMS 3D CMS Logo

Namespaces | Functions | Variables

/data/refman/pasoursint/CMSSW_5_3_0/src/RecoLuminosity/LumiDB/scripts/pileupCalc.py File Reference

Go to the source code of this file.

Namespaces

namespace  pileupCalc

Functions

def pileupCalc::fillPileupHistogram
def pileupCalc::parseInputFile

Variables

list pileupCalc::CalculationModeChoices = ['truth', 'observed']
string pileupCalc::default = 'PileupCalc.root'
string pileupCalc::help = 'output root file'
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]
 pileupCalc::nbins = options.numPileupBins
list pileupCalc::output = args[0]
tuple pileupCalc::parser
 ######################## ## ## ################## ## ## ## ## Main Program ## ## ## ## ################## ## ## ######################## ##
tuple pileupCalc::pileupHist
 pileupCalc::type = float,
 pileupCalc::upper = options.maxPileupBin
string pileupCalc::VERSION = '1.00'