Skip to content

Commit

Permalink
added flag for factor 2 in the mc normalization since only half of th…
Browse files Browse the repository at this point in the history
…e data events is used
  • Loading branch information
perrozzi committed Sep 1, 2015
1 parent ee497f9 commit 09f37bf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CMGTools/WMass/analysis/launch_analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ def file_exists_and_is_not_empty(fpath):
indip_normalization_lumi_MC = 0; # independent normalization of MC in fb-1 (otherwise normalized to DATA)
intLumi_MC_fb = 81293448/31314/1e3;# data = 4.7499 fb-1 prescaled trigger, 5.1 fb-1 unprescaled; works only if indip_normalization_lumi_MC is TRUE
useAlsoGenPforSig= 1;
normalize_MC_to_half_of_the_data = 1 # useful for W-like because we use half of it to calibrate the recoil

ZMassCentral_MeV = "91188"; # 91.1876
WMassCentral_MeV = "80398"; # 80.385
Expand Down Expand Up @@ -470,6 +471,8 @@ def file_exists_and_is_not_empty(fpath):

if indip_normalization_lumi_MC:
WfileDATA_lumi_SF = intLumi_MC_fb/int_lumi_fb[i]
elif int(normalize_MC_to_half_of_the_data)>0 and sample[i]!="DATA":
WfileDATA_lumi_SF = (int_lumi_fb[DATA]/2)/int_lumi_fb[i]
else:
WfileDATA_lumi_SF = int_lumi_fb[DATA]/int_lumi_fb[i]

Expand Down

0 comments on commit 09f37bf

Please sign in to comment.