CMS 3D CMS Logo

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 = "/%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.

00040                    : 
00041         ret = {}; headers = []
00042         for x in open(x,"r"):
00043             cols = x.split()
00044             if len(cols) < 2: continue
00045             if "mH" in x: 
00046                 headers = [i.strip() for i in cols[1:]]
00047             else:
00048                 fields = [ float(i) for i in cols ]
00049                 ret[fields[0]] = dict(zip(headers,fields[1:]))
00050         return ret

Variable Documentation

tuple scaleCards::br = file2map(path+"YR-BR1.txt")
string scaleCards::cfmt = "%-"

Definition at line 91 of file scaleCards.py.

tuple scaleCards::cmax = 5
tuple scaleCards::DCR = parseCard(open(fileR,"r"), options)

Definition at line 65 of file scaleCards.py.

string scaleCards::fileR = "/%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().

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

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(), PixelVTXMonitor::analyze(), MuonDTDigis::analyze(), PrintLoadingPlugins::askedToLoad(), SiStripFedCablingBuilderFromDb::assignDcuAndDetIds(), GenericBenchmarkAnalyzer::beginJob(), PFMETDQMAnalyzer::beginJob(), PFCandidateDQMAnalyzer::beginJob(), BenchmarkAnalyzer::beginJob(), JetCorrectorDBWriter::beginJob(), PFJetDQMAnalyzer::beginJob(), ProfilerService::beginPath(), HLTMuonOfflineAnalyzer::beginRun(), HLTMuonValidator::beginRun(), HLTHiggsSubAnalysis::beginRun(), DQMStore::book(), CSCMonitorModule::bookMonitorObject(), CSCOfflineClient::bookMonitorObject(), edmplugin::standard::cachefileName(), DQMStoreStats::calcstats(), FWGeometryTableViewBase::cdTop(), FWPSetTableManager::cellRenderer(), LStoreStorageMaker::check(), cleanTrailingSlashes(), CmsShowSearchFiles::CmsShowSearchFiles(), SiStripGainFromData::ComputeChargeOverPath(), edmplugin::standard::config(), CommissioningHistograms::copyCustomInformation(), FWCheckBoxIcon::coreIcondir(), coreIcondir(), FWTextTreeCellRenderer::coreIcondir(), SiStripCommissioningSource::createCablingTasks(), SiStripHistoId::createHistoLayer(), evf::Stepper::defaultWebPage(), EcalBarrelMonitorXdaqClient::defaultWebPage(), evf::ModuleWeb::defaultWebPage(), edm::DaqSource::defaultWebPage(), EcalEndcapMonitorXdaqClient::defaultWebPage(), evf::ServiceWeb::defaultWebPage(), evf::ExceptionGenerator::defaultWebPage(), do_work(), PFClient::doEfficiency(), MuonTestSummary::doEnergyTests(), MuonTestSummary::doKinematicsTests(), MuonTestSummary::doMuonIDTests(), MuonTestSummary::doResidualsTests(), PFClient::doSummaries(), DTMuonMillepede::DTMuonMillepede(), DTMuonSLToSL::DTMuonSLToSL(), EcalTrivialConditionRetriever::EcalTrivialConditionRetriever(), MuonRecoTest::endRun(), MuonAlignmentSummary::endRun(), MuonTrackResidualsTest::endRun(), ESTrivialConditionRetriever::ESTrivialConditionRetriever(), CommissioningHistograms::extractHistograms(), spf::SherpackFetcher::Fetch(), SummaryGeneratorReadoutView::fill(), SummaryGeneratorControlView::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(), getFileURLs(), MonitorElement::getFullname(), cscdqm::HistoDef::getFullPath(), HFShowerParam::getHits(), evf::ParameterSetRetriever::getHostString(), DQMStore::getMatchingContents(), DeDxDiscriminatorProducer::GetProbability(), SiStripInformationExtractor::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(), StormLcgGtStorageMaker::open(), StormStorageMaker::open(), ora::SharedLibraryName::operator()(), SiPixelFedCablingTree::pathToDetUnit(), SiPixelFedCablingMap::pathToDetUnit(), edmplugin::PluginManager::PluginManager(), SiPixelActionExecutor::prephistosB(), SiPixelActionExecutor::prephistosE(), FastTimerService::preProcessEvent(), FastTimerService::preProcessPath(), FedCablingAnalysis::print(), cond::XMLAuthenticationService::XMLAuthenticationService::processFile(), MuonSimHitProducer::produce(), ShallowGainCalibration::produce(), RKPropagatorInS::propagateParametersOnCylinder(), RKPropagatorInS::propagateParametersOnPlane(), FastTimerService::queryPathActiveTime(), FastTimerService::queryPathTotalTime(), edmplugin::CacheParser::read(), CSCGasCollisions::readCollisionTable(), 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(), SiStripHistoPlotter::setNewPlot(), SiPixelHistoPlotter::setNewPlot(), CandCombinerBase< OutputCollection, Cloner::CandPtr >::setup(), PhiSymmetryCalibration_step2_SM::setUp(), PhiSymmetryCalibration_step2::setUp(), cond::CredentialStore::setUpForService(), HelixArbitraryPlaneCrossing2Order::solutionByDirection(), splitPath(), PFMETDQMAnalyzer::storeBadEvents(), PFJetDQMAnalyzer::storeBadEvents(), PFCandidateDQMAnalyzer::storeBadEvents(), PedsOnlyAnalysis::summary(), PedsFullNoiseAnalysis::summary(), VpspScanAnalysis::summary(), NoiseAnalysis::summary(), PedestalsAnalysis::summary(), OptoScanAnalysis::summary(), CommissioningAnalysis::summary(), SiPixelFrameReverter::toCabling(), SiPixelFrameConverter::toCabling(), SiPixelFrameConverter::toDetector(), edmplugin::PluginManager::tryToLoad(), DQMStore::useQTestByMatch(), SiStripConfigDb::usingDatabase(), cond::XMLAuthenticationService::XMLAuthenticationService::verifyFileName(), and PixelDataFormatter::word2digi().

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]
tuple scaleCards::refmasses = range(110,135+1,5)

Definition at line 26 of file scaleCards.py.

Definition at line 71 of file scaleCards.py.

tuple scaleCards::sysnamesSorted = systlines.keys()

Definition at line 113 of file scaleCards.py.

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.