CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Functions | Variables
scaleCards Namespace Reference

Functions

def file2map
 

Variables

tuple br = file2map(path+"YR-BR1.txt")
 
string cfmt = "%-"
 
int cmax = 5
 
tuple DCR = parseCard(open(fileR,"r"), options)
 
string fileR = options.ddir+"/%g/vhbb_DC_ALL_%s.%.1f.txt"
 
tuple hmax = max([10] + [len("%-12s %s %s" % (l,p,a)) for l,(p,a,e,nf) in systlines.items()])
 
list keyline = []
 
tuple mass = float(args[0])
 
 obskeyline = DCR.bins;
 
list obsline = [str(DCR.obs[b]) for b in DCR.bins]
 
dictionary paramSysts = {}
 
tuple parser = OptionParser(usage="usage: %prog [options] mass \nrun with --help to get list of options")
 
list path = os.environ['CMSSW_BASE']
 
list pidline = []
 
string pTrue = "WH"
 
list rate = DCR.exp[b]
 
tuple refmasses = range(110,135+1,5)
 
list signals = []
 
tuple sysnamesSorted = systlines.keys()
 
list systline = []
 
tuple whXS = file2map(path+"YR-XS-WH.txt")
 
tuple xfile = open(options.ddir+"/%g/vhbb_DC_ALL_%s%s.%.1f.txt" % (mass, options.flavour, options.postfix, mass), "w")
 
dictionary xsbr = { 'WH':1.0, 'ZH':1.0 }
 
dictionary xsbrR = { 'WH':1.0, 'ZH':1.0 }
 
tuple zhXS = file2map(path+"YR-XS-ZH.txt")
 

Function Documentation

def scaleCards.file2map (   x)

Definition at line 40 of file scaleCards.py.

References python.multivaluedict.dict.

40 
41  def file2map(x):
42  ret = {}; headers = []
43  for x in open(x,"r"):
44  cols = x.split()
45  if len(cols) < 2: continue
46  if "mH" in x:
47  headers = [i.strip() for i in cols[1:]]
48  else:
49  fields = [ float(i) for i in cols ]
50  ret[fields[0]] = dict(zip(headers,fields[1:]))
return ret
def file2map
Definition: scaleCards.py:40

Variable Documentation

tuple scaleCards.br = file2map(path+"YR-BR1.txt")

Definition at line 54 of file scaleCards.py.

Referenced by edm::RootTree.dropBranch(), dqm::StateMachine.failurePage(), LHEProducer.filter(), CustomParticleFactory.getDecayTable(), edm::RootDelayedReader.getProduct_(), edm::FileInPath.initialize_(), OAE85lParametrizedMagneticField.inTeslaUnchecked(), GifDisplay.printHTML(), RBorderFinder.RBorderFinder(), edm::PoolOutputModule::OutputItem::Sorter.Sorter(), fwlite::internal::BranchMapReaderStrategyV8.updateFile(), fwlite::internal::BranchMapReaderStrategyV11.updateFile(), fwlite::internal::BranchMapReaderStrategyV17.updateFile(), and fwlite::internal::BranchMapReaderStrategyV1.updateMap().

string scaleCards.cfmt = "%-"

Definition at line 91 of file scaleCards.py.

tuple scaleCards.cmax = 5

Definition at line 69 of file scaleCards.py.

Referenced by RPCGeometryServTest.analyze(), and ImpactParameterCalibration.createCategory().

tuple scaleCards.DCR = parseCard(open(fileR,"r"), options)

Definition at line 65 of file scaleCards.py.

string scaleCards.fileR = options.ddir+"/%g/vhbb_DC_ALL_%s.%.1f.txt"

Definition at line 63 of file scaleCards.py.

tuple scaleCards.hmax = max([10] + [len("%-12s %s %s" % (l,p,a)) for l,(p,a,e,nf) in systlines.items()])

Definition at line 106 of file scaleCards.py.

Referenced by HIPixelMedianVtxProducer.produce().

list scaleCards.keyline = []

Definition at line 70 of file scaleCards.py.

tuple scaleCards.mass = float(args[0])

Definition at line 27 of file scaleCards.py.

