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 930 of file CommonMethods.py.
References 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 | |||
) |
Definition at line 261 of file CommonMethods.py.
def CommonMethods.cmp_list_run | ( | a, | |
b | |||
) |
Definition at line 191 of file CommonMethods.py.
References print().
Referenced by heppy::IsolationComputer.addVetos(), CaloParticleDebugger.analyze(), PFAnalysis.analyze(), cmsutils::bqueue< TrajectoryMeasurement >.bqueue(), PixelTrackBuilder.build(), btagbtvdeep::TrackPairInfoBuilder.buildTrackPairInfo(), CustomPhysicsListSS.ConstructProcess(), CustomPhysicsList.ConstructProcess(), HtrXmlPattern.do_hand_fill(), edm::RootFile.dropOnInputAndReorder(), DTUserKeyedConfigHandler.DTUserKeyedConfigHandler(), HtrXmlPatternTool.Fill(), edm::RootOutputFile.fillBranches(), PixelCPEFast.fillParamsForGpu(), CaloTruthAccumulator.finalizeEvent(), L1GtVhdlWriterCore.getCaloSetupContentFromTriggerMenu(), L1GtVhdlWriterCore.getMuonSetupContentFromTriggerMenu(), MTDCPEBase.getParameters(), edm::RootDelayedReader.getProduct_(), L2TauNNProducer.impactParameter(), heppy::IsolationComputer.isoSumNeutralsWeighted(), heppy::IsolationComputer.isoSumRaw(), HGCalGeomParameters.loadGeometryHexagon(), PixelCPEFast.localPosition(), MultiClusterAssociatorByEnergyScoreImpl.makeConnections(), LCToCPAssociatorByEnergyScoreImpl.makeConnections(), PreshowerClusterAlgo.makeOneCluster(), TracksClusteringFromDisplacedSeed.nearTracks(), cmsutils::bqueue< TrajectoryMeasurement >.operator=(), edm::soa::Table< edm::soa::col::Pt, edm::soa::col::Eta, edm::soa::col::Phi, edm::soa::col::Vz >.operator=(), Phase2TrackerClusterizer.produce(), SimTrackstersProducer.produce(), SeedProducerFromSoA.produce(), PixelTrackProducerFromSoA.produce(), PixelClusterTagInfoProducer.produce(), Strip1DMeasurementTransformator.projectionMatrix(), TotemVFATStatus.setChipPosition(), edm::MergeableRunProductProcesses.setProcessesWithMergeableRunProducts(), BarrelDetLayer.setSurface(), ForwardDetLayer.setSurface(), evf::FastMonitoringThread.start(), and L1GtVmeWriterCore.writeVME().
def CommonMethods.createWeightedPayloads | ( | fileName, | |
listbeam = [] , |
|||
weighted = True |
|||
) |
CREATE FILE FOR PAYLOADS.
Definition at line 624 of file CommonMethods.py.
References delta(), deltaSig(), dump(), print(), sistrip::SpyUtilities.range(), and str.
Referenced by BeamSpotWorkflow.main().
def CommonMethods.createWeightedPayloadsNew | ( | fileName, | |
listbeam = [] , |
|||
weighted = True |
|||
) |
Definition at line 797 of file CommonMethods.py.
References delta(), dump(), print(), sistrip::SpyUtilities.range(), and str.
def CommonMethods.delta | ( | x, | |
xerr, | |||
nextx, | |||
nextxerr | |||
) |
Definition at line 323 of file CommonMethods.py.
Referenced by npstat.absDifference(), ReferenceTrajectory.addMaterialEffectsBrl(), FWMuonDetailView.addSceneInfo(), FWElectronDetailView.addSceneInfo(), tmtt::KFbase.adjustState(), algorithm(), SimpleConvertedPhotonAnalyzer.analyze(), DQMEventInfo.analyze(), PhotonsWithConversionsAnalyzer.analyze(), SimplePhotonAnalyzer.analyze(), TestHits.analyze(), TestSmoothHits.analyze(), TestOutliers.analyze(), TestTrackHits.analyze(), PhotonValidator.analyze(), V0Monitor.analyze(), TauTagValidation.analyze(), trklet.bendstrip(), npstat::NUHistoAxis.binNumber(), FWPhotonLegoProxyBuilder.build(), FWElectronLegoProxyBuilder.build(), magneticfield::MagGeoBuilder.buildInterpolator(), EcalShapeBase.buildMe(), PFRecoTauTagInfoAlgorithm.buildPFTauTagInfo(), DTRPCBxCorrection.BxCorrection(), HGCalCLUEAlgoT< TILE >.calculateDistanceToHigher(), ticl::PatternRecognitionbyCLUE3D< TILES >.calculateLocalDensity(), HGCalCLUEAlgoT< TILE >.calculateLocalDensity(), ThirdHitPrediction.calculateRangesBarrel(), QGTagger.calcVariables(), FWGeometryTableManager.checkRegionOfInterest(), riemannFit.circleFit(), npstat::NUHistoAxis.closestValidBin(), HcalQie.codeToQ(), MultipleScatteringSimulator.compute(), MVAJetPuId.computeIdVariables(), DTDigitizer.computeTime(), L1TkEmParticleProducer.CorrectedEta(), TGeoMgrFromDdd.createShape(), createWeightedPayloads(), createWeightedPayloadsNew(), ThirdHitPredictionFromInvLine.crossing(), InterpolatedPulse< 1500U >.derivative(), DTTMax.DTTMax(), CSCPairResidualsConstraint.error(), L1TMuonBarrelKalmanAlgo.estimateChiSquare(), L1TMuonBarrelKalmanAlgo.estimateCompatibility(), SiPixelSCurveCalibrationAnalysis.estimateSCurveParameters(), DDTrackerAngular.execute(), DDEcalBarrelAlgo.execute(), DDEcalBarrelNewAlgo.execute(), DDTrackerRingAlgo.execute(), TFParams.f3deg(), fastProp(), FWECALCaloDataDetailViewBuilder.fillData(), trklet::TrackDerTable.fillTable(), RPCStripsRing.fillWithVirtualStrips(), PFFilter.filter(), PFMETFilter.filter(), SinglePhotonJetPlusHOFilter.filter(), JetHTJetPlusHOFilter.filter(), DAClusterizerInZT_vect.find_nearest(), HGCalCLUEAlgoT< TILE >.findAndAssignClusters(), ThirdHitPredictionFromInvParabola.findPointAtCurve(), DTLinearFit.fit(), KinematicConstrainedVertexFitter.fit(), KinematicConstrainedVertexFitterT< nTrk, nConstraint >.fit(), hitfit::Chisq_Constrainer.fit(), PulseFitWithFunction.Fit_electronic(), CSCSegAlgoRU.fit_r_phi(), TFParams.fitpj(), DTTimingExtractor.fitT0(), CSCOfflineMonitor.fitX(), CSCSegAlgoRU.fitX(), CSCValidation.fitX(), npstat::NUHistoAxis.fltBinNumber(), TSFit.fpol3dg(), TrackerMap.getcolor(), TAPDPulse.getDelta(), DTTimeBoxFitter.getFitSeeds(), GlobalTrackerMuonAlignment.gradientGlobal(), GlobalTrackerMuonAlignment.gradientLocal(), CkfDebugger.hasDelta(), fastTrackingUtilities.hitLocalError(), BaseParticlePropagator.increaseRCyl(), SiTrivialInduceChargeOnStrips.induceVector(), DDTrackerAngular.initialize(), DDTrackerRingAlgo.initialize(), edm::StreamSchedule.initializeEarlyDelete(), fastsim::MultipleScattering.interact(), CSCPairResidualsConstraint.isFiducial(), fftjetcms::LinInterpolatedTable1D.isMonotonous(), tmtt::KFbase.kalmanUpdate(), fireworks.localSiStrip(), main(), HLTTauRefCombiner.match(), HLTTauDQMPlotter.match(), DAClusterizerInZT_vect.merge(), heppy::RochCor.momcor_mc(), MuonMETAlgo.MuonMETAlgo_run(), fastsim::HelixTrajectory.nextCrossingTimeC(), fastsim::StraightTrajectory.nextCrossingTimeC(), heppy::Davismt2.nsols(), heppy::Davismt2.nsols_massless(), LowPassFilterTiming.operator()(), CSCDetIdSameDetLayerComparator.operator()(), fftjetcms::LinInterpolatedTable1D.operator()(), InterpolatedPulse< 1500U >.operator()(), operator<<(), logintpack.pack16log(), VertexKinematicConstraint.parametersDerivative(), TTStubAlgorithm_official< T >.PatternHitCorrelation(), EcalUncalibRecHitFixedAlphaBetaAlgo< C >.PerformAnalyticFit(), PetrukhinFunc(), fastsim::MuonBremsstrahlung.PetrukhinFunc(), SiPixelTemplateReco.PixelTempReco1D(), SiPixelTemplateSplit.PixelTempSplit(), ThroughputService.postEndJob(), MuonBadTrackFilter.printMuonProperties(), PFMuonAlgo.printMuonProperties(), EgammaHLTCaloTowerProducer.produce(), TrackListMerger.produce(), CaloTowerFromL1TCreatorForTauHLT.produce(), CaloTowerCreatorForTauHLT.produce(), L2MuonSeedGeneratorFromL1TkMu.produce(), FastTrackerRecHitMatcher.projectOnly(), BaseParticlePropagator.propagate(), tauImpactParameter::ErrorMatrixPropagator.propagateError(), L1TkMuonProducer.propagateToGMT(), DDG4SolidConverter.pseudotrap(), DTSegmentUpdator.rejectBadHits(), tmtt::KFbase.residual(), tmtt::ChiSquaredFit4.residuals(), Type1PFMET.run(), InterpolatedPulse< 1500U >.secondDerivative(), MuonHitsChamberResidual.segment_fit(), FFTJetProducer.selectTreeNodes(), MuonPathAnalyzerInChamber.setWirePosAndTimeInMP(), Cone.side(), muon.sigmaSwitch(), sigmaSwitch(), HGCalShowerShape.sigmaXX(), heppy::mt2w_bisect::mt2w.teco(), TPedValues.terminate(), DAClusterizerInZ_vect.thermalize(), DAClusterizerInZT_vect.thermalize(), reco::IsolatedPixelTrackCandidate.towerIndex(), trklet::FitTrack.trackFitChisq(), funct.trapezoid_integral(), TrapezoidalCartesianMFGrid.TrapezoidalCartesianMFGrid(), TrapezoidalCylindricalMFGrid.TrapezoidalCylindricalMFGrid(), DAClusterizerInZ.update(), DAClusterizerInZ_vect.update(), DAClusterizerInZT_vect.update(), DMRChecker.updateOnlineMomenta(), MahiFit.updatePulseShape(), VertexKinematicConstraint.value(), CSCPairResidualsConstraint.value(), and heppy::FSRWeightAlgo.weight().
def CommonMethods.deltaSig | ( | x | ) |
Definition at line 327 of file CommonMethods.py.
Referenced by createWeightedPayloads().
def CommonMethods.dirExists | ( | dir | ) |
Definition at line 159 of file CommonMethods.py.
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 str.
Referenced by dump(), and BeamSpotWorkflow.main().
def CommonMethods.exit | ( | msg = "" | ) |
def CommonMethods.isnan | ( | num | ) |
Definition at line 97 of file CommonMethods.py.
Referenced by MuonPathAnalyzerInChamber.analyze(), EGammaMvaEleEstimatorCSA14.bindVariables(), EGammaMvaEleEstimator.bindVariables(), plotscripts.corrections2D(), SiPixelGainCalibrationAnalysis.doFits(), cond::serialization::access< T, typename std::enable_if< std::is_floating_point< T >::value >::type >.equal_(), reco::tau.fillIsoMVARun2Inputs(), calo::multifit.fnnls(), LHCInfoPopConSourceHandler.getEcalData(), PseudoTopProducer.produce(), and readBeamSpotFile().
def CommonMethods.lock | ( | ) |
Definition at line 81 of file CommonMethods.py.
Referenced by evf::FastMonitoringService.accumulateFileSize(), cond::service::PoolDBOutputService.appendOneIOV(), cond::service::PoolDBOutputService.appendSinceTime(), dqm::DQMFileSaverOnline.appendSnapshot(), DQMEDAnalyzer.beginStream(), mxnet::cpp::Predictor.bind_executor(), cscdqm::Collection.book(), dqm::implementation::DQMStore.bookTransaction(), cscdqm::EventProcessor.calcEMUFractionHisto(), dqm::implementation::DQMStore.cleanupLumi(), cond::service::PoolDBOutputService.closeIOV(), cond::persistency::SessionImpl.commitTransaction(), cond::service::PoolDBOutputService.commitTransaction(), XrdAdaptor::XrdStatisticsService.condorUpdate(), lumi::service::DBService.connectReadOnly(), cond::service::PoolDBOutputService.createNewIOV(), cond::service::PoolDBOutputService.createOneIOV(), cond::XMLAuthenticationService::XMLAuthenticationService.credentials(), edm::shared_memory::ControllerChannel.doTransition(), edm::shared_memory::ControllerChannel.doTransitionWithRetry(), 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(), cond::service::PoolDBOutputService.lockRecords(), 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.preSourceEarlyTermination(), evf::FastMonitoringService.preStreamBeginLumi(), evf::FastMonitoringService.preStreamEarlyTermination(), evf::FastMonitoringService.preStreamEndLumi(), PixelClusterShapeExtractor.processRec(), cscdqm::Dispatcher.processStandby(), cms::CkfTrackCandidateMakerBase.produceBase(), dqm::implementation::DQMStore.putME(), cond::service::PoolDBOutputService.releaseLocks(), cond::persistency::CoralMsgReporter.report(), 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(), CSCMonitorObject.SetEntries(), CSCMonitorObject.SetMaximum(), CSCMonitorObject.SetNormFactor(), edm::shared_memory::ControllerChannel.setupWorker(), edm::shared_memory::ControllerChannel.setupWorkerWithRetry(), evf::FastMonitoringService.snapshotRunner(), 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(), cond::service::PoolDBOutputService.writeMany(), cond::service::PoolDBOutputService.writeOneIOV(), and cscdqm::EventProcessor.writeShifterHistograms().
def CommonMethods.ls | ( | dir, | |
filter = "" |
|||
) |
Definition at line 168 of file CommonMethods.py.
References exit(), spr.find(), print(), and submitPVValidationJobs.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.
def CommonMethods.parse | ( | docstring, | |
arglist = None |
|||
) |
def CommonMethods.readBeamSpotFile | ( | fileName, | |
listbeam = [] , |
|||
IOVbase = "runbase" , |
|||
firstRun = '1' , |
|||
lastRun = '4999999999' |
|||
) |
Definition at line 331 of file CommonMethods.py.
References bitset_utilities.append(), isnan(), print(), and str.
Referenced by BeamSpotWorkflow.main().
def CommonMethods.readSqliteFile | ( | sqliteFileName, | |
tagName, | |||
sqliteTemplateFile, | |||
tmpDir = "/tmp/" |
|||
) |
Definition at line 907 of file CommonMethods.py.
References 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 print().
Referenced by BeamSpotWorkflow.main(), and BeamSpotWorkflow.selectFilesToProcess().
def CommonMethods.setLockName | ( | name | ) |
Definition at line 68 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 592 of file CommonMethods.py.
References print(), sistrip::SpyUtilities.range(), and str.
Referenced by BeamSpotWorkflow.main().
def CommonMethods.timeoutManager | ( | type, | |
timeout = -1 , |
|||
fileName = ".timeout" |
|||
) |
Definition at line 10 of file CommonMethods.py.
References print(), submitPVValidationJobs.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 gpuVertexFinder.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 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 print().
Referenced by BeamSpotWorkflow.main().
string CommonMethods.lockFile = ".lock" |
Definition at line 7 of file CommonMethods.py.
tuple CommonMethods.USAGE = re.compile(r'(?s)\s*usage: (.*?)(\n[ \t]*\n|$)') |
OPTIONS.
Definition at line 104 of file CommonMethods.py.