Classes | |
class | ParsingError |
Functions | |
def | appendSqliteFile |
def | checkLock |
def | cmp_list_lumi |
def | cmp_list_run |
end lumi tools More... | |
def | cp |
def | createWeightedPayloads |
CREATE FILE FOR PAYLOADS. More... | |
def | createWeightedPayloadsNew |
def | delta |
def | deltaSig |
def | dirExists |
def | dump |
def | dumpValues |
def | exit |
def | isnan |
def | lock |
def | ls |
def | nonzero |
def | pack |
lumi tools CondCore/Utilities/python/timeUnitHelper.py More... | |
def | parse |
def | readBeamSpotFile |
def | readSqliteFile |
def | rmLock |
def | sendEmail |
General utilities. More... | |
def | setLockName |
def | sortAndCleanBeamList |
Sort and clean list of data for consecutive duplicates and bad fits. More... | |
def | timeoutManager |
def | unpack |
def | unpackLumiid |
def | uploadSqliteFile |
def | weight |
def | writeSqliteFile |
Variables | |
string | lockFile = ".lock" |
tuple | USAGE = re.compile(r'(?s)\s*usage: (.*?)(\n[ \t]*\n|$)') |
OPTIONS. More... | |
def CommonMethods.appendSqliteFile | ( | combinedSqliteFileName, | |
sqliteFileName, | |||
tagName, | |||
IOVSince, | |||
IOVTill, | |||
tmpDir = "/tmp/" |
|||
) |
Definition at line 928 of file CommonMethods.py.
Referenced by uploader.main(), and BeamSpotWorkflow.main().
def CommonMethods.checkLock | ( | ) |
Definition at line 71 of file CommonMethods.py.
Referenced by BeamSpotWorkflow.main(), and rmLock().
def CommonMethods.cmp_list_lumi | ( | a, | |
b | |||
) |
Definition at line 259 of file CommonMethods.py.
def CommonMethods.cmp_list_run | ( | a, | |
b | |||
) |
def CommonMethods.cp | ( | fromDir, | |
toDir, | |||
listOfFiles, | |||
overwrite = False , |
|||
smallList = False |
|||
) |
Definition at line 189 of file CommonMethods.py.
Referenced by CustomPhysicsList.addCustomPhysics(), EBSummaryClient.analyze(), PixelTrackBuilder.build(), HtrXmlPattern.do_hand_fill(), edm::RootFile.dropOnInput(), DTUserKeyedConfigHandler.DTUserKeyedConfigHandler(), pftools::Exercises3.evaluateCalibrator(), HtrXmlPatternTool.Fill(), edm::RootOutputFile.fillBranches(), L1GtVhdlWriterCore.getCaloSetupContentFromTriggerMenu(), L1GtVhdlWriterCore.getMuonSetupContentFromTriggerMenu(), edm::RootDelayedReader.getProduct_(), copyAndRename.main(), copyFromCastor.main(), rename.main(), copyFiles.main(), splitter.main(), BeamSpotWorkflow.main(), PreshowerClusterAlgo.makeOneCluster(), InclusiveVertexFinder.nearTracks(), DDStreamer.pos_read(), Strip1DMeasurementTransformator.projectionMatrix(), ForwardDetLayer.setSurface(), BarrelDetLayer.setSurface(), CustomPhysicsList.setupRHadronPhycis(), and L1GtVmeWriterCore.writeVME().
def CommonMethods.createWeightedPayloads | ( | fileName, | |
listbeam = [] , |
|||
weighted = True |
|||
) |
CREATE FILE FOR PAYLOADS.
Definition at line 622 of file CommonMethods.py.
References delta(), deltaSig(), dump(), and weight().
Referenced by BeamSpotWorkflow.main().
def CommonMethods.createWeightedPayloadsNew | ( | fileName, | |
listbeam = [] , |
|||
weighted = True |
|||
) |
Definition at line 795 of file CommonMethods.py.
References delta(), dump(), and weight().
def CommonMethods.delta | ( | x, | |
xerr, | |||
nextx, | |||
nextxerr | |||
) |
Definition at line 321 of file CommonMethods.py.
Referenced by createWeightedPayloads(), and createWeightedPayloadsNew().
def CommonMethods.deltaSig | ( | x | ) |
Definition at line 325 of file CommonMethods.py.
Referenced by createWeightedPayloads().
def CommonMethods.dirExists | ( | dir | ) |
Definition at line 157 of file CommonMethods.py.
Referenced by rename.main(), BeamSpotWorkflow.main(), and SiStripCommissioningSource.remove().
def CommonMethods.dump | ( | beam, | |
file | |||
) |
Definition at line 289 of file CommonMethods.py.
References dumpValues().
Referenced by createWeightedPayloads(), and createWeightedPayloadsNew().
def CommonMethods.dumpValues | ( | beam, | |
file | |||
) |
def CommonMethods.exit | ( | msg = "" | ) |
def CommonMethods.isnan | ( | num | ) |
Definition at line 95 of file CommonMethods.py.
Referenced by readBeamSpotFile().
def CommonMethods.lock | ( | ) |
Definition at line 79 of file CommonMethods.py.
Referenced by stor::ConcurrentQueue< T, EnqPolicy >.addExternallyDroppedEvents(), evf::FUResourceTable.allocateResource(), stor::QueueCollection< T >.allQueuesStale(), cscdqm::Collection.book(), evf::FUResourceTable.buildResource(), cscdqm::EventProcessor.calcEMUFractionHisto(), stor::ConcurrentQueue< T, EnqPolicy >.clear(), stor::QueueCollection< T >.clearQueue(), stor::QueueCollection< T >.clearQueues(), stor::QueueCollection< T >.clearStaleQueues(), StorageAccount.counter(), cond::XMLAuthenticationService::XMLAuthenticationService.credentials(), evf::FUResourceBroker.customWebPage(), stor::ConcurrentQueue< T, EnqPolicy >.deqNowait(), stor::ConcurrentQueue< T, EnqPolicy >.deqTimedWait(), stor::ConcurrentQueue< T, EnqPolicy >.deqWait(), evf::FUResourceTable.discard(), evf::FUResourceTable.discardDataEvent(), stor::QueueCollection< T >.empty(), stor::ConcurrentQueue< T, EnqPolicy >.enqNowait(), stor::ConcurrentQueue< T, EnqPolicy >.enqTimedWait(), stor::ConcurrentQueue< T, EnqPolicy >.enqWait(), CSCMonitorObject.Fill(), stor::QueueCollection< T >.full(), stor::ConcurrentQueue< T, EnqPolicy >.full(), CSCMonitorObject.GetBinContent(), CSCMonitorObject.GetBinError(), CSCMonitorObject.GetEntries(), stor::QueueCollection< T >.getExpirationInterval(), edm::detail::ThreadSafeIndexedRegistry< T, E >.getMapped(), edm::detail::ThreadSafeRegistry< KEY, T, E >.getMapped(), CSCMonitorObject.GetMaximumBin(), stor::QueueCollection< T >.getQueue(), edm::detail::ThreadSafeIndexedRegistry< T, E >.insertMapped(), edm::detail::ThreadSafeRegistry< KEY, T, E >.insertMapped(), edm::detail::ThreadSafeIndexedRegistry< T, E >.instance(), edm::detail::ThreadSafeRegistry< KEY, T, E >.instance(), BeamSpotWorkflow.main(), DQMNet.onPeerConnect(), DQMNet.onPeerData(), stor::QueueCollection< T >.popEvent(), cscdqm::Dispatcher.processStandby(), evf::FUResourceTable.sendData(), CSCMonitorObject.SetAxisRange(), CSCMonitorObject.setAxisTitle(), CSCMonitorObject.SetBinContent(), CSCMonitorObject.SetBinError(), stor::ConcurrentQueue< T, EnqPolicy >.setCapacity(), CSCMonitorObject.SetEntries(), stor::QueueCollection< T >.setExpirationInterval(), CSCMonitorObject.SetMaximum(), stor::ConcurrentQueue< T, EnqPolicy >.setMemory(), CSCMonitorObject.SetNormFactor(), stor::QueueCollection< T >.size(), stor::QueueCollection< T >.stale(), StorageAccount::Stamp.Stamp(), cscdqm::EventProcessor.standbyEfficiencyHistos(), StorageAccount::Stamp.tick(), cscdqm::EventProcessor.updateEfficiencyHistos(), cscdqm::EventProcessorMutex.updateFractionAndEfficiencyHistos(), cscdqm::Dispatcher.updateFractionAndEfficiencyHistos(), cscdqm::EventProcessor.updateFractionHistos(), cscdqm::EventProcessor.writeShifterHistograms(), and stor::ConcurrentQueue< T, EnqPolicy >.~ConcurrentQueue().
def CommonMethods.ls | ( | dir, | |
filter = "" |
|||
) |
Definition at line 166 of file CommonMethods.py.
References exit(), spr.find(), and split.
def CommonMethods.nonzero | ( | self | ) |
Definition at line 129 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 227 of file CommonMethods.py.
def CommonMethods.parse | ( | docstring, | |
arglist = None |
|||
) |
def CommonMethods.readBeamSpotFile | ( | fileName, | |
listbeam = [] , |
|||
IOVbase = "runbase" , |
|||
firstRun = '1' , |
|||
lastRun = '4999999999' |
|||
) |
Definition at line 329 of file CommonMethods.py.
References python.multivaluedict.append(), and isnan().
Referenced by BeamSpotWorkflow.main().
def CommonMethods.readSqliteFile | ( | sqliteFileName, | |
tagName, | |||
sqliteTemplateFile, | |||
tmpDir = "/tmp/" |
|||
) |
def CommonMethods.rmLock | ( | ) |
Definition at line 84 of file CommonMethods.py.
References checkLock().
Referenced by exit(), and BeamSpotWorkflow.main().
def CommonMethods.sendEmail | ( | mailList, | |
error | |||
) |
General utilities.
Definition at line 148 of file CommonMethods.py.
Referenced by BeamSpotWorkflow.main(), and BeamSpotWorkflow.selectFilesToProcess().
def CommonMethods.setLockName | ( | name | ) |
Definition at line 66 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 590 of file CommonMethods.py.
Referenced by BeamSpotWorkflow.main().
def CommonMethods.timeoutManager | ( | type, | |
timeout = -1 , |
|||
fileName = ".timeout" |
|||
) |
Definition at line 8 of file CommonMethods.py.
References split.
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 235 of file CommonMethods.py.
References mathSSE.return().
Referenced by unpackLumiid().
def CommonMethods.unpackLumiid | ( | i | ) |
unpack 64bit lumiid to dictionary {'run','lumisection'}
Definition at line 243 of file CommonMethods.py.
References unpack().
def CommonMethods.uploadSqliteFile | ( | sqliteFileDirName, | |
sqliteFileName, | |||
dropbox = "/DropBox" |
|||
) |
Definition at line 936 of file CommonMethods.py.
Referenced by uploadPayloads.main(), and BeamSpotWorkflow.main().
def CommonMethods.weight | ( | x1, | |
x1err, | |||
x2, | |||
x2err | |||
) |
Definition at line 268 of file CommonMethods.py.
Referenced by PhysicsTools::LeastSquares.add(), reco::TrackKinematics.add(), KalmanVertexUpdator< N >.add(), lhef::LHERunInfo::Counter.add(), MuonTruth.addChannel(), RPCRawDataCounts.addDccRecord(), Accumulator.addEntry(), CaloValidationStatistics.addEntry(), MultiTrajectoryStateAssembler.addInvalidState(), TtFullLepKinSolver.addKinSolInfo(), addMeas(), MuonCSCChamberResidual.addResidual(), MuonDT13ChamberResidual.addResidual(), MuonDT2ChamberResidual.addResidual(), CSCPairResidualsConstraint.addTrack(), FedCablingAlgorithm.analyse(), EWKSystUnc.analyze(), ZLONLOHistogrammer.analyze(), ZMCHistogrammer.analyze(), zPdfUnc.analyze(), JetAnaPythia< Jet >.analyze(), HistoAnalyzer< C >.analyze(), TtSemiLepSignalSelMVATrainer.analyze(), EBBeamHodoTask.analyze(), EEBeamHodoTask.analyze(), MuonTruth.analyze(), Rivet::CMS_2010_S8656010.analyze(), Rivet::CMS_2010_S8547297.analyze(), EgHLTOfflineSource.analyze(), IsolatedTracksNxN.analyze(), JetTagMVATreeTrainer.analyze(), GsfVertexUpdator.assembleVertexComponents(), CaloTowersCreationAlgo.assignHit(), JetAnaPythia< Jet >.beginJob(), BremsstrahlungSimulator.brem(), GsfVertexWeightCalculator.calculate(), ClusterShapeAlgo.Calculate_EnergyDepTopology(), PositionCalc.Calculate_Location(), TBPositionCalc.CalculateCMSPos(), XHistogram.check_weight(), MultiGaussianStateCombiner1D.combine(), MultiTrajectoryStateCombiner.combine(), CandIsolatorFromDeposits::SingleDeposit.compute(), PairProductionSimulator.compute(), MuScleFitUtils.computeWeight(), EcalTPGParamBuilder.computeWeights(), MassWindow.count(), BackgroundHandler.countEventsInAllWindows(), MultiVertexFitter.createSeed(), createWeightedPayloads(), createWeightedPayloadsNew(), DreamSD.curve_LY(), ECalSD.curve_LY(), HcalTB02SD.curve_LY(), SignedImpactParameter3D.distanceWithJetAxis(), CSCOfflineMonitor.doEfficiencies(), CSCValidation.doEfficiencies(), PhysicsTools::TrainProcessor.doTrainData(), MuScleFit.duringFastLoop(), CalorimetryManager.EMShowerSimulation(), CaloTowersCreationAlgo.emShwrLogWeightPos(), DTCertificationSummary.endRun(), DTResolutionAnalysisTest.endRun(), AdaptiveVertexReconstructor.erase(), reco::Jet.etaetaMoment(), reco::Jet.etaphiMoment(), reco::Jet.etaPhiStatistics(), evaluateTtFullHadSignalSel(), evaluateTtSemiLepSignalSel(), ConfigurableHisto.fill(), HParticle.Fill(), HPartVSEta.Fill(), HPartVSPhi.Fill(), HPartVSPt.Fill(), HMassVSPart.Fill(), HMassVSPartProfile.Fill(), MuonSystemMapPlot1D.fill_dxdz(), MuonSystemMapPlot1D.fill_dydz(), MuonSystemMapPlot1D.fill_x(), MuonSystemMapPlot1D.fill_y(), SiPixelDataQuality.fillGlobalQualityPlot(), HLXMonitor.FillHistograms(), SVTagInfoValidationAnalyzer.fillRecoToSim(), recoBSVTagInfoValidationAnalyzer.fillRecoToSim(), recoBSVTagInfoValidationAnalyzer.fillSimToReco(), SVTagInfoValidationAnalyzer.fillSimToReco(), reco::PositiveSideGhostTrackFitter.fit(), MuonResiduals1DOFFitter.fit(), PFDisplacedVertexFinder.fitVertexFromSeed(), CaloSD.getAttenuation(), ECalSD.getBirkL3(), HcalTB06BeamSD.getEnergyDeposit(), EcalTBH4BeamSD.getEnergyDeposit(), ECalSD.getEnergyDeposit(), HcalTB02SD.getEnergyDeposit(), HCalSD.getEnergyDeposit(), EcalClusterTools.getEnergyDepTopology(), GsfBetheHeitlerUpdator.getMixtureParameters(), TtFullLepKinSolver.getNuSolution(), DreamSD.getStepInfo(), CaloMeanResponse.getWeight(), AdaptiveVertexFitter.getWeight(), tnp::BaseTreeFiller.init(), reco::GhostTrack.initStates(), CSCPairResidualsConstraint.isFiducial(), IPTools.jetTrackDistance(), likelihood(), EnergyLossPlain.logTruncate(), reco::PFDisplacedVertexSeed.mergeWith(), MuonResiduals1DOFFitter_FCN(), MuonResiduals5DOFFitter_FCN(), MuonResiduals6DOFFitter_FCN(), MuonResiduals6DOFrphiFitter_FCN(), SmsModeFinder3d.operator()(), MtvClusterizer1D< T >.operator()(), FsmwClusterizer1D< T >.operator()(), FsmwModeFinder3d.operator()(), EnergyLossPlain.optimal(), DTSegmentAnalysisTest.performClientDiagnostic(), reco::Jet.phiphiMoment(), MuonResiduals1DOFFitter.plot(), MuonResiduals5DOFFitter.plot(), MuonResiduals6DOFrphiFitter.plot(), MuonResiduals6DOFFitter.plot(), MuonResidualsFitter.plotweighted(), PrescaleWeightProvider.prescaleWeight(), PrintMaterialBudgetInfo.printInfo(), WeakEffectsWeightProducer.produce(), ISRGammaWeightProducer.produce(), FSRWeightProducer.produce(), ISRWeightProducer.produce(), edm::BeamHaloProducer.produce(), edm::BeamHaloSource.produce(), AlCaElectronsProducer.produce(), EcalTBWeightsXMLTranslator.readWeightSet(), EcalWeightSetXMLTranslator.readXML(), KalmanVertexUpdator< N >.remove(), CaloTowersCreationAlgo.rescale(), CaloTowersCreationAlgo.rescaleTowers(), AdaptiveVertexFitter.reWeightTracks(), EcalClusterTools.roundnessSelectedBarrelRecHits(), PhysicsTools::MLP.set(), UpdateTProfile.setBinContent(), FWGUIManager.setFrom(), Histograms.SetWeight(), CandIsolatorFromDeposits::SingleDeposit.SingleDeposit(), sistrip::MeasureLA.summarize_module_muH_byLayer(), TBposition(), hcalCalib.Terminate(), EnergyLossPlain.truncate(), EcalTPGParamBuilder.uncodeWeight(), KalmanVertexUpdator< N >.update(), CommissioningTask.updateHistoSet(), reco::PFDisplacedVertexSeed.updateSeedPoint(), GsfMaterialEffectsUpdator.updateState(), MultiVertexFitter.updateWeights(), PrimaryVertexMonitor.vertexPlots(), VertexTrackFactory< 6 >.vertexTrack(), vtxMean(), TtFullLepKinSolver.WeightSolfromMC(), AdaptiveVertexFitter.weightTracks(), and MuonResidualsTwoBin.wmean().
def CommonMethods.writeSqliteFile | ( | sqliteFileName, | |
tagName, | |||
timeType, | |||
beamSpotFile, | |||
sqliteTemplateFile, | |||
tmpDir = "/tmp/" |
|||
) |
Definition at line 881 of file CommonMethods.py.
Referenced by BeamSpotWorkflow.main().
string CommonMethods.lockFile = ".lock" |
Definition at line 5 of file CommonMethods.py.
OPTIONS.
Definition at line 102 of file CommonMethods.py.