def lumiCalcAPI.deliveredLumiForRange | ( | schema, | |
inputRange, | |||
amodetag = 'PROTPHYS' , |
|||
nominalegev = 3500 , |
|||
beamstatus = None , |
|||
withBXInfo = False , |
|||
bxAlgo = 'OCC1' , |
|||
xingMinLum = 1.0e-4 , |
|||
withBeamIntensity = False , |
|||
normname = None , |
|||
datatag = None |
|||
) |
input: inputRange {run:[lsnum]} (required) [lsnum]==None means all ; [lsnum]==[] means selected ls amodetag : accelerator mode for all the runs (optional) ['PROTPHYS','HIPHYS'] beamstatus: LS filter on beamstatus (optional) beamenergy: LS filter on beamenergy (optional) beamenergy+-beamenergyFluc withBXInfo: get per bunch info (optional) bxAlgo: algoname for bx values (optional) ['OCC1','OCC2','ET'] xingMinLum: cut on bx lumi value (optional) withBeamInfo: get beam intensity info (optional) normname: norm factor name to use (optional) datatag: data version output: result {run:{(lumilsnum,cmslsnum):[timestamp,beamstatus,beamenergy,deliveredlumi,calibratedlumierr,(bxvalues,bxerrs),(bxidx,b1intensities,b2intensities)]}} avg lumi unit: 1/ub
Definition at line 126 of file lumiCalcAPI.py.
References dataDML.guessnormIdByContext(), instLumiForRange(), lslengthsec(), and dataDML.luminormById().
def lumiCalcAPI.effectiveLumiForRange | ( | schema, | |
inputRange, | |||
hltpathname = None , |
|||
hltpathpattern = None , |
|||
amodetag = 'PROTPHYS' , |
|||
beamstatus = None , |
|||
beamenergy = None , |
|||
beamenergyFluc = 0.2 , |
|||
withBXInfo = False , |
|||
xingMinLum = 1.0e-4 , |
|||
bxAlgo = 'OCC1' , |
|||
withBeamInfo = False , |
|||
normname = None , |
|||
datatag = None |
|||
) |
input: inputRange {run:[cmsls]} (required) hltpathname: selected hltpathname hltpathpattern: regex select hltpaths amodetag : accelerator mode for all the runs (optional) ['PROTPHYS','HIPHYS'] beamstatus: LS filter on beamstatus (optional) beamenergy: LS filter on beamenergy (optional) beamenergy+-beamenergyFluc withBXInfo: get per bunch info (optional) bxAlgo: algoname for bx values (optional) ['OCC1','OCC2','ET'] xingMinLum: cut on bx lumi value (optional) withBeamInfo: get beam intensity info (optional) normname: norm factor name to use (optional) datatag: data version output: result {run:{(lumilsnum,cmslsnum):[timestamp,beamstatus,beamenergy,deliveredlumi,recordedlumi,calibratedlumierror,{hltpath:[l1name,l1prescale,hltprescale,efflumi]},bxdata,beamdata]}} lumi unit: 1/ub
Definition at line 271 of file lumiCalcAPI.py.
References hltTrgSeedMapper.findUniqueSeed(), dataDML.guessDataIdByRun(), dataDML.guessnormIdByContext(), dataDML.hltLSById(), dataDML.hltRunById(), dataDML.hlttrgMappingByrun(), lslengthsec(), dataDML.lumiLSById(), dataDML.luminormById(), dataDML.runsummary(), split, dataDML.trgLSById(), dataDML.trgRunById(), and CommonUtil.unpackBlobtoArray().
def lumiCalcAPI.hltForRange | ( | schema, | |
inputRange, | |||
hltpathname = None , |
|||
hltpathpattern = None , |
|||
datatag = None |
|||
) |
input: inputRange: {run:[cmsls]} (required) hltpathname: exact match hltpathname (optional) hltpathpattern: regex match hltpathpattern (optional) datatag : data version output: {runnumber:{hltpath:[[cmslsnum,l1pass,hltaccept,hltprescale]]})}
Definition at line 41 of file lumiCalcAPI.py.
def lumiCalcAPI.hltpathsForRange | ( | schema, | |
runlist | |||
) |
input: runlist [run], (required) datatag: data version (optional) output : {runnumber,{hltpath:(l1bitname,l1seedexpr)}}
Definition at line 17 of file lumiCalcAPI.py.
References dataDML.hlttrgMappingByrun().
def lumiCalcAPI.instCalibratedLumiForRange | ( | schema, | |
inputRange, | |||
amodetag = 'PROTPHYS' , |
|||
nominalegev = 3500 , |
|||
beamstatus = None , |
|||
withBXInfo = False , |
|||
bxAlgo = 'OCC1' , |
|||
xingMinLum = 1.0e-4 , |
|||
withBeamInfo = False , |
|||
normname = None , |
|||
datatag = None |
|||
) |
Inst luminosity after calibration input: inputRange {run:[cmsls]} (required) amodetag : accelerator mode for all the runs (optional) ['PROTPHYS','HIPHYS'] beamstatus: LS filter on beamstatus (optional) beamenergy: LS filter on beamenergy (optional) beamenergy+-beamenergyFluc withBXInfo: get per bunch info (optional) bxAlgo: algoname for bx values (optional) ['OCC1','OCC2','ET'] xingMinLum: cut on bx lumi value (optional) withBeamInfo: get beam intensity info (optional) normname: norm factor name to use (optional) datatag: data version output: result {run:{(lumilsnum,cmslsnum):[timestamp,beamstatus,beamenergy,calibratedlumi,calibratedlumierr,startorbit,numorbit,(bxvalues,bxerrs),(bxidx,b1intensities,b2intensities)]}} lumi unit: HZ/ub
Definition at line 81 of file lumiCalcAPI.py.
def lumiCalcAPI.instLumiForRange | ( | schema, | |
inputRange, | |||
beamstatus = None , |
|||
withBXInfo = False , |
|||
bxAlgo = 'OCC1' , |
|||
xingMinLum = 1.0e-4 , |
|||
withBeamIntensity = False , |
|||
datatag = None |
|||
) |
input: inputRange {run:[cmsls]} (required) beamstatus: LS filter on beamstatus (optional) beamenergy: LS filter on beamenergy (optional) beamenergy+-beamenergyFluc withBXInfo: get per bunch info (optional) bxAlgo: algoname for bx values (optional) ['OCC1','OCC2','ET'] xingMinLum: cut on bx lumi value (optional) withBeamInfo: get beam intensity info (optional) datatag: data version output: result {run:{(lumilsnum,cmslsnum):[timestamp,beamstatus,beamenergy,instlumi,instlumierr,startorbit,numorbit,(bxvalues,bxerrs),(bxidx,b1intensities,b2intensities)]}} lumi unit: HZ/ub
Definition at line 64 of file lumiCalcAPI.py.
Referenced by deliveredLumiForRange(), and instCalibratedLumiForRange().
def lumiCalcAPI.lslengthsec | ( | numorbit, | |
numbx | |||
) |
input: numorbit : number of orbit in the lumi section numbx : number of orbits output: lumi section length in sec
Definition at line 7 of file lumiCalcAPI.py.
Referenced by deliveredLumiForRange(), effectiveLumiForRange(), and lumiForRange().
def lumiCalcAPI.lumiForRange | ( | schema, | |
inputRange, | |||
amodetag = 'PROTPHYS' , |
|||
beamstatus = None , |
|||
beamenergy = None , |
|||
beamenergyFluc = 0.2 , |
|||
withBXInfo = False , |
|||
bxAlgo = 'OCC1' , |
|||
xingMinLum = 1.0e-4 , |
|||
withBeamInfo = False , |
|||
normname = None , |
|||
datatag = None |
|||
) |
input: inputRange {run:[cmsls]} (required) amodetag : accelerator mode for all the runs (optional) ['PROTPHYS','HIPHYS'] beamstatus: LS filter on beamstatus (optional) beamenergy: LS filter on beamenergy (optional) beamenergy+-beamenergyFluc withBXInfo: get per bunch info (optional) bxAlgo: algoname for bx values (optional) ['OCC1','OCC2','ET'] xingMinLum: cut on bx lumi value (optional) withBeamInfo: get beam intensity info (optional) normname: norm factor name to use (optional) datatag: data version output: result {run:{(lumilsnum,cmslsnum):[timestamp,beamstatus,beamenergy,deliveredlumi,recordedlumi,calibratedlumierror,((bxidx,bxvalues,bxerrs),(bxidx,b1intensities,b2intensities)]}} lumi unit: 1/ub
Definition at line 172 of file lumiCalcAPI.py.
References dataDML.guessDataIdByRun(), dataDML.guessnormIdByContext(), lslengthsec(), dataDML.lumiLSById(), dataDML.luminormById(), dataDML.runsummary(), dataDML.trgLSById(), and CommonUtil.unpackBlobtoArray().
def lumiCalcAPI.runList | ( | schema, | |
fillnum = None , |
|||
runmin = None , |
|||
runmax = None , |
|||
startT = None , |
|||
stopT = None , |
|||
l1keyPattern = None , |
|||
hltkeyPattern = None , |
|||
amodetag = None , |
|||
nominalEnergy = None , |
|||
energyFlut = 0.2 , |
|||
requiretrg = True , |
|||
requirehlt = True |
|||
) |
Definition at line 4 of file lumiCalcAPI.py.
References dataDML.runList().
def lumiCalcAPI.trgbitsForRange | ( | schema, | |
runlist, | |||
datatag = None |
|||
) |
input: runlist [run],(required) datatag: data version (optional) output: {runnumber:bitzeroname,[bitnames]}
Definition at line 33 of file lumiCalcAPI.py.
def lumiCalcAPI.trgForRange | ( | schema, | |
inputRange, | |||
trgbitname = None , |
|||
trgbitnamepattern = None , |
|||
datatag = None |
|||
) |
input : inputRange {run:[cmsls]} (required) trgbitname exact match trgbitname (optional) trgbitnamepattern regex match trgbitname (optional) datatag : data version output result {run,{cmslsnum:[deadtimecount,bitzero_count,bitzero_prescale,deadfraction,{bitname:[prescale,counts]}]}}
Definition at line 52 of file lumiCalcAPI.py.