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 931 of file CommonMethods.py.
References edm.print().
Referenced by uploader.main(), and BeamSpotWorkflow.main().
def CommonMethods.checkLock | ( | ) |
Definition at line 74 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 192 of file CommonMethods.py.
References edm.print().
Referenced by heppy::IsolationComputer.addVetos(), CaloParticleDebugger.analyze(), PFAnalysis.analyze(), cmsutils::bqueue< TrajectoryMeasurement >.bqueue(), PixelTrackBuilder.build(), EcalHitMaker.buildSegments(), btagbtvdeep::TrackPairInfoBuilder.buildTrackPairInfo(), l1t::CaloCondition.CaloCondition(), CaloTemplate.CaloTemplate(), EcalHitMaker.cellLine(), MTDCPEBase.clusterTime(), MTDCPEBase.clusterTimeError(), CustomPhysicsListSS.ConstructProcess(), CustomPhysicsList.ConstructProcess(), L1GtCastorTemplate.copy(), L1GtExternalTemplate.copy(), L1GtBptxTemplate.copy(), ExternalTemplate.copy(), L1GtExternalCondition.copy(), L1GtHfBitCountsCondition.copy(), L1GtHfRingEtSumsCondition.copy(), L1GtBptxCondition.copy(), L1GtCastorCondition.copy(), L1GtJetCountsCondition.copy(), L1GtEnergySumCondition.copy(), l1t::EnergySumCondition.copy(), l1t::ExternalCondition.copy(), L1GtHfBitCountsTemplate.copy(), L1GtHfRingEtSumsTemplate.copy(), L1GtJetCountsTemplate.copy(), L1GtMuonCondition.copy(), EnergySumTemplate.copy(), l1t::MuCondition.copy(), L1GtEnergySumTemplate.copy(), L1GtCaloCondition.copy(), l1t::CaloCondition.copy(), L1GtCaloTemplate.copy(), L1GtCorrelationCondition.copy(), l1t::CorrCondition.copy(), L1GtMuonTemplate.copy(), l1t::CorrWithOverlapRemovalCondition.copy(), L1GtCorrelationTemplate.copy(), CaloTemplate.copy(), CorrelationTemplate.copy(), MuonTemplate.copy(), CorrelationWithOverlapRemovalTemplate.copy(), l1t::CorrCondition.CorrCondition(), CorrelationTemplate.CorrelationTemplate(), CorrelationWithOverlapRemovalTemplate.CorrelationWithOverlapRemovalTemplate(), l1t::CorrWithOverlapRemovalCondition.CorrWithOverlapRemovalCondition(), HtrXmlPatternTool.createHists(), HtrXmlPattern.do_hand_fill(), edm::RootFile.dropOnInput(), DTUserKeyedConfigHandler.DTUserKeyedConfigHandler(), EcalHitMaker.ecalCellLine(), l1t::EnergySumCondition.EnergySumCondition(), EnergySumTemplate.EnergySumTemplate(), l1t::ExternalCondition.ExternalCondition(), ExternalTemplate.ExternalTemplate(), HtrXmlPatternTool.Fill(), edm::RootOutputFile.fillBranches(), edm::eventsetup.fillEventSetupProvider(), edm.fillLooper(), CaloTruthAccumulator.finalizeEvent(), L1GtVhdlWriterCore.getCaloSetupContentFromTriggerMenu(), L1GtVhdlWriterCore.getMuonSetupContentFromTriggerMenu(), MTDCPEBase.getParameters(), edm::RootDelayedReader.getProduct_(), EcalHitMaker.hcalCellLine(), heppy::IsolationComputer.isoSumNeutralsWeighted(), heppy::IsolationComputer.isoSumRaw(), L1GtBptxCondition.L1GtBptxCondition(), L1GtBptxTemplate.L1GtBptxTemplate(), L1GtCaloCondition.L1GtCaloCondition(), L1GtCaloTemplate.L1GtCaloTemplate(), L1GtCastorCondition.L1GtCastorCondition(), L1GtCastorTemplate.L1GtCastorTemplate(), L1GtCorrelationCondition.L1GtCorrelationCondition(), L1GtCorrelationTemplate.L1GtCorrelationTemplate(), L1GtEnergySumCondition.L1GtEnergySumCondition(), L1GtEnergySumTemplate.L1GtEnergySumTemplate(), L1GtExternalCondition.L1GtExternalCondition(), L1GtExternalTemplate.L1GtExternalTemplate(), L1GtHfBitCountsCondition.L1GtHfBitCountsCondition(), L1GtHfBitCountsTemplate.L1GtHfBitCountsTemplate(), L1GtHfRingEtSumsCondition.L1GtHfRingEtSumsCondition(), L1GtHfRingEtSumsTemplate.L1GtHfRingEtSumsTemplate(), L1GtJetCountsCondition.L1GtJetCountsCondition(), L1GtJetCountsTemplate.L1GtJetCountsTemplate(), L1GtMuonCondition.L1GtMuonCondition(), L1GtMuonTemplate.L1GtMuonTemplate(), HGVHistoProducerAlgo.layerClusters_to_CaloParticles(), HGCalGeomParameters.loadGeometryHexagon(), MTDCPEBase.localError(), MTDCPEBase.localPosition(), copyFromCastor.main(), copyAndRename.main(), copyFiles.main(), rename.main(), splitter.main(), BeamSpotWorkflow.main(), FWGUIManager.makeGUIsubview(), PreshowerClusterAlgo.makeOneCluster(), l1t::MuCondition.MuCondition(), MuonTemplate.MuonTemplate(), TracksClusteringFromDisplacedSeed.nearTracks(), CaloParticleSelector.operator()(), L1GtHfBitCountsCondition.operator=(), L1GtExternalCondition.operator=(), L1GtHfRingEtSumsCondition.operator=(), L1GtBptxCondition.operator=(), L1GtCastorCondition.operator=(), L1GtJetCountsCondition.operator=(), L1GtEnergySumCondition.operator=(), ExternalTemplate.operator=(), EnergySumTemplate.operator=(), L1GtMuonCondition.operator=(), CaloTemplate.operator=(), MuonTemplate.operator=(), L1GtMuonTemplate.operator=(), L1GtHfRingEtSumsTemplate.operator=(), L1GtHfBitCountsTemplate.operator=(), L1GtCaloTemplate.operator=(), L1GtEnergySumTemplate.operator=(), L1GtJetCountsTemplate.operator=(), l1t::EnergySumCondition.operator=(), l1t::ExternalCondition.operator=(), l1t::MuCondition.operator=(), L1GtCastorTemplate.operator=(), CorrelationTemplate.operator=(), l1t::CorrCondition.operator=(), L1GtExternalTemplate.operator=(), L1GtBptxTemplate.operator=(), L1GtCaloCondition.operator=(), L1GtCorrelationCondition.operator=(), l1t::CaloCondition.operator=(), L1GtCorrelationTemplate.operator=(), l1t::CorrWithOverlapRemovalCondition.operator=(), CorrelationWithOverlapRemovalTemplate.operator=(), cmsutils::bqueue< TrajectoryMeasurement >.operator=(), edm::soa::Table< Args >.operator=(), EcalHitMaker.preshowerCellLine(), Phase2TrackerClusterizer.produce(), PixelClusterTagInfoProducer.produce(), Strip1DMeasurementTransformator.projectionMatrix(), edm::MergeableRunProductProcesses.setProcessesWithMergeableRunProducts(), BarrelDetLayer.setSurface(), ForwardDetLayer.setSurface(), evf::FastMonitoringThread.start(), cmsutils::bqueue< TrajectoryMeasurement >.swap(), TotemVFATStatus.TotemVFATStatus(), and L1GtVmeWriterCore.writeVME().
def CommonMethods.createWeightedPayloads | ( | fileName, | |
listbeam = [] , |
|||
weighted = True |
|||
) |
CREATE FILE FOR PAYLOADS.
Definition at line 625 of file CommonMethods.py.
References delta(), deltaSig(), dump(), dqmMemoryStats.float, edm.print(), FastTimerService_cff.range, and str.
Referenced by BeamSpotWorkflow.main().
def CommonMethods.createWeightedPayloadsNew | ( | fileName, | |
listbeam = [] , |
|||
weighted = True |
|||
) |
Definition at line 798 of file CommonMethods.py.
References delta(), dump(), edm.print(), FastTimerService_cff.range, and str.
def CommonMethods.delta | ( | x, | |
xerr, | |||
nextx, | |||
nextxerr | |||
) |
Definition at line 324 of file CommonMethods.py.
References dqmMemoryStats.float.
Referenced by createWeightedPayloads(), and createWeightedPayloadsNew().
def CommonMethods.deltaSig | ( | x | ) |
Definition at line 328 of file CommonMethods.py.
Referenced by createWeightedPayloads().
def CommonMethods.dirExists | ( | dir | ) |
Definition at line 160 of file CommonMethods.py.
Referenced by rename.main(), and BeamSpotWorkflow.main().
def CommonMethods.dump | ( | beam, | |
file | |||
) |
Definition at line 292 of file CommonMethods.py.
References dumpValues(), and str.
Referenced by createWeightedPayloads(), and createWeightedPayloadsNew().
def CommonMethods.dumpValues | ( | beam, | |
file | |||
) |
Definition at line 301 of file CommonMethods.py.
References dqmMemoryStats.float, and str.
Referenced by dump(), and BeamSpotWorkflow.main().
def CommonMethods.exit | ( | msg = "" | ) |
def CommonMethods.isnan | ( | num | ) |
Definition at line 98 of file CommonMethods.py.
References dqmMemoryStats.float.
Referenced by readBeamSpotFile().
def CommonMethods.lock | ( | ) |
Definition at line 82 of file CommonMethods.py.
Referenced by evf::FastMonitoringService.accumulateFileSize(), cond::service::PoolDBOutputService.appendSinceTime(), dqm::DQMFileSaverOnline.appendSnapshot(), DQMEDAnalyzer.beginStream(), mxnet::cpp::Predictor.bind_executor(), cscdqm::Collection.book(), dqm::implementation::DQMStore.bookTransaction(), cscdqm::EventProcessor.calcEMUFractionHisto(), ecaldqm.checkElectronicsMap(), ecaldqm.checkGeometry(), ecaldqm.checkTopology(), ecaldqm.checkTrigTowerMap(), dqm::implementation::DQMStore.cleanupLumi(), cond::service::PoolDBOutputService.closeIOV(), cond::service::PoolDBOutputService.commitTransaction(), cond::persistency::SessionImpl.commitTransaction(), XrdAdaptor::XrdStatisticsService.condorUpdate(), lumi::service::DBService.connectReadOnly(), cond::service::PoolDBOutputService.createNewIOV(), cond::XMLAuthenticationService::XMLAuthenticationService.credentials(), edm::shared_memory::ControllerChannel.doTransition(), evf::FastMonitoringService.dowork(), dqm::implementation::DQMStore.enterLumi(), cond::service::PoolDBOutputService.eraseSinceTime(), TMVAEvaluator.evaluateTMVA(), CSCMonitorObject.Fill(), dqm::implementation::DQMStore.findME(), dqm::implementation::DQMStore.findOrRecycle(), cond::service::PoolDBOutputService.forceInit(), evf::FastMonitoringService.getAbortFlagForLumi(), dqm::implementation::IGetter.getAllContents(), CSCMonitorObject.GetBinContent(), CSCMonitorObject.GetBinError(), dqm::implementation::IGetter.getContents(), CSCMonitorObject.GetEntries(), FedRawDataInputSource.getEventReport(), evf::FastMonitoringService.getEventsProcessedForLumi(), CSCMonitorObject.GetMaximumBin(), XrdAdaptor::XrdSiteStatisticsInformation.getStatisticsForSite(), RawPCCProducer.globalEndLuminosityBlockProduce(), dqm::implementation::DQMStore.initLumi(), edm::JobReport.inputFileClosed(), dqm::implementation::DQMStore.leaveLumi(), BeamSpotWorkflow.main(), dqm::implementation::DQMStore.meBookerGetter(), DQMNet.onPeerConnect(), DQMNet.onPeerData(), 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(), dqm::implementation::DQMStore.putME(), edm::JobReport.reportAnalysisFile(), edm::JobReport.reportError(), FedRawDataInputSource.reportEventsThisLumiInSource(), edm::JobReport.reportFallbackAttempt(), evf::FastMonitoringService.reportLockWait(), edm::JobReport.reportRandomStateFile(), edm::JobReport.reportSkippedEvent(), edm::JobReport.reportSkippedFile(), cond::persistency::SessionImpl.rollbackTransaction(), CSCMonitorObject.SetAxisRange(), CSCMonitorObject.setAxisTitle(), CSCMonitorObject.SetBinContent(), CSCMonitorObject.SetBinError(), ecaldqm.setElectronicsMap(), CSCMonitorObject.SetEntries(), ecaldqm.setGeometry(), CSCMonitorObject.SetMaximum(), CSCMonitorObject.SetNormFactor(), ecaldqm.setTopology(), ecaldqm.setTrigTowerMap(), edm::shared_memory::ControllerChannel.setupWorker(), cscdqm::EventProcessor.standbyEfficiencyHistos(), edm::ZombieKillerService.startThread(), cond::service::PoolDBOutputService.startTransaction(), cond::persistency::SessionImpl.startTransaction(), evf::FastMonitoringService.stoppedLookingForFile(), edm::shared_memory::ControllerChannel.stopWorker(), cond::service::PoolDBOutputService.tagInfo(), cscdqm::EventProcessor.updateEfficiencyHistos(), cscdqm::EventProcessorMutex.updateFractionAndEfficiencyHistos(), cscdqm::Dispatcher.updateFractionAndEfficiencyHistos(), cscdqm::EventProcessor.updateFractionHistos(), edm::shared_memory::ControllerChannel.wait(), cond::service::PoolDBOutputService.writeOne(), and cscdqm::EventProcessor.writeShifterHistograms().
def CommonMethods.ls | ( | dir, | |
filter = "" |
|||
) |
Definition at line 169 of file CommonMethods.py.
References exit(), spr.find(), edm.print(), and cms::dd.split().
def CommonMethods.nonzero | ( | self | ) |
Definition at line 132 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 230 of file CommonMethods.py.
def CommonMethods.parse | ( | docstring, | |
arglist = None |
|||
) |
Definition at line 108 of file CommonMethods.py.
def CommonMethods.readBeamSpotFile | ( | fileName, | |
listbeam = [] , |
|||
IOVbase = "runbase" , |
|||
firstRun = '1' , |
|||
lastRun = '4999999999' |
|||
) |
Definition at line 332 of file CommonMethods.py.
References mps_setup.append, dqmMemoryStats.float, createfilelist.int, isnan(), edm.print(), and str.
Referenced by BeamSpotWorkflow.main().
def CommonMethods.readSqliteFile | ( | sqliteFileName, | |
tagName, | |||
sqliteTemplateFile, | |||
tmpDir = "/tmp/" |
|||
) |
Definition at line 908 of file CommonMethods.py.
References edm.print().
Referenced by BeamSpotWorkflow.main().
def CommonMethods.rmLock | ( | ) |
Definition at line 87 of file CommonMethods.py.
References checkLock().
Referenced by exit(), and BeamSpotWorkflow.main().
def CommonMethods.sendEmail | ( | mailList, | |
error | |||
) |
General utilities.
Definition at line 151 of file CommonMethods.py.
References edm.print().
Referenced by BeamSpotWorkflow.main(), and BeamSpotWorkflow.selectFilesToProcess().
def CommonMethods.setLockName | ( | name | ) |
Definition at line 69 of file CommonMethods.py.
Referenced by BeamSpotWorkflow.main().
def CommonMethods.sortAndCleanBeamList | ( | listbeam = [] , |
|
IOVbase = "lumibase" |
|||
) |
Sort and clean list of data for consecutive duplicates and bad fits.
Definition at line 593 of file CommonMethods.py.
References edm.print(), FastTimerService_cff.range, and str.
Referenced by BeamSpotWorkflow.main().
def CommonMethods.timeoutManager | ( | type, | |
timeout = -1 , |
|||
fileName = ".timeout" |
|||
) |
Definition at line 11 of file CommonMethods.py.
References edm.print(), cms::dd.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 238 of file CommonMethods.py.
References mathSSE.return().
Referenced by unpackLumiid().
def CommonMethods.unpackLumiid | ( | i | ) |
unpack 64bit lumiid to dictionary {'run','lumisection'}
Definition at line 246 of file CommonMethods.py.
References unpack().
def CommonMethods.uploadSqliteFile | ( | sqliteFileDirName, | |
sqliteFileName, | |||
dropbox = "/DropBox" |
|||
) |
Definition at line 939 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 884 of file CommonMethods.py.
References edm.print().
Referenced by BeamSpotWorkflow.main().
|
private |
Definition at line 139 of file CommonMethods.py.
CommonMethods.lockFile |
Definition at line 8 of file CommonMethods.py.
CommonMethods.USAGE |
OPTIONS.
Definition at line 105 of file CommonMethods.py.