From 9526c7c249f93b6f4eed85bc6107c3f9d5dc25f1 Mon Sep 17 00:00:00 2001 From: Geng Chen Date: Tue, 14 Oct 2014 09:01:30 +0200 Subject: [PATCH] Jpsi & Psi(2S) --- python/BuToJPSiK_8TeV.py | 65 +++++++++++++++++++++++++++++++++++++ python/BuToPsi2SK_8TeV.py | 1 + python/cb_MC_JPSiK_8TeV.cfg | 33 +++++++++++++++++++ 3 files changed, 99 insertions(+) create mode 100755 python/BuToJPSiK_8TeV.py create mode 100644 python/cb_MC_JPSiK_8TeV.cfg diff --git a/python/BuToJPSiK_8TeV.py b/python/BuToJPSiK_8TeV.py new file mode 100755 index 0000000..f51a38b --- /dev/null +++ b/python/BuToJPSiK_8TeV.py @@ -0,0 +1,65 @@ +import FWCore.ParameterSet.Config as cms +from btokmumu_2012_cfi import process + + +process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(10) ) +#process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(-1) ) + +process.source = cms.Source("PoolSource", + fileNames = cms.untracked.vstring( + #'file:/afs/cern.ch/user/x/xshi/work/cms/afb/dat/aod/mc/BuToKstarMuMu_7TeV_PYTHIA6.root', +# 'file:/afs/cern.ch/user/x/xshi/work/cms/afb/dat/aod/mc/BuToKstarMuMu_7TeV_PYTHIA6_1_1_96m.root', +# 'file:/afs/cern.ch/user/x/xshi/work/cms/afb/dat/aod/mc/BuToKstarMuMu_7TeV_PYTHIA6_2_1_dfI.root', +# 'file:/afs/cern.ch/user/x/xshi/work/cms/afb/dat/aod/mc/BuToKstarMuMu_7TeV_PYTHIA6_3_1_ud5.root', +# 'file:/afs/cern.ch/user/x/xshi/work/cms/afb/dat/aod/mc/BuToKstarMuMu_7TeV_PYTHIA6_4_1_neu.root', +# 'file:/afs/cern.ch/user/x/xshi/work/cms/afb/dat/aod/mc/BuToKstarMuMu_7TeV_PYTHIA6_5_1_8Kc.root', +# 'file:/afs/cern.ch/user/x/xshi/work/cms/afb/dat/aod/mc/BuToKstarJPsi_7TeV_PYTHIA6_100.root', +# 'file:/afs/cern.ch/user/w/wguo/work/CMSSW_5_3_11/src/wguo_xin/BToKMuMu/python/2012testMC_numEvent5000.root', +# 'file:/afs/cern.ch/work/n/nsahoo/BPH-ANALYSIS/afb/SE/aod/mc/2012_test_BToKMuMu_500.root', +# 'file:/afs/cern.ch/work/n/nsahoo/BPH-ANALYSIS/afb/SE/aod/mc/2012_test_BToKMuMu_1000.root', +#'root://xrootd.unl.edu//store/mc/Summer12_DR53X/Bu2MuMuK_TuneZ2star_8TeV_Pythia6/AODSIM/PU_RD2_START53_V19F-v1/00000/000771A0-9408-E411-94C0-002590DB92A8.root', +'root://xrootd.unl.edu//store/mc/Summer12_DR53X/BuJpsiK_TuneZ2star_8TeV_Pythia6/AODSIM/PU_RD2_START53_V19F-v1/00000/00086026-C705-E411-B655-90E6BAE8CC0C.root', +#'root://xrootd.unl.edu//store/mc/Summer12_DR53X/BuToPsiK_KFilter_TuneZ2star_SVS_8TeV-pythia6-evtgen/AODSIM/PU_RD2_START53_V19F-v1/00000/001E2794-0711-E411-B5F0-02163E008EBC.root', +# '/store/mc/Summer12_DR53X/BuToMuMuK_EtaPtFilter_8TeV-pythia6-evtgen/AODSIM/PU_S10_START53_V7C-v1/20000/9C4AFE3E-BA65-E211-821F-AC162DACC3E8.root', + + ) + ) +#process.GlobalTag.globaltag = cms.string('GR_R_42_V25::All')r +#process.GlobalTag.globaltag = cms.string('START53_V23::All') +process.GlobalTag.globaltag = cms.string('START53_V7G::All') + +# do trigger matching for muons +triggerProcessName = 'HLT' + + +process.cleanMuonTriggerMatchHLT0 = cms.EDProducer( + # match by DeltaR only (best match by DeltaR) + 'PATTriggerMatcherDRLessByR', + src = cms.InputTag('cleanPatMuons'), + # default producer label as defined in + # PhysicsTools/PatAlgos/python/triggerLayer1/triggerProducer_cfi.py + matched = cms.InputTag('patTrigger'), + matchedCuts = cms.string('path("HLT_DoubleMu3p5_LowMass_Displaced*",0,0)'), + maxDeltaR = cms.double(0.1), + # only one match per trigger object + resolveAmbiguities = cms.bool(True), + # take best match found per reco object (by DeltaR here, see above) + resolveByMatchQuality = cms.bool(False)) + + +from PhysicsTools.PatAlgos.tools.trigTools import * +switchOnTriggerMatchEmbedding(process, triggerMatchers = ['cleanMuonTriggerMatchHLT0'], + hltProcess = triggerProcessName, outputModule = '') + +g_TriggerNames_LastFilterNames = [ + ('HLT_DoubleMu3p5_LowMass_Displaced', 'hltDisplacedmumuFilterDoubleMu3p5LowMass') + ] + +g_TriggerNames = [i[0] for i in g_TriggerNames_LastFilterNames] +g_LastFilterNames = [i[1] for i in g_TriggerNames_LastFilterNames] + + +process.ntuple.TriggerNames = cms.vstring(g_TriggerNames) +process.ntuple.LastFilterNames = cms.vstring(g_LastFilterNames) +process.ntuple.IsMonteCarlo = cms.untracked.bool(True) +process.ntuple.KeepGENOnly = cms.untracked.bool(False) diff --git a/python/BuToPsi2SK_8TeV.py b/python/BuToPsi2SK_8TeV.py index cf884ce..7a64778 100755 --- a/python/BuToPsi2SK_8TeV.py +++ b/python/BuToPsi2SK_8TeV.py @@ -61,3 +61,4 @@ process.ntuple.TriggerNames = cms.vstring(g_TriggerNames) process.ntuple.LastFilterNames = cms.vstring(g_LastFilterNames) process.ntuple.IsMonteCarlo = cms.untracked.bool(True) +process.ntuple.KeepGENOnly = cms.untracked.bool(False) diff --git a/python/cb_MC_JPSiK_8TeV.cfg b/python/cb_MC_JPSiK_8TeV.cfg new file mode 100644 index 0000000..64ce4cd --- /dev/null +++ b/python/cb_MC_JPSiK_8TeV.cfg @@ -0,0 +1,33 @@ +[CRAB] +jobtype = cmssw +scheduler = remoteGlidein +use_server = 0 + + +[CMSSW] +get_edm_output = 1 +total_number_of_events = -1 +number_of_jobs = 950 +pset = ./BuToJPSiK_8TeV.py +datasetpath = /BuJpsiK_TuneZ2star_8TeV_Pythia6/Summer12_DR53X-PU_RD2_START53_V19F-v1/AODSIM +output_file = BToKMuMu.root +#dbs_url = phys03 + +[USER] + +ui_working_dir = BuToJPSiK_MC_8TeV +user_remote_dir = BuToJPSiK_MC_8TeV +#local_stage_out = 1 +return_data = 0 +storage_element = T2_CN_Beijing +#storage_element = T2_UK_SGrid_Bristol +copy_data = 1 +#publish_data = 1 +#publish_data_name = +#dbs_url_for_publication = phys03 + +[GRID] +rb = CERN +proxy_server = myproxy.cern.ch +#se_black_list = T1_IT_CNAF +