コード例 #1
0
def config_analysis( alg_list, args ) :

    truth_filt = Filter('BuildTruth') 
    #truth_filt.cut_ph_pt = ' > 5 '
    truth_filt.cut_ph_status = ' == 1 '
    #truth_filt.cut_ph_mother = ' <= 25 '
    truth_filt.cut_ph_IsPromptFinalState = ' == True '
    #truth_filt.cut_ph_FromHardProcessFinalState = ' == True '

    alg_list.append( truth_filt )

    alg_list.append( weight_event(args) )
コード例 #2
0
ファイル: ConfPhotonReco.py プロジェクト: jkunkle/usercode
def build_truth( args ) :

    truth_filt = Filter('BuildTruth') 

    truth_filt.cut_lep_mother = ' == 24 || == -24 ||  == 11 || == -11 || == 12 || == -12 || == 13 || == -13 || == 14 || == -14 || == 15 || == -15 || == 16 || == -16 '

    truth_filt.cut_ph_pt = ' > 5 '
    truth_filt.cut_ph_IsPromptFinalState = ' == True '

    doFHPFS = args.get( 'doFHPFS', False )
    if doFHPFS == 'true' :
        truth_filt.cut_ph_FromHardProcessFinalState = ' == True '

    return truth_filt