Referenced by Hector.add(), hitfit.adjust_e_for_mass(), hitfit.adjust_p_for_mass(), ZHistogrammer.analyze(), ZMCHistogrammer.analyze(), myFastSimVal.analyze(), JetValidation.analyze(), JetAnaPythia< Jet >.analyze(), CaloJetTesterUnCorr.analyze(), JPTJetTesterUnCorr.analyze(), PFJetTesterUnCorr.analyze(), CaloJetTester.analyze(), CaloJetTesterUnCorr_HeavyIons.analyze(), PFJetTester.analyze(), JPTJetTester.analyze(), PatTriggerTagAndProbe.analyze(), BasicMuonAnalyzer.analyze(), EwkMuLumiMonitorDQM.analyze(), DijetMass< Jet >.analyze(), EBClusterTask.analyze(), EEClusterTask.analyze(), ZMuMuPerformances.analyze(), ElectronSeedAnalyzer.analyze(), ZMuMuSaMassHistogram.analyze(), ZMuMu_efficiencyAnalyzer.analyze(), ZMuMu_vtxAnalyzer.analyze(), ZMuMuAnalyzer.analyze(), edm::FlatEGunASCIIWriter.analyze(), myJetAna.analyze(), ZMuMu_MCanalyzer.analyze(), MCAcceptanceAnalyzer.analyze(), ResolutionAnalyzer.analyze(), HLTMuonMatchAndPlot.analyze(), V0Validator.analyze(), Rivet::MC_LES_HOUCHES_SYSTEMATICS_CMS.analyze(), HPSPFRecoTauAlgorithm.applyMassConstraint(), gen::PhotosInterface53XLegacy.attachParticles(), gen::PhotosInterface.attachParticles(), BackgroundHandler.BackgroundHandler(), TransientTrackKinematicStateBuilder.buildState(), JetPlusTrackCorrector.calculateCorr(), CMSMonopolePhysics.CMSMonopolePhysics(), TwoBodyDecayTrajectory.construct(), CMSMonopolePhysics.ConstructProcess(), Rivet::CMS_EWK_11_021.ConvPar(), gen::TauolaInterface.decay(), gen::TauolappInterface.decay(), PFRecoTauDiscriminationByInvMass.discriminate(), MuScleFit.duringFastLoop(), AlignmentMonitorTracksFromTrajectories.event(), tnp::TPTreeFiller.fill(), CandKinematicVertexFitter.fill(), TopDiLeptonOffline::MonitorEnsemble.fill(), ErrorsPropagationAnalyzer.fillHistograms(), HLTOniaSource.fillInvariantMass(), recoBSVTagInfoValidationAnalyzer.fillRecoToSim(), SVTagInfoValidationAnalyzer.fillRecoToSim(), recoBSVTagInfoValidationAnalyzer.fillSimToReco(), SVTagInfoValidationAnalyzer.fillSimToReco(), MuScleFitUtils.findBestRecoRes(), MuScleFitUtils.findBestSimuRes(), V0Fitter.fitAll(), gen::Pythia6EGun.generateEvent(), gen::Pythia6JetGun.generateEvent(), gen::Pythia6PartonEGun.generateEvent(), gen::Pythia6PartonPtGun.generateEvent(), gen::Pythia6PtGun.generateEvent(), gen::Pythia6PtYDistGun.generateEvent(), reco::PFDisplacedVertex.getMass2(), CustomParticleFactory.getMassTable(), histoFill(), HLTDiMuonGlbTrkFilter.hltFilter(), HLTEgammaAllCombMassFilter.hltFilter(), HLTEgammaCombMassFilter.hltFilter(), HLTMuonTrackMassFilter.hltFilter(), HLTElectronMuonInvMassFilter.hltFilter(), HLTElectronPFMTFilter.hltFilter(), HLTPMMassFilter.hltFilter(), InvariantMassFromVertex.invariantMass(), PlotMakerL1.invariantMass(), PlotMakerReco.invariantMass(), likelihood(), main(), ErrorsPropagationAnalyzer.massResolution(), MuScleFitUtils.massResolution(), MuScleFitUtils.minimizeLikelihood(), FinalTreeBuilder.momentumPart(), oldMUcompute(), InvariantMass< T1, T2 >.operator()(), funct::GammaPropagator.operator()(), MassRangeSelector.operator()(), reco::VertexFilter.operator()(), TtDilepLRSignalSelObservables.operator()(), ZSelector.operator()(), reco::tau::RecoTauPiZeroCombinatoricPlugin.operator()(), Calculate.operator()(), CalculateHLT.operator()(), InvariantMassFromVertex.p4(), egHLT::EgTagProbeCut< T >.pass(), egHLT::EgTrigTagProbeCut.pass(), egHLT::EgTrigTagProbeCut_New.pass(), egHLT::EgTrigTagProbeCut_NewPho.pass(), reco::PFDisplacedVertex.primaryMomentum(), edm::FlatRandomEThetaGunProducer.produce(), edm::FlatRandomEThetaGunSource.produce(), edm::FlatRandomPtThetaGunProducer.produce(), edm::FlatRandomPtThetaGunSource.produce(), edm::FileRandomKEThetaGunProducer.produce(), QuarkoniaTrackSelector.produce(), GsfMaterialEffectsESProducer.produce(), edm::FlatRandomOneOverPtGunProducer.produce(), edm::FlatRandomEGunProducer.produce(), PropagatorWithMaterialESProducer.produce(), edm::FlatRandomPtGunProducer.produce(), edm::MultiParticleInConeGunProducer.produce(), edm::MultiParticleInConeGunSource.produce(), edm::FlatRandomEGunSource.produce(), edm::FlatRandomPtGunSource.produce(), edm::ExpoRandomPtGunProducer.produce(), edm::ExpoRandomPtGunSource.produce(), ZMuMuUserData.produce(), GenParticles2HepMCConverter.produce(), ZToLLEdmNtupleDumper.produce(), TrackKinematicStatePropagator.propagateToTheTransversePCACharged(), AlpgenSource.readAlpgenEvent(), ConfigurableTertiaryTracksVertexFinder.reconstruct(), PFAlgo.reconstructCluster(), ConversionVertexFinder.run(), ecaldqm::ClusterTask.runOnBasicClusters(), ecaldqm::ClusterTask.runOnSuperClusters(), LandauFP420.SampleFluctuations(), SiG4UniversalFluctuation.SampleFluctuations(), TagProbeFitter.saveFitPlot(), reco::PFDisplacedVertex.secondaryMomentum(), CandCommonVertexFitterBase.set(), PFCandCommonVertexFitterBase.set(), CandKinematicVertexFitter.set(), PixelHitMatcher.setES(), Combo.SetMaxMassHadW(), JetCombinatorics.SetMaxMassHadW(), Combo.SetMaxMassLepTop(), JetCombinatorics.SetMaxMassLepTop(), Combo.SetMaxMassLepW(), JetCombinatorics.SetMaxMassLepW(), Combo.SetMinMassHadW(), JetCombinatorics.SetMinMassHadW(), Combo.SetMinMassLepTop(), JetCombinatorics.SetMinMassLepTop(), Combo.SetMinMassLepW(), JetCombinatorics.SetMinMassLepW(), TtDilepEvtSolution.setRecTopMass(), CSCGasCollisions.simulate(), AlpgenSource.slhaMassLine(), AlignmentMuonSelector.theBestMassPairCombinationMuons(), SelectReplacementCandidates.transformMuMu2TauTau(), ParticleReplacerClass.transformMuMu2TauTau(), TtFullHadSignalSel.TtFullHadSignalSel(), and InvariantMassFromVertex.uncertainty().

