CMS 3D CMS Logo

Classes | Namespaces | Functions | Variables

/data/refman/pasoursint/CMSSW_5_3_1/src/RecoLuminosity/LumiDB/scripts/estimatePileup2.py File Reference

Go to the source code of this file.

Classes

class  estimatePileup2::pileupParameters

Namespaces

namespace  estimatePileup2

Functions

def estimatePileup2::fillPileupHistogram

Variables

string estimatePileup2::action = 'store_true'
list estimatePileup2::amodetagChoices = [ "PROTPHYS","IONPHYS" ]
list estimatePileup2::beamChoices = ['PROTPHYS','IONPHYS']
list estimatePileup2::beamModeChoices = [ "","stable", "quiet", "either"]
 ######################## ## ## ################## ## ## ## ## Main Program ## ## ## ## ################## ## ## ######################## ##
list estimatePileup2::bxlist = perlsdata[8]
list estimatePileup2::bxlumiinfo = []
 convert lumiData to lumiDict format #{run:[[cmslsnum,avg]]}
list estimatePileup2::cmslsnum = perlsdata[1]
tuple estimatePileup2::dbGroup = optparse.OptionGroup(parser, "Database Options")
 estimatePileup2::debug = options.debugLumi)
string estimatePileup2::default = 'frontier://LumiCalc/CMS_LUMI_PROD'
list estimatePileup2::deliveredlumi = perlsdata[5]
tuple estimatePileup2::events = open(options.csvInput, 'r')
tuple estimatePileup2::f = open(options.inputfile, 'r')
tuple estimatePileup2::fileparsingResult = csvSelectionParser.csvSelectionParser(options.inputfile)
 estimatePileup2::finecorrections = None
string estimatePileup2::help = 'connect string to lumiDB ,default %default'
tuple estimatePileup2::hist
tuple estimatePileup2::histFile = ROOT.TFile.Open(output, 'recreate')
list estimatePileup2::histList = []
tuple estimatePileup2::inputfilecontent = f.read()
tuple estimatePileup2::inputGroup = optparse.OptionGroup(parser, "Input Options")
dictionary estimatePileup2::inputRange = {int(options.runnumber):None}
tuple estimatePileup2::lumiData = lumiCalcAPI.lumiForRange(schema,inputRange,beamstatus=options.beamstatus,withBXInfo=True,bxAlgo=options.algoname,xingMinLum=options.xingMinLum,withBeamIntensity=False,datatag=None,finecorrections=finecorrections)
list estimatePileup2::output = args[0]
tuple estimatePileup2::parser
tuple estimatePileup2::pieces = sepRE.split(line.strip())
tuple estimatePileup2::pileupGroup = optparse.OptionGroup(parser, "Pileup Options")
tuple estimatePileup2::pileupHist
list estimatePileup2::recordedlumi = perlsdata[6]
tuple estimatePileup2::rruns = inputRange.keys()
dictionary estimatePileup2::runDict = {}
tuple estimatePileup2::schema = session.nominalSchema()
tuple estimatePileup2::sepRE = re.compile(r'[\s,;:]+')
tuple estimatePileup2::session = svc.openSession(isReadOnly=True,cpp2sqltype=[('unsigned int','NUMBER(10)'),('unsigned long long','NUMBER(20)')])
tuple estimatePileup2::svc = sessionManager.sessionManager(options.connect,authpath=options.authpath,debugON=options.debug)
string estimatePileup2::VERSION = '2.00'
list estimatePileup2::xingAlgoChoices = [ "OCC1","OCC2","ET"]
list estimatePileup2::xingIdx = [int(myidx) for myidx in pieces[4::2] ]
list estimatePileup2::xingVal = [float(myval) for myval in pieces[5::2] ]