def create_output(self): value = self.MWparam.startevent self.MWparam.startevent = 0 self.MWparam.norm_with_cross = 1 option = [' ', '-8'] #prepare the option self.MWparam.set_run_opt(option) madweight.Launch_all_SubProcess(self.MWparam) # launch the refine self.MWparam.norm_with_cross = 1 plot.Likelihood(mw_param=self.MWparam, auto=1) # create the updated output file self.MWparam.startevent = value
os.chdir('./Source/MadWeight/transfer_function') change_tf.create_TF_main(name, 0, MW_dir) print(os.getcwd()) os.chdir('../../..') break if MWparam.run_opt['param']: create_param.Param_card(run_name=MWparam) MWparam.update_nb_card() Cards.create_include_file(MWparam) update_cuts_status(MWparam) if MWparam.run_opt['analyzer']: write_MadWeight.create_all_fortran_code(MWparam) if MWparam.run_opt['madweight_main']: Launch_all_SubProcess(MWparam) if MWparam.run_opt['plot']: import plot plot.Likelihood(mw_param=MWparam, auto=1) if MWparam['mw_run']['histo']: plot.Differential_Graph(MWparam, auto=1) if MWparam.run_opt['clean']: print('cleaning in progress ....') from clean import Clean_run if MWparam.run_opt['clean'] == 1: Clean_run(MWparam.name) else: Clean_run(MWparam.run_opt['clean'])