CMS 3D CMS Logo

Namespaces | Functions | Variables

/data/refman/pasoursint/CMSSW_5_3_9_patch3/src/RecoLuminosity/LumiDB/scripts/estimatePileup.py File Reference

Go to the source code of this file.

Namespaces

namespace  estimatePileup

Functions

def estimatePileup::fillPileupHistogram

Variables

string estimatePileup::action = 'store_true'
list estimatePileup::beamModeChoices = ["","stable", "quiet", "either"]
dictionary estimatePileup::csvDict = {}
tuple estimatePileup::dbGroup = optparse.OptionGroup(parser, "Database Options")
list estimatePileup::deadTable = runDTarray[2]
 estimatePileup::debug = options.debugLumi,
tuple estimatePileup::events = open(options.csvInput, 'r')
tuple estimatePileup::f = open(options.inputfile, 'r')
tuple estimatePileup::fileparsingResult = csvSelectionParser.csvSelectionParser(options.inputfile)
string estimatePileup::help = 'connect string to lumiDB (optional, default to frontier://LumiCalc/CMS_LUMI_PROD)'
tuple estimatePileup::hist
tuple estimatePileup::histFile = ROOT.TFile.Open(output, 'recreate')
list estimatePileup::histList = []
tuple estimatePileup::inputfilecontent = f.read()
tuple estimatePileup::inputGroup = optparse.OptionGroup(parser, "Input Options")
 estimatePileup::inputRange = options.runnumber
 Get input source.
string estimatePileup::mode = 'csv'
list estimatePileup::output = args[0]
tuple estimatePileup::parameters = LumiQueryAPI.ParametersObject()
 ######################## ## ## ################## ## ## ## ## Main Program ## ## ## ## ################## ## ## ######################## ##
tuple estimatePileup::parser
tuple estimatePileup::pieces = sepRE.split(line.strip())
tuple estimatePileup::pileupGroup = optparse.OptionGroup(parser, "Pileup Options")
tuple estimatePileup::pileupHist
 Save what we need in the parameters object.
tuple estimatePileup::recordedData = LumiQueryAPI.recordedLumiForRange(session, parameters, inputRange)
dictionary estimatePileup::runLumiDict = {}
list estimatePileup::runNumber = runDTarray[0]
 pprint (recordedData)
tuple estimatePileup::sepRE = re.compile(r'[\s,;:]+')
list estimatePileup::xingInstLumiArray