syncntuple = False pick_events = False # Define extra modules tauIsoCalc = cfg.Analyzer(TauIsolationCalculator, name='TauIsolationCalculator', getter=lambda event: [event.leg2]) muonIsoCalc = cfg.Analyzer(MuonIsolationCalculator, name='MuonIsolationCalculator', getter=lambda event: [event.leg1]) fileCleaner = cfg.Analyzer(FileCleaner, name='FileCleaner') if computeSVfit: sequence.insert(sequence.index(muonWeighter), svfitProducer) sequence.insert(sequence.index(treeProducer), muonIsoCalc) sequence.insert(sequence.index(treeProducer), tauIsoCalc) # treeProducer.addIsoInfo = True # treeProducer.addTauTrackInfo = True # treeProducer.addMoreJetInfo = True treeProducer.skimFunction = 'event.leptonAccept and event.thirdLeptonVeto and event.otherLeptonVeto and event.diLepton.leg2().tauID("againstMuonTight3")>0.5 and event.diLepton.leg2().tauID("againstElectronVLooseMVA6")>0.5' svfitProducer.skimFunction = 'event.leptonAccept and event.thirdLeptonVeto and event.otherLeptonVeto and event.diLepton.leg2().tauID("againstMuonTight3")>0.5 and event.diLepton.leg2().tauID("againstElectronVLooseMVA6")>0.5' if cmssw: tauMuAna.from_single_objects = False # Minimal list of samples
name='TauIsolationCalculator', getter=lambda event: [event.leg2] ) muonIsoCalc = cfg.Analyzer( MuonIsolationCalculator, name='MuonIsolationCalculator', getter=lambda event: [event.leg1] ) fileCleaner = cfg.Analyzer( FileCleaner, name='FileCleaner' ) sequence.insert(sequence.index(treeProducer), muonIsoCalc) sequence.insert(sequence.index(treeProducer), tauIsoCalc) treeProducer.addIsoInfo = True if cmssw: tauMuAna.from_single_objects = False # Minimal list of samples samples = backgrounds_mu + sm_signals + mssm_signals + sync_list split_factor = 2e4 for sample in samples: sample.triggers = mc_triggers sample.triggerobjects = mc_triggerfilters