min_4th_jet_pt=20, min_nsemilepmuons=1, min_ht=500) process.trignjetsslep = cuts.clone(min_nsemileptons=1) process.trigonly = cuts.clone(min_njets=0, min_4th_jet_pt=0) for name in process.filters.keys(): setattr(process, 'p' + name, cms.Path(getattr(process, name))) if use_weights: process.load('JMTucker.MFVNeutralino.WeightProducer_cfi') import JMTucker.Tools.SimpleTriggerEfficiency_cfi as SimpleTriggerEfficiency SimpleTriggerEfficiency.setup_endpath( process, weight_src='mfvWeight' if use_weights else '') if __name__ == '__main__' and hasattr(sys, 'argv') and 'submit' in sys.argv: import JMTucker.Tools.Samples as Samples samples = Samples.qcd_samples + Samples.ttbar_samples + Samples.mfv_signal_samples + Samples.leptonic_background_samples from JMTucker.Tools.CRABSubmitter import CRABSubmitter from JMTucker.Tools.SampleFiles import SampleFiles cs = CRABSubmitter( 'EventsCutplay', total_number_of_events=1000000, events_per_job=500000, manual_datasets=SampleFiles['MFVNtupleV15'], ) cs.submit_all(samples)
process.p *= obj vtx_srcs.append(cms.InputTag(name)) process.nmx = cms.EDAnalyzer( 'NmxHistos', weight_src=cms.InputTag('mfvWeight'), use_weight=cms.bool(False), vertex_srcs=cms.VInputTag(*vtx_srcs), ) process.p *= process.nmx if __name__ == '__main__' and hasattr(sys, 'argv') and 'submit' in sys.argv: import JMTucker.Tools.Samples as Samples samples = Samples.from_argv([ Samples.mfv_neutralino_tau0100um_M0400, Samples. mfv_neutralino_tau1000um_M0400, Samples.mfv_neutralino_tau0300um_M0400, Samples.mfv_neutralino_tau9900um_M0400 ] + Samples.ttbar_samples + Samples.qcd_samples + Samples.data_samples) for s in Samples.data_samples: s.json = 'ana_all.json' from JMTucker.Tools.CRABSubmitter import CRABSubmitter cs = CRABSubmitter( 'NmxV20', job_control_from_sample=True, use_ana_dataset=True, ) cs.submit_all(samples)