sequence = cfg.Sequence( [ genAna, jsonAna, triggerAna, vertexAna, WAna, WtreeProducer, ZAna, ZtreeProducer ] ) from CMGTools.H2TauTau.proto.samples.ewk import DYJets from CMGTools.H2TauTau.proto.samples.getFiles import getFiles DYJets.files = getFiles('/DYToMuMu_M-20_CT10_TuneZ2_7TeV-powheg-pythia/Fall11-PU_S6_START44_V9B-v1/AODSIM/V5_B/PAT_CMG_V5_6_0_B_44X', 'cmgtools', '.*.root') #DYJets.files = getFiles('/DYJetsToLL_TuneZ2_M-50_7TeV-madgraph-tauola/Fall11-PU_S6_START44_V9B-v1/AODSIM/V5_B/PAT_CMG_V5_6_0_B', 'cmgtools', '.*.root') #/eos/cms/store/cmst3/user/cmgtools/CMG/DYToTauTau_M-20_CT10_TuneZ2_7TeV-powheg-pythia-tauola/Fall11-PU_S6_START44_V9B-v1/AODSIM/V5_B/V5_6_0_B_44X #DYJets.files = getFiles('/DYToTauTau_M-20_CT10_TuneZ2_7TeV-powheg-pythia-tauola/Fall11-PU_S6_START44_V9B-v1/AODSIM/V5_B/PAT_CMG_V5_6_0_B_44X', 'cmgtools', '.*root') #DYJets.files = getFiles('/DYToTauTau_M-20_CT10_TuneZ2_7TeV-powheg-pythia-tauola/Fall11-PU_S6_START44_V9B-v1/AODSIM/V5_B/PAT_CMG_V5_6_0_B_44X_2nd', 'cmgtools', '.*root') #DYJets.files = getFiles('/DYJetsToLL_TuneZ2_M-50_7TeV-madgraph-tauola/Fall11-PU_S6_START44_V9B-v1/AODSIM/V5_B/PAT_CMG_V5_6_0_B', 'cmgtools', '.*root') DYJets.triggers = ["HLT_IsoMu24_v1","HLT_IsoMu24_v2","HLT_IsoMu24_v3","HLT_IsoMu24_v4","HLT_IsoMu24_v5","HLT_IsoMu24_v6","HLT_IsoMu24_v7",\ "HLT_IsoMu24_v8","HLT_IsoMu24_v9","HLT_IsoMu24_v10","HLT_IsoMu24_v11","HLT_IsoMu24_v12","HLT_IsoMu24_v13","HLT_IsoMu24_v14",\ "HLT_IsoMu24_eta2p1_v1","HLT_IsoMu24_eta2p1_v2","HLT_IsoMu24_eta2p1_v3","HLT_IsoMu24_eta2p1_v4","HLT_IsoMu24_eta2p1_v5",\ "HLT_IsoMu24_eta2p1_v6","HLT_IsoMu24_eta2p1_v7","HLT_IsoMu24_eta2p1_v8" ] selectedComponents = [DYJets] DYJets.splitFactor = 1000
WAna.doMad = False sequence = cfg.Sequence(CoreWsequence) # WAna.storeLHE_weight = True # WtreeProducer.storeLHE_weight = True # # WtreeProducer.superslimNtuples = True from CMGTools.H2TauTau.proto.samples.ewk import WJets from CMGTools.H2TauTau.proto.samples.getFiles import getFiles # WJetsPlus.files = getFiles('/WJetsToLL_TuneZ2_M-50_7TeV-madgraph-tauola/Fall11-PU_S6_START42_V14B-v1/AODSIM/V5_B/PAT_CMG_V5_6_0_B', 'cmgtools', '.*root') # WJetsPlus.files = getFiles('/WJetsToLL_M-50_7TeV-madgraph-pythia6-tauola/Summer11LegDR-PU_S13_START53_LV6-v1/AODSIM/V5_B/PAT_CMG_V5_18_0', 'cmgtools', '.*root') WJetsPlus = copy.deepcopy(WJets) WJetsPlus.files = getFiles( '/WplusToMuNu_M-50To250_ew-BMNNP_7TeV-powheg-pythia8/Summer11LegDR-PU_S13_START53_LV6-v1/AODSIM/V5_B/PAT_CMG_V5_18_0', 'cmgtools', '.*root') # 1389 WJetsPlus.triggers = triggers_mu WJetsPlus.splitFactor = 900 WJetsPlus.name = 'WPlus1' WJetsPlus2 = copy.deepcopy(WJetsPlus) WJetsPlus2.name = 'WPlus2' WJetsPlus2.files = getFiles( '/WplusToMuNu_M-50To250_ew-BMNNP_7TeV-powheg-pythia8/Summer11LegDR-PU_S13_START53_LV6-v3/AODSIM/V5_B/PAT_CMG_V5_18_0', 'cmgtools', '.*root') # 1703 WJetsPlus3 = copy.deepcopy(WJetsPlus) WJetsPlus3.name = 'WPlus3' WJetsPlus3.files = getFiles( '/WplusToMuNu_M-50To250_ew-BMNNP_7TeV-powheg-pythia8/Summer11LegDR-PU_S13_START53_LV6-v7/AODSIM/V5_B/PAT_CMG_V5_18_0',
ZAna, ZtreeProducer ] ) from CMGTools.WMass.analyzers.CoreModule_53X_cff import * # sequence = cfg.Sequence(CoreWZsequence) from CMGTools.H2TauTau.proto.samples.ewk import WJets from CMGTools.H2TauTau.proto.samples.getFiles import getFiles JpsiMC = copy.deepcopy(WJets) JpsiMC.files = getFiles('/JPsiToMuMu_2MuPEtaFilter_7TeV-pythia6-evtgen-v2/Summer11LegDR-PU_S13_START53_LV6-v1/AODSIM/V5_B/PAT_CMG_V5_18_0/JpsiRefit', 'cmgtools', '.*root') # JpsiMC.files = [ # 'root://eoscms//eos/cms/store/cmst3/user/cmgtools/CMG/JPsiToMuMu_2MuPEtaFilter_7TeV-pythia6-evtgen-v2/Summer11LegDR-PU_S13_START53_LV6-v1/AODSIM/V5_B/PAT_CMG_V5_18_0/cmgTuple_203.root', # 'root://eoscms//eos/cms/store/cmst3/user/cmgtools/CMG/JPsiToMuMu_2MuPEtaFilter_7TeV-pythia6-evtgen-v2/Summer11LegDR-PU_S13_START53_LV6-v1/AODSIM/V5_B/PAT_CMG_V5_18_0/cmgTuple_355.root', # 'root://eoscms//eos/cms/store/cmst3/user/cmgtools/CMG/JPsiToMuMu_2MuPEtaFilter_7TeV-pythia6-evtgen-v2/Summer11LegDR-PU_S13_START53_LV6-v1/AODSIM/V5_B/PAT_CMG_V5_18_0/cmgTuple_685.root', # ] JpsiMC.name = 'JpsiMC' JpsiMC.triggers = triggers_jpsi JpsiMC.splitFactor = 750 # ######## TEST ################## # JpsiMC.files = JpsiMC.files[:10] # JpsiMC.splitFactor = 1 # ################################ selectedComponents = [JpsiMC]
#Load all analyzers from CMGTools.WMass.analyzers.CoreModule_53X_cff import * sequence = cfg.Sequence(CoreWZsequence) from CMGTools.H2TauTau.proto.samples.ewk import TTJets from CMGTools.H2TauTau.proto.samples.getFiles import getFiles TTJets.files = getFiles( '/TTJets_TuneZ2_7TeV-madgraph-tauola/Summer11LegDR-PU_S13_START53_LV6-v1/AODSIM/V5_B/PAT_CMG_V5_18_0', 'cmgtools', '.*root') TTJets.triggers = triggers_mu # TTJets.triggers = ["HLT_IsoMu24_v1","HLT_IsoMu24_v2","HLT_IsoMu24_v3","HLT_IsoMu24_v4","HLT_IsoMu24_v5","HLT_IsoMu24_v6","HLT_IsoMu24_v7",\ # "HLT_IsoMu24_v8","HLT_IsoMu24_v9","HLT_IsoMu24_v10","HLT_IsoMu24_v11","HLT_IsoMu24_v12","HLT_IsoMu24_v13","HLT_IsoMu24_v14",\ # "HLT_IsoMu24_eta2p1_v1","HLT_IsoMu24_eta2p1_v2","HLT_IsoMu24_eta2p1_v3","HLT_IsoMu24_eta2p1_v4","HLT_IsoMu24_eta2p1_v5",\ # "HLT_IsoMu24_eta2p1_v6","HLT_IsoMu24_eta2p1_v7","HLT_IsoMu24_eta2p1_v8" # ] selectedComponents = [TTJets] TTJets.splitFactor = 750 # TEST #TTJets.splitFactor = 1 #TTJets.files = TTJets.files[0:2] config = cfg.Config(components=selectedComponents, sequence=sequence) printComps(config.components, True) # cmsStage Tbars/WTreeProducer/WTreeProducer_tree.root /store/group/phys_smp/Wmass/perrozzi/ntuples/ntuples_2014_05_23_53X/SingleTop/Tbar_s
sequence = cfg.Sequence( [ genAna, jsonAna, triggerAna, vertexAna, WAna, WtreeProducer, ZAna, ZtreeProducer ] ) from CMGTools.H2TauTau.proto.samples.ewk import TTJets from CMGTools.H2TauTau.proto.samples.getFiles import getFiles TTJets.files = getFiles('/TTJets_TuneZ2_7TeV-madgraph-tauola/Fall11-PU_S6_START42_V14B-v2/AODSIM/V5_B/PAT_CMG_V5_6_0_B', 'cmgtools', '.*root') TTJets.triggers = ["HLT_IsoMu24_v1","HLT_IsoMu24_v2","HLT_IsoMu24_v3","HLT_IsoMu24_v4","HLT_IsoMu24_v5","HLT_IsoMu24_v6","HLT_IsoMu24_v7",\ "HLT_IsoMu24_v8","HLT_IsoMu24_v9","HLT_IsoMu24_v10","HLT_IsoMu24_v11","HLT_IsoMu24_v12","HLT_IsoMu24_v13","HLT_IsoMu24_v14",\ "HLT_IsoMu24_eta2p1_v1","HLT_IsoMu24_eta2p1_v2","HLT_IsoMu24_eta2p1_v3","HLT_IsoMu24_eta2p1_v4","HLT_IsoMu24_eta2p1_v5",\ "HLT_IsoMu24_eta2p1_v6","HLT_IsoMu24_eta2p1_v7","HLT_IsoMu24_eta2p1_v8" ] selectedComponents = [TTJets] TTJets.splitFactor = 750 # TEST # TTJets.splitFactor = 1 # TTJets.files = TTJets.files[0:2] config = cfg.Config( components = selectedComponents,
from CMGTools.H2TauTau.proto.samples.getFiles import getFiles ana = cfg.Analyzer( 'AnalysisTreeGenStudy', verbose = False, listOfBtagsAlgos = [ 'csv_tight', 'csv_medium', 'csv_loose', 'jp_tight', 'jp_medium', 'jp_loose', ] ) files = getFiles('/SMS-T2tt_FineBin_Mstop-225to1200_mLSP-0to1000_8TeV-Pythia6Z/Summer12-START52_V9_FSIM-v1/AODSIM/V5_B/PAT_CMG_V5_6_0_B/TOP/','lucieg', 'topTuple_.*root') #files = getFiles('/SMS-T2tt_FineBin_Mstop-225to1200_mLSP-0to1000_8TeV-Pythia6Z/Summer12-START52_V9_FSIM-v1/AODSIM/V5_B/PAT_CMG_V5_6_0_B/','cmgtools', 'cmgTuple_.*root')[0:10] T2tt = cfg.MCComponent( name = 'T2tt', files = files, xSection = 1., nGenEvents = 1, triggers = [], effCorrFactor = 1 ) selectedComponents = [T2tt]
sequence = cfg.Sequence( [ genAna, jsonAna, triggerAna, vertexAna, WAna, WtreeProducer, ZAna, ZtreeProducer ] ) from CMGTools.H2TauTau.proto.samples.ewk import TTJets from CMGTools.H2TauTau.proto.samples.getFiles import getFiles TTJets.files = getFiles('/T_TuneZ2_tW-channel-DR_7TeV-powheg-tauola/Summer11LegDR-PU_S13_START53_LV6-v1/AODSIM/V5_B/PAT_CMG_V5_18_0', 'cmgtools', '.*root') TTJets.triggers = triggers_mu TTJets.splitFactor = 100 ##################################################################3 TtW = copy.deepcopy(TTJets) TtW.files = getFiles('/T_TuneZ2_tW-channel-DR_7TeV-powheg-tauola/Summer11LegDR-PU_S13_START53_LV6-v1/AODSIM/V5_B/PAT_CMG_V5_18_0', 'cmgtools', '.*root') TtW.name = 'TtW' TbartW = copy.deepcopy(TTJets) TbartW.files = getFiles('/Tbar_TuneZ2_tW-channel-DR_7TeV-powheg-tauola/Summer11LegDR-PU_S13_START53_LV6-v1/AODSIM/V5_B/PAT_CMG_V5_18_0', 'cmgtools', '.*root') TbartW.name = 'TbartW' Tt = copy.deepcopy(TTJets) Tt.files = getFiles('/T_TuneZ2_t-channel_7TeV-powheg-tauola/Summer11LegDR-PU_S13_START53_LV6-v1/AODSIM/V5_B/PAT_CMG_V5_18_0', 'cmgtools', '.*root') Tt.name = 'Tt'
triggerBits={'SingleMu': triggers_mu}, ) ZtreeProducer = cfg.Analyzer('ZTreeProducer') genAna = cfg.Analyzer('GenParticleAnalyzerFSR', src='genParticlesPruned') sequence = cfg.Sequence([ genAna, jsonAna, triggerAna, vertexAna, WAna, WtreeProducer, ZAna, ZtreeProducer ]) from CMGTools.H2TauTau.proto.samples.qcd import QCD15, QCD30, QCD50, QCD80 from CMGTools.H2TauTau.proto.samples.getFiles import getFiles QCD15.files = getFiles( '/QCD_Pt-0to5_TuneZ2_7TeV_pythia6/Summer11LegDR-PU_S13_START53_LV6-v1/AODSIM/V5_B/PAT_CMG_V5_18_0', 'cmgtools', '.*root') QCD15.triggers = triggers_mu QCD0to5 = copy.deepcopy(QCD15) QCD0to5.files = getFiles( '/QCD_Pt-0to5_TuneZ2_7TeV_pythia6/Summer11LegDR-PU_S13_START53_LV6-v1/AODSIM/V5_B/PAT_CMG_V5_18_0', 'cmgtools', '.*root') QCD0to5.name = 'QCD0to5' QCD5to15 = copy.deepcopy(QCD15) QCD5to15.files = getFiles( '/QCD_Pt-5to15_TuneZ2_7TeV_pythia6/Summer11LegDR-PU_S13_START53_LV6-v1/AODSIM/V5_B/PAT_CMG_V5_18_0', 'cmgtools', '.*root') QCD5to15.name = 'QCD5to15'
iso=0.5, savegenp=False, verbose=True, triggerMap=pathsAndFilters) ZtreeProducer = cfg.Analyzer('ZTreeProducer') sequence = cfg.Sequence( [jsonAna, triggerAna, vertexAna, WAna, WtreeProducer, ZAna, ZtreeProducer]) from CMGTools.H2TauTau.proto.samples.getFiles import getFiles data_Run2011A_Nov8ReReco_v1 = cfg.DataComponent( name = 'data_Run2011A_Nov8ReReco_v1', files = getFiles('/SingleMu/Run2011A-08Nov2011-v1/AOD/V5_B/PAT_CMG_V5_6_0_B', 'cmgtools', '.*root'), intLumi = 4749.90, triggers = ["HLT_IsoMu24_v1","HLT_IsoMu24_v2","HLT_IsoMu24_v3","HLT_IsoMu24_v4","HLT_IsoMu24_v5","HLT_IsoMu24_v6","HLT_IsoMu24_v7",\ "HLT_IsoMu24_v8","HLT_IsoMu24_v9","HLT_IsoMu24_v10","HLT_IsoMu24_v11","HLT_IsoMu24_v12","HLT_IsoMu24_v13","HLT_IsoMu24_v14",\ "HLT_IsoMu24_eta2p1_v1","HLT_IsoMu24_eta2p1_v2","HLT_IsoMu24_eta2p1_v3","HLT_IsoMu24_eta2p1_v4","HLT_IsoMu24_eta2p1_v5",\ "HLT_IsoMu24_eta2p1_v6","HLT_IsoMu24_eta2p1_v7","HLT_IsoMu24_eta2p1_v8" ], json = '/afs/cern.ch/cms/CAF/CMSCOMM/COMM_DQM/certification/Collisions11/7TeV/Reprocessing/Cert_160404-180252_7TeV_ReRecoNov08_Collisions11_JSON.txt' ) data_Run2011B_Nov19ReReco_v1 = cfg.DataComponent( name = 'data_Run2011B_Nov19ReReco_v1', files = getFiles('/SingleMu/Run2011B-19Nov2011-v1/AOD/V5_B/PAT_CMG_V5_6_0_B', 'cmgtools', '.*root'), intLumi = 4749.90, triggers = ["HLT_IsoMu24_v1","HLT_IsoMu24_v2","HLT_IsoMu24_v3","HLT_IsoMu24_v4","HLT_IsoMu24_v5","HLT_IsoMu24_v6","HLT_IsoMu24_v7",\ "HLT_IsoMu24_v8","HLT_IsoMu24_v9","HLT_IsoMu24_v10","HLT_IsoMu24_v11","HLT_IsoMu24_v12","HLT_IsoMu24_v13","HLT_IsoMu24_v14",\
genAna, jsonAna, triggerAna, vertexAna, WAna, WtreeProducer, # ZAna, # ZtreeProducer, ] ) from CMGTools.H2TauTau.proto.samples.ewk import WJets from CMGTools.H2TauTau.proto.samples.getFiles import getFiles # WJets.files = getFiles('/WJetsToLL_TuneZ2_M-50_7TeV-madgraph-tauola/Fall11-PU_S6_START42_V14B-v1/AODSIM/V5_B/PAT_CMG_V5_6_0_B', 'cmgtools', '.*root') # WJets.files = getFiles('/WJetsToLL_M-50_7TeV-madgraph-pythia6-tauola/Summer11LegDR-PU_S13_START53_LV6-v1/AODSIM/V5_B/PAT_CMG_V5_18_0', 'cmgtools', '.*root') WJets.files = getFiles('/WplusToMuNu_M-50To250_ew-BMNNP_7TeV-powheg-pythia8/Summer11LegDR-PU_S13_START53_LV6-v1/AODSIM/V5_B/PAT_CMG_V5_18_0', 'cmgtools', '.*root') WJets.triggers = triggers_mu WJets.splitFactor = 900 WJets.name = 'WPlus1' WJets2 = copy.deepcopy(WJets) WJets2.name = 'WPlus2' WJets2.files = getFiles('/WplusToMuNu_M-50To250_ew-BMNNP_7TeV-powheg-pythia8/Summer11LegDR-PU_S13_START53_LV6-v3/AODSIM/V5_B/PAT_CMG_V5_18_0', 'cmgtools', '.*root') WJets3 = copy.deepcopy(WJets) WJets3.name = 'WPlus3' WJets3.files = getFiles('/WplusToMuNu_M-50To250_ew-BMNNP_7TeV-powheg-pythia8/Summer11LegDR-PU_S13_START53_LV6-v7/AODSIM/V5_B/PAT_CMG_V5_18_0', 'cmgtools', '.*root') WJets4 = copy.deepcopy(WJets) WJets4.name = 'WPlus4' WJets4.files = getFiles('/WplusToMuNu_M-50To250_ew-BMNNP_7TeV-powheg-pythia8/Summer11LegDR-PU_S13_START53_LV6-v4/AODSIM/V5_B/PAT_CMG_V5_18_0', 'cmgtools', '.*root')
sequence = cfg.Sequence([ genAna, jsonAna, triggerAna, vertexAna, WAna, # WtreeProducer, ZAna, ZtreeProducer ]) from CMGTools.H2TauTau.proto.samples.ewk import DYJets from CMGTools.H2TauTau.proto.samples.getFiles import getFiles DYJets.files = getFiles( '/DYToMuMu_M-20_CT10_TuneZ2_7TeV-powheg-pythia/Fall11-PU_S6_START44_V9B-v1/AODSIM/V5_B/PAT_CMG_V5_6_0_B_44X', 'cmgtools', '.*999.root') #DYJets.files = getFiles('/DYJetsToLL_TuneZ2_M-50_7TeV-madgraph-tauola/Fall11-PU_S6_START44_V9B-v1/AODSIM/V5_B/PAT_CMG_V5_6_0_B', 'cmgtools', '.*999.root') #/eos/cms/store/cmst3/user/cmgtools/CMG/DYToTauTau_M-20_CT10_TuneZ2_7TeV-powheg-pythia-tauola/Fall11-PU_S6_START44_V9B-v1/AODSIM/V5_B/V5_6_0_B_44X #DYJets.files = getFiles('/DYToTauTau_M-20_CT10_TuneZ2_7TeV-powheg-pythia-tauola/Fall11-PU_S6_START44_V9B-v1/AODSIM/V5_B/PAT_CMG_V5_6_0_B_44X', 'cmgtools', '.*root') #DYJets.files = getFiles('/DYToTauTau_M-20_CT10_TuneZ2_7TeV-powheg-pythia-tauola/Fall11-PU_S6_START44_V9B-v1/AODSIM/V5_B/PAT_CMG_V5_6_0_B_44X_2nd', 'cmgtools', '.*root') #DYJets.files = getFiles('/DYJetsToLL_TuneZ2_M-50_7TeV-madgraph-tauola/Fall11-PU_S6_START44_V9B-v1/AODSIM/V5_B/PAT_CMG_V5_6_0_B', 'cmgtools', '.*root') DYJets.triggers = ["HLT_IsoMu24_v1","HLT_IsoMu24_v2","HLT_IsoMu24_v3","HLT_IsoMu24_v4","HLT_IsoMu24_v5","HLT_IsoMu24_v6","HLT_IsoMu24_v7",\ "HLT_IsoMu24_v8","HLT_IsoMu24_v9","HLT_IsoMu24_v10","HLT_IsoMu24_v11","HLT_IsoMu24_v12","HLT_IsoMu24_v13","HLT_IsoMu24_v14",\ "HLT_IsoMu24_eta2p1_v1","HLT_IsoMu24_eta2p1_v2","HLT_IsoMu24_eta2p1_v3","HLT_IsoMu24_eta2p1_v4","HLT_IsoMu24_eta2p1_v5",\ "HLT_IsoMu24_eta2p1_v6","HLT_IsoMu24_eta2p1_v7","HLT_IsoMu24_eta2p1_v8" ] selectedComponents = [DYJets] DYJets.splitFactor = 1000
from CMGTools.H2TauTau.proto.samples.getFiles import getFiles from CMGTools.H2TauTau.proto.samples.higgs import * from CMGTools.H2TauTau.proto.samples.triggers_tauMu import data_triggers_2011A, data_triggers_2011B, mc_triggers_fall11 user = '******' filePattern = 'tauMu.*fullsel.*root' # Higgs Summer11 ---------------------------------------------------------------------------- # not available yet HiggsVBF125.files = getFiles( '/H2TAUTAU/Sync/VBF/AOD/PAT_CMG_BleedMay23/TAUMU_May26', user, filePattern) HiggsVBF125.nGenEvents = 198612 HiggsGGH125.files = getFiles( '/H2TAUTAU/Sync/GluGlu/AOD/PAT_CMG_BleedMay23/TAUMU_May26', user, filePattern) HiggsGGH125.nGenEvents = 198612 MC = [] for mc in mc_higgs: mc.triggers = ["HLT_IsoMu15_eta2p1_LooseIsoPFTau20_v1"] MC.append(mc) if __name__ == '__main__': def printSamples(sams): for sam in sams: print print sam
genAna, jsonAna, triggerAna, vertexAna, # WAna, # WtreeProducer, ZAna, ZtreeProducer, ]) from CMGTools.H2TauTau.proto.samples.ewk import DYJets from CMGTools.H2TauTau.proto.samples.getFiles import getFiles # DYJets.files = getFiles('/DYJetsToLL_TuneZ2_M-50_7TeV-madgraph-tauola/Fall11-PU_S6_START42_V14B-v1/AODSIM/V5_B/PAT_CMG_V5_6_0_B', 'cmgtools', '.*root') DYJets.files = getFiles( '/DYJetsToLL_M-50_TuneZ2Star_8TeV-madgraph-tarball/Summer12_DR53X-PU_S10_START53_V7A-v1/AODSIM/V5_B/PAT_CMG_V5_17_0', 'cmgtools', '.*root') DYJets.triggers = triggers_mu DYJets.splitFactor = 750 DYJets2 = copy.deepcopy(DYJets) # selectedComponents = [DYJets,DYJets2] # DYJets.files = DYJets.files[:1250] # DYJets2.files = DYJets2.files[1250:] # ONE AT THE TIME selectedComponents = [DYJets] # selectedComponents = [DYJets2]
jsonAna, triggerAna, vertexAna, WAna, WtreeProducer, ZAna, ZtreeProducer ] ) from CMGTools.H2TauTau.proto.samples.getFiles import getFiles data_Run2011A_12Oct2013_v1 = cfg.DataComponent( name = 'data_Run2011A_12Oct2013_v1', files = getFiles('/SingleMu/Run2011A-12Oct2013-v1/AOD/PAT_CMG_V5_18_0', 'cmgtools', '.*root'), # files = ['file:/afs/cern.ch/work/p/perrozzi/private/git/v5_18_0/CMSSW_5_3_14/src/CMGTools/WMass/cfg/test/cmgTuple.root'], intLumi = 4749.90, triggers = triggers_mu, json = '/afs/cern.ch/cms/CAF/CMSCOMM/COMM_DQM/certification/Collisions11/7TeV/Reprocessing/Cert_160404-180252_7TeV_ReRecoNov08_Collisions11_JSON_v2.txt' ) data_Run2011B_12Oct2013_v1 = cfg.DataComponent( name = 'data_Run2011B_12Oct2013_v1', files = getFiles('/SingleMu/Run2011B-12Oct2013-v1/AOD/PAT_CMG_V5_18_0', 'cmgtools', '.*root'), intLumi = 4749.90, triggers = triggers_mu, json = '/afs/cern.ch/cms/CAF/CMSCOMM/COMM_DQM/certification/Collisions11/7TeV/Reprocessing/Cert_160404-180252_7TeV_ReRecoNov08_Collisions11_JSON_v2.txt' ) data_Run2011AB_12Oct2013_v1 = cfg.DataComponent(
# # WJets.files = getFiles('/WJetsToLNu_TuneZ2_7TeV-madgraph-tauola/Fall11-PU_S6_START42_V14B-v1/AODSIM/V5_B/PAT_CMG_V5_6_0_B', 'cmgtools', '.*root') # WJets.files = getFiles('/WJetsToLNu_TuneZ2_7TeV-madgraph-tauola/Fall11-PU_S6_START44_V9B-v1/AODSIM/V5_B/PAT_CMG_V5_6_0_B', 'cmgtools', '.*root') # WJets.triggers = ["HLT_IsoMu24_v1","HLT_IsoMu24_v2","HLT_IsoMu24_v3","HLT_IsoMu24_v4","HLT_IsoMu24_v5","HLT_IsoMu24_v6","HLT_IsoMu24_v7",\ # "HLT_IsoMu24_v8","HLT_IsoMu24_v9","HLT_IsoMu24_v10","HLT_IsoMu24_v11","HLT_IsoMu24_v12","HLT_IsoMu24_v13","HLT_IsoMu24_v14",\ # "HLT_IsoMu24_eta2p1_v1","HLT_IsoMu24_eta2p1_v2","HLT_IsoMu24_eta2p1_v3","HLT_IsoMu24_eta2p1_v4","HLT_IsoMu24_eta2p1_v5",\ # "HLT_IsoMu24_eta2p1_v6","HLT_IsoMu24_eta2p1_v7","HLT_IsoMu24_eta2p1_v8" # ] # selectedComponents = [WJets] # WJets.splitFactor = 1500 # TEST WJets1 = copy.deepcopy(WJets) WJets1.files = getFiles( '/WJetsToLNu_TuneZ2Star_8TeV-madgraph-tarball/Summer12_DR53X-PU_S10_START53_V7A-v2/AODSIM/V5_B/PAT_CMG_V5_18_0_NewTauID', 'cmgtools', '.*root') WJets1.triggers = triggers_mu # WJets1.files = WJets1.files[:1600] WJets1.splitFactor = 1000 WJets1.name = 'WJets1' WJets2 = copy.deepcopy(WJets) WJets2.files = getFiles( '/WJetsToLNu_TuneZ2Star_8TeV-madgraph-tarball/Summer12_DR53X-PU_S10_START53_V7A-v2/AODSIM/V5_B/PAT_CMG_V5_18_0_NewTauID', 'cmgtools', '.*root') WJets2.triggers = triggers_mu WJets2.files = WJets2.files[1600:] WJets2.splitFactor = 1000 WJets2.name = 'WJets2' selectedComponents = [WJets1, WJets2]
#Load all analyzers from CMGTools.WMass.analyzers.CoreModule_53X_cff import * sequence = cfg.Sequence(CoreWZsequence) from CMGTools.H2TauTau.proto.samples.ewk import DYJets from CMGTools.H2TauTau.proto.samples.getFiles import getFiles # DYJets.files = getFiles('/DYJetsToLL_TuneZ2_M-50_7TeV-madgraph-tauola/Fall11-PU_S6_START42_V14B-v1/AODSIM/V5_B/PAT_CMG_V5_6_0_B', 'cmgtools', '.*root') DYJets.files = getFiles('/DYJetsToLL_M-50_7TeV-madgraph-pythia6-tauola/Summer11LegDR-PU_S13_START53_LV6-v1/AODSIM/V5_B/PAT_CMG_V5_18_0', 'cmgtools', '.*root') DYJets.triggers = triggers_mu DYJets.splitFactor = 750 DYJets2 = copy.deepcopy(DYJets) # selectedComponents = [DYJets,DYJets2] # DYJets.files = DYJets.files[:3750] # DYJets2.files = DYJets2.files[3750:] # ONE AT THE TIME selectedComponents = [DYJets] # selectedComponents = [DYJets2] # # TEST # selectedComponents = [DYJets] # DYJets.files = DYJets.files[:10] # DYJets.splitFactor = 1
sequence = cfg.Sequence( [ genAna, jsonAna, triggerAna, vertexAna, WAna, WtreeProducer, ZAna, ZtreeProducer, ] ) from CMGTools.H2TauTau.proto.samples.ewk import DYJets from CMGTools.H2TauTau.proto.samples.getFiles import getFiles # DYJets.files = getFiles('/DYJetsToLL_TuneZ2_M-50_7TeV-madgraph-tauola/Fall11-PU_S6_START42_V14B-v1/AODSIM/V5_B/PAT_CMG_V5_6_0_B', 'cmgtools', '.*root') DYJets.files = getFiles('/DYJetsToLL_M-50_7TeV-madgraph-pythia6-tauola/Summer11LegDR-PU_S13_START53_LV6-v1/AODSIM/V5_B/PAT_CMG_V5_18_0', 'cmgtools', '.*root') DYJets.triggers = triggers_mu DYJets.splitFactor = 750 DYJets2 = copy.deepcopy(DYJets) selectedComponents = [DYJets,DYJets2] DYJets.files = DYJets.files[:3750] DYJets2.files = DYJets2.files[3750:] # ONE AT THE TIME # selectedComponents = [DYJets] selectedComponents = [DYJets2]
from CMGTools.H2TauTau.proto.samples.run2012.higgs import * from CMGTools.H2TauTau.proto.samples.run2012.triggers_tauMu import data_triggers, mc_triggers user = '******' aod = 'V5' pat = 'PAT_CMG_V5_4_0' htt = 'TAUMU_Type1MET' filePattern = 'tauMu.*fullsel.*root' cache = True # Data -------------------------------------------------------------------------------- data_Run2012A.files = getFiles( '/TauPlusX/Run2012A-PromptReco-v1/RECO/{pat}_runrange_190605-194076/{htt}'. format(pat=pat, htt=htt), user, filePattern, cache) data_Run2012B_start_194479.files = getFiles( '/TauPlusX/Run2012B-PromptReco-v1/RECO/{pat}_runrange_start-194479/{htt}/Group' .format(pat=pat, htt=htt), user, filePattern, cache) data_Run2012B_194480_195016.files = getFiles( '/TauPlusX/Run2012B-PromptReco-v1/AOD/{pat}_runrange_194480-195016/{htt}/Group' .format(pat=pat, htt=htt), user, filePattern, cache) data_Run2012B_195017_195947.files = getFiles( '/TauPlusX/Run2012B-PromptReco-v1/AOD/{pat}_runrange_195017-195947/{htt}'. format(pat=pat, htt=htt), user, filePattern, cache) data_Run2012B_195948_196509.files = getFiles(
jsonAna, triggerAna, vertexAna, # WAna, # WtreeProducer, ZAna, ZtreeProducer, ]) from CMGTools.H2TauTau.proto.samples.ewk import DYJets from CMGTools.H2TauTau.proto.samples.getFiles import getFiles # DYJets.files = getFiles('/DYJetsToLL_TuneZ2_M-50_7TeV-madgraph-tauola/Fall11-PU_S6_START42_V14B-v1/AODSIM/V5_B/PAT_CMG_V5_6_0_B', 'cmgtools', '.*root') # DYJets.files = getFiles('/DYJetsToLL_M-50_7TeV-madgraph-pythia6-tauola/Summer11LegDR-PU_S13_START53_LV6-v1/AODSIM/V5_B/PAT_CMG_V5_18_0', 'cmgtools', '.*root') DYJets.files = getFiles( '/DYToMuMu_M-50To250_ew-BMNNP_7TeV-powheg/Summer11LegDR-PU_S13_START53_LV6-v1/AODSIM/V5_B/PAT_CMG_V5_18_0', 'cmgtools', '.*root') DYJets.triggers = triggers_mu DYJets.splitFactor = 900 DYJets2 = copy.deepcopy(DYJets) DYJets2.name = 'DYJets2' DYJets2.files = getFiles( '/DYToMuMu_M-50To250_ew-BMNNP_7TeV-powheg-pythia8/Summer11LegDR-PU_S13_START53_LV6-v1/AODSIM/V5_B/PAT_CMG_V5_18_0', 'cmgtools', '.*root') DYJets3 = copy.deepcopy(DYJets) DYJets3.name = 'DYJets3' DYJets3.files = getFiles( '/DYToMuMu_M-50To250_ew-BMNNP_7TeV-powheg-pythia8/Summer11LegDR-PU_S13_START53_LV6-v2/AODSIM/V5_B/PAT_CMG_V5_18_0', 'cmgtools', '.*root')
import copy import os import CMGTools.RootTools.fwlite.Config as cfg from CMGTools.RootTools.fwlite.Config import printComps from CMGTools.H2TauTau.proto.samples.getFiles import getFiles from CMGTools.RootTools.RootTools import * WNJetsAna = cfg.Analyzer('WNJetsAnalyzer', verbose=False) ######################################################################################### WJets = cfg.MCComponent( name='WJets', files=getFiles( '/WJetsToLNu_TuneZ2_7TeV-madgraph-tauola/Fall11-PU_S6_START42_V14B-v1/AODSIM/V5_B/PAT_CMG_V5_6_0_B', 'cmgtools', 'cmgTuple.*root'), xSection=31314., nGenEvents=1, triggers=[], effCorrFactor=1) ######################################################################################### selectedComponents = [WJets] sequence = cfg.Sequence([ WNJetsAna, ]) comp = WJets
from CMGTools.H2TauTau.proto.samples.getFiles import getFiles from CMGTools.H2TauTau.proto.samples.triggers_tauEle import data_triggers_2011A, data_triggers_2011B, mc_triggers_fall11 user = '******' filePattern = 'tauEle_fullsel_tree_CMG.*root' ## --- simulation: bkg --- + --- + --- + --- + --- + --- + --- + --- + --- from CMGTools.H2TauTau.proto.samples.ewk import * # NB this does not contain diboson samples DYJets.files = getFiles('/DYJetsToLL_TuneZ2_M-50_7TeV-madgraph-tauola/Fall11-PU_S6_START42_V14B-v1/AODSIM/V5/PAT_CMG_V5_4_1/H2TAUTAU_PGJun02/', user, filePattern) # https://savannah.cern.ch/task/?30143 # 16 bad files out of 2751 total (0.6%), mostly pattuples, by now I don't care DYJets.nGenEvents = 36209629 DYJets.triggers = mc_triggers_fall11 # DYJets.fakes = True # what is this? # DYJets.splitFactor = 40 WJets.files = getFiles('/WJetsToLNu_TuneZ2_7TeV-madgraph-tauola/Fall11-PU_S6_START42_V14B-v1/AODSIM/V5/HTTSKIM5/PAT_CMG_V5_4_1/H2TAUTAU_PGJun02/', user, filePattern) # https://savannah.cern.ch/task/?30145 # 2 bad pattuples over 907 files, the cmg tuples are there => ok WJets.nGenEvents = 81345381 WJets.triggers = mc_triggers_fall11 # WJets.splitFactor = 10 TTJets.files = getFiles('/TTJets_TuneZ2_7TeV-madgraph-tauola/Fall11-PU_S6_START42_V14B-v2/AODSIM/V5/HTTSKIM1/PAT_CMG_V5_4_1/H2TAUTAU_PGJun02/', user, filePattern) # https://savannah.cern.ch/task/?30144 # 3 bad files out of 5365 => I don't care TTJets.nGenEvents = 59613991 TTJets.triggers = mc_triggers_fall11
from CMGTools.H2TauTau.proto.samples.run2012.diboson import * from CMGTools.H2TauTau.proto.samples.run2012.higgs import * from CMGTools.H2TauTau.proto.samples.run2012.triggers_tauMu import data_triggers, mc_triggers user = '******' aod = 'V5' pat = 'PAT_CMG_V5_4_0' htt = 'TAUMU_Type1MET' filePattern = 'tauMu.*fullsel.*root' cache = True # Data -------------------------------------------------------------------------------- data_Run2012A.files = getFiles('/TauPlusX/Run2012A-PromptReco-v1/RECO/{pat}_runrange_190605-194076/{htt}'.format( pat=pat, htt=htt), user, filePattern, cache) data_Run2012B_start_194479.files = getFiles('/TauPlusX/Run2012B-PromptReco-v1/RECO/{pat}_runrange_start-194479/{htt}/Group'.format( pat=pat, htt=htt), user, filePattern, cache) data_Run2012B_194480_195016.files = getFiles('/TauPlusX/Run2012B-PromptReco-v1/AOD/{pat}_runrange_194480-195016/{htt}/Group'.format(pat=pat, htt=htt), user, filePattern, cache) data_Run2012B_195017_195947.files = getFiles('/TauPlusX/Run2012B-PromptReco-v1/AOD/{pat}_runrange_195017-195947/{htt}'.format(pat=pat, htt=htt), user, filePattern, cache) data_Run2012B_195948_196509.files = getFiles('/TauPlusX/Run2012B-PromptReco-v1/AOD/{pat}_runrange_195948-196509/{htt}'.format(pat=pat, htt=htt), 'cmgtools', filePattern, cache) # Z Data -------------------------------------------------------------------------------- # zdata_Run2012A.files = getFiles('/DoubleMu/Run2012A-PromptReco-v1/RECO/{pat}_runrange_190605-194076'.format( pat=pat, htt=htt), 'cmgtools', 'cmgTuple.*root') zdata_Run2012A.intLumi = 713.356 # recorded, obtained with lumiCalc2.py
from CMGTools.H2TauTau.proto.samples.getFiles import getFiles from CMGTools.H2TauTau.proto.samples.higgs import * from CMGTools.H2TauTau.proto.samples.triggers_tauMu import data_triggers_2011A, data_triggers_2011B, mc_triggers_fall11 user = '******' filePattern = 'tauMu.*fullsel.*root' # Higgs Summer11 ---------------------------------------------------------------------------- # not available yet HiggsVBF125.files = getFiles('/H2TAUTAU/Sync/VBF/AOD/PAT_CMG/TAUMU', user, filePattern) HiggsVBF125.nGenEvents = 198612 HiggsGGH125.files = getFiles('/H2TAUTAU/Sync/GluGlu/AOD/PAT_CMG/TAUMU', user, filePattern) HiggsGGH125.nGenEvents = 198612 MC = [] for mc in mc_higgs: mc.triggers = ["HLT_IsoMu15_eta2p1_LooseIsoPFTau20_v1"] MC.append(mc) if __name__ == '__main__': def printSamples(sams): for sam in sams: print print sam
sequence = cfg.Sequence( [ genAna, jsonAna, triggerAna, vertexAna, WAna, WtreeProducer, ZAna, ZtreeProducer ] ) from CMGTools.H2TauTau.proto.samples.diboson import WW, ZZ, WZ from CMGTools.H2TauTau.proto.samples.getFiles import getFiles WW.files = getFiles('/WW_TuneZ2_7TeV_pythia6_tauola/Fall11-PU_S6_START42_V14B-v1/AODSIM/V5/PAT_CMG_V5_4_1', 'cmgtools', '.*root') WW.triggers = ["HLT_IsoMu24_v1","HLT_IsoMu24_v2","HLT_IsoMu24_v3","HLT_IsoMu24_v4","HLT_IsoMu24_v5","HLT_IsoMu24_v6","HLT_IsoMu24_v7",\ "HLT_IsoMu24_v8","HLT_IsoMu24_v9","HLT_IsoMu24_v10","HLT_IsoMu24_v11","HLT_IsoMu24_v12","HLT_IsoMu24_v13","HLT_IsoMu24_v14",\ "HLT_IsoMu24_eta2p1_v1","HLT_IsoMu24_eta2p1_v2","HLT_IsoMu24_eta2p1_v3","HLT_IsoMu24_eta2p1_v4","HLT_IsoMu24_eta2p1_v5",\ "HLT_IsoMu24_eta2p1_v6","HLT_IsoMu24_eta2p1_v7","HLT_IsoMu24_eta2p1_v8" ] WZ.files = getFiles('/WZ_TuneZ2_7TeV_pythia6_tauola/Fall11-PU_S6_START42_V14B-v1/AODSIM/V5/PAT_CMG_V5_4_1', 'cmgtools', '.*root') WZ.triggers = ["HLT_IsoMu24_v1","HLT_IsoMu24_v2","HLT_IsoMu24_v3","HLT_IsoMu24_v4","HLT_IsoMu24_v5","HLT_IsoMu24_v6","HLT_IsoMu24_v7",\ "HLT_IsoMu24_v8","HLT_IsoMu24_v9","HLT_IsoMu24_v10","HLT_IsoMu24_v11","HLT_IsoMu24_v12","HLT_IsoMu24_v13","HLT_IsoMu24_v14",\ "HLT_IsoMu24_eta2p1_v1","HLT_IsoMu24_eta2p1_v2","HLT_IsoMu24_eta2p1_v3","HLT_IsoMu24_eta2p1_v4","HLT_IsoMu24_eta2p1_v5",\ "HLT_IsoMu24_eta2p1_v6","HLT_IsoMu24_eta2p1_v7","HLT_IsoMu24_eta2p1_v8" ] ZZ.files = getFiles('/ZZ_TuneZ2_7TeV_pythia6_tauola/Fall11-PU_S6_START42_V14B-v1/AODSIM/V5/PAT_CMG_V5_4_1', 'cmgtools', '.*root') ZZ.triggers = ["HLT_IsoMu24_v1","HLT_IsoMu24_v2","HLT_IsoMu24_v3","HLT_IsoMu24_v4","HLT_IsoMu24_v5","HLT_IsoMu24_v6","HLT_IsoMu24_v7",\
from CMGTools.H2TauTau.proto.samples.run2012.diboson import * from CMGTools.H2TauTau.proto.samples.run2012.higgs import * from CMGTools.H2TauTau.proto.samples.run2012.triggers_tauMu import data_triggers, mc_triggers user = '******' aod = 'V5' pat = 'PAT_CMG_V5_4_0_NewType1MET' htt = 'TAUMU_OldSVFit' filePattern = 'tauMu.*fullsel.*root' cache = True # Data -------------------------------------------------------------------------------- data_Run2012A.files = getFiles('/TauPlusX/Run2012A-PromptReco-v1/RECO/{pat}/{htt}'.format( pat=pat, htt=htt), user, filePattern, cache) data_Run2012B_start_196509.files = getFiles('/TauPlusX/Run2012B-PromptReco-v1/AOD/{pat}_runrange_start-196509/{htt}'.format( pat=pat, htt=htt), user, filePattern, cache) # Embedded samples -------------------------------------------------------------------- embed_Run2012A.files = getFiles('/DoubleMu/StoreResults-DoubleMu_2012A_PromptReco_v1_embedded_trans1_tau116_ptmu1_13had1_17_v2-f456bdbb960236e5c696adfe9b04eaae/USER/{pat}/{htt}'.format( pat=pat, htt=htt), user, filePattern, cache) ## embed_Run2012A_Up.files = getFiles('/DoubleMu/StoreResults-DoubleMu_2012A_PromptReco_v1_embedded_trans1_tau116_ptmu1_13had1_17_v2-f456bdbb960236e5c696adfe9b04eaae/USER/{pat}/{htt}_Up'.format( pat=pat, htt=htt), user, filePattern, cache) ## embed_Run2012A_Down.files = getFiles('/DoubleMu/StoreResults-DoubleMu_2012A_PromptReco_v1_embedded_trans1_tau116_ptmu1_13had1_17_v2-f456bdbb960236e5c696adfe9b04eaae/USER/{pat}/{htt}_Down'.format( pat=pat, htt=htt), user, filePattern, cache) embed_Run2012B_193752_195135.files = getFiles('/DoubleMu/StoreResults-DoubleMu_2012B_PromptReco_v1_Run193752to195135_embedded_trans1_tau116_ptmu1_13had1_17_v2-f456bdbb960236e5c696adfe9b04eaae/USER/{pat}/{htt}'.format( pat=pat, htt=htt), user, filePattern, cache) ## embed_Run2012B_193752_195135_Up.files = getFiles('/DoubleMu/StoreResults-DoubleMu_2012B_PromptReco_v1_Run193752to195135_embedded_trans1_tau116_ptmu1_13had1_17_v2-f456bdbb960236e5c696adfe9b04eaae/USER/{pat}/{htt}_Up'.format( pat=pat, htt=htt), user, filePattern, cache) ## embed_Run2012B_193752_195135_Down.files = getFiles('/DoubleMu/StoreResults-DoubleMu_2012B_PromptReco_v1_Run193752to195135_embedded_trans1_tau116_ptmu1_13had1_17_v2-f456bdbb960236e5c696adfe9b04eaae/USER/{pat}/{htt}_Down'.format( pat=pat, htt=htt), user, filePattern, cache) embed_Run2012B_195147_196070.files = getFiles('/DoubleMu/StoreResults-DoubleMu_2012B_PromptReco_v1_Run195147to196070_embedded_trans1_tau116_ptmu1_13had1_17_v2-f456bdbb960236e5c696adfe9b04eaae/USER/{pat}/{htt}'.format( pat=pat, htt=htt), user, filePattern, cache)
triggerAna, vertexAna, # WAna, # WtreeProducer, ZAna, ZtreeProducer ] ) from CMGTools.H2TauTau.proto.samples.getFiles import getFiles data_Run2011A_Nov8ReReco_v1 = cfg.DataComponent( name = 'data_Run2011A_Nov8ReReco_v1', # files = getFiles('/MuOnia/Run2011A-12Oct2013-v1/AOD/PAT_CMG_V5_18_0', 'cmgtools', '.*root'), files = getFiles('/MuOnia/Run2011A-12Oct2013-v1/AOD/PAT_CMG_V5_18_0/JpsiRefit', 'cmgtools', '.*root'), intLumi = 4749.90, # triggers = ["HLT_IsoMu24_v1","HLT_IsoMu24_v2","HLT_IsoMu24_v3","HLT_IsoMu24_v4","HLT_IsoMu24_v5","HLT_IsoMu24_v6","HLT_IsoMu24_v7",\ # "HLT_IsoMu24_v8","HLT_IsoMu24_v9","HLT_IsoMu24_v10","HLT_IsoMu24_v11","HLT_IsoMu24_v12","HLT_IsoMu24_v13","HLT_IsoMu24_v14",\ # "HLT_IsoMu24_eta2p1_v1","HLT_IsoMu24_eta2p1_v2","HLT_IsoMu24_eta2p1_v3","HLT_IsoMu24_eta2p1_v4","HLT_IsoMu24_eta2p1_v5",\ # "HLT_IsoMu24_eta2p1_v6","HLT_IsoMu24_eta2p1_v7","HLT_IsoMu24_eta2p1_v8" # ], triggers = triggers_jpsi # +triggers_upsilon , json = '/afs/cern.ch/cms/CAF/CMSCOMM/COMM_DQM/certification/Collisions11/7TeV/Reprocessing/Cert_160404-180252_7TeV_ReRecoNov08_Collisions11_JSON_v2.txt' ) data_Run2011B_Nov19ReReco_v1 = cfg.DataComponent( name = 'data_Run2011B_Nov19ReReco_v1', # files = getFiles('/MuOnia/Run2011B-12Oct2013-v1/AOD/PAT_CMG_V5_18_0', 'cmgtools', '.*root'),
'FatJetsTreeAnalyzer', verbose = False, listOfFatJetAlgos = [ 'aktRecluster0p7Hadronic', 'aktRecluster0p8Hadronic', 'aktRecluster0p9Hadronic', 'aktRecluster1p0Hadronic', 'aktRecluster1p25Hadronic', 'aktRecluster1p5Hadronic', 'aktRecluster1p75Hadronic', ], ) filesT2tt = getFiles('/SMS-T2tt_FineBin_Mstop-225to1200_mLSP-0to1000_8TeV-Pythia6Z/Summer12-START52_V9_FSIM-v1/AODSIM/V5_B/PAT_CMG_V5_6_0_B/TOP/', 'lucieg', 'topTuple_.*root')[1:2] T2tt = cfg.MCComponent( name = 'T2tt', files = filesT2tt, xSection = 1., nGenEvents = 4500, triggers = [], effCorrFactor = 1, intLumi = 15.0) #filesQCDHT100To250 = getFiles('/QCD_HT-100To250_TuneZ2star_8TeV-madgraph-pythia/Summer12-PU_S7_START52_V9-v1/AODSIM/V5_B/PAT_CMG_V5_6_0_B/TOP/SKIMDiJetMET','lucieg', 'skim_.*root') filesQCDHT100To250 = getFiles('/QCD_HT-100To250_TuneZ2star_8TeV-madgraph-pythia/Summer12-PU_S7_START52_V9-v1/AODSIM/V5_B/PAT_CMG_V5_6_0_B/TOP/','lucieg', 'topTuple_.*root')[1:2] QCDHT100To250 = cfg.MCComponent(
from CMGTools.H2TauTau.proto.samples.run2012.higgs import * from CMGTools.H2TauTau.proto.samples.run2012.triggers_tauMu import data_triggers, mc_triggers user = '******' aod = 'V5' pat = 'PAT_CMG_V5_4_0_NewType1MET' htt = 'TAUMU_OldSVFit' filePattern = 'tauMu.*fullsel.*root' cache = True # Data -------------------------------------------------------------------------------- data_Run2012A.files = getFiles( '/TauPlusX/Run2012A-PromptReco-v1/RECO/{pat}/{htt}'.format(pat=pat, htt=htt), user, filePattern, cache) data_Run2012B_start_196509.files = getFiles( '/TauPlusX/Run2012B-PromptReco-v1/AOD/{pat}_runrange_start-196509/{htt}'. format(pat=pat, htt=htt), user, filePattern, cache) # Embedded samples -------------------------------------------------------------------- embed_Run2012A.files = getFiles( '/DoubleMu/StoreResults-DoubleMu_2012A_PromptReco_v1_embedded_trans1_tau116_ptmu1_13had1_17_v2-f456bdbb960236e5c696adfe9b04eaae/USER/{pat}/{htt}' .format(pat=pat, htt=htt), user, filePattern, cache) ## embed_Run2012A_Up.files = getFiles('/DoubleMu/StoreResults-DoubleMu_2012A_PromptReco_v1_embedded_trans1_tau116_ptmu1_13had1_17_v2-f456bdbb960236e5c696adfe9b04eaae/USER/{pat}/{htt}_Up'.format( pat=pat, htt=htt), user, filePattern, cache) ## embed_Run2012A_Down.files = getFiles('/DoubleMu/StoreResults-DoubleMu_2012A_PromptReco_v1_embedded_trans1_tau116_ptmu1_13had1_17_v2-f456bdbb960236e5c696adfe9b04eaae/USER/{pat}/{htt}_Down'.format( pat=pat, htt=htt), user, filePattern, cache) embed_Run2012B_193752_195135.files = getFiles(
from CMGTools.RootTools.fwlite.Config import printComps from CMGTools.H2TauTau.proto.samples.getFiles import getFiles from CMGTools.H2TauTau.proto.samples.triggers_tauMu import data_triggers_2011A, data_triggers_2011B, mc_triggers_fall11 aod = 'V5' pat = 'PAT_CMG_V5_4_1' htautau = 'TAUMU_Jul3_RelTauPt' user = '******' filePattern = 'tauMu_fullsel_tree_CMG.*root' cache = True ## --- simulation: bkg --- + --- + --- + --- + --- + --- + --- + --- + --- from CMGTools.H2TauTau.proto.samples.ewk import * DYJets.files = getFiles('/DYJetsToLL_TuneZ2_M-50_7TeV-madgraph-tauola/Fall11-PU_S6_START42_V14B-v1/AODSIM/{aod}/{pat}/{htautau}'.format(aod=aod, pat=pat, htautau=htautau), user, filePattern, cache) # https://savannah.cern.ch/task/?30143 # 16 bad files out of 2751 total (0.6%), mostly pattuples, by now I don't care DYJets.nGenEvents = 36209629 WJets.files = getFiles('/WJetsToLNu_TuneZ2_7TeV-madgraph-tauola/Fall11-PU_S6_START42_V14B-v1/AODSIM/{aod}/HTTSKIM5/{pat}/{htautau}'.format(aod=aod, pat=pat, htautau=htautau), user, filePattern, cache) # https://savannah.cern.ch/task/?30145 # 2 bad pattuples over 907 files, the cmg tuples are there => ok WJets.nGenEvents = 81345381 W2Jets.files = getFiles('/W2Jets_TuneZ2_7TeV-madgraph-tauola/Fall11-PU_S6_START42_V14B-v1/AODSIM/{aod}/{pat}/{htautau}'.format(aod=aod, pat=pat, htautau=htautau), user, filePattern, cache) W2Jets.nGenEvents = 7541595 # dummy W3Jets.files = getFiles('/W3Jets_TuneZ2_7TeV-madgraph-tauola/Fall11-PU_S6_START42_V14B-v2/AODSIM/{pat}/{htautau}'.format(pat=pat, htautau=htautau), user, filePattern, cache) W3Jets.nGenEvents = 7541595
sequence = cfg.Sequence( [ genAna, jsonAna, triggerAna, vertexAna, WAna, WtreeProducer, ZAna, ZtreeProducer ] ) from CMGTools.H2TauTau.proto.samples.qcd import QCD15, QCD30, QCD50, QCD80 from CMGTools.H2TauTau.proto.samples.getFiles import getFiles QCD15.files = getFiles('/QCD_Pt-20_MuEnrichedPt-15_TuneZ2_7TeV-pythia6/Fall11-PU_S6_START42_V14B-v1/AODSIM/V5_B/PAT_CMG_V5_6_0_B', 'cmgtools', '.*root') QCD15.triggers = ["HLT_IsoMu24_v1","HLT_IsoMu24_v2","HLT_IsoMu24_v3","HLT_IsoMu24_v4","HLT_IsoMu24_v5","HLT_IsoMu24_v6","HLT_IsoMu24_v7",\ "HLT_IsoMu24_v8","HLT_IsoMu24_v9","HLT_IsoMu24_v10","HLT_IsoMu24_v11","HLT_IsoMu24_v12","HLT_IsoMu24_v13","HLT_IsoMu24_v14",\ "HLT_IsoMu24_eta2p1_v1","HLT_IsoMu24_eta2p1_v2","HLT_IsoMu24_eta2p1_v3","HLT_IsoMu24_eta2p1_v4","HLT_IsoMu24_eta2p1_v5",\ "HLT_IsoMu24_eta2p1_v6","HLT_IsoMu24_eta2p1_v7","HLT_IsoMu24_eta2p1_v8" ] selectedComponents = [QCD15] QCD15.splitFactor = 750 config = cfg.Config( components = selectedComponents, sequence = sequence ) printComps(config.components, True)
eta=2.1, iso=0.5, savegenp=False, verbose=True, triggerMap=pathsAndFilters) ZtreeProducer = cfg.Analyzer('ZTreeProducer') sequence = cfg.Sequence( [jsonAna, triggerAna, vertexAna, WAna, WtreeProducer, ZAna, ZtreeProducer]) from CMGTools.H2TauTau.proto.samples.qcd import QCD15, QCD30, QCD50, QCD80 from CMGTools.H2TauTau.proto.samples.getFiles import getFiles QCD15.files = getFiles( '/QCD_Pt-20_MuEnrichedPt-15_TuneZ2_7TeV-pythia6/Fall11-PU_S6_START42_V14B-v1/AODSIM/V5_B/PAT_CMG_V5_6_0_B', 'cmgtools', '.*root') QCD15.triggers = ["HLT_IsoMu24_v1","HLT_IsoMu24_v2","HLT_IsoMu24_v3","HLT_IsoMu24_v4","HLT_IsoMu24_v5","HLT_IsoMu24_v6","HLT_IsoMu24_v7",\ "HLT_IsoMu24_v8","HLT_IsoMu24_v9","HLT_IsoMu24_v10","HLT_IsoMu24_v11","HLT_IsoMu24_v12","HLT_IsoMu24_v13","HLT_IsoMu24_v14",\ "HLT_IsoMu24_eta2p1_v1","HLT_IsoMu24_eta2p1_v2","HLT_IsoMu24_eta2p1_v3","HLT_IsoMu24_eta2p1_v4","HLT_IsoMu24_eta2p1_v5",\ "HLT_IsoMu24_eta2p1_v6","HLT_IsoMu24_eta2p1_v7","HLT_IsoMu24_eta2p1_v8" ] selectedComponents = [QCD15] QCD15.splitFactor = 750 config = cfg.Config(components=selectedComponents, sequence=sequence) printComps(config.components, True)
from CMGTools.H2TauTau.proto.samples.getFiles import getFiles from CMGTools.H2TauTau.proto.samples.higgs import * from CMGTools.H2TauTau.proto.samples.triggers_tauMu import data_triggers_2011A, data_triggers_2011B, mc_triggers_fall11 user = '******' filePattern = 'tauMu.*fullsel.*root' # Higgs Summer11 ---------------------------------------------------------------------------- # not available yet HiggsVBF125.files = getFiles('/H2TAUTAU/Sync/VBF/AOD/PAT_CMG_BleedMay23/TAUMU_May26', user, filePattern) HiggsVBF125.nGenEvents = 198612 HiggsGGH125.files = getFiles('/H2TAUTAU/Sync/GluGlu/AOD/PAT_CMG_BleedMay23/TAUMU_May26', user, filePattern) HiggsGGH125.nGenEvents = 198612 MC = [] for mc in mc_higgs: mc.triggers = ["HLT_IsoMu15_eta2p1_LooseIsoPFTau20_v1"] MC.append(mc) if __name__ == '__main__': def printSamples(sams): for sam in sams: print print sam
effCorrFactor = 1) ZGToTauTauG = cfg.MCComponent( name = 'ZGToTauTauG', files = [], xSection = 30.75, nGenEvents = 1, triggers = [], effCorrFactor = 1) from CMGTools.H2TauTau.proto.samples.getFiles import getFiles ZGToMuMuG.files = getFiles('/ZGToMuMuG_TuneZ2_7TeV-madgraph/Fall11-PU_S6_START42_V14B-v1/AODSIM/PAT_CMG_V5_6_0_B', 'cmgtools', '.*root') ZGToMuMuG.triggers = ["HLT_IsoMu24_v1","HLT_IsoMu24_v2","HLT_IsoMu24_v3","HLT_IsoMu24_v4","HLT_IsoMu24_v5","HLT_IsoMu24_v6","HLT_IsoMu24_v7",\ "HLT_IsoMu24_v8","HLT_IsoMu24_v9","HLT_IsoMu24_v10","HLT_IsoMu24_v11","HLT_IsoMu24_v12","HLT_IsoMu24_v13","HLT_IsoMu24_v14",\ "HLT_IsoMu24_eta2p1_v1","HLT_IsoMu24_eta2p1_v2","HLT_IsoMu24_eta2p1_v3","HLT_IsoMu24_eta2p1_v4","HLT_IsoMu24_eta2p1_v5",\ "HLT_IsoMu24_eta2p1_v6","HLT_IsoMu24_eta2p1_v7","HLT_IsoMu24_eta2p1_v8" ] ZGToTauTauG.files = getFiles('/ZGToTauTauG_TuneZ2_7TeV-madgraph-tauola/Fall11-PU_S6_START42_V14B-v1/AODSIM/PAT_CMG_V5_6_0_B', 'cmgtools', '.*root') ZGToTauTauG.triggers = ["HLT_IsoMu24_v1","HLT_IsoMu24_v2","HLT_IsoMu24_v3","HLT_IsoMu24_v4","HLT_IsoMu24_v5","HLT_IsoMu24_v6","HLT_IsoMu24_v7",\ "HLT_IsoMu24_v8","HLT_IsoMu24_v9","HLT_IsoMu24_v10","HLT_IsoMu24_v11","HLT_IsoMu24_v12","HLT_IsoMu24_v13","HLT_IsoMu24_v14",\ "HLT_IsoMu24_eta2p1_v1","HLT_IsoMu24_eta2p1_v2","HLT_IsoMu24_eta2p1_v3","HLT_IsoMu24_eta2p1_v4","HLT_IsoMu24_eta2p1_v5",\ "HLT_IsoMu24_eta2p1_v6","HLT_IsoMu24_eta2p1_v7","HLT_IsoMu24_eta2p1_v8" ]
def connectSample(components, row, filePattern, aliases, cache, verbose): id = row[0] path_name = row[1] file_owner = row[2] info = [] compName = findAlias(path_name, aliases) #import pdb ; pdb.set_trace() if compName is None: print 'WARNING: cannot find alias for', path_name return False findFirstAncestor(id, info) dsInfo = processInfo(info) if verbose: pprint.pprint(dsInfo) path_name = dsInfo[0]['path_name'] globalEff = 1. nEvents = dsInfo.primary_dataset_entries taskurl = 'https://savannah.cern.ch/task/?{task_id}'.format( task_id=dsInfo[0]['task_id']) for step in dsInfo: eff = 0. if step['step'] == 'TAUTAU': eff = step['jobeff'] elif step['step'] == 'MERGE': eff = step['jobeff'] elif step['step'] == 'PATCMG': eff = step['fraction'] if eff is None: eff = step['jobeff'] elif step['step'] == 'PFAOD': eff = 1.0 # not to double count with PATCMG else: eff = step['jobeff'] if eff is None: print 'WARNING: efficiency not determined for', compName eff = 0.0 try: globalEff *= eff except TypeError: pprint.pprint(dsInfo) raise comps = [comp for comp in components if comp.name == compName] if len(comps) > 1: #import pdb ; pdb.set_trace() print 'WARNING find several components for compName', compName print map(str, comps) return False elif len(comps) == 0: print 'WARNING no component found for compName', compName #import pdb; pdb.set_trace() return False comp = comps[0] comp.dataset_entries = dsInfo.dataset_entries if not ( comp.name.startswith('data_') or \ comp.name.startswith('embed_') ): comp.nGenEvents = nEvents if comp.nGenEvents is None: print 'WARNING: nGenEvents is None, setting it to 1.' comp.nGenEvents = 1. if comp.nGenEvents != 1.: comp.nGenEvents *= globalEff else: globalEff = -1. comp.nGenEvents = 0 print 'LOADING:', comp.name, path_name, nEvents, globalEff, taskurl # print dsInfo comp.files = getFiles(path_name, file_owner, filePattern, cache) if comp.name.startswith('data_'): if globalEff < 0.99: print 'ARGH! data sample is not complete.', taskurl print dsInfo else: if globalEff < 0.9: print 'WEIRD! Efficiency is way too low ({globalEff})! you might have to edit your cfg manually.'.format( globalEff=globalEff) print dsInfo
# ZAna, # ZtreeProducer, ] ) sequence = cfg.Sequence(CoreWsequence) WAna.storeLHE_weight = True WtreeProducer.storeLHE_weight = True # # WtreeProducer.superslimNtuples = True from CMGTools.H2TauTau.proto.samples.ewk import WJets from CMGTools.H2TauTau.proto.samples.getFiles import getFiles # WJetsPlus.files = getFiles('/WJetsToLL_TuneZ2_M-50_7TeV-madgraph-tauola/Fall11-PU_S6_START42_V14B-v1/AODSIM/V5_B/PAT_CMG_V5_6_0_B', 'cmgtools', '.*root') # WJetsPlus.files = getFiles('/WJetsToLL_M-50_7TeV-madgraph-pythia6-tauola/Summer11LegDR-PU_S13_START53_LV6-v1/AODSIM/V5_B/PAT_CMG_V5_18_0', 'cmgtools', '.*root') WJetsPlus = copy.deepcopy(WJets) WJetsPlus.files = getFiles('/WplusToMuNu_M-50To250_ew-BMNNP_7TeV-powheg-pythia8/Summer11LegDR-PU_S13_START53_LV6-v1/AODSIM/V5_B/PAT_CMG_V5_18_0', 'cmgtools', '.*root') # 1389 WJetsPlus.triggers = triggers_mu WJetsPlus.splitFactor = 900 WJetsPlus.name = 'WPlus1' WJetsPlus2 = copy.deepcopy(WJetsPlus) WJetsPlus2.name = 'WPlus2' WJetsPlus2.files = getFiles('/WplusToMuNu_M-50To250_ew-BMNNP_7TeV-powheg-pythia8/Summer11LegDR-PU_S13_START53_LV6-v3/AODSIM/V5_B/PAT_CMG_V5_18_0', 'cmgtools', '.*root') # 1703 WJetsPlus3 = copy.deepcopy(WJetsPlus) WJetsPlus3.name = 'WPlus3' WJetsPlus3.files = getFiles('/WplusToMuNu_M-50To250_ew-BMNNP_7TeV-powheg-pythia8/Summer11LegDR-PU_S13_START53_LV6-v7/AODSIM/V5_B/PAT_CMG_V5_18_0', 'cmgtools', '.*root') # 1384 WJetsPlus4 = copy.deepcopy(WJetsPlus) WJetsPlus4.name = 'WPlus4' WJetsPlus4.files = getFiles('/WplusToMuNu_M-50To250_ew-BMNNP_7TeV-powheg-pythia8/Summer11LegDR-PU_S13_START53_LV6-v4/AODSIM/V5_B/PAT_CMG_V5_18_0', 'cmgtools', '.*root') # 1598
#Load all analyzers from CMGTools.WMass.analyzers.CoreModule_53X_cff import * sequence = cfg.Sequence(CoreWZsequence) from CMGTools.H2TauTau.proto.samples.ewk import TTJets from CMGTools.H2TauTau.proto.samples.getFiles import getFiles TTJets.files = getFiles('/TTJets_TuneZ2_7TeV-madgraph-tauola/Summer11LegDR-PU_S13_START53_LV6-v1/AODSIM/V5_B/PAT_CMG_V5_18_0', 'cmgtools', '.*root') TTJets.triggers = triggers_mu # TTJets.triggers = ["HLT_IsoMu24_v1","HLT_IsoMu24_v2","HLT_IsoMu24_v3","HLT_IsoMu24_v4","HLT_IsoMu24_v5","HLT_IsoMu24_v6","HLT_IsoMu24_v7",\ # "HLT_IsoMu24_v8","HLT_IsoMu24_v9","HLT_IsoMu24_v10","HLT_IsoMu24_v11","HLT_IsoMu24_v12","HLT_IsoMu24_v13","HLT_IsoMu24_v14",\ # "HLT_IsoMu24_eta2p1_v1","HLT_IsoMu24_eta2p1_v2","HLT_IsoMu24_eta2p1_v3","HLT_IsoMu24_eta2p1_v4","HLT_IsoMu24_eta2p1_v5",\ # "HLT_IsoMu24_eta2p1_v6","HLT_IsoMu24_eta2p1_v7","HLT_IsoMu24_eta2p1_v8" # ] selectedComponents = [TTJets] TTJets.splitFactor = 750 # TEST #TTJets.splitFactor = 1 #TTJets.files = TTJets.files[0:2] config = cfg.Config( components = selectedComponents, sequence = sequence ) printComps(config.components, True)
jsonAna, triggerAna, vertexAna, # WAna, # WtreeProducer, ZAna, ZtreeProducer ] ) from CMGTools.H2TauTau.proto.samples.getFiles import getFiles data_Run2012D_Jan22ReReco_v1 = cfg.DataComponent( name = 'data_Run2012D_Jan22ReReco_v1', files = getFiles('/MuOnia/Run2012D-22Jan2013-v1/AOD/PAT_CMG_V5_18_0', 'cmgtools', '.*root'), intLumi = 4749.90, # triggers = ["HLT_IsoMu24_v1","HLT_IsoMu24_v2","HLT_IsoMu24_v3","HLT_IsoMu24_v4","HLT_IsoMu24_v5","HLT_IsoMu24_v6","HLT_IsoMu24_v7",\ # "HLT_IsoMu24_v8","HLT_IsoMu24_v9","HLT_IsoMu24_v10","HLT_IsoMu24_v11","HLT_IsoMu24_v12","HLT_IsoMu24_v13","HLT_IsoMu24_v14",\ # "HLT_IsoMu24_eta2p1_v1","HLT_IsoMu24_eta2p1_v2","HLT_IsoMu24_eta2p1_v3","HLT_IsoMu24_eta2p1_v4","HLT_IsoMu24_eta2p1_v5",\ # "HLT_IsoMu24_eta2p1_v6","HLT_IsoMu24_eta2p1_v7","HLT_IsoMu24_eta2p1_v8" # ], triggers = triggers_jpsi2012 # +triggers_upsilon , json = '/afs/cern.ch/cms/CAF/CMSCOMM/COMM_DQM/certification/Collisions12/8TeV/Reprocessing/Cert_190456-208686_8TeV_22Jan2013ReReco_Collisions12_JSON.txt' ) data_Run2012C_Jan22ReReco_v1 = cfg.DataComponent( name = 'data_Run2012C_Jan22ReReco_v1', files = getFiles('/MuOnia/Run2012C-22Jan2013-v1/AOD/PAT_CMG_V5_18_0', 'cmgtools', '.*root'),
iso=0.5, savegenp=True, verbose=True, triggerMap=pathsAndFilters) ZtreeProducer = cfg.Analyzer('ZTreeProducer') sequence = cfg.Sequence( [jsonAna, triggerAna, vertexAna, WAna, WtreeProducer, ZAna, ZtreeProducer]) from CMGTools.H2TauTau.proto.samples.ewk import DYJets from CMGTools.H2TauTau.proto.samples.getFiles import getFiles # DYJets.files = getFiles('/DYJetsToLL_TuneZ2_M-50_7TeV-madgraph-tauola/Fall11-PU_S6_START42_V14B-v1/AODSIM/V5_B/PAT_CMG_V5_6_0_B', 'cmgtools', '.*root') DYJets.files = getFiles( '/DYJetsToLL_TuneZ2_M-50_7TeV-madgraph-tauola/Fall11-PU_S6_START44_V9B-v1/AODSIM/V5_B/PAT_CMG_V5_6_0_B', 'cmgtools', '.*root') DYJets.triggers = ["HLT_IsoMu24_v1","HLT_IsoMu24_v2","HLT_IsoMu24_v3","HLT_IsoMu24_v4","HLT_IsoMu24_v5","HLT_IsoMu24_v6","HLT_IsoMu24_v7",\ "HLT_IsoMu24_v8","HLT_IsoMu24_v9","HLT_IsoMu24_v10","HLT_IsoMu24_v11","HLT_IsoMu24_v12","HLT_IsoMu24_v13","HLT_IsoMu24_v14",\ "HLT_IsoMu24_eta2p1_v1","HLT_IsoMu24_eta2p1_v2","HLT_IsoMu24_eta2p1_v3","HLT_IsoMu24_eta2p1_v4","HLT_IsoMu24_eta2p1_v5",\ "HLT_IsoMu24_eta2p1_v6","HLT_IsoMu24_eta2p1_v7","HLT_IsoMu24_eta2p1_v8" ] selectedComponents = [DYJets] DYJets.splitFactor = 750 config = cfg.Config(components=selectedComponents, sequence=sequence) printComps(config.components, True)
from CMGTools.H2TauTau.proto.samples.getFiles import getFiles from CMGTools.H2TauTau.proto.samples.triggers_tauEle import data_triggers_2011A, data_triggers_2011B, mc_triggers_fall11 aod = 'V5' pat = 'PAT_CMG_V5_4_1' htautau = 'TAUELE_OldSVFit_ColinJun26' user = '******' filePattern = 'tauEle_fullsel_tree_CMG.*root' ## --- simulation: bkg --- + --- + --- + --- + --- + --- + --- + --- + --- from CMGTools.H2TauTau.proto.samples.ewk import * # NB this does not contain diboson samples DYJets.files = getFiles('/DYJetsToLL_TuneZ2_M-50_7TeV-madgraph-tauola/Fall11-PU_S6_START42_V14B-v1/AODSIM/{aod}/{pat}/{htautau}'.format(aod=aod, pat=pat, htautau=htautau), user, filePattern) # https://savannah.cern.ch/task/?30143 # 16 bad files out of 2751 total (0.6%), mostly pattuples, by now I don't care DYJets.nGenEvents = 36209629 WJets.files = getFiles('/WJetsToLNu_TuneZ2_7TeV-madgraph-tauola/Fall11-PU_S6_START42_V14B-v1/AODSIM/{aod}/HTTSKIM5/{pat}/{htautau}'.format(aod=aod, pat=pat, htautau=htautau), user, filePattern) # https://savannah.cern.ch/task/?30145 # 2 bad pattuples over 907 files, the cmg tuples are there => ok WJets.nGenEvents = 81345381 TTJets.files = getFiles('/TTJets_TuneZ2_7TeV-madgraph-tauola/Fall11-PU_S6_START42_V14B-v2/AODSIM/{aod}/HTTSKIM1/{pat}/{htautau}'.format(aod=aod, pat=pat, htautau=htautau), user, filePattern) ## # https://savannah.cern.ch/task/?30144 ## # 3 bad files out of 5365 => I don't care TTJets.nGenEvents = 59613991 ## --- simulation: sig --- + --- + --- + --- + --- + --- + --- + --- + ---
verbose=True, triggerMap=pathsAndFilters) ZtreeProducer = cfg.Analyzer('ZTreeProducer') genAna = cfg.Analyzer('GenParticleAnalyzerFSR', src='genParticlesPruned') sequence = cfg.Sequence([ genAna, jsonAna, triggerAna, vertexAna, WAna, WtreeProducer, ZAna, ZtreeProducer ]) from CMGTools.H2TauTau.proto.samples.diboson import WWJetsTo2L2Nu, WZJetsTo2L2Q, WZJetsTo3LNu, ZZJetsTo2L2Nu, ZZJetsTo2L2Q, ZZJetsTo4L from CMGTools.H2TauTau.proto.samples.getFiles import getFiles WWJetsTo2L2Nu.files = getFiles( '/WWJetsTo2L2Nu_TuneZ2_7TeV-madgraph-tauola/Fall11-PU_S6_START42_V14B-v1/AODSIM/PAT_CMG_V5_6_0_B', 'cmgtools', '.*root') WWJetsTo2L2Nu.triggers = ["HLT_IsoMu24_v1","HLT_IsoMu24_v2","HLT_IsoMu24_v3","HLT_IsoMu24_v4","HLT_IsoMu24_v5","HLT_IsoMu24_v6","HLT_IsoMu24_v7",\ "HLT_IsoMu24_v8","HLT_IsoMu24_v9","HLT_IsoMu24_v10","HLT_IsoMu24_v11","HLT_IsoMu24_v12","HLT_IsoMu24_v13","HLT_IsoMu24_v14",\ "HLT_IsoMu24_eta2p1_v1","HLT_IsoMu24_eta2p1_v2","HLT_IsoMu24_eta2p1_v3","HLT_IsoMu24_eta2p1_v4","HLT_IsoMu24_eta2p1_v5",\ "HLT_IsoMu24_eta2p1_v6","HLT_IsoMu24_eta2p1_v7","HLT_IsoMu24_eta2p1_v8" ] WZJetsTo3LNu.files = getFiles( '/WZJetsTo3LNu_TuneZ2_7TeV-madgraph-tauola/Fall11-PU_S6_START42_V14B-v1/AODSIM/PAT_CMG_V5_6_0_B', 'cmgtools', '.*root') WZJetsTo3LNu.triggers = ["HLT_IsoMu24_v1","HLT_IsoMu24_v2","HLT_IsoMu24_v3","HLT_IsoMu24_v4","HLT_IsoMu24_v5","HLT_IsoMu24_v6","HLT_IsoMu24_v7",\ "HLT_IsoMu24_v8","HLT_IsoMu24_v9","HLT_IsoMu24_v10","HLT_IsoMu24_v11","HLT_IsoMu24_v12","HLT_IsoMu24_v13","HLT_IsoMu24_v14",\ "HLT_IsoMu24_eta2p1_v1","HLT_IsoMu24_eta2p1_v2","HLT_IsoMu24_eta2p1_v3","HLT_IsoMu24_eta2p1_v4","HLT_IsoMu24_eta2p1_v5",\ "HLT_IsoMu24_eta2p1_v6","HLT_IsoMu24_eta2p1_v7","HLT_IsoMu24_eta2p1_v8" ]
from CMGTools.RootTools.RootTools import * WNJetsAna = cfg.Analyzer( 'WNJetsAnalyzer', verbose = False ) ######################################################################################### WJets = cfg.MCComponent( name = 'WJets', files = getFiles('/WJetsToLNu_TuneZ2_7TeV-madgraph-tauola/Fall11-PU_S6_START42_V14B-v1/AODSIM/V5_B/PAT_CMG_V5_6_0_B', 'cmgtools', 'cmgTuple.*root'), xSection = 31314., nGenEvents = 1, triggers = [], effCorrFactor = 1 ) ######################################################################################### selectedComponents = [WJets] sequence = cfg.Sequence( [ WNJetsAna, ] )
def connectSample(components, row, filePattern, aliases, cache, verbose): id = row[0] path_name = row[1] file_owner = row[2] info = [] compName = findAlias(path_name, aliases) #import pdb ; pdb.set_trace() if compName is None: print 'WARNING: cannot find alias for', path_name return False findFirstAncestor(id, info) dsInfo = processInfo(info) if verbose: pprint.pprint( dsInfo ) path_name = dsInfo[0]['path_name'] globalEff = 1. nEvents = dsInfo.primary_dataset_entries taskurl = 'https://savannah.cern.ch/task/?{task_id}'.format(task_id=dsInfo[0]['task_id']) for step in dsInfo: eff = 0. if step['step']=='TAUTAU': eff = step['jobeff'] elif step['step']=='MERGE': eff = step['jobeff'] elif step['step']=='PATCMG': eff = step['fraction'] if eff is None: eff = step['jobeff'] elif step['step']=='PFAOD': eff = 1.0 # not to double count with PATCMG else: eff = step['jobeff'] if eff is None: print 'WARNING: efficiency not determined for',compName eff = 0.0 try: globalEff *= eff except TypeError: pprint.pprint(dsInfo) raise comps = [comp for comp in components if comp.name == compName] if len(comps)>1: #import pdb ; pdb.set_trace() print 'WARNING find several components for compName', compName print map(str, comps) return False elif len(comps)==0: print 'WARNING no component found for compName', compName #import pdb; pdb.set_trace() return False comp = comps[0] comp.dataset_entries = dsInfo.dataset_entries if not ( comp.name.startswith('data_') or \ comp.name.startswith('embed_') ): comp.nGenEvents = nEvents if comp.nGenEvents is None: print 'WARNING: nGenEvents is None, setting it to 1.' comp.nGenEvents = 1. if comp.nGenEvents != 1.: comp.nGenEvents *= globalEff else: globalEff = -1. comp.nGenEvents = 0 print 'LOADING:', comp.name, path_name, nEvents, globalEff, taskurl # print dsInfo comp.files = getFiles(path_name, file_owner, filePattern, cache) if len(comp.files) != dsInfo[0]['ngood']: print 'WARNING: Re-retrieving job list for sample', comp.name print 'Good files', dsInfo[0]['ngood'], 'found files', len(comp.files) comp.files = getFiles(path_name, file_owner, filePattern, False) print 'UPDATE: Good files', dsInfo[0]['ngood'], 'found files', len(comp.files) if len(comp.files) > dsInfo[0]['ngood']: print 'N(files) > N(good files): You may need to republish the sample' if comp.name.startswith('data_'): if globalEff<0.99: print 'ARGH! data sample is not complete.', taskurl print dsInfo else: if globalEff<0.9: print 'WEIRD! Efficiency is way too low ({globalEff})! you might have to edit your cfg manually.'.format(globalEff=globalEff) print dsInfo
# # WJets.files = getFiles('/WJetsToLNu_TuneZ2_7TeV-madgraph-tauola/Fall11-PU_S6_START42_V14B-v1/AODSIM/V5_B/PAT_CMG_V5_6_0_B', 'cmgtools', '.*root') # WJets.files = getFiles('/WJetsToLNu_TuneZ2_7TeV-madgraph-tauola/Fall11-PU_S6_START44_V9B-v1/AODSIM/V5_B/PAT_CMG_V5_6_0_B', 'cmgtools', '.*root') # WJets.triggers = ["HLT_IsoMu24_v1","HLT_IsoMu24_v2","HLT_IsoMu24_v3","HLT_IsoMu24_v4","HLT_IsoMu24_v5","HLT_IsoMu24_v6","HLT_IsoMu24_v7",\ # "HLT_IsoMu24_v8","HLT_IsoMu24_v9","HLT_IsoMu24_v10","HLT_IsoMu24_v11","HLT_IsoMu24_v12","HLT_IsoMu24_v13","HLT_IsoMu24_v14",\ # "HLT_IsoMu24_eta2p1_v1","HLT_IsoMu24_eta2p1_v2","HLT_IsoMu24_eta2p1_v3","HLT_IsoMu24_eta2p1_v4","HLT_IsoMu24_eta2p1_v5",\ # "HLT_IsoMu24_eta2p1_v6","HLT_IsoMu24_eta2p1_v7","HLT_IsoMu24_eta2p1_v8" # ] # selectedComponents = [WJets] # WJets.splitFactor = 1500 # TEST WJets1 = copy.deepcopy(WJets) WJets1.files = getFiles('/WJetsToLNu_TuneZ2_7TeV-madgraph-tauola/Fall11-PU_S6_START44_V9B-v1/AODSIM/V5_B/PAT_CMG_V5_6_0_B', 'cmgtools', '.*root') WJets1.triggers = ["HLT_IsoMu24_v1","HLT_IsoMu24_v2","HLT_IsoMu24_v3","HLT_IsoMu24_v4","HLT_IsoMu24_v5","HLT_IsoMu24_v6","HLT_IsoMu24_v7",\ "HLT_IsoMu24_v8","HLT_IsoMu24_v9","HLT_IsoMu24_v10","HLT_IsoMu24_v11","HLT_IsoMu24_v12","HLT_IsoMu24_v13","HLT_IsoMu24_v14",\ "HLT_IsoMu24_eta2p1_v1","HLT_IsoMu24_eta2p1_v2","HLT_IsoMu24_eta2p1_v3","HLT_IsoMu24_eta2p1_v4","HLT_IsoMu24_eta2p1_v5",\ "HLT_IsoMu24_eta2p1_v6","HLT_IsoMu24_eta2p1_v7","HLT_IsoMu24_eta2p1_v8" ] WJets1.files = WJets1.files[:2500] WJets1.splitFactor = 1000 WJets1.name = 'WJets1' WJets2 = copy.deepcopy(WJets) WJets2.files = getFiles('/WJetsToLNu_TuneZ2_7TeV-madgraph-tauola/Fall11-PU_S6_START44_V9B-v1/AODSIM/V5_B/PAT_CMG_V5_6_0_B', 'cmgtools', '.*root') WJets2.triggers = ["HLT_IsoMu24_v1","HLT_IsoMu24_v2","HLT_IsoMu24_v3","HLT_IsoMu24_v4","HLT_IsoMu24_v5","HLT_IsoMu24_v6","HLT_IsoMu24_v7",\ "HLT_IsoMu24_v8","HLT_IsoMu24_v9","HLT_IsoMu24_v10","HLT_IsoMu24_v11","HLT_IsoMu24_v12","HLT_IsoMu24_v13","HLT_IsoMu24_v14",\ "HLT_IsoMu24_eta2p1_v1","HLT_IsoMu24_eta2p1_v2","HLT_IsoMu24_eta2p1_v3","HLT_IsoMu24_eta2p1_v4","HLT_IsoMu24_eta2p1_v5",\ "HLT_IsoMu24_eta2p1_v6","HLT_IsoMu24_eta2p1_v7","HLT_IsoMu24_eta2p1_v8" ]
from CMGTools.H2TauTau.proto.samples.getFiles import getFiles from CMGTools.H2TauTau.proto.samples.higgs import * from CMGTools.H2TauTau.proto.samples.triggers_tauMu import data_triggers_2011A, data_triggers_2011B, mc_triggers_fall11 user = '******' filePattern = 'tauMu.*fullsel.*root' # Higgs Summer11 ---------------------------------------------------------------------------- # not available yet HiggsVBF125.files = getFiles('/H2TAUTAU/Sync/VBF/AOD/PAT_CMG_PhilV1/TAUMU_BugFix_May28', user, filePattern) HiggsVBF125.nGenEvents = 198612 HiggsGGH125.files = getFiles('/H2TAUTAU/Sync/GluGlu/AOD/PAT_CMG_PhilV1/TAUMU_BugFix_May28', user, filePattern) HiggsGGH125.nGenEvents = 198612 MC = [] for mc in mc_higgs: mc.triggers = ["HLT_IsoMu15_eta2p1_LooseIsoPFTau20_v1"] MC.append(mc) if __name__ == '__main__': def printSamples(sams): for sam in sams: print print sam
from CMGTools.H2TauTau.proto.samples.getFiles import getFiles from CMGTools.H2TauTau.proto.samples.triggers_tauEle import data_triggers_2011A, data_triggers_2011B, mc_triggers_fall11 user = '******' filePattern = 'tauEle_fullsel_tree_CMG.*root' ## --- simulation: bkg --- + --- + --- + --- + --- + --- + --- + --- + --- from CMGTools.H2TauTau.proto.samples.ewk import * # NB this does not contain diboson samples DYJets.files = getFiles( '/DYJetsToLL_TuneZ2_M-50_7TeV-madgraph-tauola/Fall11-PU_S6_START42_V14B-v1/AODSIM/V5/PAT_CMG_V5_4_1/H2TAUTAU_PGJun02/', user, filePattern) # https://savannah.cern.ch/task/?30143 # 16 bad files out of 2751 total (0.6%), mostly pattuples, by now I don't care DYJets.nGenEvents = 36209629 DYJets.triggers = mc_triggers_fall11 # DYJets.fakes = True # what is this? # DYJets.splitFactor = 40 WJets.files = getFiles( '/WJetsToLNu_TuneZ2_7TeV-madgraph-tauola/Fall11-PU_S6_START42_V14B-v1/AODSIM/V5/HTTSKIM5/PAT_CMG_V5_4_1/H2TAUTAU_PGJun02/', user, filePattern) # https://savannah.cern.ch/task/?30145 # 2 bad pattuples over 907 files, the cmg tuples are there => ok WJets.nGenEvents = 81345381 WJets.triggers = mc_triggers_fall11 # WJets.splitFactor = 10 TTJets.files = getFiles(
#Load all analyzers from CMGTools.WMass.analyzers.CoreModule_53X_cff import * sequence = cfg.Sequence(CoreWZsequence) from CMGTools.H2TauTau.proto.samples.qcd import QCD15, QCD30, QCD50, QCD80 from CMGTools.H2TauTau.proto.samples.getFiles import getFiles QCD15.files = getFiles('/QCD_Pt-0to5_TuneZ2_7TeV_pythia6/Summer11LegDR-PU_S13_START53_LV6-v1/AODSIM/V5_B/PAT_CMG_V5_18_0', 'cmgtools', '.*root') QCD15.triggers = triggers_mu QCD0to5 = copy.deepcopy(QCD15) QCD0to5.files = getFiles('/QCD_Pt-0to5_TuneZ2_7TeV_pythia6/Summer11LegDR-PU_S13_START53_LV6-v1/AODSIM/V5_B/PAT_CMG_V5_18_0', 'cmgtools', '.*root') QCD0to5.name = 'QCD0to5' QCD5to15 = copy.deepcopy(QCD15) QCD5to15.files = getFiles('/QCD_Pt-5to15_TuneZ2_7TeV_pythia6/Summer11LegDR-PU_S13_START53_LV6-v1/AODSIM/V5_B/PAT_CMG_V5_18_0', 'cmgtools', '.*root') QCD5to15.name = 'QCD5to15' QCD15to30 = copy.deepcopy(QCD15) QCD15to30.files = getFiles('/QCD_Pt-15to30_TuneZ2_7TeV_pythia6/Summer11LegDR-PU_S13_START53_LV6-v1/AODSIM/V5_B/PAT_CMG_V5_18_0', 'cmgtools', '.*root') QCD15to30.name = 'QCD15to30' QCD30to50 = copy.deepcopy(QCD15) QCD30to50.files = getFiles('/QCD_Pt-30to50_TuneZ2_7TeV_pythia6/Summer11LegDR-PU_S13_START53_LV6-v1/AODSIM/V5_B/PAT_CMG_V5_18_0', 'cmgtools', '.*root') QCD30to50.name = 'QCD30to50' QCD20Mu15 = copy.deepcopy(QCD15) QCD20Mu15.files = getFiles('/QCD_Pt-20_MuEnrichedPt-15_TuneZ2_7TeV-pythia6/Summer11LegDR-PU_S13_START53_LV6-v1/AODSIM/V5_B/PAT_CMG_V5_18_0', 'cmgtools', '.*root') QCD20Mu15.name = 'QCD20Mu15'
Load all analyzers from CMGTools.WMass.analyzers.CoreModule_53X_cff import * sequence = cfg.Sequence(CoreWZsequence) from CMGTools.H2TauTau.proto.samples.diboson import WW, ZZ, WZ from CMGTools.H2TauTau.proto.samples.getFiles import getFiles WW.files = getFiles('/WW_TuneZ2_7TeV_pythia6_tauola/Summer11LegDR-PU_S13_START53_LV6-v1/AODSIM/V5_B/PAT_CMG_V5_18_0', 'cmgtools', '.*root') WW.triggers = triggers_mu # WW.triggers = ["HLT_IsoMu24_v1","HLT_IsoMu24_v2","HLT_IsoMu24_v3","HLT_IsoMu24_v4","HLT_IsoMu24_v5","HLT_IsoMu24_v6","HLT_IsoMu24_v7",\ # "HLT_IsoMu24_v8","HLT_IsoMu24_v9","HLT_IsoMu24_v10","HLT_IsoMu24_v11","HLT_IsoMu24_v12","HLT_IsoMu24_v13","HLT_IsoMu24_v14",\ # "HLT_IsoMu24_eta2p1_v1","HLT_IsoMu24_eta2p1_v2","HLT_IsoMu24_eta2p1_v3","HLT_IsoMu24_eta2p1_v4","HLT_IsoMu24_eta2p1_v5",\ # "HLT_IsoMu24_eta2p1_v6","HLT_IsoMu24_eta2p1_v7","HLT_IsoMu24_eta2p1_v8" # ] WZ.files = getFiles('/WZ_TuneZ2_7TeV_pythia6_tauola/Summer11LegDR-PU_S13_START53_LV6-v1/AODSIM/V5_B/PAT_CMG_V5_18_0', 'cmgtools', '.*root') WZ.triggers = triggers_mu # WZ.triggers = ["HLT_IsoMu24_v1","HLT_IsoMu24_v2","HLT_IsoMu24_v3","HLT_IsoMu24_v4","HLT_IsoMu24_v5","HLT_IsoMu24_v6","HLT_IsoMu24_v7",\ # "HLT_IsoMu24_v8","HLT_IsoMu24_v9","HLT_IsoMu24_v10","HLT_IsoMu24_v11","HLT_IsoMu24_v12","HLT_IsoMu24_v13","HLT_IsoMu24_v14",\ # "HLT_IsoMu24_eta2p1_v1","HLT_IsoMu24_eta2p1_v2","HLT_IsoMu24_eta2p1_v3","HLT_IsoMu24_eta2p1_v4","HLT_IsoMu24_eta2p1_v5",\ # "HLT_IsoMu24_eta2p1_v6","HLT_IsoMu24_eta2p1_v7","HLT_IsoMu24_eta2p1_v8" # ] ZZ.files = getFiles('/ZZ_TuneZ2_7TeV_pythia6_tauola/Summer11LegDR-PU_S13_START53_LV6-v1/AODSIM/V5_B/PAT_CMG_V5_18_0', 'cmgtools', '.*root') ZZ.triggers = triggers_mu # ZZ.triggers = ["HLT_IsoMu24_v1","HLT_IsoMu24_v2","HLT_IsoMu24_v3","HLT_IsoMu24_v4","HLT_IsoMu24_v5","HLT_IsoMu24_v6","HLT_IsoMu24_v7",\ # "HLT_IsoMu24_v8","HLT_IsoMu24_v9","HLT_IsoMu24_v10","HLT_IsoMu24_v11","HLT_IsoMu24_v12","HLT_IsoMu24_v13","HLT_IsoMu24_v14",\ # "HLT_IsoMu24_eta2p1_v1","HLT_IsoMu24_eta2p1_v2","HLT_IsoMu24_eta2p1_v3","HLT_IsoMu24_eta2p1_v4","HLT_IsoMu24_eta2p1_v5",\ # "HLT_IsoMu24_eta2p1_v6","HLT_IsoMu24_eta2p1_v7","HLT_IsoMu24_eta2p1_v8" # ]
triggerMap=pathsAndFilters) ZtreeProducer = cfg.Analyzer('ZTreeProducer') genAna = cfg.Analyzer('GenParticleAnalyzerFSR', src='genParticlesPruned') sequence = cfg.Sequence([ genAna, jsonAna, triggerAna, vertexAna, WAna, WtreeProducer, ZAna, ZtreeProducer ]) from CMGTools.H2TauTau.proto.samples.ewk import TTJets from CMGTools.H2TauTau.proto.samples.getFiles import getFiles TTJets.files = getFiles( '/TTJets_TuneZ2_7TeV-madgraph-tauola/Fall11-PU_S6_START42_V14B-v2/AODSIM/V5_B/PAT_CMG_V5_6_0_B', 'cmgtools', '.*root') TTJets.triggers = ["HLT_IsoMu24_v1","HLT_IsoMu24_v2","HLT_IsoMu24_v3","HLT_IsoMu24_v4","HLT_IsoMu24_v5","HLT_IsoMu24_v6","HLT_IsoMu24_v7",\ "HLT_IsoMu24_v8","HLT_IsoMu24_v9","HLT_IsoMu24_v10","HLT_IsoMu24_v11","HLT_IsoMu24_v12","HLT_IsoMu24_v13","HLT_IsoMu24_v14",\ "HLT_IsoMu24_eta2p1_v1","HLT_IsoMu24_eta2p1_v2","HLT_IsoMu24_eta2p1_v3","HLT_IsoMu24_eta2p1_v4","HLT_IsoMu24_eta2p1_v5",\ "HLT_IsoMu24_eta2p1_v6","HLT_IsoMu24_eta2p1_v7","HLT_IsoMu24_eta2p1_v8" ] selectedComponents = [TTJets] TTJets.splitFactor = 750 config = cfg.Config(components=selectedComponents, sequence=sequence) printComps(config.components, True)
vertexAna, WAna, # WtreeProducer, ZAna, ZtreeProducer ]) from CMGTools.H2TauTau.proto.samples.ewk import DYJets from CMGTools.H2TauTau.proto.samples.getFiles import getFiles #DYJets.files = getFiles('/DYToMuMu_M-20_CT10_TuneZ2_7TeV-powheg-pythia/Fall11-PU_S6_START44_V9B-v1/AODSIM/V5_B/PAT_CMG_V5_6_0_B_44X', 'cmgtools', '.*999.root') #DYJets.files = getFiles('/DYJetsToLL_TuneZ2_M-50_7TeV-madgraph-tauola/Fall11-PU_S6_START44_V9B-v1/AODSIM/V5_B/PAT_CMG_V5_6_0_B', 'cmgtools', '.*999.root') #/eos/cms/store/cmst3/user/cmgtools/CMG/DYToTauTau_M-20_CT10_TuneZ2_7TeV-powheg-pythia-tauola/Fall11-PU_S6_START44_V9B-v1/AODSIM/V5_B/V5_6_0_B_44X #DYJets.files = getFiles('/DYToTauTau_M-20_CT10_TuneZ2_7TeV-powheg-pythia-tauola/Fall11-PU_S6_START44_V9B-v1/AODSIM/V5_B/PAT_CMG_V5_6_0_B_44X', 'cmgtools', '.*root') DYJets.files = getFiles( '/DYToTauTau_M-20_CT10_TuneZ2_7TeV-powheg-pythia-tauola/Fall11-PU_S6_START44_V9B-v1/AODSIM/V5_B/PAT_CMG_V5_6_0_B_44X_2nd', 'cmgtools', '.*.root') #DYJets.files = getFiles('/DYJetsToLL_TuneZ2_M-50_7TeV-madgraph-tauola/Fall11-PU_S6_START44_V9B-v1/AODSIM/V5_B/PAT_CMG_V5_6_0_B', 'cmgtools', '.*root') DYJets.triggers = ["HLT_IsoMu24_v1","HLT_IsoMu24_v2","HLT_IsoMu24_v3","HLT_IsoMu24_v4","HLT_IsoMu24_v5","HLT_IsoMu24_v6","HLT_IsoMu24_v7",\ "HLT_IsoMu24_v8","HLT_IsoMu24_v9","HLT_IsoMu24_v10","HLT_IsoMu24_v11","HLT_IsoMu24_v12","HLT_IsoMu24_v13","HLT_IsoMu24_v14",\ "HLT_IsoMu24_eta2p1_v1","HLT_IsoMu24_eta2p1_v2","HLT_IsoMu24_eta2p1_v3","HLT_IsoMu24_eta2p1_v4","HLT_IsoMu24_eta2p1_v5",\ "HLT_IsoMu24_eta2p1_v6","HLT_IsoMu24_eta2p1_v7","HLT_IsoMu24_eta2p1_v8" ] selectedComponents = [DYJets] DYJets.splitFactor = 1000 config = cfg.Config(components=selectedComponents, sequence=sequence) printComps(config.components, True)
ZAna, ZtreeProducer ] ) from CMGTools.WMass.analyzers.CoreModule_53X_cff import * # sequence = cfg.Sequence(CoreWZsequence) from CMGTools.H2TauTau.proto.samples.ewk import WJets from CMGTools.H2TauTau.proto.samples.getFiles import getFiles JpsiMC = copy.deepcopy(WJets) JpsiMC.files = getFiles('/JPsiToMuMu_2MuPtEtaFilter_tuneD6T_8TeV-pythia6-evtgen/Summer12_DR53X-PU_RD2_START53_V19F-v3/AODSIM/PAT_CMG_V5_18_0', 'cmgtools', '.*root') JpsiMC.name = 'JpsiMC' JpsiMC.triggers = triggers_jpsi JpsiMC.splitFactor = 750 JpsiMC2 = copy.deepcopy(WJets) JpsiMC2.files = getFiles('/JPsiToMuMu_2MuPtEtaFilter_tuneD6T_8TeV-pythia6-evtgen/Summer12_DR53X-PU_RD2_START53_V19F-v2/AODSIM/PAT_CMG_V5_18_0', 'cmgtools', '.*root') JpsiMC2.name = 'JpsiMC2' JpsiMC2.triggers = triggers_jpsi JpsiMC2.splitFactor = 750 JpsiMC3 = copy.deepcopy(WJets) JpsiMC3.files = getFiles('/JPsiToMuMu_JPsiPt20_2MuPtEtaFilter_tuneD6T_8TeV-pythia6-evtgen/Summer12_DR53X-PU_RD2_START53_V19F-v1/AODSIM/PAT_CMG_V5_18_0', 'cmgtools', '.*root') JpsiMC3.name = 'JpsiMC3' JpsiMC3.triggers = triggers_jpsi JpsiMC3.splitFactor = 750
# # WJets.files = getFiles('/WJetsToLNu_TuneZ2_7TeV-madgraph-tauola/Fall11-PU_S6_START42_V14B-v1/AODSIM/V5_B/PAT_CMG_V5_6_0_B', 'cmgtools', '.*root') # WJets.files = getFiles('/WJetsToLNu_TuneZ2_7TeV-madgraph-tauola/Fall11-PU_S6_START44_V9B-v1/AODSIM/V5_B/PAT_CMG_V5_6_0_B', 'cmgtools', '.*root') # WJets.triggers = ["HLT_IsoMu24_v1","HLT_IsoMu24_v2","HLT_IsoMu24_v3","HLT_IsoMu24_v4","HLT_IsoMu24_v5","HLT_IsoMu24_v6","HLT_IsoMu24_v7",\ # "HLT_IsoMu24_v8","HLT_IsoMu24_v9","HLT_IsoMu24_v10","HLT_IsoMu24_v11","HLT_IsoMu24_v12","HLT_IsoMu24_v13","HLT_IsoMu24_v14",\ # "HLT_IsoMu24_eta2p1_v1","HLT_IsoMu24_eta2p1_v2","HLT_IsoMu24_eta2p1_v3","HLT_IsoMu24_eta2p1_v4","HLT_IsoMu24_eta2p1_v5",\ # "HLT_IsoMu24_eta2p1_v6","HLT_IsoMu24_eta2p1_v7","HLT_IsoMu24_eta2p1_v8" # ] # selectedComponents = [WJets] # WJets.splitFactor = 1500 # TEST WJets1 = copy.deepcopy(WJets) WJets1.files = getFiles('/WJetsToLNu_TuneZ2Star_8TeV-madgraph-tarball/Summer12_DR53X-PU_S10_START53_V7A-v2/AODSIM/V5_B/PAT_CMG_V5_18_0_NewTauID', 'cmgtools', '.*root') WJets1.triggers = triggers_mu # WJets1.files = WJets1.files[:1600] WJets1.splitFactor = 1000 WJets1.name = 'WJets1' WJets2 = copy.deepcopy(WJets) WJets2.files = getFiles('/WJetsToLNu_TuneZ2Star_8TeV-madgraph-tarball/Summer12_DR53X-PU_S10_START53_V7A-v2/AODSIM/V5_B/PAT_CMG_V5_18_0_NewTauID', 'cmgtools', '.*root') WJets2.triggers = triggers_mu WJets2.files = WJets2.files[1600:] WJets2.splitFactor = 1000 WJets2.name = 'WJets2' selectedComponents = [WJets1,WJets2] # # TEST selectedComponents = [WJets1] # WJets1.files = WJets1.files[:2]
import copy import CMGTools.RootTools.fwlite.Config as cfg from CMGTools.H2TauTau.proto.samples.getFiles import getFiles files = getFiles('/TTJets_TuneZ2star_8TeV-madgraph-tauola/Summer12-PU_S7_START52_V9-v1/AODSIM/V5/PAT_CMG_V5_4_0_NewType1MET/','cmgtools', 'cmgTuple_.*root')[:1] ana = cfg.Analyzer( 'TopCandidateTreeAnalyzer', verbose = False, # jetMassParametersFile = 'JetMassAnalyzer300_400/TTJets/JetMassAnalyzer/fitParameters.txt', jetMassParametersFile = 'JetMassAnalyzer600_700/TTJets/JetMassAnalyzer/fitParameters.txt', # jetMassParametersFile = 'JetMassAnalyzer900_1000/TTJets/JetMassAnalyzer/fitParameters.txt', jetCollections = { 'aktRecluster1p0Hadronic':0.8, }, listOfBTagsAlgos = [ 'csv_tight', 'csv_medium', 'csv_loose', 'jp_tight', 'jp_medium', 'jp_loose', ## 'tchp_tight',#forgot this on in cmgtuplization ] ) ##private sample
sequence = cfg.Sequence( [ genAna, jsonAna, triggerAna, vertexAna, WAna, WtreeProducer, ZAna, ZtreeProducer ] ) from CMGTools.H2TauTau.proto.samples.diboson import WWJetsTo2L2Nu, WZJetsTo2L2Q, WZJetsTo3LNu, ZZJetsTo2L2Nu, ZZJetsTo2L2Q, ZZJetsTo4L from CMGTools.H2TauTau.proto.samples.getFiles import getFiles WWJetsTo2L2Nu.files = getFiles('/WWJetsTo2L2Nu_TuneZ2_7TeV-madgraph-tauola/Fall11-PU_S6_START42_V14B-v1/AODSIM/PAT_CMG_V5_6_0_B', 'cmgtools', '.*root') WWJetsTo2L2Nu.triggers = ["HLT_IsoMu24_v1","HLT_IsoMu24_v2","HLT_IsoMu24_v3","HLT_IsoMu24_v4","HLT_IsoMu24_v5","HLT_IsoMu24_v6","HLT_IsoMu24_v7",\ "HLT_IsoMu24_v8","HLT_IsoMu24_v9","HLT_IsoMu24_v10","HLT_IsoMu24_v11","HLT_IsoMu24_v12","HLT_IsoMu24_v13","HLT_IsoMu24_v14",\ "HLT_IsoMu24_eta2p1_v1","HLT_IsoMu24_eta2p1_v2","HLT_IsoMu24_eta2p1_v3","HLT_IsoMu24_eta2p1_v4","HLT_IsoMu24_eta2p1_v5",\ "HLT_IsoMu24_eta2p1_v6","HLT_IsoMu24_eta2p1_v7","HLT_IsoMu24_eta2p1_v8" ] WZJetsTo3LNu.files = getFiles('/WZJetsTo3LNu_TuneZ2_7TeV-madgraph-tauola/Fall11-PU_S6_START42_V14B-v1/AODSIM/PAT_CMG_V5_6_0_B', 'cmgtools', '.*root') WZJetsTo3LNu.triggers = ["HLT_IsoMu24_v1","HLT_IsoMu24_v2","HLT_IsoMu24_v3","HLT_IsoMu24_v4","HLT_IsoMu24_v5","HLT_IsoMu24_v6","HLT_IsoMu24_v7",\ "HLT_IsoMu24_v8","HLT_IsoMu24_v9","HLT_IsoMu24_v10","HLT_IsoMu24_v11","HLT_IsoMu24_v12","HLT_IsoMu24_v13","HLT_IsoMu24_v14",\ "HLT_IsoMu24_eta2p1_v1","HLT_IsoMu24_eta2p1_v2","HLT_IsoMu24_eta2p1_v3","HLT_IsoMu24_eta2p1_v4","HLT_IsoMu24_eta2p1_v5",\ "HLT_IsoMu24_eta2p1_v6","HLT_IsoMu24_eta2p1_v7","HLT_IsoMu24_eta2p1_v8" ] ZZJetsTo2L2Nu.files = getFiles('/ZZJetsTo2L2Nu_TuneZ2_7TeV-madgraph-tauola/Fall11-PU_S6_START42_V14B-v1/AODSIM/V5_B/PAT_CMG_V5_6_0_B', 'cmgtools', '.*root') ZZJetsTo2L2Nu.triggers = ["HLT_IsoMu24_v1","HLT_IsoMu24_v2","HLT_IsoMu24_v3","HLT_IsoMu24_v4","HLT_IsoMu24_v5","HLT_IsoMu24_v6","HLT_IsoMu24_v7",\
from CMGTools.WMass.analyzers.CoreModule_53X_cff import * ZtreeProducer.storeLHE_weight = True ZAna.storeLHE_weight = True ZAna.use_newWeights = True ZAna.doMad = False sequence = cfg.Sequence(CoreZsequence) from CMGTools.H2TauTau.proto.samples.ewk import DYJets from CMGTools.H2TauTau.proto.samples.getFiles import getFiles # DYJets.files = getFiles('/DYJetsToLL_TuneZ2_M-50_7TeV-madgraph-tauola/Fall11-PU_S6_START42_V14B-v1/AODSIM/V5_B/PAT_CMG_V5_6_0_B', 'cmgtools', '.*root') # DYJets.files = getFiles('/DYJetsToLL_M-50_7TeV-madgraph-pythia6-tauola/Summer11LegDR-PU_S13_START53_LV6-v1/AODSIM/V5_B/PAT_CMG_V5_18_0', 'cmgtools', '.*root') # DYJets.files = getFiles('/DYToMuMu_M-50To250_ew-BMNNP_7TeV-powheg/Summer11LegDR-PU_S13_START53_LV6-v1/AODSIM/V5_B/PAT_CMG_V5_18_0', 'cmgtools', '.*root') DYJets.files = getFiles( '/DYToMuMu_M-50To250_ew-BMNNP_7TeV-powheg/Summer11LegDR-PU_S13_START53_LV6-v1/AODSIM/V5_B/PAT_CMG_V5_18_0_newLHEweights', 'wmass_group', '.*root') # 790 DYJets.triggers = triggers_mu DYJets.splitFactor = 900 DYJets2 = copy.deepcopy(DYJets) DYJets2.name = 'DYJets2' # DYJets2.files = getFiles('/DYToMuMu_M-50To250_ew-BMNNP_7TeV-powheg-pythia8/Summer11LegDR-PU_S13_START53_LV6-v1/AODSIM/V5_B/PAT_CMG_V5_18_0', 'cmgtools', '.*root') DYJets2.files = getFiles( '/DYToMuMu_M-50To250_ew-BMNNP_7TeV-powheg-pythia8/Summer11LegDR-PU_S13_START53_LV6-v1/AODSIM/V5_B/PAT_CMG_V5_18_0_newLHEweights', 'wmass_group', '.*root') # 854 DYJets3 = copy.deepcopy(DYJets) DYJets3.name = 'DYJets3' # DYJets3.files = getFiles('/DYToMuMu_M-50To250_ew-BMNNP_7TeV-powheg-pythia8/Summer11LegDR-PU_S13_START53_LV6-v2/AODSIM/V5_B/PAT_CMG_V5_18_0', 'cmgtools', '.*root') DYJets3.files = getFiles(
genAna, jsonAna, triggerAna, vertexAna, # WAna, # WtreeProducer, ZAna, ZtreeProducer ] ) from CMGTools.H2TauTau.proto.samples.ewk import WJets, DYJets, TTJets from CMGTools.H2TauTau.proto.samples.getFiles import getFiles # DYJets.files = getFiles('/DYJetsToLL_TuneZ2_M-50_7TeV-madgraph-tauola/Fall11-PU_S6_START42_V14B-v1/AODSIM/V5_B/PAT_CMG_V5_6_0_B', 'cmgtools', '.*root') DYJets.files = getFiles('/DYJetsToLL_TuneZ2_M-50_7TeV-madgraph-tauola/Fall11-PU_S6_START44_V9B-v1/AODSIM/V5_B/PAT_CMG_V5_6_0_B', 'cmgtools', '.*root') DYJets.files = DYJets.files[:1] # DYJets.triggers = ["HLT_IsoMu24_v[1,2,3,4,5,6,7,8,9,10,11,12,13,14]"] # DYJets.triggers = ["HLT_IsoMu24_v*"] DYJets.triggers = ["HLT_IsoMu24_v1","HLT_IsoMu24_v2","HLT_IsoMu24_v3","HLT_IsoMu24_v4","HLT_IsoMu24_v5","HLT_IsoMu24_v6","HLT_IsoMu24_v7",\ "HLT_IsoMu24_v8","HLT_IsoMu24_v9","HLT_IsoMu24_v10","HLT_IsoMu24_v11","HLT_IsoMu24_v12","HLT_IsoMu24_v13","HLT_IsoMu24_v14",\ "HLT_IsoMu24_eta2p1_v1","HLT_IsoMu24_eta2p1_v2","HLT_IsoMu24_eta2p1_v3","HLT_IsoMu24_eta2p1_v4","HLT_IsoMu24_eta2p1_v5",\ "HLT_IsoMu24_eta2p1_v6","HLT_IsoMu24_eta2p1_v7","HLT_IsoMu24_eta2p1_v8" ] WJets.files = getFiles('/WJetsToLNu_TuneZ2_7TeV-madgraph-tauola/Fall11-PU_S6_START42_V14B-v1/AODSIM/V5_B/PAT_CMG_V5_6_0_B', 'cmgtools', '.*root') WJets.files = WJets.files[:1] # WJets.triggers = ["HLT_IsoMu24_v[1,2,3,4,5,6,7,8,9,10,11,12,13,14]"] WJets.triggers = ["HLT_IsoMu24_v1","HLT_IsoMu24_v2","HLT_IsoMu24_v3","HLT_IsoMu24_v4","HLT_IsoMu24_v5","HLT_IsoMu24_v6","HLT_IsoMu24_v7",\ "HLT_IsoMu24_v8","HLT_IsoMu24_v9","HLT_IsoMu24_v10","HLT_IsoMu24_v11","HLT_IsoMu24_v12","HLT_IsoMu24_v13","HLT_IsoMu24_v14",\ "HLT_IsoMu24_eta2p1_v1","HLT_IsoMu24_eta2p1_v2","HLT_IsoMu24_eta2p1_v3","HLT_IsoMu24_eta2p1_v4","HLT_IsoMu24_eta2p1_v5",\
from CMGTools.H2TauTau.proto.samples.getFiles import getFiles from CMGTools.H2TauTau.proto.samples.higgs import * from CMGTools.H2TauTau.proto.samples.triggers_tauMu import data_triggers_2011A, data_triggers_2011B, mc_triggers_fall11 user = '******' filePattern = 'tauMu.*fullsel.*root' # Higgs Summer11 ---------------------------------------------------------------------------- # not available yet HiggsVBF125.files = getFiles( '/H2TAUTAU/Sync/VBF/AOD/PAT_CMG_PhilV1/TAUMU_BugFix_May28', user, filePattern) HiggsVBF125.nGenEvents = 198612 HiggsGGH125.files = getFiles( '/H2TAUTAU/Sync/GluGlu/AOD/PAT_CMG_PhilV1/TAUMU_BugFix_May28', user, filePattern) HiggsGGH125.nGenEvents = 198612 MC = [] for mc in mc_higgs: mc.triggers = ["HLT_IsoMu15_eta2p1_LooseIsoPFTau20_v1"] MC.append(mc) if __name__ == '__main__': def printSamples(sams): for sam in sams: print