def config_analysis( alg_list, args ) : """ Configure analysis modules. Order is preserved """ RemoveOlap = Filter( 'RemoveOlap' ) RemoveOlap.cut_el_ph_dr = ' > 0.4' RemoveOlap.cut_trigel_ph_dr = ' > 0.4' alg_list.append( RemoveOlap ) FilterEvent = Filter( 'FilterEvent' ) FilterEvent.cut_n_ph = ' > 0 ' alg_list.append( FilterEvent )
def config_analysis( alg_list ) : """ Configure analysis modules. Order is preserved """ # for complicated configurations, define a function # that returns the Filter object and append it to the # alg list. Otherwise you can directly append # a Filter object to the list # There is no restriction on the naming or inputs to these funtions filter_event = Filter('FilterEvent') filter_event.cut_n_ph = ' == 2 ' #filter_event.cut_n_el_passtrig = ' > 0 ' alg_list.append( filter_event ) make_ntuple = Filter( 'MakeGGNtuple' ) #make_ntuple.cut_tag_pt = ' > 27 ' #make_ntuple.cut_tag_triggerMatch = ' == True ' alg_list.append( make_ntuple )