Classes | |
class | ParsingError |
Functions | |
def | appendSqliteFile (combinedSqliteFileName, sqliteFileName, tagName, IOVSince, IOVTill, tmpDir="/tmp/") |
def | checkLock () |
def | cmp_list_lumi (a, b) |
def | cmp_list_run (a, b) |
end lumi tools More... | |
def | cp (fromDir, toDir, listOfFiles, overwrite=False, smallList=False) |
def | createWeightedPayloads (fileName, listbeam=[], weighted=True) |
CREATE FILE FOR PAYLOADS. More... | |
def | createWeightedPayloadsNew (fileName, listbeam=[], weighted=True) |
def | delta (x, xerr, nextx, nextxerr) |
def | deltaSig (x) |
def | dirExists (dir) |
def | dump (beam, file) |
def | dumpValues (beam, file) |
def | exit (msg="") |
def | isnan (num) |
def | lock () |
def | ls (dir, filter="") |
def | nonzero (self) |
def | pack (high, low) |
lumi tools CondCore/Utilities/python/timeUnitHelper.py More... | |
def | parse (docstring, arglist=None) |
def | readBeamSpotFile (fileName, listbeam=[], IOVbase="runbase", firstRun='1', lastRun='4999999999') |
def | readSqliteFile (sqliteFileName, tagName, sqliteTemplateFile, tmpDir="/tmp/") |
def | rmLock () |
def | sendEmail (mailList, error) |
General utilities. More... | |
def | setLockName (name) |
def | sortAndCleanBeamList (listbeam=[], IOVbase="lumibase") |
Sort and clean list of data for consecutive duplicates and bad fits. More... | |
def | timeoutManager (type, timeout=-1, fileName=".timeout") |
def | unpack (i) |
def | unpackLumiid (i) |
def | uploadSqliteFile (sqliteFileDirName, sqliteFileName, dropbox="/DropBox") |
def | weight (x1, x1err, x2, x2err) |
def | writeSqliteFile (sqliteFileName, tagName, timeType, beamSpotFile, sqliteTemplateFile, tmpDir="/tmp/") |
Variables | |
__nonzero__ | |
lockFile | |
USAGE | |
OPTIONS. More... | |
def CommonMethods.appendSqliteFile | ( | combinedSqliteFileName, | |
sqliteFileName, | |||
tagName, | |||
IOVSince, | |||
IOVTill, | |||
tmpDir = "/tmp/" |
|||
) |
Definition at line 930 of file CommonMethods.py.
References edm.print().
Referenced by uploader.main(), and BeamSpotWorkflow.main().
def CommonMethods.checkLock | ( | ) |
Definition at line 73 of file CommonMethods.py.
Referenced by BeamSpotWorkflow.main(), and rmLock().
def CommonMethods.cmp_list_lumi | ( | a, | |
b | |||
) |
def CommonMethods.cmp_list_run | ( | a, | |
b | |||
) |
Definition at line 191 of file CommonMethods.py.
References edm.print().
CREATE FILE FOR PAYLOADS.
Definition at line 624 of file CommonMethods.py.
References delta(), deltaSig(), dump(), objects.autophobj.float, edm.print(), and str.
Referenced by BeamSpotWorkflow.main().
Definition at line 797 of file CommonMethods.py.
References delta(), dump(), edm.print(), and str.
def CommonMethods.delta | ( | x, | |
xerr, | |||
nextx, | |||
nextxerr | |||
) |
Definition at line 323 of file CommonMethods.py.
References objects.autophobj.float.
Referenced by createWeightedPayloads(), and createWeightedPayloadsNew().
def CommonMethods.deltaSig | ( | x | ) |
def CommonMethods.dirExists | ( | dir | ) |
Definition at line 159 of file CommonMethods.py.
Referenced by rename.main(), BeamSpotWorkflow.main(), DQMStore.meBookerGetter(), SiStripCommissioningSource.remove(), and DQMStore::IGetter.removeElement().
def CommonMethods.dump | ( | beam, | |
file | |||
) |
Definition at line 291 of file CommonMethods.py.
References dumpValues(), and str.
Referenced by createWeightedPayloads(), and createWeightedPayloadsNew().
def CommonMethods.dumpValues | ( | beam, | |
file | |||
) |
Definition at line 300 of file CommonMethods.py.
References objects.autophobj.float, and str.
Referenced by dump(), and BeamSpotWorkflow.main().
def CommonMethods.exit | ( | msg = "" | ) |
def CommonMethods.isnan | ( | num | ) |
Definition at line 97 of file CommonMethods.py.
References objects.autophobj.float.
Referenced by readBeamSpotFile().
def CommonMethods.lock | ( | ) |
Definition at line 81 of file CommonMethods.py.
Referenced by evf::FastMonitoringService.accumulateFileSize(), cond::service::PoolDBOutputService.appendSinceTime(), dqm::DQMFileSaverOnline.appendSnapshot(), mxnet::cpp::Predictor.bind_executor(), cscdqm::Collection.book(), cscdqm::EventProcessor.calcEMUFractionHisto(), ecaldqm.checkElectronicsMap(), ecaldqm.checkGeometry(), ecaldqm.checkTopology(), ecaldqm.checkTrigTowerMap(), cond::service::PoolDBOutputService.closeIOV(), XrdAdaptor::XrdStatisticsService.condorUpdate(), lumi::service::DBService.connectReadOnly(), cond::service::PoolDBOutputService.createNewIOV(), cond::XMLAuthenticationService::XMLAuthenticationService.credentials(), evf::FastMonitoringService.dowork(), TMVAEvaluator.evaluateTMVA(), CSCMonitorObject.Fill(), cond::service::PoolDBOutputService.forceInit(), evf::FastMonitoringService.getAbortFlagForLumi(), CSCMonitorObject.GetBinContent(), CSCMonitorObject.GetBinError(), CSCMonitorObject.GetEntries(), FedRawDataInputSource.getEventReport(), evf::FastMonitoringService.getEventsProcessedForLumi(), CSCMonitorObject.GetMaximumBin(), XrdAdaptor::XrdSiteStatisticsInformation.getStatisticsForSite(), cond::service::PoolDBOutputService.initDB(), edm::JobReport.inputFileClosed(), cond::service::PoolDBOutputService.lookUpRecord(), BeamSpotWorkflow.main(), DQMNet.onPeerConnect(), DQMNet.onPeerData(), ConcurrentMonitorElement.operator=(), evf::FastMonitoringService.postBeginJob(), evf::FastMonitoringService.postGlobalEndLumi(), evf::FastMonitoringService.preGlobalBeginLumi(), evf::FastMonitoringService.preGlobalEarlyTermination(), evf::FastMonitoringService.preGlobalEndLumi(), evf::FastMonitoringService.preModuleBeginJob(), evf::FastMonitoringService.prePathEvent(), evf::FastMonitoringService.preSourceEarlyTermination(), evf::FastMonitoringService.preStreamBeginLumi(), evf::FastMonitoringService.preStreamEarlyTermination(), evf::FastMonitoringService.preStreamEndLumi(), PixelClusterShapeExtractor.processRec(), cscdqm::Dispatcher.processStandby(), cms::CkfTrackCandidateMakerBase.produceBase(), edm::JobReport.reportAnalysisFile(), edm::JobReport.reportError(), FedRawDataInputSource.reportEventsThisLumiInSource(), edm::JobReport.reportFallbackAttempt(), evf::FastMonitoringService.reportLockWait(), edm::JobReport.reportRandomStateFile(), edm::JobReport.reportSkippedEvent(), edm::JobReport.reportSkippedFile(), CSCMonitorObject.SetAxisRange(), CSCMonitorObject.setAxisTitle(), CSCMonitorObject.SetBinContent(), CSCMonitorObject.SetBinError(), ecaldqm.setElectronicsMap(), CSCMonitorObject.SetEntries(), ecaldqm.setGeometry(), CSCMonitorObject.SetMaximum(), CSCMonitorObject.SetNormFactor(), ecaldqm.setTopology(), ecaldqm.setTrigTowerMap(), cscdqm::EventProcessor.standbyEfficiencyHistos(), edm::ZombieKillerService.startThread(), evf::FastMonitoringService.stoppedLookingForFile(), cond::service::PoolDBOutputService.tagInfo(), cscdqm::EventProcessor.updateEfficiencyHistos(), cscdqm::EventProcessorMutex.updateFractionAndEfficiencyHistos(), cscdqm::Dispatcher.updateFractionAndEfficiencyHistos(), cscdqm::EventProcessor.updateFractionHistos(), cond::service::PoolDBOutputService.writeOne(), and cscdqm::EventProcessor.writeShifterHistograms().
def CommonMethods.ls | ( | dir, | |
filter = "" |
|||
) |
Definition at line 168 of file CommonMethods.py.
References exit(), spr.find(), edm.print(), and split.
def CommonMethods.nonzero | ( | self | ) |
Definition at line 131 of file CommonMethods.py.
def CommonMethods.pack | ( | high, | |
low | |||
) |
lumi tools CondCore/Utilities/python/timeUnitHelper.py
pack high,low 32bit unsigned int to one unsigned 64bit long long Note:the print value of result number may appear signed, if the sign bit is used.
Definition at line 229 of file CommonMethods.py.
Definition at line 107 of file CommonMethods.py.
def CommonMethods.readBeamSpotFile | ( | fileName, | |
listbeam = [] , |
|||
IOVbase = "runbase" , |
|||
firstRun = '1' , |
|||
lastRun = '4999999999' |
|||
) |
Definition at line 331 of file CommonMethods.py.
References mps_setup.append, objects.autophobj.float, createfilelist.int, isnan(), edm.print(), and str.
Referenced by BeamSpotWorkflow.main().
def CommonMethods.readSqliteFile | ( | sqliteFileName, | |
tagName, | |||
sqliteTemplateFile, | |||
tmpDir = "/tmp/" |
|||
) |
Definition at line 907 of file CommonMethods.py.
References edm.print().
Referenced by BeamSpotWorkflow.main().
def CommonMethods.rmLock | ( | ) |
Definition at line 86 of file CommonMethods.py.
References checkLock().
Referenced by exit(), and BeamSpotWorkflow.main().
def CommonMethods.sendEmail | ( | mailList, | |
error | |||
) |
General utilities.
Definition at line 150 of file CommonMethods.py.
References edm.print().
Referenced by BeamSpotWorkflow.main(), and BeamSpotWorkflow.selectFilesToProcess().
def CommonMethods.setLockName | ( | name | ) |
def CommonMethods.sortAndCleanBeamList | ( | listbeam = [] , |
|
IOVbase = "lumibase" |
|||
) |
Sort and clean list of data for consecutive duplicates and bad fits.
Definition at line 592 of file CommonMethods.py.
References edm.print(), and str.
Referenced by BeamSpotWorkflow.main().
def CommonMethods.timeoutManager | ( | type, | |
timeout = -1 , |
|||
fileName = ".timeout" |
|||
) |
Definition at line 10 of file CommonMethods.py.
References edm.print(), split, and str.
Referenced by BeamSpotWorkflow.selectFilesToProcess().
def CommonMethods.unpack | ( | i | ) |
unpack 64bit unsigned long long into 2 32bit unsigned int, return tuple (high,low)
Definition at line 237 of file CommonMethods.py.
References mathSSE.return().
Referenced by unpackLumiid().
def CommonMethods.unpackLumiid | ( | i | ) |
unpack 64bit lumiid to dictionary {'run','lumisection'}
Definition at line 245 of file CommonMethods.py.
References unpack().
def CommonMethods.uploadSqliteFile | ( | sqliteFileDirName, | |
sqliteFileName, | |||
dropbox = "/DropBox" |
|||
) |
Definition at line 938 of file CommonMethods.py.
References edm.print().
Referenced by uploadPayloads.main(), and BeamSpotWorkflow.main().
def CommonMethods.weight | ( | x1, | |
x1err, | |||
x2, | |||
x2err | |||
) |
def CommonMethods.writeSqliteFile | ( | sqliteFileName, | |
tagName, | |||
timeType, | |||
beamSpotFile, | |||
sqliteTemplateFile, | |||
tmpDir = "/tmp/" |
|||
) |
Definition at line 883 of file CommonMethods.py.
References edm.print().
Referenced by BeamSpotWorkflow.main().
|
private |
Definition at line 138 of file CommonMethods.py.
CommonMethods.lockFile |
Definition at line 7 of file CommonMethods.py.
CommonMethods.USAGE |
OPTIONS.
Definition at line 104 of file CommonMethods.py.