Functions | |
def | calculateSpecificLumi |
def | filltofiles |
output methods#### More... | |
def | getFillFromDB |
def | getFillFromFile |
def | getSpecificLumi |
def | specificlumiTofile |
Variables | |
tuple | allfillF = open(os.path.join(options.inputdir,allfillname),'r') |
string | allfillname = 'allfills.txt' |
tuple | allfillsFromDB = lumiQueryAPI.allfills(q) |
list | allfillsFromFile = [] |
query DB for all fills and compare with allfills.txt if found newer fills, store in mem fill number reprocess anyway the last 5 fills in the dir redo specific lumi for all marked fills More... | |
list | allruns = [item for sublist in runs for item in sublist] |
tuple | filldata = getSpecificLumi(session,parameters,fillnum,options.inputdir) |
list | fillstoprocess = [] |
tuple | l = line.strip() |
tuple | options = parser.parse_args() |
tuple | parameters = lumiQueryAPI.ParametersObject() |
tuple | parser = argparse.ArgumentParser(prog=os.path.basename(sys.argv[0]),description = "Dump Fill",formatter_class=argparse.ArgumentDefaultsHelpFormatter) |
tuple | q = session.nominalSchema() |
tuple | runs = runsperfillFromDB.values() |
dictionary | runsperfillFromDB = {} |
dictionary | runtimes = {} |
def specificLumi.calculateSpecificLumi | ( | lumi, | |
lumierr, | |||
beam1intensity, | |||
beam1intensityerr, | |||
beam2intensity, | |||
beam2intensityerr | |||
) |
Definition at line 16 of file specificLumi.py.
Referenced by getSpecificLumi().
def specificLumi.filltofiles | ( | allfills, | |
runsperfill, | |||
runtimes, | |||
dirname | |||
) |
def specificLumi.getFillFromDB | ( | dbsession, | |
parameters, | |||
fillnum | |||
) |
Definition at line 26 of file specificLumi.py.
References lumiQueryAPI.runsByfillrange(), and lumiQueryAPI.runsummaryByrun().
Referenced by getSpecificLumi().
def specificLumi.getFillFromFile | ( | fillnum, | |
inputdir | |||
) |
def specificLumi.getSpecificLumi | ( | dbsession, | |
parameters, | |||
fillnum, | |||
inputdir | |||
) |
specific lumi in 1e-30 (ub-1s-1) unit lumidetail occlumi in 1e-27 1309_lumireg_401_CMS.txt ip fillnum time 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) 5 1309 20800119.0 -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,lumi,lumierror,speclumi,speclumierror)]
Definition at line 63 of file specificLumi.py.
References python.multivaluedict.append(), lumiQueryAPI.beamIntensityForRun(), calculateSpecificLumi(), lumiQueryAPI.calibratedDetailForRunLimitresult(), getFillFromDB(), getFillFromFile(), and lumiQueryAPI.lumisummaryByrun().
def specificLumi.specificlumiTofile | ( | fillnum, | |
filldata, | |||
outdir | |||
) |
Definition at line 138 of file specificLumi.py.
References python.multivaluedict.append(), Association.map, and CommonUtil.transposed().
tuple specificLumi.allfillF = open(os.path.join(options.inputdir,allfillname),'r') |
Definition at line 212 of file specificLumi.py.
string specificLumi.allfillname = 'allfills.txt' |
Definition at line 14 of file specificLumi.py.
tuple specificLumi.allfillsFromDB = lumiQueryAPI.allfills(q) |
Definition at line 209 of file specificLumi.py.
list specificLumi.allfillsFromFile = [] |
query DB for all fills and compare with allfills.txt if found newer fills, store in mem fill number reprocess anyway the last 5 fills in the dir redo specific lumi for all marked fills
Definition at line 202 of file specificLumi.py.
Definition at line 245 of file specificLumi.py.
tuple specificLumi.filldata = getSpecificLumi(session,parameters,fillnum,options.inputdir) |
Definition at line 259 of file specificLumi.py.
specificLumi.fillstoprocess = [] |
Definition at line 203 of file specificLumi.py.
tuple specificLumi.l = line.strip() |
Definition at line 214 of file specificLumi.py.
tuple specificLumi.options = parser.parse_args() |
Definition at line 187 of file specificLumi.py.
tuple specificLumi.parameters = lumiQueryAPI.ParametersObject() |
Definition at line 190 of file specificLumi.py.
tuple specificLumi.parser = argparse.ArgumentParser(prog=os.path.basename(sys.argv[0]),description = "Dump Fill",formatter_class=argparse.ArgumentDefaultsHelpFormatter) |
Definition at line 177 of file specificLumi.py.
tuple specificLumi.q = session.nominalSchema() |
Definition at line 208 of file specificLumi.py.
tuple specificLumi.runs = runsperfillFromDB.values() |
Definition at line 244 of file specificLumi.py.
tuple specificLumi.runsperfillFromDB = {} |
Definition at line 238 of file specificLumi.py.
dictionary specificLumi.runtimes = {} |
Definition at line 243 of file specificLumi.py.