scaleCards.obskeyline = DCR.bins;

Definition at line 67 of file scaleCards.py.

list scaleCards.obsline = [str(DCR.obs[b]) for b in DCR.bins]

Definition at line 68 of file scaleCards.py.

dictionary scaleCards.paramSysts = {}

Definition at line 72 of file scaleCards.py.

tuple scaleCards.parser = OptionParser(usage="usage: %prog [options] mass \nrun with --help to get list of options")

Definition at line 12 of file scaleCards.py.

list scaleCards.path = os.environ['CMSSW_BASE']

Definition at line 51 of file scaleCards.py.

Referenced by RPCLinkSynchroStat.add(), METManager.addGenBenchmark(), HLTPerformanceInfo.addModuleToPath(), DeDxDiscriminatorLearnerFromCalibTree.algoAnalyzeTheTree(), SiStripGainFromCalibTree.algoAnalyzeTheTree(), PatTriggerAnalyzerPrescale.analyze(), PixelVTXMonitor.analyze(), MuonDTDigis.analyze(), PrintLoadingPlugins.askedToLoad(), SiStripFedCablingBuilderFromDb.assignDcuAndDetIds(), BenchmarkAnalyzer.beginJob(), PFCandidateDQMAnalyzer.beginJob(), PFJetDQMAnalyzer.beginJob(), PFMETDQMAnalyzer.beginJob(), JetCorrectorDBWriter.beginJob(), GenericBenchmarkAnalyzer.beginJob(), ProfilerService.beginPath(), HLTMuonOfflineAnalyzer.beginRun(), HLTMuonValidator.beginRun(), HLTHiggsSubAnalysis.beginRun(), DQMStore.book(), CSCOfflineClient.bookMonitorObject(), CSCMonitorModule.bookMonitorObject(), edmplugin::standard.cachefileName(), DQMStoreStats.calcstats(), FWGeometryTableViewBase.cdTop(), FWPSetTableManager.cellRenderer(), LStoreStorageMaker.check(), cleanTrailingSlashes(), CmsShowSearchFiles.CmsShowSearchFiles(), SiStripGainFromData.ComputeChargeOverPath(), edmplugin::standard.config(), CommissioningHistograms.copyCustomInformation(), FWTextTreeCellRenderer.coreIcondir(), FWCheckBoxIcon.coreIcondir(), coreIcondir(), SiStripCommissioningSource.createCablingTasks(), SiStripHistoId.createHistoLayer(), evf::ServiceWeb.defaultWebPage(), evf::Stepper.defaultWebPage(), evf::ExceptionGenerator.defaultWebPage(), EcalBarrelMonitorXdaqClient.defaultWebPage(), EcalEndcapMonitorXdaqClient.defaultWebPage(), edm::DaqSource.defaultWebPage(), evf::ModuleWeb.defaultWebPage(), do_work(), PFClient.doEfficiency(), MuonTestSummary.doEnergyTests(), MuonTestSummary.doKinematicsTests(), MuonTestSummary.doMuonIDTests(), MuonTestSummary.doResidualsTests(), PFClient.doSummaries(), DTMuonMillepede.DTMuonMillepede(), DTMuonSLToSL.DTMuonSLToSL(), EcalTrivialConditionRetriever.EcalTrivialConditionRetriever(), MuonAlignmentSummary.endRun(), MuonRecoTest.endRun(), MuonTrackResidualsTest.endRun(), ESTrivialConditionRetriever.ESTrivialConditionRetriever(), CommissioningHistograms.extractHistograms(), spf::SherpackFetcher.Fetch(), evf::FileDescriptorHandler.FileDescriptorHandler(), SummaryGeneratorControlView.fill(), SummaryGeneratorReadoutView.fill(), SiStripCommissioningSource.fillCablingHistos(), SiPixelActionExecutor.fillOccupancy(), PFDQMEventSelector.filter(), LocalFileSystem.findCachePath(), EmDQMFeeder.findEgammaPaths(), SiPixelFrameReverter.findFedId(), FWGeometry.findFile(), SiPixelFrameReverter.findLinkInFed(), DQMImplNet< DQMNet::Object >.findObject(), SiPixelFrameReverter.findPixelInRoc(), SiPixelFrameReverter.findRocInDet(), SiPixelFrameReverter.findRocInLink(), spf::SherpackFetcher.FnFileGet(), TkHistoMap.folderDefinition(), pos::PixelConfigFile.get(), SiPixelQuality.getBadRocPositions(), SiStripInformationExtractor.getCondDBHistos(), getFileURLs(), MonitorElement.getFullname(), cscdqm::HistoDef.getFullPath(), SiStripInformationExtractor.getGlobalHistos(), SiStripInformationExtractor.getHistosFromPath(), HFShowerParam.getHits(), evf::ParameterSetRetriever.getHostString(), SiStripInformationExtractor.getImage(), DQMStore.getMatchingContents(), DeDxDiscriminatorProducer.GetProbability(), SiStripInformationExtractor.getSingleModuleHistos(), SiPixelInformationExtractor.getSingleModuleHistos(), SiStripInformationExtractor.getTrackerMapHistos(), SiPixelInformationExtractor.getTrackerMapHistos(), fit::RootMinuitCommands< Function >.init(), TStorageFactoryFile.Initialize(), edm::FileInPath.initialize_(), metsig::SignAlgoResolutions.initializeJetResolutions(), ecaldqm::IntegrityTask.IntegrityTask(), DeDxDiscriminatorLearner.Learn(), edmplugin::PluginManager.load(), edmplugin::PluginManager.loadableFor_(), main(), pos::PixelConfigFile.makeNewVersion(), TrajectoryManager.makeSinglePSimHit(), SiPixelSCurveCalibrationAnalysis.makeThresholdSummary(), MergeRootfile(), SiPixelDigitizerAlgorithm.module_killing_DB(), MonitorElement.MonitorElement(), PhysicsTools::MVAComputerESSourceBase.MVAComputerESSourceBase(), edmplugin::PluginFactoryBase.newPlugin(), RivetAnalyzer.normalizeTree(), LStoreStorageMaker.open(), StormStorageMaker.open(), StormLcgGtStorageMaker.open(), ora::SharedLibraryName.operator()(), SiPixelFedCablingMap.pathToDetUnit(), SiPixelFedCablingTree.pathToDetUnit(), edmplugin::PluginManager.PluginManager(), SiPixelActionExecutor.prephistosB(), SiPixelActionExecutor.prephistosE(), FastTimerService.preProcessPath(), FedCablingAnalysis.print(), cond::XMLAuthenticationService::XMLAuthenticationService.processFile(), ShallowGainCalibration.produce(), MuonSimHitProducer.produce(), RKPropagatorInS.propagateParametersOnCylinder(), RKPropagatorInS.propagateParametersOnPlane(), FastTimerService.queryPathActiveTime(), FastTimerService.queryPathTotalTime(), edmplugin::CacheParser.read(), CSCGasCollisions.readCollisionTable(), SiStripInformationExtractor.readStatusMessage(), DQMBasicNet.removeLocalExcept(), gen::ParameterCollector.resolve(), SiPixelDQMRocLevelAnalyzer.RocSummary(), CommissioningHistograms.runNumber(), CommissioningHistograms.runType(), CommissioningHistograms.save(), DQMStore.save(), lumi::DBConfig.setAuthentication(), cond::XMLAuthenticationService::XMLAuthenticationService.setAuthenticationPath(), SiStripCommissioningOfflineClient.setInputFiles(), SiStripHistoPlotter.setNewCondDBPlot(), SiPixelHistoPlotter.setNewPlot(), SiStripHistoPlotter.setNewPlot(), PhiSymmetryCalibration_step2.setUp(), PhiSymmetryCalibration_step2_SM.setUp(), PFTauElecRejectionBenchmark.setup(), PFJetBenchmark.setup(), PFMETBenchmark.setup(), cond::CredentialStore.setUpForService(), HelixArbitraryPlaneCrossing2Order.solutionByDirection(), splitPath(), PFJetDQMAnalyzer.storeBadEvents(), PFMETDQMAnalyzer.storeBadEvents(), PFCandidateDQMAnalyzer.storeBadEvents(), PedsOnlyAnalysis.summary(), VpspScanAnalysis.summary(), NoiseAnalysis.summary(), PedestalsAnalysis.summary(), OptoScanAnalysis.summary(), CommissioningAnalysis.summary(), PedsFullNoiseAnalysis.summary(), SiPixelFrameConverter.toCabling(), SiPixelFrameReverter.toCabling(), SiPixelFrameConverter.toDetector(), edmplugin::PluginManager.tryToLoad(), DQMStore.useQTestByMatch(), SiStripConfigDb.usingDatabase(), cond::XMLAuthenticationService::XMLAuthenticationService.verifyFileName(), and PixelDataFormatter.word2digi().

