Classes | |
class | pileupParameters |
Functions | |
def | fillPileupHistogram |
Variables | |
string | action = 'store_true' |
list | amodetagChoices = [ "PROTPHYS","IONPHYS" ] |
list | beamChoices = ['PROTPHYS','IONPHYS'] |
list | beamModeChoices = [ "","stable", "quiet", "either"] |
## Main ProgramMore... | |
list | bxlist = perlsdata[8] |
list | bxlumiinfo = [] |
convert lumiData to lumiDict format #{run:[[cmslsnum,avg]]} More... | |
list | cmslsnum = perlsdata[1] |
tuple | dbGroup = optparse.OptionGroup(parser, "Database Options") |
debug = options.debugLumi) | |
string | default = 'frontier://LumiCalc/CMS_LUMI_PROD' |
list | deliveredlumi = perlsdata[5] |
tuple | events = open(options.csvInput, 'r') |
tuple | f = open(options.inputfile, 'r') |
tuple | fileparsingResult = csvSelectionParser.csvSelectionParser(options.inputfile) |
finecorrections = None | |
string | help = 'connect string to lumiDB ,default %default' |
tuple | hist |
tuple | histFile = ROOT.TFile.Open(output, 'recreate') |
list | histList = [] |
tuple | inputfilecontent = f.read() |
tuple | inputGroup = optparse.OptionGroup(parser, "Input Options") |
dictionary | inputRange = {int(options.runnumber):None} |
tuple | lumiData = lumiCalcAPI.lumiForRange(schema,inputRange,beamstatus=options.beamstatus,withBXInfo=True,bxAlgo=options.algoname,xingMinLum=options.xingMinLum,withBeamIntensity=False,datatag=None,finecorrections=finecorrections) |
list | output = args[0] |
tuple | parser |
tuple | pieces = sepRE.split(line.strip()) |
tuple | pileupGroup = optparse.OptionGroup(parser, "Pileup Options") |
tuple | pileupHist |
list | recordedlumi = perlsdata[6] |
tuple | rruns = inputRange.keys() |
dictionary | runDict = {} |
tuple | schema = session.nominalSchema() |
tuple | sepRE = re.compile(r'[\s,;:]+') |
tuple | session = svc.openSession(isReadOnly=True,cpp2sqltype=[('unsigned int','NUMBER(10)'),('unsigned long long','NUMBER(20)')]) |
tuple | svc = sessionManager.sessionManager(options.connect,authpath=options.authpath,debugON=options.debug) |
string | VERSION = '2.00' |
list | xingAlgoChoices = [ "OCC1","OCC2","ET"] |
list | xingIdx = [int(myidx) for myidx in pieces[4::2] ] |
list | xingVal = [float(myval) for myval in pieces[5::2] ] |
def estimatePileup2.fillPileupHistogram | ( | bxlumiinfo, | |
pileupHistName, | |||
maxPileupBin, | |||
runNumber = 0 , |
|||
hist = None , |
|||
debug = False |
|||
) |
bxlumiinfo:[[cmslsnum(0),avgdelivered(1),avgrecorded(2),bxlumiarray[3]]] Given luminfo , deadfrac info and run number, will (create if necessary and) fill histogram with expected pileup distribution. If a histogram is created, it is owned by the user and is his/her responsibility to clean up the memory.
Definition at line 19 of file estimatePileup2.py.
string estimatePileup2.action = 'store_true' |
Definition at line 132 of file estimatePileup2.py.
list estimatePileup2.amodetagChoices = [ "PROTPHYS","IONPHYS" ] |
Definition at line 89 of file estimatePileup2.py.
list estimatePileup2.beamChoices = ['PROTPHYS','IONPHYS'] |
Definition at line 8 of file estimatePileup2.py.
list estimatePileup2.beamModeChoices = [ "","stable", "quiet", "either"] |
Definition at line 88 of file estimatePileup2.py.
list estimatePileup2.bxlist = perlsdata[8] |
Definition at line 226 of file estimatePileup2.py.
list estimatePileup2.bxlumiinfo = [] |
convert lumiData to lumiDict format #{run:[[cmslsnum,avg]]}
Definition at line 221 of file estimatePileup2.py.
list estimatePileup2.cmslsnum = perlsdata[1] |
Definition at line 223 of file estimatePileup2.py.
Referenced by LumiProducer.fillLSCache(), lumi::HLTDummy2DB.retrieveData(), lumi::TRGDummy2DB.retrieveData(), lumi::LumiDummy2DB.retrieveData(), lumi::TRGWBM2DB.retrieveData(), lumi::HLTV32DB.writeHltData(), lumi::HLTV32DB.writeHltDataToSchema2(), lumi::TRGScalers2DB.writeTrgData(), and lumi::TRGScalers2DB.writeTrgDataToSchema2().
Definition at line 93 of file estimatePileup2.py.
estimatePileup2.debug = options.debugLumi) |
Definition at line 246 of file estimatePileup2.py.
string estimatePileup2.default = 'frontier://LumiCalc/CMS_LUMI_PROD' |
Definition at line 97 of file estimatePileup2.py.
list estimatePileup2.deliveredlumi = perlsdata[5] |
Definition at line 224 of file estimatePileup2.py.
tuple estimatePileup2.events = open(options.csvInput, 'r') |
Definition at line 169 of file estimatePileup2.py.
tuple estimatePileup2.f = open(options.inputfile, 'r') |
Definition at line 202 of file estimatePileup2.py.
tuple estimatePileup2.fileparsingResult = csvSelectionParser.csvSelectionParser(options.inputfile) |
Definition at line 200 of file estimatePileup2.py.
tuple estimatePileup2.finecorrections = None |
Definition at line 152 of file estimatePileup2.py.
Definition at line 98 of file estimatePileup2.py.
estimatePileup2.hist |
Definition at line 238 of file estimatePileup2.py.
tuple estimatePileup2.histFile = ROOT.TFile.Open(output, 'recreate') |
Definition at line 247 of file estimatePileup2.py.
list estimatePileup2.histList = [] |
Definition at line 235 of file estimatePileup2.py.
tuple estimatePileup2.inputfilecontent = f.read() |
Definition at line 203 of file estimatePileup2.py.
Definition at line 94 of file estimatePileup2.py.
tuple estimatePileup2.inputRange = {int(options.runnumber):None} |
Definition at line 195 of file estimatePileup2.py.
tuple estimatePileup2.lumiData = lumiCalcAPI.lumiForRange(schema,inputRange,beamstatus=options.beamstatus,withBXInfo=True,bxAlgo=options.algoname,xingMinLum=options.xingMinLum,withBeamIntensity=False,datatag=None,finecorrections=finecorrections) |
Definition at line 216 of file estimatePileup2.py.
list estimatePileup2.output = args[0] |
Definition at line 151 of file estimatePileup2.py.
tuple estimatePileup2.parser |
Definition at line 91 of file estimatePileup2.py.
tuple estimatePileup2.pieces = sepRE.split(line.strip()) |
Definition at line 171 of file estimatePileup2.py.
Definition at line 95 of file estimatePileup2.py.
tuple estimatePileup2.pileupHist |
Definition at line 232 of file estimatePileup2.py.
list estimatePileup2.recordedlumi = perlsdata[6] |
Definition at line 225 of file estimatePileup2.py.
tuple estimatePileup2.rruns = inputRange.keys() |
Definition at line 209 of file estimatePileup2.py.
dictionary estimatePileup2.runDict = {} |
Definition at line 162 of file estimatePileup2.py.
tuple estimatePileup2.schema = session.nominalSchema() |
Definition at line 210 of file estimatePileup2.py.
tuple estimatePileup2.sepRE = re.compile(r'[\s,;:]+') |
Definition at line 168 of file estimatePileup2.py.
tuple estimatePileup2.session = svc.openSession(isReadOnly=True,cpp2sqltype=[('unsigned int','NUMBER(10)'),('unsigned long long','NUMBER(20)')]) |
Definition at line 192 of file estimatePileup2.py.
tuple estimatePileup2.svc = sessionManager.sessionManager(options.connect,authpath=options.authpath,debugON=options.debug) |
Definition at line 157 of file estimatePileup2.py.
string estimatePileup2.VERSION = '2.00' |
Definition at line 2 of file estimatePileup2.py.
Definition at line 90 of file estimatePileup2.py.
Definition at line 180 of file estimatePileup2.py.
Definition at line 181 of file estimatePileup2.py.