Functions | |
def | parseInputFiles |
Variables | |
list | allowedActions = ['hltbyls','hltconf','trgconf','trgbyls', 'beambyls','runsummary'] |
list | amodetag = r[2] |
list | amodetagChoices = [ "PROTPHYS","IONPHYS" ] |
list | beamModeChoices = ["stable"] |
tuple | c = lumiTime.lumiTime() |
choices = beamModeChoices, | |
string | default = 'frontier://LumiCalc/CMS_LUMI_PROD' |
dumpbeamintensity = False | |
string | egev = 'n/a' |
string | fill = 'n/a' |
string | help = 'command actions' |
list | hltkey = r[4] |
list | iresults = [] |
dictionary | irunlsdict = {} |
isdetail = False | |
list | l1key = r[1] |
tuple | options = parser.parse_args() |
tuple | parser = argparse.ArgumentParser(prog=os.path.basename(sys.argv[0]),description = "Additional information needed in the lumi calculation",formatter_class=argparse.ArgumentDefaultsHelpFormatter) |
######################## ## ## ################## ## ## ## ## Main Program ## ## ## ## ################## ## ## ######################## ## | |
pbeammode = None | |
reqHlt = False | |
reqTrg = False | |
required = False, | |
tuple | result = lumiCalcAPI.trgForRange(session.nominalSchema(),irunlsdict,trgbitname=sname,trgbitnamepattern=spattern,withL1Count=True,withPrescale=True) |
list | run = r[0] |
tuple | runlist = lumiCalcAPI.runList(schema,options.fillnum,runmin=None,runmax=None,startT=options.begin,stopT=options.end,l1keyPattern=None,hltkeyPattern=None,amodetag=options.amodetag,nominalEnergy=options.beamenergy,energyFlut=options.beamfluctuation,requiretrg=reqTrg,requirehlt=reqHlt) |
tuple | schema = session.nominalSchema() |
list | sequence = r[6] |
tuple | session = svc.openSession(isReadOnly=True,cpp2sqltype=[('unsigned int','NUMBER(10)'),('unsigned long long','NUMBER(20)')]) |
sname = options.name | |
spattern = None | |
tuple | starttime = c.StrToDatetime(r[7]) |
tuple | stoptime = c.StrToDatetime(r[8]) |
tuple | svc = sessionManager.sessionManager(options.connect,authpath=options.authpath,debugON=options.debug) |
type = int, | |
string | VERSION = '2.00' |
withHLTAccept = False | |
withL1Pass = False |
def lumiContext::parseInputFiles | ( | inputfilename, | |
dbrunlist, | |||
optaction | |||
) |
output ({run:[cmsls,cmsls,...]},[[resultlines]])
Definition at line 6 of file lumiContext.py.
00007 : 00008 ''' 00009 output ({run:[cmsls,cmsls,...]},[[resultlines]]) 00010 ''' 00011 selectedrunlsInDB={} 00012 resultlines=[] 00013 p=inputFilesetParser.inputFilesetParser(inputfilename) 00014 runlsbyfile=p.runsandls() 00015 selectedProcessedRuns=p.selectedRunsWithresult() 00016 selectedNonProcessedRuns=p.selectedRunsWithoutresult() 00017 resultlines=p.resultlines() 00018 for runinfile in selectedNonProcessedRuns: 00019 if runinfile not in dbrunlist: 00020 continue 00021 selectedrunlsInDB[runinfile]=runlsbyfile[runinfile] 00022 return (selectedrunlsInDB,resultlines) 00023
list lumiContext::allowedActions = ['hltbyls','hltconf','trgconf','trgbyls', 'beambyls','runsummary'] |
Definition at line 34 of file lumiContext.py.
list lumiContext::amodetag = r[2] |
Definition at line 257 of file lumiContext.py.
list lumiContext::amodetagChoices = [ "PROTPHYS","IONPHYS" ] |
Definition at line 35 of file lumiContext.py.
list lumiContext::beamModeChoices = ["stable"] |
Definition at line 36 of file lumiContext.py.
tuple lumiContext::c = lumiTime.lumiTime() |
Definition at line 245 of file lumiContext.py.
Definition at line 72 of file lumiContext.py.
float lumiContext::default = 'frontier://LumiCalc/CMS_LUMI_PROD' |
Definition at line 48 of file lumiContext.py.
lumiContext::dumpbeamintensity = False |
Definition at line 232 of file lumiContext.py.
tuple lumiContext::egev = 'n/a' |
Definition at line 258 of file lumiContext.py.
tuple lumiContext::fill = 'n/a' |
Definition at line 248 of file lumiContext.py.
Referenced by SiStripThreshold::allThresholds(), GenericBenchmarkAnalyzer::analyze(), EcalDumpRaw::analyze(), Rivet::CMS_QCD_10_010::analyze(), Rivet::CMS_FWD_10_011::analyze(), CalibAnalyzer< Ref, Rec, Alg >::analyze(), TrackCountingTagPlotter::analyzeTag(), SimpleCosmicBONSeeder::checkNoisyModules(), funct::Master< F >::clear(), CSCTFUnpacker::CSCTFUnpacker(), ESElectronicsSim::decode(), PhysicsTools::VarProcessor::deriv(), DTEfficiencyTest::endLuminosityBlock(), tnp::TPTreeFiller::fill(), egHLT::MonElemContainer< T >::fill(), SummaryPlotFactory< T >::fill(), PFCandCommonVertexFitterBase::fill(), SummaryPlotFactory< FedCablingAnalysis * >::fill(), reco::HLTResult< numberOfBits, word >::HLTResult(), HLTTrackClusterRemover::HLTTrackClusterRemover(), plotData::plotData(), HLTTrackClusterRemover::produce(), SeedClusterRemover::produce(), TrackClusterRemover::produce(), TrackClusterRemover::readPSet(), HLTTrackClusterRemover::readPSet(), SeedClusterRemover::readPSet(), funct::Master< F >::reset(), L1DataEmulDigi::reset(), magfieldparam::rz_poly::rz_poly(), SeedClusterRemover::SeedClusterRemover(), CandCommonVertexFitterBase::set(), CandKinematicVertexFitter::set(), PFCandCommonVertexFitterBase::set(), StMeasurementDetSet::set128StripStatus(), magfieldparam::rz_poly::SetAllON(), CaloSamples::setBlank(), StMeasurementDetSet::setEmpty(), TrackClusterRemover::TrackClusterRemover(), cond::PayLoadInspector< DataT >::trend_plot(), and MeasurementTrackerImpl::updatePixels().
string lumiContext::help = 'command actions' |
Definition at line 44 of file lumiContext.py.
list lumiContext::hltkey = r[4] |
Definition at line 256 of file lumiContext.py.
Referenced by lumi::HLTConf2DB::retrieveData().
list lumiContext::iresults = [] |
Definition at line 167 of file lumiContext.py.
dictionary lumiContext::irunlsdict = {} |
Definition at line 166 of file lumiContext.py.
lumiContext::isdetail = False |
Definition at line 128 of file lumiContext.py.
list lumiContext::l1key = r[1] |
Definition at line 255 of file lumiContext.py.
tuple lumiContext::options = parser.parse_args() |
Definition at line 122 of file lumiContext.py.
tuple lumiContext::parser = argparse.ArgumentParser(prog=os.path.basename(sys.argv[0]),description = "Additional information needed in the lumi calculation",formatter_class=argparse.ArgumentDefaultsHelpFormatter) |
######################## ## ## ################## ## ## ## ## Main Program ## ## ## ## ################## ## ## ######################## ##
Definition at line 33 of file lumiContext.py.
string lumiContext::pbeammode = None |
Definition at line 126 of file lumiContext.py.
lumiContext::reqHlt = False |
Definition at line 172 of file lumiContext.py.
lumiContext::reqTrg = False |
Definition at line 171 of file lumiContext.py.
lumiContext::required = False, |
Definition at line 46 of file lumiContext.py.
tuple lumiContext::result = lumiCalcAPI.trgForRange(session.nominalSchema(),irunlsdict,trgbitname=sname,trgbitnamepattern=spattern,withL1Count=True,withPrescale=True) |
Definition at line 195 of file lumiContext.py.
list lumiContext::run = r[0] |
Definition at line 247 of file lumiContext.py.
tuple lumiContext::runlist = lumiCalcAPI.runList(schema,options.fillnum,runmin=None,runmax=None,startT=options.begin,stopT=options.end,l1keyPattern=None,hltkeyPattern=None,amodetag=options.amodetag,nominalEnergy=options.beamenergy,energyFlut=options.beamfluctuation,requiretrg=reqTrg,requirehlt=reqHlt) |
Definition at line 179 of file lumiContext.py.
tuple lumiContext::schema = session.nominalSchema() |
Definition at line 178 of file lumiContext.py.
list lumiContext::sequence = r[6] |
Definition at line 261 of file lumiContext.py.
Referenced by EcalDCCHeaderRuntypeDecoder::Decode(), and EcalDCCTBHeaderRuntypeDecoder::Decode().
tuple lumiContext::session = svc.openSession(isReadOnly=True,cpp2sqltype=[('unsigned int','NUMBER(10)'),('unsigned long long','NUMBER(20)')]) |
Definition at line 164 of file lumiContext.py.
lumiContext::sname = options.name |
Definition at line 127 of file lumiContext.py.
Referenced by HcalTBWriter::buildTree(), SiPixelWebInterface::createTkMap(), SiPixelActionExecutor::fillFEDErrorSummary(), StorageAccount::fillSummary(), SiStripInformationExtractor::getCondDBHistos(), LMFDefFabric::getTrigType(), SiStripWebInterface::handleAnalyserRequest(), SiPixelWebInterface::handleEDARequest(), MoveFlatParamsToDB::MoveFlatParamsToDB(), SiPixelWebInterface::periodicTkMapUpdate(), FWGeometryTableViewBase::populate3DViewsFromConfig(), KFFittingSmootherESProducer::produce(), TkTransientTrackingRecHitBuilderESProducer::produce(), SiStripInformationExtractor::readModuleAndHistoList(), and OpticalObject::shortName().
lumiContext::spattern = None |
Definition at line 129 of file lumiContext.py.
tuple lumiContext::starttime = c.StrToDatetime(r[7]) |
Definition at line 251 of file lumiContext.py.
tuple lumiContext::stoptime = c.StrToDatetime(r[8]) |
Definition at line 253 of file lumiContext.py.
tuple lumiContext::svc = sessionManager.sessionManager(options.connect,authpath=options.authpath,debugON=options.debug) |
Definition at line 163 of file lumiContext.py.
string lumiContext::type = int, |
Definition at line 53 of file lumiContext.py.
string lumiContext::VERSION = '2.00' |
Definition at line 2 of file lumiContext.py.
lumiContext::withHLTAccept = False |
Definition at line 203 of file lumiContext.py.
lumiContext::withL1Pass = False |
Definition at line 202 of file lumiContext.py.