list scaleCards.pidline = []

Definition at line 97 of file scaleCards.py.

string scaleCards.pTrue = "WH"

Definition at line 79 of file scaleCards.py.

list scaleCards.rate = DCR.exp[b]

Definition at line 77 of file scaleCards.py.

Referenced by L1TdeGCT.analyze(), L1TDEMON.analyze(), L1TriggerRates.computeRates(), L1TriggerRates.computeRunRates(), L1DEFilter.endJob(), L1ScalersClient.endLuminosityBlock(), TrigResRateMon.fillXsecPerDataset(), CMSCGEN.generateNuMu(), stor::RegistrationInfoBase.getPSet(), CMSCGEN.initializeNuMu(), Level1TriggerScalers.rateLS(), SiG4UniversalFluctuation.SampleFluctuations(), evf::iDie::commonLsStat.setBusyForClass(), RPCConst.vxIntegMuRate(), and RPCConst.vxMuRate().

tuple scaleCards.refmasses = range(110,135+1,5)

Definition at line 26 of file scaleCards.py.

list scaleCards.signals = []

Definition at line 71 of file scaleCards.py.

tuple scaleCards.sysnamesSorted = systlines.keys()

Definition at line 113 of file scaleCards.py.

list scaleCards.systline = []

Definition at line 117 of file scaleCards.py.

tuple scaleCards.whXS = file2map(path+"YR-XS-WH.txt")

Definition at line 52 of file scaleCards.py.

tuple scaleCards.xfile = open(options.ddir+"/%g/vhbb_DC_ALL_%s%s.%.1f.txt" % (mass, options.flavour, options.postfix, mass), "w")

Definition at line 84 of file scaleCards.py.

dictionary scaleCards.xsbr = { 'WH':1.0, 'ZH':1.0 }

Definition at line 38 of file scaleCards.py.

dictionary scaleCards.xsbrR = { 'WH':1.0, 'ZH':1.0 }

Definition at line 37 of file scaleCards.py.

tuple scaleCards.zhXS = file2map(path+"YR-XS-ZH.txt")

Definition at line 53 of file scaleCards.py.