def end_sequence(eventWise_path, end_time, dijet_mass=None, jet_pt_cut=None): run_fix(eventWise_path, end_time) # score clusterings ParallelFormJets.run_score(eventWise_path, end_time, dijet_mass) if time.time() > end_time: return # calculate mass peaks if jet_pt_cut is not None: ParallelFormJets.run_correct_masses(eventWise_path, end_time, jet_pt_cut) if time.time() > end_time: return
def end_sequence(eventWise_path, end_time, z_cuts=None, dijet_mass=None, jet_pt_cut=None): """ Scan over all combinations of a range of options. then score the result Parameters ---------- eventWise_path : str Path to the dataset used for input and writing outputs. jet_class : str end_time : int time to stop scanning. scan_parameters : dict or str fix_parameters : dict dijet_mass : float mass of the dijets for scoring if not given the events are not scored irc_prep: bool should the file be preped for irc calculations? """ # make pileup free jets if z_cuts is not None: #jet_names = ["AntiKTp4Jet", "AntiKTp8Jet", "CAp4Jet", "CAp8Jet", "KTp4Jet", "KTp8Jet"] jet_names = None ParallelFormJets.run_modified_mass_drop(eventWise_path, end_time, z_cuts, jet_names) if time.time() > end_time: return # score clusterings ParallelFormJets.run_score(eventWise_path, end_time, dijet_mass) if time.time() > end_time: return # calculate mass peaks if jet_pt_cut is not None: ParallelFormJets.run_correct_masses(eventWise_path, end_time, jet_pt_cut) if time.time() > end_time: return