data_path = "/data/rschoefbeck/cmgTuples/MC25ns_v2_1l/" from CMGTools.RootTools.samples.samples_13TeV_RunIISpring15MiniAODv2 import * from StopsDilepton.samples.helpers import getSubDir import os mcSamples = [] for s in samples: s.isData = False s.treeName = "tree" ##for production with heppy_batch # s.rootFileLocation = "treeProducerSusySingleLepton/tree.root" # s.skimAnalyzerDir = "skimAnalyzerCount" ##for production with crab s.skimAnalyzerDir = "" s.rootFileLocation = "tree.root" subDir = getSubDir(s.dataset) if not subDir: print "Warning: Not a good dataset name: %s"%s.dataset continue path = '/'.join([ data_path, getSubDir(s.dataset) ] ) if os.path.exists(path): s.path = path s.chunkString = subDir mcSamples.append(s) else: print "Did not find %s in %s"%(s.name, path) print print "Found %i MC datasets in %s\n%s"% (len(mcSamples), data_path, (", ".join([s.name for s in mcSamples]))) print
#from CMGTools.RootTools.samples.TTbarDMJets_signals_RunIISpring15MiniAODv2 import * from StopsDilepton.samples.helpers import getSubDir import os mcSamples = [] for s in bkgSamples + TTJetsDMSamples: s.isData = False s.treeName = "tree" ##for production with heppy_batch # s.rootFileLocation = "treeProducerSusySingleLepton/tree.root" # s.skimAnalyzerDir = "skimAnalyzerCount" ##for production with crab s.skimAnalyzerDir = "" s.rootFileLocation = "tree.root" subDir = getSubDir(s.dataset) if not subDir: print "Warning: Not a good dataset name: %s" % s.dataset continue path = '/'.join([data_path, getSubDir(s.dataset)]) if os.path.exists(path): s.path = path s.chunkString = subDir mcSamples.append(s) else: print "Did not find %s in %s" % (s.name, path) print print "Found %i MC datasets in %s\n%s" % (len(mcSamples), data_path, (", ".join( [s.name for s in mcSamples])))
#data_path = "/afs/cern.ch/work/s/schoef/Run2015D_1l_4" data_path = '/data/rschoefbeck/cmgTuples/Run2015D_1l_151225' from CMGTools.RootTools.samples.samples_13TeV_DATA2015 import * from StopsDilepton.samples.helpers import getSubDir import os samples = [DoubleEG_Run2015D_Promptv4, MuonEG_Run2015D_Promptv4, DoubleMuon_Run2015D_Promptv4, DoubleEG_Run2015D_05Oct, MuonEG_Run2015D_05Oct, DoubleMuon_Run2015D_05Oct] dataSamples=[] for s in samples: s.isData = True s.treeName = "tree" subDir = getSubDir(s.dataset) path = '/'.join([ data_path, subDir ] ) s.skimAnalyzerDir = "" s.rootFileLocation = "tree.root" ##for production with heppy_batch # s.rootFileLocation = "treeProducerSusySingleLepton/tree.root" # s.skimAnalyzerDir = "skimAnalyzerCount" # subDir = s.name # path = data_path ##for production with crab s.json = '$CMSSW_BASE/src/CMGTools/TTHAnalysis/data/json/Cert_246908-260627_13TeV_PromptReco_Collisions15_25ns_JSON_v2.txt' if not subDir: print "Warning: Not a good dataset name: %s"%s.dataset continue if os.path.exists(path): s.path = path s.chunkString = subDir dataSamples.append(s)