if not len(args): parser.print_help() raise(Exception, 'ERROR - must pass input files on command line') files = args[0].split(',') ##################################################### # # CONFIGURATION # ##################################################### ## ----------------- Selectors ------------------ ## # Tau Selector tau_selector = TauSelector() tau_selector.min_pt = 15000. tau_selector.max_eta = 3. # Muon Selector muon_selector = MuonSelector() muon_selector.min_pt = 15000. muon_selector.max_eta = 3. muon_selector.req_tight = False muon_selector.req_combined = True muon_selector.max_z0 = 10. muon_selector.req_trt_cleaning = True muon_selector.min_BLHits = 1 muon_selector.min_PixHits = 2 muon_selector.min_SCTHits = 6 muon_selector.max_SCTHoles = 1
parser.print_help() raise (Exception, 'ERROR - must pass input files on command line') files = [] for arg in args: files += arg.split(',') ##################################################### # # CONFIGURATION # ##################################################### ## ----------------- Selectors ------------------ ## # Tau Selector tau_selector = TauSelector() tau_selector.min_pt = 15000. tau_selector.max_eta = 3.0 tau_selector.req_truth = True ## ----------------- Analyser ---------------- ## analysis = MCTauTriggerAnalyser() # selectors analysis.tau_selector = tau_selector # alg config analysis.max_events = 1000 analysis.input_treename = 'tau' analysis.input_files = files analysis.output_treename = 'TriggerTree' analysis.triggers = [
##################################################### # # CONFIGURATION # ##################################################### GeV = gev = Gev = GEV = geV = gEV = gEv = 1.0e3 ## ----------------- Selectors ------------------ ## #Trigger Selector trig_selector = TriggerSelector() trig_selector.trigger_names = ['EF_mu24i_tight'] # Tau Selector tau_selector = TauSelector() tau_selector.min_pt = 15 * GeV tau_selector.max_eta = 2.47 tau_selector.veto_loose_muon = True tau_selector.min_bdt_jet_score = 0.3 tau_selector.min_bdt_ele_score = 0.3 tau_selector.req_bdt_m = True tau_selector.allowed_authors = [1, 3] #tau_selector.allowed_tracks = [1,2,3,4] tau_selector.nonzero_tracks = True tau_selector.recalculate_tauID = True tau_selector.year_tauID = 2012 # Muon Selector muon_selector = MuonSelector() muon_selector.min_pt = 26 * GeV
parser.print_help() raise(Exception, 'ERROR - must pass input files on command line') files = [] for arg in args: files += arg.split(',') ##################################################### # # CONFIGURATION # ##################################################### ## ----------------- Selectors ------------------ ## # Tau Selector tau_selector = TauSelector() tau_selector.min_pt = 20000. tau_selector.max_eta = 2.47 tau_selector.veto_loose_muon = True #tau_selector.min_bdt_jet_score = 0.3 tau_selector.min_bdt_ele_score = 0.3 tau_selector.req_bdt_l = True tau_selector.allowed_authors = [1,3] tau_selector.allowed_tracks = [1,2,3,4] # Muon Selector muon_selector = MuonSelector() muon_selector.min_pt = 20000. muon_selector.max_eta = 2.4 muon_selector.req_tight = False
## ----------------- Selectors ------------------ ## # Electron Selector ele_selector = ElectronSelector() ele_selector.min_pt = 50000. ele_selector.max_eta = 3. ele_selector.excluded_eta_regions = [[1.37, 1.52]] ele_selector.allowed_authors = [1, 3] ele_selector.req_mediumPP = True ele_selector.req_cleaning = True #ele_selector.max_nucone40 = 999999 ele_selector.max_ptcone40rel = 0.06 ele_selector.max_etcone20rel = 0.2 # Tau Selector tau_selector = TauSelector() tau_selector.min_pt = 50000. tau_selector.max_eta = 2.5 tau_selector.req_bdt_m = True #tau_selector.req_ebdt_m = True #tau_selector.req_muon_veto = True tau_selector.allowed_authors = [1, 3] tau_selector.allowed_ntracks = [1, 3] #tau_selector.req_unit_charge = True #tau_selector.veto_loose_muon = True # TauTau Selector tautau_selector = TauTauSelector() tautau_selector.tau1_selector = ele_selector tautau_selector.tau2_selector = tau_selector tautau_selector.req_overlap_removal = False
# Muon Selector muon_selector = MuonSelector() muon_selector.min_pt = 20000. muon_selector.max_eta = 2.4 muon_selector.req_combined = True #muon_selector.max_z0 = 10. #muon_selector.req_trt_cleaning = True #muon_selector.min_BLHits = 1 #muon_selector.min_PixHits = 2 #muon_selector.min_SCTHits = 6 #muon_selector.max_SCTHoles = 1 muon_selector.max_nucone40 = 1 muon_selector.max_etcone20rel = 0.2 # Tau Selector tau_selector = TauSelector() tau_selector.min_pt = 15000. tau_selector.max_eta = 2.47 tau_selector.req_bdt_m = True #tau_selector.veto_loose_muon = True # TauTau Selector tautau_selector = TauTauSelector() tautau_selector.tau1_selector = muon_selector tautau_selector.tau2_selector = tau_selector tautau_selector.req_overlap_removal = False ## ------------ Skimming and Slimming ------------ ## skimmer = Skimmer() skimmer.selectors.append(tautau_selector)
parser.print_help() raise(Exception, 'ERROR - must pass input files on command line') files = [] for arg in args: files += arg.split(',') ##################################################### # # CONFIGURATION # ##################################################### ## ----------------- Selectors ------------------ ## # Tau Selector tau_selector = TauSelector() tau_selector.min_pt = 15000. tau_selector.max_eta = 2.47 tau_selector.req_bdt_t = True tau_selector.veto_loose_muon = True # Muon Selector muon_selector = MuonSelector() muon_selector.min_pt = 20000. muon_selector.max_eta = 2.4 muon_selector.req_tight = False muon_selector.req_combined = True muon_selector.max_z0 = 10. muon_selector.req_trt_cleaning = True muon_selector.min_BLHits = 1 muon_selector.min_PixHits = 2
parser.print_help() raise (Exception, 'ERROR - must pass input files on command line') files = [] for arg in args: files += arg.split(',') ##################################################### # # CONFIGURATION # ##################################################### ## ----------------- Selectors ------------------ ## # Tau Selector tau_selector = TauSelector() tau_selector.min_pt = 20000. tau_selector.max_eta = 2.47 tau_selector.veto_loose_muon = True # Muon Selector muon_selector = MuonSelector() muon_selector.min_pt = 20000. muon_selector.max_eta = 2.4 muon_selector.req_tight = False muon_selector.req_combined = True muon_selector.max_z0 = 10. muon_selector.req_trt_cleaning = True muon_selector.min_BLHits = 1 muon_selector.min_PixHits = 2 muon_selector.min_SCTHits = 6
parser.print_help() raise (Exception, 'ERROR - must pass input files on command line') files = [] for arg in args: files += arg.split(',') ##################################################### # # CONFIGURATION # ##################################################### ## ----------------- Selectors ------------------ ## # Tau1 Selector (tag) tau1_selector = TauSelector() tau1_selector.min_pt = 100.e3 tau1_selector.max_eta = 2.47 # Tau2 Selector (probe) tau2_selector = TauSelector() tau2_selector.min_pt = 100.e3 tau2_selector.max_eta = 2.47 tau2_selector.allowed_tracks = [1] # DiJet Selector dijet_selector = DiJetSelector() dijet_selector.tau1_selector = tau1_selector dijet_selector.tau2_selector = tau2_selector dijet_selector.min_dphi = 2.7