from CMGTools.TTbarTime.proto.samples.fall17.ttbar2017_update import mc_ttbar as mc_ttbar events_to_pick = [] selectedComponents = mc_ttbar ################################################################################ ############################################################################ # Test ############################################################################ if (year == '2016'): import CMGTools.TTbarTime.proto.samples.summer16.ttbar2016 as backgrounds_forindex elif (year == '2017'): import CMGTools.TTbarTime.proto.samples.fall17.ttbar2017_update as backgrounds_forindex from CMGTools.H2TauTau.proto.samples.component_index import ComponentIndex bindex = ComponentIndex(backgrounds_forindex) if test: cache = True comp = bindex.glob('MC_a_dilep')[0] #MC_a_dilep #'MC_y_DY_50' selectedComponents = [comp] comp.files = comp.files[:1] comp.splitFactor = 1 comp.fineSplitFactor = 1 ############################################################################ # Muon ############################################################################ # setting up an alias for our isolation, now use iso_htt everywhere
keepFailingEvents=True, verbose=False) ################################################################################ # Components ################################################################################ from CMGTools.TTbarTime.proto.samples.fall17.ttbar2017 import mc_ttbar events_to_pick = [] selectedComponents = mc_ttbar import CMGTools.TTbarTime.proto.samples.fall17.ttbar2017 as backgrounds_forindex from CMGTools.H2TauTau.proto.samples.component_index import ComponentIndex bindex = ComponentIndex(backgrounds_forindex) if test: cache = True comp = bindex.glob('signal_MC_dilep')[0] selectedComponents = [comp] comp.files = comp.files[:1] comp.splitFactor = 1 comp.fineSplitFactor = 1 ################################################################################ ################################################################################ from CMGTools.H2TauTau.heppy.analyzers.JetAnalyzer import JetAnalyzer from CMGTools.H2TauTau.heppy.analyzers.JetCleaner import JetCleaner from CMGTools.H2TauTau.heppy.analyzers.EventFilter import EventFilter from CMGTools.H2TauTau.heppy.analyzers.Selector import Selector
add_tau_fr_info = getHeppyOption('add_tau_fr_info', False) ############### # global tags ############### from CMGTools.H2TauTau.heppy.sequence.common import gt_mc, gt_data, gt_embed ############### # Components ############### from CMGTools.RootTools.utils.splitFactor import splitFactor from CMGTools.H2TauTau.proto.samples.component_index import ComponentIndex import CMGTools.H2TauTau.proto.samples.fall17.higgs as higgs index=ComponentIndex(higgs) import CMGTools.H2TauTau.proto.samples.fall17.data as data_forindex dindex = ComponentIndex(data_forindex) from CMGTools.H2TauTau.proto.samples.fall17.higgs_susy import mssm_signals from CMGTools.H2TauTau.proto.samples.fall17.higgs import sync_list import CMGTools.H2TauTau.proto.samples.fall17.backgrounds as backgrounds_forindex bindex = ComponentIndex( backgrounds_forindex) from CMGTools.H2TauTau.proto.samples.fall17.backgrounds import backgrounds import CMGTools.H2TauTau.proto.samples.fall17.embedded as embedded_forindex eindex = ComponentIndex( embedded_forindex) from CMGTools.H2TauTau.proto.samples.fall17.triggers_tauTau import mc_triggers, mc_triggerfilters from CMGTools.H2TauTau.proto.samples.fall17.triggers_tauTau import data_triggers, data_triggerfilters, embedded_triggerfilters from CMGTools.H2TauTau.heppy.sequence.common import puFileData, puFileMC
############### # global tags ############### gt_mc = 'Fall17_17Nov2017_V6_MC' gt_data = 'Fall17_17Nov2017{}_V6_DATA' ############### # Components ############### from CMGTools.RootTools.utils.splitFactor import splitFactor from CMGTools.H2TauTau.proto.samples.component_index import ComponentIndex import CMGTools.H2TauTau.proto.samples.fall17.higgs as higgs index = ComponentIndex(higgs) from CMGTools.H2TauTau.proto.samples.fall17.data import data_single_muon from CMGTools.H2TauTau.proto.samples.fall17.higgs_susy import mssm_signals from CMGTools.H2TauTau.proto.samples.fall17.higgs import sync_list from CMGTools.H2TauTau.proto.samples.fall17.backgrounds import backgrounds from CMGTools.H2TauTau.proto.samples.fall17.triggers_tauMu import mc_triggers, mc_triggerfilters from CMGTools.H2TauTau.proto.samples.fall17.triggers_tauMu import data_triggers, data_triggerfilters from CMGTools.H2TauTau.htt_ntuple_base_cff import puFileData, puFileMC mc_list = backgrounds + sync_list + mssm_signals data_list = data_single_muon n_events_per_job = 1e5 for sample in mc_list:
#!/usr/bin/env python from CMGTools.H2TauTau.proto.samples.component_index import ComponentIndex if __name__ == '__main__': import os import sys import imp import pprint from optparse import OptionParser usage = "usage: %prog [options] pattern" parser = OptionParser(usage=usage) default_module = os.path.expandvars( '$CMSSW_BASE/src/CMGTools/H2TauTau/python/proto/samples/summer16/htt_common.py' ) parser.add_option("-m", "--module", dest="module", default=default_module, help='column containing event number') (options, args) = parser.parse_args() if len(args) != 1: print parser.usage sys.exit(1) pattern = args[0] index = ComponentIndex(options.module) pprint.pprint(index.glob(pattern))
add_tau_fr_info = getHeppyOption('add_tau_fr_info', False) ############### # global tags ############### from CMGTools.H2TauTau.heppy.sequence.common import gt_mc, gt_data, gt_embed ############### # Components ############### from CMGTools.RootTools.utils.splitFactor import splitFactor from CMGTools.H2TauTau.proto.samples.component_index import ComponentIndex import CMGTools.H2TauTau.proto.samples.fall17.higgs as higgs index = ComponentIndex(higgs) import CMGTools.H2TauTau.proto.samples.fall17.data as data_forindex dindex = ComponentIndex(data_forindex) from CMGTools.H2TauTau.proto.samples.fall17.higgs_susy import mssm_signals from CMGTools.H2TauTau.proto.samples.fall17.higgs import sync_list import CMGTools.H2TauTau.proto.samples.fall17.backgrounds as backgrounds_forindex bindex = ComponentIndex(backgrounds_forindex) backgrounds = backgrounds_forindex.backgrounds import CMGTools.H2TauTau.proto.samples.fall17.embedded as embedded_forindex eindex = ComponentIndex(embedded_forindex) from CMGTools.H2TauTau.proto.samples.fall17.triggers_tauMu import mc_triggers, mc_triggerfilters, embed_triggers, embed_triggerfilters from CMGTools.H2TauTau.proto.samples.fall17.triggers_tauMu import data_triggers, data_triggerfilters from CMGTools.H2TauTau.heppy.sequence.common import puFileData, puFileMC
syncntuple = getHeppyOption('syncntuple', True) cmssw = getHeppyOption('cmssw', False) cmssw_reuse = getHeppyOption('cmssw_reuse', False) computeSVfit = getHeppyOption('computeSVfit', False) data = getHeppyOption('data', False) tes_string = getHeppyOption('tes_string', '') # '_tesup' '_tesdown' reapplyJEC = getHeppyOption('reapplyJEC', False) calibrateTaus = getHeppyOption( 'calibrateTaus', False) # done in taumuanalyzer because this way sucks. correct_recoil = getHeppyOption('correct_recoil', True) # For specific studies add_iso_info = getHeppyOption('add_iso_info', False) add_tau_fr_info = getHeppyOption('add_tau_fr_info', False) compindex = ComponentIndex(higgs_susy) data_list = compindex.glob('data_single_muon') samples = compindex.glob('*BB1000*') nevts_per_file = 1e4 if (not cmssw) or production: cmssw_reuse = False # Just to be sure if production: # syncntuple = False pick_events = False if reapplyJEC: