Classes | |
class | correctionTerm |
class | nonlinearSingle |
class | nonlinearV2 |
class | nonlinearV3 |
Functions | |
def | afterglowByFillscheme |
def | applyfinecorrectionBXV2 |
def | applyfinecorrectionV2 |
def | correctionsForRangeV2 |
def | driftcorrectionsForRange |
def | pixelcorrectionsForRange |
Variables | |
tuple | driftresult = driftcorrectionsForRange(schema,[160467,152611]) |
string | myconstr = 'oracle://cms_orcoff_prep/cms_lumi_dev_offline' |
tuple | schema = session.nominalSchema() |
tuple | session = svc.openSession(isReadOnly=True,cpp2sqltype=[('unsigned int','NUMBER(10)'),('unsigned long long','NUMBER(20)')]) |
tuple | svc = sessionManager.sessionManager(myconstr,authpath='/afs/cern.ch/user/x/xiezhen',debugON=False) |
def lumiCorrections.afterglowByFillscheme | ( | fillscheme, | |
afterglowPatterns | |||
) |
search in the list of (pattern,afterglowfactor) for a match in regex
Definition at line 20 of file lumiCorrections.py.
Referenced by correctionsForRangeV2(), and pixelcorrectionsForRange().
def lumiCorrections.applyfinecorrectionBXV2 | ( | bxlumi, | |
avglumi, | |||
norm, | |||
constfactor, | |||
afterglowfactor, | |||
ncollidingbx, | |||
nonlinear_1, | |||
nonlinear_2, | |||
driftfactor | |||
) |
Definition at line 83 of file lumiCorrections.py.
def lumiCorrections.applyfinecorrectionV2 | ( | avglumi, | |
constfactor, | |||
afterglowfactor, | |||
ncollidingbx, | |||
nonlinear_1, | |||
nonlinear_2, | |||
driftfactor | |||
) |
input : avglumi : normalized lumi with 6370 constfactor,afterglowfactor,ncollidingbx,nonlinear_1,nonlinear_2 driftfactor: default
Definition at line 95 of file lumiCorrections.py.
def lumiCorrections.correctionsForRangeV2 | ( | schema, | |
inputRange, | |||
correctionTerm | |||
) |
decide on the corrections to apply in the input range depending on amodetag,egev and runrange select fillschemepattern,correctionfactor from fillscheme; [(fillschemepattern,afterglow),...] select fillnum,runnum,fillscheme,ncollidingbunches,egev from cmsrunsummary where amodetag='PROTPYHS' and egev>3000 {runnum: (fillnum,fillscheme,ncollidingbunches),...} input: correctionTerm correction terms used in the formula output: {runnum:(constantfactor,afterglowfactor,ncollidingbx,nonlinearfactor1,nonlinearfactor2)}
Definition at line 111 of file lumiCorrections.py.
References afterglowByFillscheme(), nameDealer.cmsrunsummaryTableName(), AlCaHLTBitMon_QueryRunRegistry.data, nameDealer.fillschemeTableName(), and GetRecoTauVFromDQM_MC_cff.next.
def lumiCorrections.driftcorrectionsForRange | ( | schema, | |
inputRange, | |||
correctionTerm, | |||
startrun = 160403 |
|||
) |
select intglumi from intglumi where runnum=:runnum and startrun=:startrun input : inputRange. str if a single run, [runs] if a list of runs output: {run:driftcorrection}
Definition at line 32 of file lumiCorrections.py.
References AlCaHLTBitMon_QueryRunRegistry.data, nameDealer.intglumiTableName(), and GetRecoTauVFromDQM_MC_cff.next.
def lumiCorrections.pixelcorrectionsForRange | ( | schema, | |
inputRange | |||
) |
select fillschemepattern,correctionfactor from fillscheme; [(fillschemepattern,afterglow),...] select fillnum,runnum,fillscheme from cmsrunsummary where amodetag='PROTPHYS' {runnum: (fillnum,fillscheme),...} output: {runnum:(afterglowfactor)}
Definition at line 324 of file lumiCorrections.py.
References afterglowByFillscheme(), nameDealer.cmsrunsummaryTableName(), AlCaHLTBitMon_QueryRunRegistry.data, nameDealer.fillschemeTableName(), and GetRecoTauVFromDQM_MC_cff.next.
tuple lumiCorrections.driftresult = driftcorrectionsForRange(schema,[160467,152611]) |
Definition at line 407 of file lumiCorrections.py.
string lumiCorrections.myconstr = 'oracle://cms_orcoff_prep/cms_lumi_dev_offline' |
Definition at line 401 of file lumiCorrections.py.
tuple lumiCorrections.schema = session.nominalSchema() |
Definition at line 405 of file lumiCorrections.py.
tuple lumiCorrections.session = svc.openSession(isReadOnly=True,cpp2sqltype=[('unsigned int','NUMBER(10)'),('unsigned long long','NUMBER(20)')]) |
Definition at line 403 of file lumiCorrections.py.
tuple lumiCorrections.svc = sessionManager.sessionManager(myconstr,authpath='/afs/cern.ch/user/x/xiezhen',debugON=False) |
Definition at line 402 of file lumiCorrections.py.