Functions | |
def | parseInputFiles |
Variables | |
string | action = 'store_true' |
list | allowedActions = ['hltbyls','hltmenu','trgbyls', 'beambyls','runsummary'] |
list | amodetag = r[2] |
list | amodetagChoices = [ "PROTPHYS","IONPHYS","PAPHYS" ] |
list | beamModeChoices = ["stable"] |
tuple | c = lumiTime.lumiTime() |
choices = beamModeChoices, | |
tuple | dataidmap = lumiCalcAPI.runList(session.nominalSchema(),datatagid,runmin=reqrunmin,runmax=reqrunmax,fillmin=reqfillmin,fillmax=reqfillmax,startT=reqtimemin,stopT=reqtimemax,l1keyPattern=None,hltkeyPattern=None,amodetag=options.amodetag,nominalEnergy=options.beamenergy,energyFlut=options.beamfluctuation,requiretrg=reqTrg,requirehlt=reqHlt,preselectedruns=filerunlist) |
tuple | datatagid = revisionDML.getDataTagId(session.nominalSchema(),datatagname) |
datatagname = options.datatag | |
string | default = 'frontier://LumiCalc/CMS_LUMI_PROD' |
string | dest = 'withbeamintensity' |
switches | |
dumpbeamintensity = False | |
string | egev = 'n/a' |
filerunlist = None | |
string | fill = 'n/a' |
string | help = 'command actions' |
basic arguments | |
list | hltkey = r[4] |
list | iresults = [] |
dictionary | irunlsdict = {} |
check run/ls list | |
isdetail = False | |
list | l1key = r[1] |
tuple | lute = lumiTime.lumiTime() |
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 | |
reqfillmax = None | |
reqfillmin = None | |
reqHlt = False | |
reqrunmax = None | |
reqrunmin = None | |
reqtimemax = None | |
tuple | reqtimemaxT = lute.StrToDatetime(reqtimemax,customfm='%m/%d/%y %H:%M:%S') |
reqtimemin = None | |
tuple | reqtimeminT = lute.StrToDatetime(reqtimemin,customfm='%m/%d/%y %H:%M:%S') |
reqTrg = False | |
required = False, | |
arg to select exact run and ls | |
tuple | result = lumiCalcAPI.trgForIds(session.nominalSchema(),irunlsdict,dataidmap,trgbitname=sname,trgbitnamepattern=spattern,withL1Count=True,withPrescale=True) |
list | rruns = [] |
list | run = r[0] |
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 |
check working environment | |
list | thiscmmd = sys.argv[0] |
list | timeFilter = [None,None] |
type = int, | |
withHLTAccept = True | |
withL1Pass = True |
def lumiContext::parseInputFiles | ( | inputfilename | ) |
output ({run:[cmsls,cmsls,...]},[[resultlines]])
Definition at line 12 of file lumiContext.py.
00013 : 00014 ''' 00015 output ({run:[cmsls,cmsls,...]},[[resultlines]]) 00016 ''' 00017 selectedrunlsInDB={} 00018 resultlines=[] 00019 p=inputFilesetParser.inputFilesetParser(inputfilename) 00020 runlsbyfile=p.runsandls() 00021 selectedProcessedRuns=p.selectedRunsWithresult() 00022 selectedNonProcessedRuns=p.selectedRunsWithoutresult() 00023 resultlines=p.resultlines() 00024 for runinfile in selectedNonProcessedRuns: 00025 selectedrunlsInDB[runinfile]=runlsbyfile[runinfile] 00026 return (selectedrunlsInDB,resultlines)
string lumiContext::action = 'store_true' |
Definition at line 132 of file lumiContext.py.
list lumiContext::allowedActions = ['hltbyls','hltmenu','trgbyls', 'beambyls','runsummary'] |
Definition at line 37 of file lumiContext.py.
list lumiContext::amodetag = r[2] |
Definition at line 328 of file lumiContext.py.
list lumiContext::amodetagChoices = [ "PROTPHYS","IONPHYS","PAPHYS" ] |
Definition at line 38 of file lumiContext.py.
list lumiContext::beamModeChoices = ["stable"] |
Definition at line 39 of file lumiContext.py.
tuple lumiContext::c = lumiTime.lumiTime() |
Definition at line 316 of file lumiContext.py.
Definition at line 77 of file lumiContext.py.
tuple lumiContext::dataidmap = lumiCalcAPI.runList(session.nominalSchema(),datatagid,runmin=reqrunmin,runmax=reqrunmax,fillmin=reqfillmin,fillmax=reqfillmax,startT=reqtimemin,stopT=reqtimemax,l1keyPattern=None,hltkeyPattern=None,amodetag=options.amodetag,nominalEnergy=options.beamenergy,energyFlut=options.beamfluctuation,requiretrg=reqTrg,requirehlt=reqHlt,preselectedruns=filerunlist) |
Definition at line 239 of file lumiContext.py.
tuple lumiContext::datatagid = revisionDML.getDataTagId(session.nominalSchema(),datatagname) |
Definition at line 237 of file lumiContext.py.
lumiContext::datatagname = options.datatag |
Definition at line 233 of file lumiContext.py.
float lumiContext::default = 'frontier://LumiCalc/CMS_LUMI_PROD' |
Definition at line 53 of file lumiContext.py.
string lumiContext::dest = 'withbeamintensity' |
switches
Definition at line 131 of file lumiContext.py.
lumiContext::dumpbeamintensity = False |
Definition at line 303 of file lumiContext.py.
tuple lumiContext::egev = 'n/a' |
Definition at line 329 of file lumiContext.py.
tuple lumiContext::filerunlist = None |
Definition at line 228 of file lumiContext.py.
tuple lumiContext::fill = 'n/a' |
Definition at line 319 of file lumiContext.py.
Referenced by SiStripThreshold::allThresholds(), Rivet::CMS_2011_I930319::analyze(), GenericBenchmarkAnalyzer::analyze(), EcalDumpRaw::analyze(), CalibAnalyzer< Ref, Rec, Alg >::analyze(), TrackCountingTagPlotter::analyzeTag(), TrackProbabilityTagPlotter::analyzeTag(), SimpleCosmicBONSeeder::checkNoisyModules(), funct::Master< F >::clear(), CSCTFUnpacker::CSCTFUnpacker(), ESElectronicsSim::decode(), PhysicsTools::VarProcessor::deriv(), DTEfficiencyTest::endLuminosityBlock(), tnp::TPTreeFiller::fill(), egHLT::MonElemContainer< T >::fill(), PFCandCommonVertexFitterBase::fill(), SummaryPlotFactory< T >::fill(), SummaryPlotFactory< FedCablingAnalysis * >::fill(), FlavourHistograms2D< T, G >::fill(), GroupedCkfTrajectoryBuilder::groupedIntermediaryClean(), HLTTrackClusterRemover::HLTTrackClusterRemover(), plotData::plotData(), HLTTrackClusterRemover::produce(), SeedClusterRemover::produce(), TrackClusterRemover::produce(), ecaldqm::CertificationClient::producePlots(), TrackClusterRemover::readPSet(), HLTTrackClusterRemover::readPSet(), SeedClusterRemover::readPSet(), funct::Master< F >::reset(), L1DataEmulDigi::reset(), HcalSiPM::resetSiPM(), ecaldqm::TestPulseTask::runOnDigis(), ecaldqm::LaserTask::runOnDigis(), ecaldqm::LedTask::runOnDigis(), ecaldqm::IntegrityTask::runOnErrors(), ecaldqm::RawDataTask::runOnRawData(), ecaldqm::TrigPrimTask::runOnRealTPs(), ecaldqm::ClusterTask::runOnSuperClusters(), 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' |
basic arguments
Definition at line 49 of file lumiContext.py.
list lumiContext::hltkey = r[4] |
Definition at line 327 of file lumiContext.py.
Referenced by lumi::HLTConf2DB::retrieveData().
list lumiContext::iresults = [] |
Definition at line 165 of file lumiContext.py.
tuple lumiContext::irunlsdict = {} |
check run/ls list
Definition at line 225 of file lumiContext.py.
lumiContext::isdetail = False |
Definition at line 193 of file lumiContext.py.
list lumiContext::l1key = r[1] |
Definition at line 326 of file lumiContext.py.
tuple lumiContext::lute = lumiTime.lumiTime() |
Definition at line 183 of file lumiContext.py.
tuple lumiContext::options = parser.parse_args() |
Definition at line 154 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 36 of file lumiContext.py.
string lumiContext::pbeammode = None |
Definition at line 164 of file lumiContext.py.
lumiContext::reqfillmax = None |
Definition at line 161 of file lumiContext.py.
lumiContext::reqfillmin = None |
Definition at line 158 of file lumiContext.py.
lumiContext::reqHlt = False |
Definition at line 167 of file lumiContext.py.
lumiContext::reqrunmax = None |
Definition at line 160 of file lumiContext.py.
lumiContext::reqrunmin = None |
Definition at line 157 of file lumiContext.py.
lumiContext::reqtimemax = None |
Definition at line 162 of file lumiContext.py.
tuple lumiContext::reqtimemaxT = lute.StrToDatetime(reqtimemax,customfm='%m/%d/%y %H:%M:%S') |
Definition at line 190 of file lumiContext.py.
lumiContext::reqtimemin = None |
Definition at line 159 of file lumiContext.py.
tuple lumiContext::reqtimeminT = lute.StrToDatetime(reqtimemin,customfm='%m/%d/%y %H:%M:%S') |
Definition at line 184 of file lumiContext.py.
lumiContext::reqTrg = False |
Definition at line 166 of file lumiContext.py.
lumiContext::required = False, |
tuple lumiContext::result = lumiCalcAPI.trgForIds(session.nominalSchema(),irunlsdict,dataidmap,trgbitname=sname,trgbitnamepattern=spattern,withL1Count=True,withPrescale=True) |
Definition at line 271 of file lumiContext.py.
list lumiContext::rruns = [] |
Definition at line 226 of file lumiContext.py.
list lumiContext::run = r[0] |
Definition at line 318 of file lumiContext.py.
list lumiContext::sequence = r[6] |
Definition at line 332 of file lumiContext.py.
Referenced by EcalDCCHeaderRuntypeDecoder::Decode(), EcalDCCTBHeaderRuntypeDecoder::Decode(), and FFTJetCorrectionESProducer< CT >::produce().
tuple lumiContext::session = svc.openSession(isReadOnly=True,cpp2sqltype=[('unsigned int','NUMBER(10)'),('unsigned long long','NUMBER(20)')]) |
Definition at line 219 of file lumiContext.py.
lumiContext::sname = options.name |
Definition at line 192 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 194 of file lumiContext.py.
tuple lumiContext::starttime = c.StrToDatetime(r[7]) |
Definition at line 322 of file lumiContext.py.
tuple lumiContext::stoptime = c.StrToDatetime(r[8]) |
Definition at line 324 of file lumiContext.py.
tuple lumiContext::svc |
00001 sessionManager.sessionManager(options.connect, 00002 authpath=options.authpath, 00003 siteconfpath=options.siteconfpath, 00004 debugON=options.debug)
check working environment
check DB environment
Definition at line 215 of file lumiContext.py.
list lumiContext::thiscmmd = sys.argv[0] |
Definition at line 266 of file lumiContext.py.
list lumiContext::timeFilter = [None,None] |
Definition at line 163 of file lumiContext.py.
tuple lumiContext::type = int, |
Definition at line 58 of file lumiContext.py.
lumiContext::withHLTAccept = True |
Definition at line 284 of file lumiContext.py.
lumiContext::withL1Pass = True |
Definition at line 283 of file lumiContext.py.