Functions | |
def | calculateSpecificLumi (lumi, lumierr, beam1intensity, beam1intensityerr, beam2intensity, beam2intensityerr) |
def | filltofiles (allfills, runsperfill, runtimes, dirname) |
output methods#### More... | |
def | getFillFromDB (schema, fillnum) |
def | getFillFromFile (fillnum, inputdir) |
def | getSpecificLumi (schema, fillnum, inputdir, dataidmap, normmap, xingMinLum=0.0, amodetag='PROTPHYS', bxAlgo='OCC1') |
def | lastcompleteFill (infile) |
def | listfilldir (indir) |
def | specificlumiTofile (fillnum, filldata, outdir) |
Variables | |
action | |
allfillname | |
allfillsFromDB | |
amodetag | |
amodetagChoices | |
authpath | |
bxAlgo | |
choices | |
connect | |
cpp2sqltype | |
dataidmap | |
datatagid | |
datatagname | |
debugON | |
default | |
defaultonly | |
description | |
dest | |
energyFlut | |
False | |
filldata | |
fillmax | |
fillmin | |
fillnum | |
fillstoprocess | |
formatter_class | |
help | |
hltkeyPattern | |
inputdir | |
isReadOnly | |
l1keyPattern | |
lastcompletedFill | |
lumitype | |
MAXFILL | |
maxfillnum | |
MINFILL | |
minfillnum | |
nominalEnergy | |
None | |
normid | |
normmap | |
normname | |
normvalueDict | |
options | |
parser | |
## Main ProgramMore... | |
processedfills | |
prog | |
reqfillmax | |
reqfillmin | |
required | |
requirehlt | |
requiretrg | |
runlist | |
runmax | |
runmin | |
schema | |
session | |
startT | |
stopT | |
svc | |
query DB for all fills and compare with allfills.txt if found newer fills, store in mem fill number reprocess anyway the last 1 fill in the dir redo specific lumi for all marked fills More... | |
True | |
type | |
withcomment | |
xingAlgoChoices | |
xingMinLum | |
def specificLumi.calculateSpecificLumi | ( | lumi, | |
lumierr, | |||
beam1intensity, | |||
beam1intensityerr, | |||
beam2intensity, | |||
beam2intensityerr | |||
) |
calculate specific lumi input: instlumi, instlumierror,beam1intensity,beam1intensityerror,beam2intensity,beam2intensityerror output (specific lumi value,specific lumi error)
Definition at line 74 of file specificLumi.py.
References objects.autophobj.float.
Referenced by getSpecificLumi().
def specificLumi.filltofiles | ( | allfills, | |
runsperfill, | |||
runtimes, | |||
dirname | |||
) |
output methods####
write runnumber:starttime map per fill to files
Definition at line 121 of file specificLumi.py.
References harvestTrackValidationPlots.str.
def specificLumi.getFillFromDB | ( | schema, | |
fillnum | |||
) |
output: {run:starttime}
Definition at line 22 of file specificLumi.py.
References cmsPerfStripChart.dict, lumiCalcAPI.fillrunMap(), list(), lumiCalcAPI.runsummary(), and ComparisonHelper.zip().
Referenced by getSpecificLumi().
def specificLumi.getFillFromFile | ( | fillnum, | |
inputdir | |||
) |
parse fill_xxx.txt files in the input directory for runs, starttime in the fill input: fillnumber, input dir output: {run:tarttime}
Definition at line 89 of file specificLumi.py.
References createfilelist.int.
def specificLumi.getSpecificLumi | ( | schema, | |
fillnum, | |||
inputdir, | |||
dataidmap, | |||
normmap, | |||
xingMinLum = 0.0 , |
|||
amodetag = 'PROTPHYS' , |
|||
bxAlgo = 'OCC1' |
|||
) |
specific lumi in 1e-30 (ub-1s-1) unit lumidetail occlumi in 1e-27 1309_lumi_401_CMS.txt time(in seconds since January 1,2011,00:00:00 UTC) stab(fraction of time spent in stable beams for this time bin) l(lumi in Hz/ub) dl(point-to-point error on lumi in Hz/ub) sl(specific lumi in Hz/ub) dsl(error on specific lumi) 20800119.0 1 -0.889948 0.00475996848729 0.249009 0.005583287562 -0.68359 6.24140208607 0.0 0.0 0.0 0.0 0.0 0.0 0.0383576 0.00430892097862 0.0479095 0.00430892097862 66.6447 4.41269758764 0.0 0.0 0.0 result [(time,beamstatusfrac,lumi,lumierror,speclumi,speclumierror)]
Definition at line 240 of file specificLumi.py.
References mps_setup.append, calculateSpecificLumi(), lumiCalcAPI.deliveredLumiForIds(), cmsPerfStripChart.dict, getFillFromDB(), list(), SiStripPI.max, lumiCalcAPI.runsummaryMap(), and ComparisonHelper.zip().
def specificLumi.lastcompleteFill | ( | infile | ) |
parse infile to find LASTCOMPLETEFILL input: input file name output: last completed fill number
Definition at line 57 of file specificLumi.py.
References createfilelist.int.
def specificLumi.listfilldir | ( | indir | ) |
list all fills contained in the given dir input: indir output: [fill]
Definition at line 36 of file specificLumi.py.
References createfilelist.int.
def specificLumi.specificlumiTofile | ( | fillnum, | |
filldata, | |||
outdir | |||
) |
Definition at line 137 of file specificLumi.py.
References mps_setup.append, objects.autophobj.float, createfilelist.int, genParticles_cff.map, SiStripPI.max, harvestTrackValidationPlots.str, and CommonUtil.transposed().
specificLumi.action |
Definition at line 328 of file specificLumi.py.
specificLumi.allfillname |
Definition at line 20 of file specificLumi.py.
specificLumi.allfillsFromDB |
Definition at line 417 of file specificLumi.py.
specificLumi.amodetag |
Definition at line 417 of file specificLumi.py.
specificLumi.amodetagChoices |
Definition at line 324 of file specificLumi.py.
specificLumi.authpath |
Definition at line 406 of file specificLumi.py.
specificLumi.bxAlgo |
Definition at line 479 of file specificLumi.py.
specificLumi.choices |
Definition at line 365 of file specificLumi.py.
specificLumi.connect |
Definition at line 406 of file specificLumi.py.
specificLumi.cpp2sqltype |
Definition at line 407 of file specificLumi.py.
specificLumi.dataidmap |
Definition at line 452 of file specificLumi.py.
specificLumi.datatagid |
Definition at line 451 of file specificLumi.py.
specificLumi.datatagname |
Definition at line 449 of file specificLumi.py.
specificLumi.debugON |
Definition at line 406 of file specificLumi.py.
specificLumi.default |
Definition at line 331 of file specificLumi.py.
specificLumi.defaultonly |
Definition at line 466 of file specificLumi.py.
specificLumi.description |
Definition at line 323 of file specificLumi.py.
specificLumi.dest |
Definition at line 327 of file specificLumi.py.
specificLumi.energyFlut |
Definition at line 447 of file specificLumi.py.
specificLumi.False |
Definition at line 447 of file specificLumi.py.
specificLumi.filldata |
Definition at line 440 of file specificLumi.py.
specificLumi.fillmax |
Definition at line 417 of file specificLumi.py.
specificLumi.fillmin |
Definition at line 417 of file specificLumi.py.
specificLumi.fillnum |
Definition at line 447 of file specificLumi.py.
specificLumi.fillstoprocess |
Definition at line 409 of file specificLumi.py.
specificLumi.formatter_class |
Definition at line 323 of file specificLumi.py.
specificLumi.help |
Definition at line 330 of file specificLumi.py.
specificLumi.hltkeyPattern |
Definition at line 447 of file specificLumi.py.
specificLumi.inputdir |
Definition at line 479 of file specificLumi.py.
Referenced by EfficiencyPlotter.dqmEndJob().
specificLumi.isReadOnly |
Definition at line 407 of file specificLumi.py.
specificLumi.l1keyPattern |
Definition at line 447 of file specificLumi.py.
specificLumi.lastcompletedFill |
Definition at line 419 of file specificLumi.py.
specificLumi.lumitype |
Definition at line 466 of file specificLumi.py.
specificLumi.MAXFILL |
Definition at line 19 of file specificLumi.py.
specificLumi.maxfillnum |
Definition at line 410 of file specificLumi.py.
specificLumi.MINFILL |
Definition at line 18 of file specificLumi.py.
specificLumi.minfillnum |
Definition at line 411 of file specificLumi.py.
specificLumi.nominalEnergy |
Definition at line 447 of file specificLumi.py.
specificLumi.None |
Definition at line 447 of file specificLumi.py.
specificLumi.normid |
Definition at line 461 of file specificLumi.py.
specificLumi.normmap |
Definition at line 466 of file specificLumi.py.
specificLumi.normname |
Definition at line 460 of file specificLumi.py.
specificLumi.normvalueDict |
Definition at line 462 of file specificLumi.py.
specificLumi.options |
Definition at line 397 of file specificLumi.py.
specificLumi.parser |
Definition at line 323 of file specificLumi.py.
specificLumi.processedfills |
Definition at line 418 of file specificLumi.py.
specificLumi.prog |
Definition at line 323 of file specificLumi.py.
specificLumi.reqfillmax |
Definition at line 445 of file specificLumi.py.
specificLumi.reqfillmin |
Definition at line 444 of file specificLumi.py.
specificLumi.required |
Definition at line 329 of file specificLumi.py.
specificLumi.requirehlt |
Definition at line 447 of file specificLumi.py.
specificLumi.requiretrg |
Definition at line 447 of file specificLumi.py.
specificLumi.runlist |
Definition at line 447 of file specificLumi.py.
specificLumi.runmax |
Definition at line 447 of file specificLumi.py.
specificLumi.runmin |
Definition at line 447 of file specificLumi.py.
specificLumi.schema |
Definition at line 416 of file specificLumi.py.
specificLumi.session |
Definition at line 407 of file specificLumi.py.
specificLumi.startT |
Definition at line 447 of file specificLumi.py.
specificLumi.stopT |
Definition at line 447 of file specificLumi.py.
specificLumi.svc |
query DB for all fills and compare with allfills.txt if found newer fills, store in mem fill number reprocess anyway the last 1 fill in the dir redo specific lumi for all marked fills
Definition at line 406 of file specificLumi.py.
specificLumi.True |
Definition at line 407 of file specificLumi.py.
specificLumi.type |
Definition at line 351 of file specificLumi.py.
specificLumi.withcomment |
Definition at line 452 of file specificLumi.py.
specificLumi.xingAlgoChoices |
Definition at line 325 of file specificLumi.py.
specificLumi.xingMinLum |
Definition at line 479 of file specificLumi.py.