Current
To Do items for HH analysis, in no particular order:
  1. Systematics
    1. PDF uncertainties
    2. btag SF uncertainties
  2. btag SF
  3. new ntuples with update BDT after fixing medium muon id
  4. Remove top-pt reweighting (weight + sumofweights)
  5. Update tree names to WJet ZJet TTBar
  6. make new ntuples

To Do items for LQ2 analysis, in no particular order:

  1. errors on 0 background samples - in table and passed to combine tool
    1. make correct
    2. make consistent
  2. study ak4 vs ak5 jets
  3. study matching uncertainty in MadGraph samples
  4. Systematics
    1. PDF uncertainties
    2. JER
    3. JES
    4. alignment - ?
    5. MER
    6. MES
    7. Normalization
    8. MC shape - add 7% and 4% for Z+Jets and W+Jets inclusive/ptbinned comparison
    9. LUMI
  • optimize final selection
    • Use "Asymptotic formulae...." paper?
  • update limit code to work in 7_6_X
  • data-driven DY
    • Z-pt based scale factor?
  • QCD study
  • Update to new muon ID
  • Update to new electron ID
  • Update to new jet ID
  • single top MC samples
  • pick V+Jets MC samples
  • re-work MG scale uncertainties to get them from the sample weights instead of dedicated samples
  • check primary vertex definition
  • MET filters
  • HLT efficiencies
  • data-driven ttbar
  • optimize preselection
Future
  1. Z-pt based NLO scale factor for z+jets
  2. Long-lived rpv susy signal

November 20, 2019

HH Z, tt, QCD normalizations.

Muon channel:

I am in GetNormalizationScaleFactorsAndFbd()
getting muon scale factors :
 selection_data :  35860.066*weight_central*(0.991237*(Eta_muon1>-2.4)*(Eta_muon1<-2.1)+0.994853*(Eta_muon1>-2.1)*(Eta_muon1<-1.6)+0.996413*(Eta_muon1>-1.6)*
(Eta_muon1<-1.2)+0.997157*(Eta_muon1>-1.2)*(Eta_muon1<-0.9)+0.997512*(Eta_muon1>-0.9)*(Eta_muon1<-0.6)+0.99756*(Eta_muon1>-0.6)*(Eta_muon1<-0.3)+0.996745*(Et
a_muon1>-0.3)*(Eta_muon1<-0.2)+0.996996*(Eta_muon1>-0.2)*(Eta_muon1<0.2)+0.99772*(Eta_muon1>0.2)*(Eta_muon1<0.3)+0.998604*(Eta_muon1>0.3)*(Eta_muon1<0.6)+0.9
98321*(Eta_muon1>0.6)*(Eta_muon1<0.9)+0.997682*(Eta_muon1>0.9)*(Eta_muon1<1.2)+0.995252*(Eta_muon1>1.2)*(Eta_muon1<1.6)+0.994919*(Eta_muon1>1.6)*(Eta_muon1<2
.1)+0.987334*(Eta_muon1>2.1)*(Eta_muon1<2.4) )*(0.991237*(Eta_muon2>-2.4)*(Eta_muon2<-2.1)+0.994853*(Eta_muon2>-2.1)*(Eta_muon2<-1.6)+0.996413*(Eta_muon2>-1.
6)*(Eta_muon2<-1.2)+0.997157*(Eta_muon2>-1.2)*(Eta_muon2<-0.9)+0.997512*(Eta_muon2>-0.9)*(Eta_muon2<-0.6)+0.99756*(Eta_muon2>-0.6)*(Eta_muon2<-0.3)+0.996745*
(Eta_muon2>-0.3)*(Eta_muon2<-0.2)+0.996996*(Eta_muon2>-0.2)*(Eta_muon2<0.2)+0.99772*(Eta_muon2>0.2)*(Eta_muon2<0.3)+0.998604*(Eta_muon2>0.3)*(Eta_muon2<0.6)+
0.998321*(Eta_muon2>0.6)*(Eta_muon2<0.9)+0.997682*(Eta_muon2>0.9)*(Eta_muon2<1.2)+0.995252*(Eta_muon2>1.2)*(Eta_muon2<1.6)+0.994919*(Eta_muon2>1.6)*(Eta_muon
2<2.1)+0.987334*(Eta_muon2>2.1)*(Eta_muon2<2.4) )*(1.0)*((0.542239493)*((abs(Eta_muon1)<0.9)*(0.987*(Pt_muon1<25)+0.987*(Pt_muon1>25)*(Pt_muon1<30)+0.998*(Pt
_muon1>30)*(Pt_muon1<40)+0.992*(Pt_muon1>40)*(Pt_muon1<50)+0.985*(Pt_muon1>50)*(Pt_muon1<60)+1.010*(Pt_muon1>60))+(abs(Eta_muon1)>0.9)*(abs(Eta_muon1)<1.2)*(
0.975*(Pt_muon1<25)+0.969*(Pt_muon1>25)*(Pt_muon1<30)+0.979*(Pt_muon1>30)*(Pt_muon1<40)+0.983*(Pt_muon1>40)*(Pt_muon1<50)+0.982*(Pt_muon1>50)*(Pt_muon1<60)+0
.981*(Pt_muon1>60))+(abs(Eta_muon1)>1.2)*(abs(Eta_muon1)<2.1)*(0.986*(Pt_muon1<25)+0.982*(Pt_muon1>25)*(Pt_muon1<30)+0.987*(Pt_muon1>30)*(Pt_muon1<40)+0.991*
(Pt_muon1>40)*(Pt_muon1<50)+0.985*(Pt_muon1>50)*(Pt_muon1<60)+0.993*(Pt_muon1>60))+(abs(Eta_muon1)>2.1)*(abs(Eta_muon1)<2.4)*(0.945*(Pt_muon1<25)+0.942*(Pt_m
uon1>25)*(Pt_muon1<30)+0.940*(Pt_muon1>30)*(Pt_muon1<40)+0.943*(Pt_muon1>40)*(Pt_muon1<50)+0.941*(Pt_muon1>50)*(Pt_muon1<60)+0.942*(Pt_muon1>60))) + (0.45776
0507)*((abs(Eta_muon1)<0.9)*(0.993*(Pt_muon1<25)+0.994*(Pt_muon1>25)*(Pt_muon1<30)+1.000*(Pt_muon1>30)*(Pt_muon1<40)+0.998*(Pt_muon1>40)*(Pt_muon1<50)+0.993*
(Pt_muon1>50)*(Pt_muon1<60)+1.000*(Pt_muon1>60))+(abs(Eta_muon1)>0.9)*(abs(Eta_muon1)<1.2)*(0.998*(Pt_muon1<25)+0.999*(Pt_muon1>25)*(Pt_muon1<30)+0.998*(Pt_m
uon1>30)*(Pt_muon1<40)+0.997*(Pt_muon1>40)*(Pt_muon1<50)+0.993*(Pt_muon1>50)*(Pt_muon1<60)+0.999*(Pt_muon1>60))+(abs(Eta_muon1)>1.2)*(abs(Eta_muon1)<2.1)*(0.
998*(Pt_muon1<25)+0.999*(Pt_muon1>25)*(Pt_muon1<30)+0.999*(Pt_muon1>30)*(Pt_muon1<40)+0.996*(Pt_muon1>40)*(Pt_muon1<50)+0.991*(Pt_muon1>50)*(Pt_muon1<60)+0.9
95*(Pt_muon1>60))+(abs(Eta_muon1)>2.1)*(abs(Eta_muon1)<2.4)*(0.984*(Pt_muon1<25)+0.983*(Pt_muon1>25)*(Pt_muon1<30)+0.975*(Pt_muon1>30)*(Pt_muon1<40)+0.975*(P
t_muon1>40)*(Pt_muon1<50)+0.970*(Pt_muon1>50)*(Pt_muon1<60)+0.971*(Pt_muon1>60))))*((0.542239493)*((abs(Eta_muon2)<0.9)*(0.987*(Pt_muon2<25)+0.987*(Pt_muon2>
25)*(Pt_muon2<30)+0.998*(Pt_muon2>30)*(Pt_muon2<40)+0.992*(Pt_muon2>40)*(Pt_muon2<50)+0.985*(Pt_muon2>50)*(Pt_muon2<60)+1.010*(Pt_muon2>60))+(abs(Eta_muon2)>
0.9)*(abs(Eta_muon2)<1.2)*(0.975*(Pt_muon2<25)+0.969*(Pt_muon2>25)*(Pt_muon2<30)+0.979*(Pt_muon2>30)*(Pt_muon2<40)+0.983*(Pt_muon2>40)*(Pt_muon2<50)+0.982*(P
t_muon2>50)*(Pt_muon2<60)+0.981*(Pt_muon2>60))+(abs(Eta_muon2)>1.2)*(abs(Eta_muon2)<2.1)*(0.986*(Pt_muon2<25)+0.982*(Pt_muon2>25)*(Pt_muon2<30)+0.987*(Pt_muo
n2>30)*(Pt_muon2<40)+0.991*(Pt_muon2>40)*(Pt_muon2<50)+0.985*(Pt_muon2>50)*(Pt_muon2<60)+0.993*(Pt_muon2>60))+(abs(Eta_muon2)>2.1)*(abs(Eta_muon2)<2.4)*(0.94
5*(Pt_muon2<25)+0.942*(Pt_muon2>25)*(Pt_muon2<30)+0.940*(Pt_muon2>30)*(Pt_muon2<40)+0.943*(Pt_muon2>40)*(Pt_muon2<50)+0.941*(Pt_muon2>50)*(Pt_muon2<60)+0.942
*(Pt_muon2>60))) + (0.457760507)*((abs(Eta_muon2)<0.9)*(0.993*(Pt_muon2<25)+0.994*(Pt_muon2>25)*(Pt_muon2<30)+1.000*(Pt_muon2>30)*(Pt_muon2<40)+0.998*(Pt_muo
n2>40)*(Pt_muon2<50)+0.993*(Pt_muon2>50)*(Pt_muon2<60)+1.000*(Pt_muon2>60))+(abs(Eta_muon2)>0.9)*(abs(Eta_muon2)<1.2)*(0.998*(Pt_muon2<25)+0.999*(Pt_muon2>25
)*(Pt_muon2<30)+0.998*(Pt_muon2>30)*(Pt_muon2<40)+0.997*(Pt_muon2>40)*(Pt_muon2<50)+0.993*(Pt_muon2>50)*(Pt_muon2<60)+0.999*(Pt_muon2>60))+(abs(Eta_muon2)>1.
2)*(abs(Eta_muon2)<2.1)*(0.998*(Pt_muon2<25)+0.999*(Pt_muon2>25)*(Pt_muon2<30)+0.999*(Pt_muon2>30)*(Pt_muon2<40)+0.996*(Pt_muon2>40)*(Pt_muon2<50)+0.991*(Pt_
muon2>50)*(Pt_muon2<60)+0.995*(Pt_muon2>60))+(abs(Eta_muon2)>2.1)*(abs(Eta_muon2)<2.4)*(0.984*(Pt_muon2<25)+0.983*(Pt_muon2>25)*(Pt_muon2<30)+0.975*(Pt_muon2
>30)*(Pt_muon2<40)+0.975*(Pt_muon2>40)*(Pt_muon2<50)+0.970*(Pt_muon2>50)*(Pt_muon2<60)+0.971*(Pt_muon2>60))))*(1-(1-(CMVA_bjet1>-0.5884)*Hjet1BsfLoose)*(1-(C
MVA_bjet2>-0.5884)*Hjet2BsfLoose)*(1-(CMVA_Zjet1>-0.5884)*Zjet1BsfLoose)*(1-(CMVA_Zjet2>-0.5884)*Zjet2BsfLoose))*((pass_HLT_Mu17_Mu8)*(Pt_muon1>20)*(Pt_muon2
>10)*(Pt_Hjet1>20)*(Pt_Hjet2>20)*(Pt_Zjet1>20)*(Pt_Zjet2>20)*(M_uu>15)*(isMuonEvent)*(1-isElectronEvent))*(((CMVA_bjet1>-0.5884)+(CMVA_bjet2>-0.5884)+(CMVA_Z
jet1>-0.5884)+(CMVA_Zjet2>-0.5884))>0)*(Charge_muon1*Charge_muon2 < 0)*(passDataCert*Flag_goodVertices*(GoodVertexCount>=1))*(Flag_HBHENoiseFilter*Flag_HBHEN
oiseIsoFilter)*(Flag_eeBadScFilter*Flag_EcalDeadCellTriggerPrimitiveFilter)*(Flag_CSCTightHaloFilter)*(Flag_BadPFMuonFilter*Flag_BadChargedCandidateFilter)

selection:  35860.066*weight_central*(0.991237*(Eta_muon1>-2.4)*(Eta_muon1<-2.1)+0.994853*(Eta_muon1>-2.1)*(Eta_muon1<-1.6)+0.996413*(Eta_muon1>-1.6)*(Eta_m
uon1<-1.2)+0.997157*(Eta_muon1>-1.2)*(Eta_muon1<-0.9)+0.997512*(Eta_muon1>-0.9)*(Eta_muon1<-0.6)+0.99756*(Eta_muon1>-0.6)*(Eta_muon1<-0.3)+0.996745*(Eta_muon
1>-0.3)*(Eta_muon1<-0.2)+0.996996*(Eta_muon1>-0.2)*(Eta_muon1<0.2)+0.99772*(Eta_muon1>0.2)*(Eta_muon1<0.3)+0.998604*(Eta_muon1>0.3)*(Eta_muon1<0.6)+0.998321*
(Eta_muon1>0.6)*(Eta_muon1<0.9)+0.997682*(Eta_muon1>0.9)*(Eta_muon1<1.2)+0.995252*(Eta_muon1>1.2)*(Eta_muon1<1.6)+0.994919*(Eta_muon1>1.6)*(Eta_muon1<2.1)+0.
987334*(Eta_muon1>2.1)*(Eta_muon1<2.4) )*(0.991237*(Eta_muon2>-2.4)*(Eta_muon2<-2.1)+0.994853*(Eta_muon2>-2.1)*(Eta_muon2<-1.6)+0.996413*(Eta_muon2>-1.6)*(Et
a_muon2<-1.2)+0.997157*(Eta_muon2>-1.2)*(Eta_muon2<-0.9)+0.997512*(Eta_muon2>-0.9)*(Eta_muon2<-0.6)+0.99756*(Eta_muon2>-0.6)*(Eta_muon2<-0.3)+0.996745*(Eta_m
uon2>-0.3)*(Eta_muon2<-0.2)+0.996996*(Eta_muon2>-0.2)*(Eta_muon2<0.2)+0.99772*(Eta_muon2>0.2)*(Eta_muon2<0.3)+0.998604*(Eta_muon2>0.3)*(Eta_muon2<0.6)+0.9983
21*(Eta_muon2>0.6)*(Eta_muon2<0.9)+0.997682*(Eta_muon2>0.9)*(Eta_muon2<1.2)+0.995252*(Eta_muon2>1.2)*(Eta_muon2<1.6)+0.994919*(Eta_muon2>1.6)*(Eta_muon2<2.1)
+0.987334*(Eta_muon2>2.1)*(Eta_muon2<2.4) )*(1.0)*((0.542239493)*((abs(Eta_muon1)<0.9)*(0.987*(Pt_muon1<25)+0.987*(Pt_muon1>25)*(Pt_muon1<30)+0.998*(Pt_muon1
>30)*(Pt_muon1<40)+0.992*(Pt_muon1>40)*(Pt_muon1<50)+0.985*(Pt_muon1>50)*(Pt_muon1<60)+1.010*(Pt_muon1>60))+(abs(Eta_muon1)>0.9)*(abs(Eta_muon1)<1.2)*(0.975*
(Pt_muon1<25)+0.969*(Pt_muon1>25)*(Pt_muon1<30)+0.979*(Pt_muon1>30)*(Pt_muon1<40)+0.983*(Pt_muon1>40)*(Pt_muon1<50)+0.982*(Pt_muon1>50)*(Pt_muon1<60)+0.981*(
Pt_muon1>60))+(abs(Eta_muon1)>1.2)*(abs(Eta_muon1)<2.1)*(0.986*(Pt_muon1<25)+0.982*(Pt_muon1>25)*(Pt_muon1<30)+0.987*(Pt_muon1>30)*(Pt_muon1<40)+0.991*(Pt_mu
on1>40)*(Pt_muon1<50)+0.985*(Pt_muon1>50)*(Pt_muon1<60)+0.993*(Pt_muon1>60))+(abs(Eta_muon1)>2.1)*(abs(Eta_muon1)<2.4)*(0.945*(Pt_muon1<25)+0.942*(Pt_muon1>2
5)*(Pt_muon1<30)+0.940*(Pt_muon1>30)*(Pt_muon1<40)+0.943*(Pt_muon1>40)*(Pt_muon1<50)+0.941*(Pt_muon1>50)*(Pt_muon1<60)+0.942*(Pt_muon1>60))) + (0.457760507)*
((abs(Eta_muon1)<0.9)*(0.993*(Pt_muon1<25)+0.994*(Pt_muon1>25)*(Pt_muon1<30)+1.000*(Pt_muon1>30)*(Pt_muon1<40)+0.998*(Pt_muon1>40)*(Pt_muon1<50)+0.993*(Pt_mu
on1>50)*(Pt_muon1<60)+1.000*(Pt_muon1>60))+(abs(Eta_muon1)>0.9)*(abs(Eta_muon1)<1.2)*(0.998*(Pt_muon1<25)+0.999*(Pt_muon1>25)*(Pt_muon1<30)+0.998*(Pt_muon1>3
0)*(Pt_muon1<40)+0.997*(Pt_muon1>40)*(Pt_muon1<50)+0.993*(Pt_muon1>50)*(Pt_muon1<60)+0.999*(Pt_muon1>60))+(abs(Eta_muon1)>1.2)*(abs(Eta_muon1)<2.1)*(0.998*(P
t_muon1<25)+0.999*(Pt_muon1>25)*(Pt_muon1<30)+0.999*(Pt_muon1>30)*(Pt_muon1<40)+0.996*(Pt_muon1>40)*(Pt_muon1<50)+0.991*(Pt_muon1>50)*(Pt_muon1<60)+0.995*(Pt
_muon1>60))+(abs(Eta_muon1)>2.1)*(abs(Eta_muon1)<2.4)*(0.984*(Pt_muon1<25)+0.983*(Pt_muon1>25)*(Pt_muon1<30)+0.975*(Pt_muon1>30)*(Pt_muon1<40)+0.975*(Pt_muon
1>40)*(Pt_muon1<50)+0.970*(Pt_muon1>50)*(Pt_muon1<60)+0.971*(Pt_muon1>60))))*((0.542239493)*((abs(Eta_muon2)<0.9)*(0.987*(Pt_muon2<25)+0.987*(Pt_muon2>25)*(P
t_muon2<30)+0.998*(Pt_muon2>30)*(Pt_muon2<40)+0.992*(Pt_muon2>40)*(Pt_muon2<50)+0.985*(Pt_muon2>50)*(Pt_muon2<60)+1.010*(Pt_muon2>60))+(abs(Eta_muon2)>0.9)*(
abs(Eta_muon2)<1.2)*(0.975*(Pt_muon2<25)+0.969*(Pt_muon2>25)*(Pt_muon2<30)+0.979*(Pt_muon2>30)*(Pt_muon2<40)+0.983*(Pt_muon2>40)*(Pt_muon2<50)+0.982*(Pt_muon
2>50)*(Pt_muon2<60)+0.981*(Pt_muon2>60))+(abs(Eta_muon2)>1.2)*(abs(Eta_muon2)<2.1)*(0.986*(Pt_muon2<25)+0.982*(Pt_muon2>25)*(Pt_muon2<30)+0.987*(Pt_muon2>30)
*(Pt_muon2<40)+0.991*(Pt_muon2>40)*(Pt_muon2<50)+0.985*(Pt_muon2>50)*(Pt_muon2<60)+0.993*(Pt_muon2>60))+(abs(Eta_muon2)>2.1)*(abs(Eta_muon2)<2.4)*(0.945*(Pt_
muon2<25)+0.942*(Pt_muon2>25)*(Pt_muon2<30)+0.940*(Pt_muon2>30)*(Pt_muon2<40)+0.943*(Pt_muon2>40)*(Pt_muon2<50)+0.941*(Pt_muon2>50)*(Pt_muon2<60)+0.942*(Pt_m
uon2>60))) + (0.457760507)*((abs(Eta_muon2)<0.9)*(0.993*(Pt_muon2<25)+0.994*(Pt_muon2>25)*(Pt_muon2<30)+1.000*(Pt_muon2>30)*(Pt_muon2<40)+0.998*(Pt_muon2>40)
*(Pt_muon2<50)+0.993*(Pt_muon2>50)*(Pt_muon2<60)+1.000*(Pt_muon2>60))+(abs(Eta_muon2)>0.9)*(abs(Eta_muon2)<1.2)*(0.998*(Pt_muon2<25)+0.999*(Pt_muon2>25)*(Pt_
muon2<30)+0.998*(Pt_muon2>30)*(Pt_muon2<40)+0.997*(Pt_muon2>40)*(Pt_muon2<50)+0.993*(Pt_muon2>50)*(Pt_muon2<60)+0.999*(Pt_muon2>60))+(abs(Eta_muon2)>1.2)*(ab
s(Eta_muon2)<2.1)*(0.998*(Pt_muon2<25)+0.999*(Pt_muon2>25)*(Pt_muon2<30)+0.999*(Pt_muon2>30)*(Pt_muon2<40)+0.996*(Pt_muon2>40)*(Pt_muon2<50)+0.991*(Pt_muon2>
50)*(Pt_muon2<60)+0.995*(Pt_muon2>60))+(abs(Eta_muon2)>2.1)*(abs(Eta_muon2)<2.4)*(0.984*(Pt_muon2<25)+0.983*(Pt_muon2>25)*(Pt_muon2<30)+0.975*(Pt_muon2>30)*(
Pt_muon2<40)+0.975*(Pt_muon2>40)*(Pt_muon2<50)+0.970*(Pt_muon2>50)*(Pt_muon2<60)+0.971*(Pt_muon2>60))))*(1-(1-(CMVA_bjet1>-0.5884)*Hjet1BsfLoose)*(1-(CMVA_bj
et2>-0.5884)*Hjet2BsfLoose)*(1-(CMVA_Zjet1>-0.5884)*Zjet1BsfLoose)*(1-(CMVA_Zjet2>-0.5884)*Zjet2BsfLoose))*((pass_HLT_Mu17_Mu8)*(Pt_muon1>20)*(Pt_muon2>10)*(
Pt_Hjet1>20)*(Pt_Hjet2>20)*(Pt_Zjet1>20)*(Pt_Zjet2>20)*(M_uu>15)*(isMuonEvent)*(1-isElectronEvent))*(((CMVA_bjet1>-0.5884)+(CMVA_bjet2>-0.5884)+(CMVA_Zjet1>-
0.5884)+(CMVA_Zjet2>-0.5884))>0)*(Charge_muon1*Charge_muon2 < 0)*(passDataCert*Flag_goodVertices*(GoodVertexCount>=1))*(Flag_HBHENoiseFilter*Flag_HBHENoiseIs
oFilter)*(Flag_eeBadScFilter*Flag_EcalDeadCellTriggerPrimitiveFilter)*(Flag_CSCTightHaloFilter)*(Flag_BadPFMuonFilter*Flag_BadChargedCandidateFilter)

ssiso_cr_n: [449.0, 21.18962010041709] [129.0, 11.357816691600547]
ssiso_cr_z: [9.742813994014618, 3.119133757241137] [2.329251908881821, 1.0025740885214172]
ssiso_cr_t: [249.41682380769535, 7.047611045502928] [90.21234624069297, 4.253324135744955]
ssiso_cr_o: [41.32427836954531, 11.63604718626407] [18.68801236226308, 5.535725758966873]
    ssiso_cr_w: [8.864198991039965, 11.454812616904437] [-1.3989043768411527, 5.012825412914847]
   ssiso_cr_vv: [5.920804355527412, 0.7544765787061803] [5.707851890178072, 0.49598090576865733]
   ssiso_cr_st: [21.116570522933852, 1.7827510605528583] [9.737844185976371, 2.2131217228466635]
  ssiso_cr_smh: [5.422704500044073, 0.6613817209844464] [4.641220662949788, 0.6098657549834778]
Wjets entries in ss iso CR1 CR2 : [23.0, 4.795831523312719] [5.0, 2.23606797749979]
Zjets entries in ss iso CR1 CR2 : [41.0, 6.4031242374328485] [7.0, 2.6457513110645907]
 doing invert iso in nominal region for f_bd
data_inv : ss, os: [72293.0, 268.87357623983803] [130293.0, 360.9612167532684]
zjet_inv : ss, os: [417.72525585406123, 49.81525726477353] [13680.198114944566, 222.31109724621206]
tt_inv   : ss, os: [15713.07267020161, 56.34692054187332] [22327.16617410829, 67.17032818702279]
wjet_inv : ss, os: [775.6684225503341, 80.45355976205973] [1383.3636475470025, 103.72078033010823]
stop_inv : ss, os: [1391.5401657395564, 35.12701786889416] [1697.3488512065496, 35.528120270501645]
vv_inv   : ss, os: [55.13703567985644, 3.6808363146380567] [373.27663115639325, 6.91896253991462]
smh_inv  : ss, os: [95.16766406804875, 8.497282867038457] [343.0219070536558, 19.869111139846552]
other_inv: ss, os: [2317.513288037796, 88.27477009228939] [3797.0110369636013, 111.63736481285336]
Wjets entries in the inv iso: ss, os : [973.0, 31.192947920964443] [1802.0, 42.44997055358225]
Zjets entries in the inv iso: ss, os : [2303.0, 47.989582202807306] [67698.0, 260.18839328455834]
 Getting avg and uncer of Rz Rt Fbd
muon scale factor integrals: CR1, CR2
Data: [93074.0, 305.08031729365956] [3312.0, 57.54997827975264]
Z: [89314.38263770303, 395.4203602615038] [31.543083385857653, 6.826600496573081]
TT: [4196.661217773852, 29.12186825609795] [3383.172372622783, 26.161828063231113]
Other: [2275.2301910357887, 29.823283571322055] [263.4971903482992, 10.360406950028564]
       W: [38.99967599179434, 26.503081259735417] [12.80105142817093, 7.567912767625604]
      VV: [1518.81226446208, 6.897279093878098] [38.479235351078806, 2.5158175293919656]
      ST: [213.99295601554567, 9.348258208608119] [198.36613157446598, 6.530451544786293]
     SMH: [503.4252945663688, 7.214744367037019] [13.850771994583527, 1.0433567423522954]
QCD: [300.7076379386066, 42.17944947839544] [48.39029157480172, 22.168253929800326]
Wjets entries in CR1 CR2 : [36.0, 6.0] [12.0, 3.4641016151377544]
Zjets entries in CR1 CR2 : [450521.0, 671.2086113869517] [227.0, 15.066519173319364]


muon channel: RZ  =  0.972 +- 0.006 0.972054257071 0.00561
muon channel: Rtt =  0.878 +- 0.021 0.878030076914 0.02069
muon channel: fbd =  1.678 +- 0.012 1.67796514279 0.01234

November 7, 2019
First attempt at single production channel in mumub:

Single production, no btag SF:

35863.308*weight_central*(1.0-((1.0-mu1hltSF)*(1.0-mu2hltSF)))*mu1idSF*mu2idSF*mu1isoSF*mu2isoSF*(0.991237*(Eta_muon1>-2.4)*(Eta_muon1<-2.1)+0.994853*(Eta_muon1>-2.1)*(Eta_muon1<-1.6)+0.996413*(Eta_muon1>-1.6)*(Eta_muon1<-1.2)+0.997157*(Eta_muon1>-1.2)*(Eta_muon1<-0.9)+0.997512*(Eta_muon1>-0.9)*(Eta_muon1<-0.6)+0.99756*(Eta_muon1>-0.6)*(Eta_muon1<-0.3)+0.996745*(Eta_muon1>-0.3)*(Eta_muon1<-0.2)+0.996996*(Eta_muon1>-0.2)*(Eta_muon1<0.2)+0.99772*(Eta_muon1>0.2)*(Eta_muon1<0.3)+0.998604*(Eta_muon1>0.3)*(Eta_muon1<0.6)+0.998321*(Eta_muon1>0.6)*(Eta_muon1<0.9)+0.997682*(Eta_muon1>0.9)*(Eta_muon1<1.2)+0.995252*(Eta_muon1>1.2)*(Eta_muon1<1.6)+0.994919*(Eta_muon1>1.6)*(Eta_muon1<2.1)+0.987334*(Eta_muon1>2.1)*(Eta_muon1<2.4) )*(0.991237*(Eta_muon2>-2.4)*(Eta_muon2<-2.1)+0.994853*(Eta_muon2>-2.1)*(Eta_muon2<-1.6)+0.996413*(Eta_muon2>-1.6)*(Eta_muon2<-1.2)+0.997157*(Eta_muon2>-1.2)*(Eta_muon2<-0.9)+0.997512*(Eta_muon2>-0.9)*(Eta_muon2<-0.6)+0.99756*(Eta_muon2>-0.6)*(Eta_muon2<-0.3)+0.996745*(Eta_muon2>-0.3)*(Eta_muon2<-0.2)+0.996996*(Eta_muon2>-0.2)*(Eta_muon2<0.2)+0.99772*(Eta_muon2>0.2)*(Eta_muon2<0.3)+0.998604*(Eta_muon2>0.3)*(Eta_muon2<0.6)+0.998321*(Eta_muon2>0.6)*(Eta_muon2<0.9)+0.997682*(Eta_muon2>0.9)*(Eta_muon2<1.2)+0.995252*(Eta_muon2>1.2)*(Eta_muon2<1.6)+0.994919*(Eta_muon2>1.6)*(Eta_muon2<2.1)+0.987334*(Eta_muon2>2.1)*(Eta_muon2<2.4) )*((Pt_muon1>53)*(Pt_muon2>53)*(Pt_jet1>50)*(St_uujj>300)*(M_uu>50)*(DR_muon1muon2>0.3)*(((CISV_jet1>0.8838)+(CISV_jet2>0.8838))>0))*(Flag_goodVertices*(GoodVertexCount>=1))*(Flag_HBHENoiseFilter*Flag_HBHENoiseIsoFilter)*(Flag_eeBadScFilter*Flag_EcalDeadCellTriggerPrimitiveFilter)*(Flag_globalSuperTightHalo2016Filter)*(Flag_BadPFMuonFilter)*(M_uu>80)*(M_uu<100)*((pass_HLTMu50+pass_HLTTkMu50)>0)
MuMu scale factor integrals:
Data: [2603.0, 51.01960407529639] [6305.0, 79.40403012442127]
Z: [2021.5374588718964, 30.0155337812981] [248.5035269745472, 15.915897266438115]
TT: [413.5256340214191, 9.094416454665893] [4614.1330379048495, 30.40784381389679]
Other: [82.32053055151286, 6.609168408605678] [553.9528903761068, 30.560093739010075]
MuMu: RZ  =  1.003 +- 0.03
MuMu: Rtt =  1.192 +- 0.019

Single production, with btag SF:

35863.308*weight_central*(1.0-((1.0-mu1hltSF)*(1.0-mu2hltSF)))*mu1idSF*mu2idSF*mu1isoSF*mu2isoSF*(0.991237*(Eta_muon1>-2.4)*(Eta_muon1<-2.1)+0.994853*(Eta_muon1>-2.1)*(Eta_muon1<-1.6)+0.996413*(Eta_muon1>-1.6)*(Eta_muon1<-1.2)+0.997157*(Eta_muon1>-1.2)*(Eta_muon1<-0.9)+0.997512*(Eta_muon1>-0.9)*(Eta_muon1<-0.6)+0.99756*(Eta_muon1>-0.6)*(Eta_muon1<-0.3)+0.996745*(Eta_muon1>-0.3)*(Eta_muon1<-0.2)+0.996996*(Eta_muon1>-0.2)*(Eta_muon1<0.2)+0.99772*(Eta_muon1>0.2)*(Eta_muon1<0.3)+0.998604*(Eta_muon1>0.3)*(Eta_muon1<0.6)+0.998321*(Eta_muon1>0.6)*(Eta_muon1<0.9)+0.997682*(Eta_muon1>0.9)*(Eta_muon1<1.2)+0.995252*(Eta_muon1>1.2)*(Eta_muon1<1.6)+0.994919*(Eta_muon1>1.6)*(Eta_muon1<2.1)+0.987334*(Eta_muon1>2.1)*(Eta_muon1<2.4) )*(0.991237*(Eta_muon2>-2.4)*(Eta_muon2<-2.1)+0.994853*(Eta_muon2>-2.1)*(Eta_muon2<-1.6)+0.996413*(Eta_muon2>-1.6)*(Eta_muon2<-1.2)+0.997157*(Eta_muon2>-1.2)*(Eta_muon2<-0.9)+0.997512*(Eta_muon2>-0.9)*(Eta_muon2<-0.6)+0.99756*(Eta_muon2>-0.6)*(Eta_muon2<-0.3)+0.996745*(Eta_muon2>-0.3)*(Eta_muon2<-0.2)+0.996996*(Eta_muon2>-0.2)*(Eta_muon2<0.2)+0.99772*(Eta_muon2>0.2)*(Eta_muon2<0.3)+0.998604*(Eta_muon2>0.3)*(Eta_muon2<0.6)+0.998321*(Eta_muon2>0.6)*(Eta_muon2<0.9)+0.997682*(Eta_muon2>0.9)*(Eta_muon2<1.2)+0.995252*(Eta_muon2>1.2)*(Eta_muon2<1.6)+0.994919*(Eta_muon2>1.6)*(Eta_muon2<2.1)+0.987334*(Eta_muon2>2.1)*(Eta_muon2<2.4) )*(1-(1-(CISV_jet1>0.8838)*bTagSF_jet1)*(1-(CISV_jet2>0.8838)*btagSF_jet2))*((Pt_muon1>53)*(Pt_muon2>53)*(Pt_jet1>50)*(St_uujj>250)*(M_uu>50)*(DR_muon1muon2>0.3)*(((CISV_jet1>0.8838)+(CISV_jet2>0.8838))>0))*(Flag_goodVertices*(GoodVertexCount>=1))*(Flag_HBHENoiseFilter*Flag_HBHENoiseIsoFilter)*(Flag_eeBadScFilter*Flag_EcalDeadCellTriggerPrimitiveFilter)*(Flag_globalSuperTightHalo2016Filter)*(Flag_BadPFMuonFilter)*(M_uu>80)*(M_uu<100)*((pass_HLTMu50+pass_HLTTkMu50)>0)
MuMu scale factor integrals:
Data: [3329.0, 57.697486947006624] [8563.0, 92.53647929330357]
Z: [2466.536709007546, 31.042857040970343] [304.02486424313827, 19.888412843085103]
TT: [497.7886093074971, 9.546680424375307] [5530.311797292796, 31.807300380189577]
Other: [94.97413321690091, 6.866720291278719] [670.204540760867, 31.35840459218397]
MuMu: RZ  =  1.035 +- 0.028
MuMu: Rtt =  1.37 +- 0.019

Pair production, no btag SF:

35863.308*weight_central*(1.0-((1.0-mu1hltSF)*(1.0-mu2hltSF)))*mu1idSF*mu2idSF*mu1isoSF*mu2isoSF*(0.991237*(Eta_muon1>-2.4)*(Eta_muon1<-2.1)+0.994853*(Eta_muon1>-2.1)*(Eta_muon1<-1.6)+0.996413*(Eta_muon1>-1.6)*(Eta_muon1<-1.2)+0.997157*(Eta_muon1>-1.2)*(Eta_muon1<-0.9)+0.997512*(Eta_muon1>-0.9)*(Eta_muon1<-0.6)+0.99756*(Eta_muon1>-0.6)*(Eta_muon1<-0.3)+0.996745*(Eta_muon1>-0.3)*(Eta_muon1<-0.2)+0.996996*(Eta_muon1>-0.2)*(Eta_muon1<0.2)+0.99772*(Eta_muon1>0.2)*(Eta_muon1<0.3)+0.998604*(Eta_muon1>0.3)*(Eta_muon1<0.6)+0.998321*(Eta_muon1>0.6)*(Eta_muon1<0.9)+0.997682*(Eta_muon1>0.9)*(Eta_muon1<1.2)+0.995252*(Eta_muon1>1.2)*(Eta_muon1<1.6)+0.994919*(Eta_muon1>1.6)*(Eta_muon1<2.1)+0.987334*(Eta_muon1>2.1)*(Eta_muon1<2.4) )*(0.991237*(Eta_muon2>-2.4)*(Eta_muon2<-2.1)+0.994853*(Eta_muon2>-2.1)*(Eta_muon2<-1.6)+0.996413*(Eta_muon2>-1.6)*(Eta_muon2<-1.2)+0.997157*(Eta_muon2>-1.2)*(Eta_muon2<-0.9)+0.997512*(Eta_muon2>-0.9)*(Eta_muon2<-0.6)+0.99756*(Eta_muon2>-0.6)*(Eta_muon2<-0.3)+0.996745*(Eta_muon2>-0.3)*(Eta_muon2<-0.2)+0.996996*(Eta_muon2>-0.2)*(Eta_muon2<0.2)+0.99772*(Eta_muon2>0.2)*(Eta_muon2<0.3)+0.998604*(Eta_muon2>0.3)*(Eta_muon2<0.6)+0.998321*(Eta_muon2>0.6)*(Eta_muon2<0.9)+0.997682*(Eta_muon2>0.9)*(Eta_muon2<1.2)+0.995252*(Eta_muon2>1.2)*(Eta_muon2<1.6)+0.994919*(Eta_muon2>1.6)*(Eta_muon2<2.1)+0.987334*(Eta_muon2>2.1)*(Eta_muon2<2.4) )*((Pt_muon1>53)*(Pt_muon2>53)*(Pt_jet1>50)*(Pt_jet2>50)*(St_uujj>300)*(M_uu>50)*(DR_muon1muon2>0.3)*(((CISV_jet1>0.8838)+(CISV_jet2>0.8838))>0))*(Flag_goodVertices*(GoodVertexCount>=1))*(Flag_HBHENoiseFilter*Flag_HBHENoiseIsoFilter)*(Flag_eeBadScFilter*Flag_EcalDeadCellTriggerPrimitiveFilter)*(Flag_globalSuperTightHalo2016Filter)*(Flag_BadPFMuonFilter)*(M_uu>80)*(M_uu<100)*((pass_HLTMu50+pass_HLTTkMu50)>0)
MuMu scale factor integrals:
Data: [1813.0, 42.579337712087536] [4861.0, 69.72087205421343]
Z: [1309.7972047725657, 26.511659146801197] [140.48034048539253, 11.72604813492484]
TT: [353.8581030017484, 8.414866062421805] [3748.6584775016017, 27.40669397740817]
Other: [65.52924154043214, 5.661155736685519] [362.9491831080715, 23.58705656711855]
MuMu: RZ  =  1.02 +- 0.039
MuMu: Rtt =  1.162 +- 0.021

Pair production, with btag SF:

35863.308*weight_central*(1.0-((1.0-mu1hltSF)*(1.0-mu2hltSF)))*mu1idSF*mu2idSF*mu1isoSF*mu2isoSF*(0.991237*(Eta_muon1>-2.4)*(Eta_muon1<-2.1)+0.994853*(Eta_muon1>-2.1)*(Eta_muon1<-1.6)+0.996413*(Eta_muon1>-1.6)*(Eta_muon1<-1.2)+0.997157*(Eta_muon1>-1.2)*(Eta_muon1<-0.9)+0.997512*(Eta_muon1>-0.9)*(Eta_muon1<-0.6)+0.99756*(Eta_muon1>-0.6)*(Eta_muon1<-0.3)+0.996745*(Eta_muon1>-0.3)*(Eta_muon1<-0.2)+0.996996*(Eta_muon1>-0.2)*(Eta_muon1<0.2)+0.99772*(Eta_muon1>0.2)*(Eta_muon1<0.3)+0.998604*(Eta_muon1>0.3)*(Eta_muon1<0.6)+0.998321*(Eta_muon1>0.6)*(Eta_muon1<0.9)+0.997682*(Eta_muon1>0.9)*(Eta_muon1<1.2)+0.995252*(Eta_muon1>1.2)*(Eta_muon1<1.6)+0.994919*(Eta_muon1>1.6)*(Eta_muon1<2.1)+0.987334*(Eta_muon1>2.1)*(Eta_muon1<2.4) )*(0.991237*(Eta_muon2>-2.4)*(Eta_muon2<-2.1)+0.994853*(Eta_muon2>-2.1)*(Eta_muon2<-1.6)+0.996413*(Eta_muon2>-1.6)*(Eta_muon2<-1.2)+0.997157*(Eta_muon2>-1.2)*(Eta_muon2<-0.9)+0.997512*(Eta_muon2>-0.9)*(Eta_muon2<-0.6)+0.99756*(Eta_muon2>-0.6)*(Eta_muon2<-0.3)+0.996745*(Eta_muon2>-0.3)*(Eta_muon2<-0.2)+0.996996*(Eta_muon2>-0.2)*(Eta_muon2<0.2)+0.99772*(Eta_muon2>0.2)*(Eta_muon2<0.3)+0.998604*(Eta_muon2>0.3)*(Eta_muon2<0.6)+0.998321*(Eta_muon2>0.6)*(Eta_muon2<0.9)+0.997682*(Eta_muon2>0.9)*(Eta_muon2<1.2)+0.995252*(Eta_muon2>1.2)*(Eta_muon2<1.6)+0.994919*(Eta_muon2>1.6)*(Eta_muon2<2.1)+0.987334*(Eta_muon2>2.1)*(Eta_muon2<2.4) )*(1-(1-(CISV_jet1>0.8838)*bTagSF_jet1)*(1-(CISV_jet2>0.8838)*btagSF_jet2))*((Pt_muon1>53)*(Pt_muon2>53)*(Pt_jet1>50)*(Pt_jet2>50)*(St_uujj>300)*(M_uu>50)*(DR_muon1muon2>0.3)*(((CISV_jet1>0.8838)+(CISV_jet2>0.8838))>0))*(Flag_goodVertices*(GoodVertexCount>=1))*(Flag_HBHENoiseFilter*Flag_HBHENoiseIsoFilter)*(Flag_eeBadScFilter*Flag_EcalDeadCellTriggerPrimitiveFilter)*(Flag_globalSuperTightHalo2016Filter)*(Flag_BadPFMuonFilter)*(M_uu>80)*(M_uu<100)*((pass_HLTMu50+pass_HLTTkMu50)>0)
tMuMu scale factor integrals:
Data: [1813.0, 42.579337712087536] [4861.0, 69.72087205421343]
Z: [1198.4173512212958, 24.10232259777592] [128.71949393229858, 10.63145042088028]
TT: [324.02189708047615, 7.709741322829102] [3424.0114523411767, 25.045341728124267]
Other: [60.30035621312982, 5.214299067439054] [331.78435641352394, 21.639826962412943]
MuMu: RZ  =  1.117 +- 0.044
MuMu: Rtt =  1.281 +- 0.023

August 15, 2018
Testing ST>3000:
  ..processing table line for preselection: 
 $ 13114.41 \pm 104.11 $ [2] & $ 6114.39 \pm 128.44 $ [[6114.3943325523305, 315055]] & $ 49.09 \pm 18.77 $ [[49.08920708567092, 276]] & $ 772.27 \pm 12.05 $ [[772.2714730832661, 4437]] & $ 549.09 \pm 7.24 $ [[549.0941847003664, 57174]] &$ 20599.26 \pm 166.99 $ & $ 20479.0 \pm 143.1 $ & $ 0.43 \pm 0.0 $ \\ 

  ..processing table line for optimization:  opt_LQuujj2000 = ((St_uujj>3000)*(M_uu>300)*(M_uujj2>950))
 $ -0.05 \pm 0.04 $ [0] & $ 0.01 \pm 0.11 $ [[0.012575611135183544, 60]] & $ 0.0 \pm 0.0 $ [[0.0, 0]] & $ 0.0 \pm 0.0 $ [[0.0, 0]] & $ 0.01 \pm 0.01 $ [[0.012059422062409512, 1]] &$ -0.02 \pm 0.12 $ & $ 1.0 \pm 1.0 $ & $ 0.3 \pm 0.0 $ \\ 

August 15, 2018
st>5000 events after preselection in mumujj:
run / lumi / event: 282800 / 174 / 315780544
St_uujj       5018.71044922
St_uvjj       4831.77783203
Pt_muon1      1732.45153809
Pt_muon2      224.919891357
Eta_muon1     -0.123024269938
Eta_muon2     0.633121371269
Phi_muon1     0.252926111221
Phi_muon2     -0.546487927437
Pt_jet1       1825.5814209
Pt_jet2       1235.75769043
Eta_jet1      -0.447594314814
Eta_jet2      -1.44425165653
Phi_jet1      2.62010955811
Phi_jet2      -1.79651784897
Pt_miss       37.9872398376
Phi_miss      -2.48785805702
M_uu          685.309082031
MT_uv          502.804748535
M_uujj1       3250.75415039
M_uujj2       1473.18811035
M_uvjj       3250.75415039
DR_muon1muon2 1.10037219524
DPhi_muon1met 2.74078416824
DPhi_jet1met  1.17521774769
DPhi_jet2met  0.691340208054
August 15, 2018

Old instructions for running pythia: https://twiki.cern.ch/twiki/bin/view/Main/ExoMCInstructions?rev=24

July 23, 2018

Checking DY SF with H(bb) veto: M_bb<115 or M_bb>135

I am in GetNormalizationScaleFactorsAndFbd()
getting muon scale factors :
 using QCD data-driven when calculating muon scale factors
 doing ss iso in region 1 
 doing ss iso in region 2 



ssiso_cr_n: [444.0, 21.071307505705477] [162.0, 12.727922061357855]
ssiso_cr_z: [0.9494813554923175, 1.7081527583321692] [1.9601542272222165, 0.9818542584395497]
ssiso_cr_t: [275.87158813802296, 7.349872447492477] [120.49857630271318, 4.883686751957992]
ssiso_cr_o: [49.572434847239904, 10.503731870993342] [21.579902512303597, 8.722367272802718]
    ssiso_cr_w: [21.596401642052093, 10.323746850944342] [0.027770936315814745, 8.59392039169933]
   ssiso_cr_vv: [3.3871667103380916, 0.7248341098436779] [6.058993871922706, 0.5539536610599252]
   ssiso_cr_st: [17.454212150973245, 1.6551876949065032] [9.476735798772308, 1.2387470348000043]
  ssiso_cr_smh: [7.134654343876475, 0.6954159785159435] [6.016401905292769, 0.6187602669587471]
Wjets entries in ss iso CR1 CR2 : [28.0, 5.291502622129181] [10.0, 3.1622776601683795]
Zjets entries in ss iso CR1 CR2 : [15.0, 3.872983346207417] [4.0, 2.0]
 doing invert iso in nominal region for f_bd 
data_inv : ss, os: [94984.0, 308.19474362811576] [150033.0, 387.34093509465276]
zjet_inv : ss, os: [229.6524229036673, 45.32056695527429] [13079.974309854057, 271.59339328779794]
tt_inv   : ss, os: [31756.87129039543, 79.29475441486561] [45145.98475465824, 94.62248220499335]
wjet_inv : ss, os: [1365.1637913913517, 120.09623941113668] [1876.335194394585, 143.27830081991632]
stop_inv : ss, os: [1746.5508582291184, 16.55460646025517] [2264.130195807789, 19.11329627421061]
vv_inv   : ss, os: [82.99019361198803, 5.4381220096840375] [495.8690444126711, 8.412064000359054]
smh_inv  : ss, os: [152.76935832073406, 7.066398850484192] [477.64257641015024, 20.432752170544852]
other_inv: ss, os: [3347.4742015531924, 121.55932247037788] [5113.977011025196, 146.22670673415726]
Wjets entries in the inv iso: ss, os : [1555.0, 39.433488306260706] [2258.0, 47.51841748206689]
Zjets entries in the inv iso: ss, os : [1915.0, 43.76071297408213] [70145.0, 264.8490135907627]
 Getting avg and uncer of Rz Rt Fbd 
muon scale factor integrals: CR1, CR2 
Data: [98726.0, 314.2069381792834] [7759.0, 88.08518604169488]
Z: [77563.01315191228, 356.5158297739236] [53.67283894653545, 8.237500046655096]
TT: [7120.096783978085, 37.71348178244959] [7837.902853229093, 39.626625626976896]
Other: [3328.8709970611553, 32.47228761603829] [540.1901684772486, 14.945459385241248]
       W: [49.54858123516579, 29.03060998630477] [14.359841969603515, 11.363375746001966]
      VV: [2108.771014894739, 8.093364295076423] [71.75844613958523, 3.3596067613211034]
      ST: [277.68963052194977, 7.236713015847901] [424.35811927377233, 9.037038865508848]
     SMH: [892.861770409301, 9.685070260726812] [29.713761094287516, 1.133763133832659]
QCD: [203.10530692578965, 34.92329833765153] [40.873904273814645, 22.894145743833676]
Wjets entries in CR1 CR2 : [54.0, 7.3484692283495345] [28.0, 5.291502622129181]
Zjets entries in CR1 CR2 : [483217.0, 695.1381157726859] [448.0, 21.166010488516726]


MuMu: RZ  =  1.144 +- 0.007 1.14410078183 0.00695
MuMu: Rtt =  0.908 +- 0.013 0.908261189678 0.01339
MuMu: fbd =  1.423 +- 0.012 1.42252716081 0.01167
July 17, 2018

Electron channel f_bd:

getting electron scale factors :
 using QCD data-driven when calculating electron scale factors
 doing ss iso in region 1
 doing ss iso in region 2
ssiso_cr_n: [2463.0, 49.628620774710235] [524.0, 22.891046284519195]
ssiso_cr_z: [1249.1769963517245, 45.81490855003604] [10.17404649426628, 2.4544180862609104]
ssiso_cr_t: [244.08262705783537, 6.538379681323027] [297.9777984923754, 7.406361329488848]
ssiso_cr_o: [108.13517867876713, 13.98362999976168] [65.86024026407385, 13.194342088346795]
    ssiso_cr_w: [40.396809030347185, 13.785374635555721] [30.754400726795467, 12.964525395945657]
   ssiso_cr_vv: [34.02391855439535, 1.2649882298363448] [10.657574372755592, 1.6429499469441402]
   ssiso_cr_st: [13.52367504472806, 1.421082373219303] [18.46549917444103, 1.7002171291270745]
  ssiso_cr_smh: [20.190776049296527, 1.3732020224689254] [5.982765990081759, 0.6494009453788142]
Wjets entries in ss iso CR1 CR2 : [51.0, 7.14142842854285] [45.0, 6.708203932499369]
Zjets entries in ss iso CR1 CR2 : [8473.0, 92.04890004774636] [33.0, 5.744562646538029]
 doing invert iso in nominal region for f_bd
data_inv : ss, os: [61479.0, 247.9495916512064] [74307.0, 272.59310336103516]
zjet_inv : ss, os: [1643.6560509037483, 83.22063002167954] [5327.197298355943, 132.26247638194198]
tt_inv   : ss, os: [8856.016462706126, 39.683325689782194] [12664.135799348018, 47.407217933549596]
wjet_inv : ss, os: [1225.673321218968, 84.3785010793186] [1472.225593391823, 104.40034379639033]
stop_inv : ss, os: [478.90650668510847, 8.232779450750886] [672.2028263797439, 9.905859509662823]
vv_inv   : ss, os: [144.6954961804643, 6.937595527605906] [272.9480731137649, 7.5664790567034945]
smh_inv  : ss, os: [85.42757999198844, 7.759470331632237] [184.38424805426777, 13.052909681365149]
other_inv: ss, os: [1934.7029040765294, 85.4157462849176] [2601.7607409395996, 105.94898722448971]
Wjets entries in the inv iso: ss, os : [1672.0, 40.890096600521744] [2226.0, 47.18050444834179]
Zjets entries in the inv iso: ss, os : [11259.0, 106.10843510296436] [35268.0, 187.79776356495836]
 Getting avg and uncer of Rz Rt Fbd
electron scale factor integrals: CR1, CR2
Data: [86312.0, 293.7890399589474] [6487.0, 80.54191455385202]
Z: [62560.815343938295, 305.07128462865865] [25.468135792534937, 6.518863506872596]
TT: [5453.697192240504, 31.07780555664617] [5952.884239616797, 32.89459563827572]
Other: [2714.8796695791425, 23.486963394119254] [492.59255322772424, 23.40444287228514]
       W: [35.465489928101505, 19.91653716537457] [65.61625350702768, 21.87743693255052]
      VV: [1703.3132860239343, 6.986391154473307] [59.2867889015191, 2.9769043892348415]
      ST: [199.07816214346522, 5.781005725215485] [342.7698281856353, 7.69280508192951]
     SMH: [777.0227314836418, 8.528734270609803] [24.91968263354213, 1.0509470267939558]
QCD: [610.5670124093765, 83.09487777898086] [167.64043191487997, 29.721287864307147]
Wjets entries in CR1 CR2 : [93.0, 9.643650760992955] [100.0, 10.0]
Zjets entries in CR1 CR2 : [417276.0, 645.9690395057645] [299.0, 17.291616465790582]


MuMu: RZ  =  1.242 +- 0.008 1.24174437003 0.00809
MuMu: Rtt =  0.973 +- 0.016 0.973481371978 0.01612
MuMu: fbd =  1.079 +- 0.01 1.07855655312 0.00955

July 16, 2018

LQ2 + LQ1 long-lived combination

split each datacard into ctau and mass (look at batcher for automization)

combineCards.py mu=FinalCardsBLCTau1.txt ele=datacard_rpv_apr6_ct1.txt > combinedEleMu_BLCtau1new.txt

Recombine into a singe txt file with all masses for a single ctau

Run through normal limit setting procedure

July 6, 2018

Tables before manual rounding

\section{Supplemental Material}
\label{app:suppMat}

Signal acceptance $\times$ efficiency for optimized final selections as a function of scalar LQ mass in the \mumujj~(left) and \munujj~(right) channels are shown in Fig.~\ref{fig:signalEff}. Event yields at final selection level for the \mumujj~and \munujj~analyses are shown in Tables~\ref{tab:finalselection_mumu} and~\ref{tab:finalselection_munu}, respectively.

\begin{figure*}[htb]
 \centering
 {\includegraphics[width=.49\textwidth]{Figure_011-a.pdf}}
 {\includegraphics[width=.49\textwidth]{Figure_011-b.pdf}}
 \caption{Signal acceptance $\times$ efficiency for optimized final selections as a function of scalar LQ mass in the \mumujj~(left) and \munujj~(right) channels.}
 \label{fig:signalEff}
\end{figure*}


\begin{table*}[htbp]
\centering
\topcaption{Event yields after final selections for the \mumujj~analysis. `Other bkg.' includes W+jets and single top quark. Uncertainties are statistical unless otherwise indicated.}
\cmsTable{
\begin{tabular}{ccccccccc}\hline
$M_{LQ}$~(\GeV) &    Signal &                  $\cPZ/\gamma^*$+jets &                $\ttbar$+jets &              VV &                    Other bkg. &                          All bkg. (stat + syst)&                      Data \\ \hline   
200 &         531700 $\pm$ 4700  &      2973.2 $\pm$ 7.4  &     5467 $\pm$ 56  &        369 $\pm$ 2.0  &        519.4 $\pm$ 9.6  &                 9328 $\pm$ 57  $\pm$ 444  &                 9317 \\          
250 &         232900 $\pm$ 1800  &      1675 $\pm$ 5.1  &       2972 $\pm$ 41  &        241.5 $\pm$ 1.7  &      324.6 $\pm$ 7.5  &                 5213 $\pm$ 42  $\pm$ 250  &                 5102 \\          
300 &         100460 $\pm$ 760  &       792.9 $\pm$ 3.0  &      1298 $\pm$ 26  &        138.9 $\pm$ 1.3  &      189.2 $\pm$ 5.7  &                 2419 $\pm$ 27  $\pm$ 117  &                 2360 \\          
350 &         46160 $\pm$ 340  &        387.9 $\pm$ 1.8  &      538 $\pm$ 16  &         81.1 $\pm$ 1.0  &       98 $\pm$ 4.1  &                    1105 $\pm$ 17  $\pm$ 57  &                  1113 \\          
400 &         22610 $\pm$ 160  &        202.4 $\pm$ 1.2  &      237 $\pm$ 10  &         51.89 $\pm$ 0.84  &     55.2 $\pm$ 3.1  &                  546 $\pm$ 11  $\pm$ 29  &                   572 \\           
450 &         12039 $\pm$ 86  &         131.72 $\pm$ 0.92  &    120.7 $\pm$ 7.2  &      32.19 $\pm$ 0.66  &     31.8 $\pm$ 2.3  &                  316.4 $\pm$ 7.7  $\pm$ 18.2  &              299 \\           
500 &         6672 $\pm$ 48  &          79 $\pm$ 0.65  &        54.1 $\pm$ 4.6  &       20.92 $\pm$ 0.53  &     20.2 $\pm$ 1.9  &                  174.2 $\pm$ 5.0  $\pm$ 11.1  &              147 \\           
550 &         3848 $\pm$ 27  &          51.95 $\pm$ 0.5  &      26.1 $\pm$ 3.0  &       14.43 $\pm$ 0.46  &     13.1 $\pm$ 1.5  &                  105.6 $\pm$ 3.4  $\pm$ 7.6  &               78 \\            
600 &         2328 $\pm$ 16  &          34.71 $\pm$ 0.39  &     12.9 $\pm$ 1.9  &       10.05 $\pm$ 0.38  &     9.44 $\pm$ 1.29  &                 67.1 $\pm$ 2.4  $\pm$ 5.2  &                44 \\            
650 &         1461 $\pm$ 10  &          26.03 $\pm$ 0.33  &     9.9 $\pm$ 1.8  &        6.55 $\pm$ 0.3  &       6.7 $\pm$ 1.1  &                   49.1 $\pm$ 2.1  $\pm$ 3.9  &                26 \\            
700 &         948.4 $\pm$ 6.5  &        18.19 $\pm$ 0.26  &     4.68 $\pm$ 1.07  &      4.36 $\pm$ 0.24  &      4.53 $\pm$ 0.91  &                 31.8 $\pm$ 1.4  $\pm$ 2.6  &                16 \\            
750 &         630.1 $\pm$ 4.2  &        12.36 $\pm$ 0.19  &     3.47 $\pm$ 0.93  &      3.17 $\pm$ 0.2  &       3.04 $\pm$ 0.74  &                 22 $\pm$ 1.2  $\pm$ 1.9  &                  11 \\            
800 &         424.2 $\pm$ 2.8  &        9.18 $\pm$ 0.16  &      2.62 $\pm$ 0.83  &      2.45 $\pm$ 0.19  &      2.26 $\pm$ 0.63  &                 16.5 $\pm$ 1.1  $\pm$ 1.6  &                8 \\             
850 &         292.7 $\pm$ 1.9  &        6.93 $\pm$ 0.13  &      3.89 $\pm$ 1.23  &      1.88 $\pm$ 0.17  &      2.05 $\pm$ 0.6  &                  14.8 $\pm$ 1.4  $\pm$ 1.1  &                7 \\             
900 &         205.6 $\pm$ 1.3  &        5.55 $\pm$ 0.11  &      2.34 $\pm$ 0.88  &      1.44 $\pm$ 0.15  &      1.49 $\pm$ 0.5  &                  10.82 $\pm$ 1.03  $\pm$ 0.89  &             6 \\             
950 &         146.75 $\pm$ 0.92  &      4.405 $\pm$ 0.097  &    0.22 $\pm$ 0.13  &      1.31 $\pm$ 0.15  &      1.105 $\pm$ 0.425  &               7.04 $\pm$ 0.48  $\pm$ 0.71  &              5 \\             
1000 &        103.92 $\pm$ 0.65  &      3.663 $\pm$ 0.087  &    0.72 $\pm$ 0.42  &      1.1 $\pm$ 0.13  &       0.733 $\pm$ 0.334  &               6.21 $\pm$ 0.56  $\pm$ 0.59  &              4 \\             
1050 &        74.98 $\pm$ 0.46  &       3.234 $\pm$ 0.083  &    0.466 $\pm$ 0.33  &     0.93 $\pm$ 0.12  &      0.603 $\pm$ 0.311  &               5.24 $\pm$ 0.48  $\pm$ 0.56  &              4 \\             
1100 &        54.86 $\pm$ 0.33  &       2.712 $\pm$ 0.074  &    0.602 $\pm$ 0.426  &    0.69 $\pm$ 0.1  &       0.603 $\pm$ 0.311  &               4.6 $\pm$ 0.54  $\pm$ 0.48  &               3 \\             
1150 &        40.3 $\pm$ 0.24  &        2.39 $\pm$ 0.069  &     0.036 $\pm$ 0.036  &    0.69 $\pm$ 0.1  &       0.412 $\pm$ 0.246  &               3.53 $\pm$ 0.28  $\pm$ 0.42  &              3 \\             
1200 &        29.65 $\pm$ 0.17  &       1.859 $\pm$ 0.058  &    0.193 $\pm$ 0.193  &    0.63 $\pm$ 0.1  &       0.412 $\pm$ 0.246  &               3.1 $\pm$ 0.33  $\pm$ 0.42  &               3 \\             
1250 &        22.17 $\pm$ 0.13  &       1.675 $\pm$ 0.055  &    0.223 $\pm$ 0.223  &    0.559 $\pm$ 0.099  &    0.198 $\pm$ 0.188  &               2.65 $\pm$ 0.31  $\pm$ 0.34  &              2 \\             
1300 &        16.425 $\pm$ 0.095  &     1.129 $\pm$ 0.04  &     0.299 $\pm$ 0.299  &    0.53 $\pm$ 0.1  &       0.198 $\pm$ 0.188  &               2.15 $\pm$ 0.37  $\pm$ 0.27  &              2 \\             
1350 &        12.296 $\pm$ 0.07  &      1.261 $\pm$ 0.047  &    0.46 $\pm$ 0.46  &      0.53 $\pm$ 0.1  &       0.198 $\pm$ 0.188  &               2.45 $\pm$ 0.51  $\pm$ 0.24  &              2 \\             
1400 &        9.238 $\pm$ 0.052  &      1.144 $\pm$ 0.044  &    0.544 $\pm$ 0.544  &    0.54 $\pm$ 0.11  &      0.188 $ _{-0.188}^{+0.279}$   &    2.41 $ _{-0.59}^{+0.62}$   $\pm$ 0.24  &    2 \\             
1450 &        6.899 $\pm$ 0.039  &      1.057 $\pm$ 0.044  &    0.575 $\pm$ 0.575  &    0.5 $\pm$ 0.11  &       0.188 $ _{-0.188}^{+0.279}$   &    2.32 $ _{-0.62}^{+0.65}$   $\pm$ 0.22  &    2 \\             
1500 &        5.243 $\pm$ 0.029  &      1.054 $\pm$ 0.045  &    0.588 $\pm$ 0.588  &    0.47 $\pm$ 0.11  &      0.188 $ _{-0.188}^{+0.279}$   &    2.3 $ _{-0.63}^{+0.66}$   $\pm$ 0.23  &     2 \\             
1550 &        3.985 $\pm$ 0.022  &      1.054 $\pm$ 0.045  &    0.588 $\pm$ 0.588  &    0.47 $\pm$ 0.11  &      0.188 $ _{-0.188}^{+0.279}$   &    2.3 $ _{-0.63}^{+0.66}$   $\pm$ 0.23  &     2 \\             
1600 &        3.062 $\pm$ 0.017  &      1.054 $\pm$ 0.045  &    0.588 $\pm$ 0.588  &    0.47 $\pm$ 0.11  &      0.188 $ _{-0.188}^{+0.279}$   &    2.3 $ _{-0.63}^{+0.66}$   $\pm$ 0.23  &     2 \\             
1650 &        2.346 $\pm$ 0.013  &      1.054 $\pm$ 0.045  &    0.588 $\pm$ 0.588  &    0.47 $\pm$ 0.11  &      0.188 $ _{-0.188}^{+0.279}$   &    2.3 $ _{-0.63}^{+0.66}$   $\pm$ 0.23  &     2 \\             
1700 &        1.7899 $\pm$ 0.0097  &    1.054 $\pm$ 0.045  &    0.588 $\pm$ 0.588  &    0.47 $\pm$ 0.11  &      0.188 $ _{-0.188}^{+0.279}$   &    2.3 $ _{-0.63}^{+0.66}$   $\pm$ 0.23  &     2 \\             
1750 &        1.3801 $\pm$ 0.0075  &    1.054 $\pm$ 0.045  &    0.588 $\pm$ 0.588  &    0.47 $\pm$ 0.11  &      0.188 $ _{-0.188}^{+0.279}$   &    2.3 $ _{-0.63}^{+0.66}$   $\pm$ 0.23  &     2 \\             
1800 &        1.0659 $\pm$ 0.0057  &    1.054 $\pm$ 0.045  &    0.588 $\pm$ 0.588  &    0.47 $\pm$ 0.11  &      0.188 $ _{-0.188}^{+0.279}$   &    2.3 $ _{-0.63}^{+0.66}$   $\pm$ 0.23  &     2 \\             
1850 &        0.821 $\pm$ 0.004  &      1.054 $\pm$ 0.045  &    0.588 $\pm$ 0.588  &    0.47 $\pm$ 0.11  &      0.188 $ _{-0.188}^{+0.279}$   &    2.3 $ _{-0.63}^{+0.66}$   $\pm$ 0.23  &     2 \\             
1900 &        0.636 $\pm$ 0.003  &      1.054 $\pm$ 0.045  &    0.588 $\pm$ 0.588  &    0.47 $\pm$ 0.11  &      0.188 $ _{-0.188}^{+0.279}$   &    2.3 $ _{-0.63}^{+0.66}$   $\pm$ 0.23  &     2 \\             
1950 &        0.491 $\pm$ 0.003  &      1.054 $\pm$ 0.045  &    0.588 $\pm$ 0.588  &    0.47 $\pm$ 0.11  &      0.188 $ _{-0.188}^{+0.279}$   &    2.3 $ _{-0.63}^{+0.66}$   $\pm$ 0.23  &     2 \\             
2000 &        0.377 $\pm$ 0.002  &      1.054 $\pm$ 0.045  &    0.588 $\pm$ 0.588  &    0.47 $\pm$ 0.11  &      0.188 $ _{-0.188}^{+0.279}$   &    2.3 $ _{-0.63}^{+0.66}$   $\pm$ 0.23  &     2 \\   
\hline
\end{tabular}
}
\label{tab:finalselection_mumu}
\end{table*}          


\begin{table*}[hbtp]
\centering
\topcaption{Event yields after final selections for the \munujj~analysis.  `Other bkg.' includes $\cPZ/\gamma^*$+jets and single top quark. Uncertainties are statistical unless otherwise indicated.}
\cmsTable{
\begin{tabular}{ccccccccc}\hline
$M_{LQ}$~(\GeV) &    Signal &                  W+jets &                $\ttbar$+jets &              VV &                    Other bkg. &                          All bkg. (stat + syst)&                      Data \\ \hline   
200 &         116600 $\pm$ 1500  &      5672 $\pm$ 26  &        15816 $\pm$ 51  &       1049.6 $\pm$ 5.0  &     2732 $\pm$ 15  &                   25270 $\pm$ 59  $\pm$ 1171  &               26043 \\         
250 &         51050 $\pm$ 580  &        2635 $\pm$ 16  &        4662 $\pm$ 28  &        575.9 $\pm$ 3.7  &      1155 $\pm$ 10  &                   9029 $\pm$ 34  $\pm$ 431  &                 9519 \\          
300 &         23840 $\pm$ 250  &        1259.2 $\pm$ 9.7  &     2066 $\pm$ 18  &        346.8 $\pm$ 3.0  &      611.7 $\pm$ 7.6  &                 4284 $\pm$ 22  $\pm$ 197  &                 4669 \\          
350 &         11580 $\pm$ 120  &        757.1 $\pm$ 7.2  &      964 $\pm$ 13  &         200.7 $\pm$ 2.3  &      335 $\pm$ 5.6  &                   2256 $\pm$ 16  $\pm$ 122  &                 2379 \\          
400 &         6051 $\pm$ 58  &          418.2 $\pm$ 4.8  &      461.3 $\pm$ 8.8  &      131.5 $\pm$ 1.9  &      176 $\pm$ 4.2  &                   1187 $\pm$ 11  $\pm$ 70  &                  1279 \\          
450 &         3280 $\pm$ 32  &          248.1 $\pm$ 3.4  &      228.4 $\pm$ 6.2  &      86.4 $\pm$ 1.6  &       108.1 $\pm$ 3.4  &                 671 $\pm$ 8.0  $\pm$ 47  &                  737 \\           
500 &         1911 $\pm$ 18  &          177.2 $\pm$ 2.8  &      119.3 $\pm$ 4.4  &      58.8 $\pm$ 1.3  &       67.6 $\pm$ 2.7  &                  422.9 $\pm$ 6.1  $\pm$ 40  &                430 \\           
550 &         1165 $\pm$ 10  &          99.2 $\pm$ 1.8  &       69.2 $\pm$ 3.4  &       44 $\pm$ 1.2  &         42.9 $\pm$ 2.1  &                  255.4 $\pm$ 4.6  $\pm$ 18.9  &              270 \\           
600 &         708.9 $\pm$ 6.2  &        70.9 $\pm$ 1.5  &       43.4 $\pm$ 2.7  &       31.1 $\pm$ 1.0  &       28.6 $\pm$ 1.7  &                  174 $\pm$ 3.7  $\pm$ 13  &                  179 \\           
650 &         453.4 $\pm$ 3.9  &        53.8 $\pm$ 1.3  &       26.8 $\pm$ 2.1  &       22.89 $\pm$ 0.91  &     19.7 $\pm$ 1.4  &                  123.2 $\pm$ 3.0  $\pm$ 10.1  &              130 \\           
700 &         301 $\pm$ 2.5  &          36.02 $\pm$ 0.96  &     16.7 $\pm$ 1.7  &       17.03 $\pm$ 0.78  &     14.8 $\pm$ 1.2  &                  84.6 $\pm$ 2.4  $\pm$ 7.1  &                93 \\            
750 &         199.2 $\pm$ 1.6  &        22.73 $\pm$ 0.68  &     11.59 $\pm$ 1.43  &     13.32 $\pm$ 0.71  &     9.89 $\pm$ 0.96  &                 57.5 $\pm$ 2.0  $\pm$ 5.2  &                68 \\            
800 &         136.2 $\pm$ 1.1  &        13.95 $\pm$ 0.46  &     7.6 $\pm$ 1.15  &       8.58 $\pm$ 0.52  &      7.6 $\pm$ 0.83  &                  37.7 $\pm$ 1.6  $\pm$ 4.3  &                57 \\            
850 &         94.69 $\pm$ 0.75  &       10.49 $\pm$ 0.37  &     4.88 $\pm$ 0.92  &      7.46 $\pm$ 0.52  &      6.51 $\pm$ 0.81  &                 29.3 $\pm$ 1.4  $\pm$ 3.5  &                45 \\            
900 &         65.88 $\pm$ 0.51  &       8.96 $\pm$ 0.34  &      3.43 $\pm$ 0.79  &      6.14 $\pm$ 0.48  &      5.56 $\pm$ 0.75  &                 24.1 $\pm$ 1.2  $\pm$ 2.4  &                35 \\            
950 &         47.05 $\pm$ 0.36  &       5.96 $\pm$ 0.25  &      2.36 $\pm$ 0.65  &      4.85 $\pm$ 0.42  &      3.7 $\pm$ 0.55  &                  16.87 $\pm$ 0.99  $\pm$ 1.69  &             30 \\            
1000 &        33.89 $\pm$ 0.25  &       5.4 $\pm$ 0.24  &       1.66 $\pm$ 0.55  &      4.3 $\pm$ 0.41  &       3.3 $\pm$ 0.52  &                  14.67 $\pm$ 0.9  $\pm$ 1.51  &              26 \\            
1050 &        24.42 $\pm$ 0.18  &       4.2 $\pm$ 0.2  &        1.48 $\pm$ 0.52  &      3.9 $\pm$ 0.4  &        2.54 $\pm$ 0.45  &                 12.12 $\pm$ 0.83  $\pm$ 1.27  &             20 \\            
1100 &        18 $\pm$ 0.13  &          4.16 $\pm$ 0.22  &      1.29 $\pm$ 0.49  &      3.31 $\pm$ 0.38  &      1.83 $\pm$ 0.33  &                 10.59 $\pm$ 0.74  $\pm$ 1.15  &             15 \\            
1150 &        13.413 $\pm$ 0.095  &     3.05 $\pm$ 0.17  &      0.759 $\pm$ 0.379  &    2.87 $\pm$ 0.35  &      1.29 $\pm$ 0.28  &                 7.97 $\pm$ 0.61  $\pm$ 0.92  &              13 \\            
1200 &        9.979 $\pm$ 0.07  &       3.02 $\pm$ 0.18  &      0.559 $\pm$ 0.323  &    2.29 $\pm$ 0.31  &      1.09 $\pm$ 0.23  &                 6.96 $\pm$ 0.54  $\pm$ 0.81  &              11 \\            
1250 &        7.417 $\pm$ 0.052  &      2.68 $\pm$ 0.17  &      0.74 $\pm$ 0.37  &      2.07 $\pm$ 0.3  &       0.591 $\pm$ 0.137  &               6.08 $\pm$ 0.52  $\pm$ 0.72  &              11 \\            
1300 &        5.575 $\pm$ 0.038  &      1.61 $\pm$ 0.11  &      0.74 $\pm$ 0.37  &      1.79 $\pm$ 0.28  &      0.73 $\pm$ 0.14  &                 4.87 $\pm$ 0.49  $\pm$ 0.55  &              9 \\             
1350 &        4.213 $\pm$ 0.028  &      1.026 $\pm$ 0.074  &    0.74 $\pm$ 0.37  &      1.5 $\pm$ 0.25  &       0.7 $\pm$ 0.14  &                  3.97 $\pm$ 0.48  $\pm$ 0.43  &              7 \\             
1400 &        3.194 $\pm$ 0.022  &      1.005 $\pm$ 0.077  &    0.74 $\pm$ 0.37  &      1.33 $\pm$ 0.26  &      0.69 $\pm$ 0.14  &                 3.76 $\pm$ 0.48  $\pm$ 0.39  &              7 \\             
1450 &        2.416 $\pm$ 0.016  &      1.45 $\pm$ 0.12  &      0.559 $\pm$ 0.323  &    1.32 $\pm$ 0.26  &      0.65 $\pm$ 0.14  &                 3.97 $\pm$ 0.45  $\pm$ 0.44  &              7 \\             
1500 &        1.841 $\pm$ 0.012  &      1.29 $\pm$ 0.11  &      0.559 $\pm$ 0.323  &    1.32 $\pm$ 0.26  &      0.584 $\pm$ 0.138  &               3.75 $\pm$ 0.45  $\pm$ 0.41  &              7 \\             
1550 &        1.4007 $\pm$ 0.0091  &    1.12 $\pm$ 0.1  &       0.559 $\pm$ 0.323  &    1.32 $\pm$ 0.26  &      0.491 $\pm$ 0.137  &               3.49 $\pm$ 0.45  $\pm$ 0.39  &              6 \\             
1600 &        1.0671 $\pm$ 0.0069  &    1.07 $\pm$ 0.1  &       0.559 $\pm$ 0.323  &    1.27 $\pm$ 0.26  &      0.457 $\pm$ 0.137  &               3.35 $\pm$ 0.45  $\pm$ 0.37  &              6 \\             
1650 &        0.8159 $\pm$ 0.0053  &    0.884 $\pm$ 0.09  &     0.559 $\pm$ 0.323  &    1.27 $\pm$ 0.26  &      0.442 $\pm$ 0.137  &               3.15 $\pm$ 0.44  $\pm$ 0.35  &              6 \\             
1700 &        0.629 $\pm$ 0.004  &      0.99 $\pm$ 0.11  &      0.559 $\pm$ 0.323  &    1.05 $\pm$ 0.24  &      0.416 $\pm$ 0.137  &               3.01 $\pm$ 0.44  $\pm$ 0.32  &              6 \\             
1750 &        0.487 $\pm$ 0.003  &      0.91 $\pm$ 0.11  &      0.381 $\pm$ 0.27  &     0.98 $\pm$ 0.23  &      0.384 $\pm$ 0.136  &               2.65 $\pm$ 0.39  $\pm$ 0.3  &               5 \\             
1800 &        0.373 $\pm$ 0.002  &      0.91 $\pm$ 0.11  &      0.381 $\pm$ 0.27  &     0.96 $\pm$ 0.24  &      0.359 $\pm$ 0.136  &               2.61 $\pm$ 0.4  $\pm$ 0.29  &               5 \\             
1850 &        0.287 $\pm$ 0.002  &      0.88 $\pm$ 0.11  &      0.199 $\pm$ 0.199  &    0.9 $\pm$ 0.23  &       0.321 $\pm$ 0.136  &               2.3 $\pm$ 0.35  $\pm$ 0.28  &               4 \\             
1900 &        0.221 $\pm$ 0.001  &      0.74 $\pm$ 0.097  &     0.199 $\pm$ 0.199  &    0.86 $\pm$ 0.24  &      0.309 $\pm$ 0.136  &               2.11 $\pm$ 0.35  $\pm$ 0.25  &              3 \\             
1950 &        0.17 $\pm$ 0.001  &       0.685 $\pm$ 0.096  &    0.199 $\pm$ 0.199  &    0.83 $\pm$ 0.24  &      0.3 $\pm$ 0.136  &                 2.02 $\pm$ 0.35  $\pm$ 0.24  &              3 \\             
2000 &        0.132 $\pm$ 0.001  &      0.68 $\pm$ 0.1  &       0.199 $\pm$ 0.199  &    0.29 $\pm$ 0.088  &     0.295 $\pm$ 0.136  &               1.47 $\pm$ 0.28  $\pm$ 0.15  &              2 \\             \hline
\end{tabular}
}
\label{tab:finalselection_munu}
\end{table*}

May 28, 2018
Updated POG IDs/recommendations from EXO Jets+X meeting (slide 7)

Electron channel, cut-based ID, new SF

I am in GetNormalizationScaleFactorsAndFbd()
getting electron scale factors :
 using QCD data-driven when calculating electron scale factors
 doing ss iso in region 1 
 doing ss iso in region 2 
ssiso_cr_n: [581.0, 24.1039415863879] [100.0, 10.0]
ssiso_cr_z: [420.33808714959093, 23.436529011771547] [0.7824411952982896, 0.5532878784181883]
ssiso_cr_t: [53.54416814841408, 2.928158503787794] [56.95104288451666, 3.060310150909651]
ssiso_cr_o: [38.93610510788399, 6.412790335607034] [18.36625652947357, 3.6016709700093656]
    ssiso_cr_w: [13.463295557354694, 6.288584828324222] [2.443334420305547, 3.348880362596485]
   ssiso_cr_vv: [14.832102485167608, 0.6477250706871591] [6.624379121653988, 0.8084817841882842]
   ssiso_cr_st: [3.0780892978299574, 0.6474201960972306] [4.218984583781663, 0.7890173367116908]
  ssiso_cr_smh: [7.56261776753173, 0.8595813329255833] [5.079558403732374, 0.6934283958909939]
Wjets entries in ss iso CR1 CR2 : [7.0, 2.6457513110645907] [5.0, 2.23606797749979]
Zjets entries in ss iso CR1 CR2 : [3298.0, 57.42821606144492] [2.0, 1.4142135623730951]
 doing invert iso in nominal region for f_bd 
data_inv : ss, os: [2750.0, 52.44044240850758] [18509.0, 136.04778572251738]
zjet_inv : ss, os: [181.1955574592515, 27.19856740268175] [9012.780294679065, 158.94310272863882]
tt_inv   : ss, os: [4947.413871045599, 28.6522113951396] [10731.76828103814, 42.41456445705028]
wjet_inv : ss, os: [187.70202392069433, 33.60979479125927] [260.961097587061, 43.119194686207194]
stop_inv : ss, os: [227.8381444607053, 5.488130546941263] [435.4332667075371, 7.8853425575763545]
vv_inv   : ss, os: [26.66823817056873, 2.38824835741545] [279.7885114906915, 3.9416928765432355]
smh_inv  : ss, os: [33.952366835379486, 3.9924618379354997] [172.47995589253776, 13.031870166321356]
other_inv: ss, os: [476.1607733873479, 34.37122873210816] [1148.6628316778274, 45.90000174730075]
Wjets entries in the inv iso: ss, os : [309.0, 17.578395831246947] [346.0, 18.601075237738275]
Zjets entries in the inv iso: ss, os : [1266.0, 35.58089374931439] [60275.0, 245.50967394381834]
 Getting avg and uncer of Rz Rt Fbd 
MuMu scale factor integrals: CR1, CR2 
Data: [43650.0, 208.92582415776178] [3236.0, 56.88585061331157]
Z: [35340.45055151066, 220.22785561600148] [15.025105938305886, 4.458724602240208]
TT: [2803.851499859334, 21.798493350160808] [3254.781703356188, 23.65989998723114]
Other: [1467.2220926360121, 10.574909135174254] [229.85646275268664, 7.047553304105336]
       W: [2.8756117447293637, 5.188584759092368] [-3.9232825695416906, 3.791919507777042]
      VV: [1003.8759535146149, 5.184949372641731] [35.39359382052213, 2.019018765574859]
      ST: [97.53896224127504, 3.9870373374500665] [186.09480296497082, 5.54277319524558]
     SMH: [362.93156513539276, 6.490541170644207] [12.291348536735383, 0.7004159843047825]
QCD: [22.84814415713005, 37.26426698335219] [29.78909795602545, 11.28891829845716]
Wjets entries in CR1 CR2 : [11.0, 3.3166247903554] [6.0, 2.449489742783178]
Zjets entries in CR1 CR2 : [250999.0, 500.99800398803984] [157.0, 12.529964086141668]


MuMu: RZ  =  1.121 +- 0.009 1.1209232736 0.00927
MuMu: Rtt =  0.908 +- 0.02 0.908153586424 0.01962
MuMu: fbd =  1.026 +- 0.119 1.0259228092 0.11935

April 27, 2018
HH electron channel
I am in GetNormalizationScaleFactorsAndFbd()
getting electron scale factors :
 using QCD data-driven when calculating electron scale factors
 doing ss iso in region 1 
 doing ss iso in region 2 
ssiso_cr_n: [1822.0, 42.68489194082609] [300.0, 17.320508075688775]
ssiso_cr_z: [1150.3545349837007, 94.49829269718803] [-1.4342735884919153, 4.358886286204284]
ssiso_cr_t: [416.86057722816685, 9.225011920243078] [228.79592968209636, 6.8218556221726665]
ssiso_cr_o: [60.442616027113566, 2.4137448085666966] [29.86626504059631, 2.3157423592127446]
    ssiso_cr_w: [0.0, 0.0] [0.0, 0.0]
   ssiso_cr_vv: [32.10899949497345, 1.4491756768994433] [10.026607729368097, 1.5678236145196542]
   ssiso_cr_st: [21.35699594040051, 1.9177701131764553] [15.694088601152748, 1.6913454915843922]
  ssiso_cr_smh: [6.9766205917396045, 0.21957151767222832] [4.145568710075464, 0.20962398742483324]
Wjets entries in ss iso CR1 CR2 : [0.0, 0.0] [0.0, 0.0]
Zjets entries in ss iso CR1 CR2 : [1341.0, 36.61966684720111] [5.0, 2.23606797749979]
 doing invert iso in nominal region for f_bd 
data_inv : ss, os: [3522.0, 59.34644049983116] [11557.0, 107.50348831549607]
zjet_inv : ss, os: [131.6455366240562, 37.129179155895365] [4311.225578404644, 192.45245565637586]
tt_inv   : ss, os: [1251.3758186656844, 16.015503398659817] [3594.8502703531317, 27.19042172628995]
wjet_inv : ss, os: [293.4913295857418, 207.53109446158092] [167.65445976320478, 253.20361156515014]
stop_inv : ss, os: [64.97814756355226, 3.217421485697796] [146.91068596550005, 5.052597748821159]
vv_inv   : ss, os: [18.9557080184405, 3.0764933346663024] [118.94578600602227, 3.1527367303769176]
smh_inv  : ss, os: [7.732590262303155, 0.27892139826264445] [25.099670332604983, 0.4792849612048412]
other_inv: ss, os: [385.15777543003776, 207.57902008108363] [458.6106020673321, 253.2740948391918]
Wjets entries in the inv iso: ss, os : [2.0, 1.4142135623730951] [5.0, 2.23606797749979]
Zjets entries in the inv iso: ss, os : [149.0, 12.206555615733702] [4317.0, 65.70388116390082]
 Getting avg and uncer of Rz Rt Fbd 
MuMu scale factor integrals: CR1, CR2 
Data: [66916.0, 258.68127106537884] [4189.0, 64.72248450113763]
Z: [59195.38489253391, 671.3259647094152] [35.60390282118816, 16.286453093256434]
TT: [4073.9382545000626, 28.923557196623594] [4497.8778622396985, 30.35623520069845]
Other: [1887.634794528053, 8.896991882576655] [330.5280744889786, 7.696606659170638]
       W: [0.0, 0.0] [0.0, 0.0]
      VV: [1511.1236307382615, 6.989546608075652] [51.88644053118259, 2.6719024283589032]
      ST: [152.89727219669044, 5.475093089044995] [264.7151448834667, 7.206618352751441]
     SMH: [223.613891593101, 0.5710152699050994] [13.926489074329321, 0.40415763893029444]
QCD: [437.5032254016583, 202.14170620473328] [161.6288503618254, 35.65977724045297]
Wjets entries in CR1 CR2 : [0.0, 0.0] [0.0, 0.0]
Zjets entries in CR1 CR2 : [67761.0, 260.30943125442076] [48.0, 6.928203230275509]


MuMu: RZ  =  1.035 +- 0.013 1.03528872325 0.01341
MuMu: Rtt =  0.813 +- 0.021 0.813124083929 0.02098
MuMu: fbd =  1.889 +- 0.293 1.88864771865 0.29307

April 20, 2018
HH electron channel

Get DY & TTbar Data/MC normalization scale factors
getting electron scale factors :
 using QCD data-driven when calculating electron scale factors
 QCD fake rate is  [1.449, 0.03]
electron scale factor integrals:
Data: [94537.0, 307.46869759375505] [8195.0, 90.52623929005335]
Z: [70395.38847614737, 726.7406516334386] [98.89682360269542, 25.770168076662774]
TT: [6993.789208148032, 37.739768757718565] [6942.381424524376, 37.57784563452757]
Other: [10649.606663045895, 14176.224155117046] [2675.4503852616062, 4442.64244050516]
SMHiggs: [250.93647449287602, 0.6853516252987646] [24.89660393837887, 0.5387644840495484]
Muon: RZ  =  1.111 +- 0.013 1.11087170407 0.01266
Muon: Rtt =  0.775 +- 0.014 0.775493975152 0.0142
[[Rz_uujj,Rz_uujj_err],[Rtt_uujj,Rtt_uujj_err]]= [[1.1108717040652412, 0.012659999999999652], [0.775493975151927, 0.01419999999999959]]


--------------
--------------
Performing QCD Study

------ DI-electron CHANNEL -------

Number of events in QCD MC:
Q_ss: [30454.865009905963, 4767.025060748773]
Q_os: [25446.65803925708, 3126.7085781270252]

  
Test: In normal Iso data, the number of same-sign events is [74986.0, 273.8357171736368]
Test: In normal Iso MC, the number of same-sign events is
        Z: [5068.110448212481, 229.27789974750235]
        W: [1532.260802075522, 932.8570871972946]
        t: [712.0407664939705, 10.743035266201614]
       VV: [282.51547504960206, 8.81957265230121]
       tt: [9902.940241274066, 39.5298181564811]
 SMHigggs: [86.43051668613734, 0.9814612177794324]
      QCD: [31041.03596233516, 4769.530599683357]
qcd_ss_iso:  [54353.461764253225, 995.2902957166069]
qcd_op_iso:  [66120.25515256904, 1475.5022477344955]
qcd_ss_inv:  [1286.1593304842756, 57.00372755632785]
qcd_op_inv:  [1712.6160187925352, 198.54705209305746]
 f_bd :  [1.3315737624417703, 0.16526851245674926]
data_qcd_op_iso:  [72375.64358316157, 9080.154312900757]

March 27, 2018
Fixed medium muon ID
['', '']
getting MuMu scale factors :
 using QCD data-driven when calculate MuMu scale factors
 QCD fake rate is  [1.1638, 0.0077]
MuMu scale factor integrals:
Data: [248432.0, 498.42953363539766] [51210.0, 226.29626598775332]
Z: [234298.98046165885, 1231.9630682520897] [13470.951724584165, 305.53796927016924]
TT: [10152.43203612844, 44.862711700483764] [30313.288704472445, 77.53123461746615]
Other: [3949.888919271289, 1566.5672900363709] [2425.3898081000693, 2682.6718154728164]
SMHiggs: [279.7520667272569, 0.6481198739715713] [74.41302774451988, 0.8752997842443079]
MuMu: RZ  =  0.992 +- 0.006 0.991658831187 0.00589
MuMu: Rtt =  1.166 +- 0.014 1.16582887461 0.01356
--------------
  
['*(Pt_muon1<30)', '*(Pt_miss>90)']
getting MuMu scale factors :
 using QCD data-driven when calculate MuMu scale factors
 QCD fake rate is  [1.1638, 0.0077]
MuMu scale factor integrals:
Data: [7337.0, 85.65628990331066] [13127.0, 114.57312075700827]
Z: [6751.537385186032, 177.27799400029951] [119.14483298072896, 34.17344447600625]
TT: [267.9992734800005, 7.264108953770369] [10820.731705706703, 46.29187343121963]
Other: [155.98111785845722, 329.48980014345335] [644.5801514347266, 563.1888715854597]
SMHiggs: [1.8021236910421212, 0.07240150953996638] [28.714645078499384, 0.575865202340169]
MuMu: RZ  =  1.019 +- 0.03 1.01868357938 0.03001
MuMu: Rtt =  1.14 +- 0.013 1.13954668528 0.01296
--------------
  
['*(Pt_muon1>30)*(Pt_muon1<50)', '*(Pt_miss>80)']
getting MuMu scale factors :
 using QCD data-driven when calculate MuMu scale factors
 QCD fake rate is  [1.1638, 0.0077]
MuMu scale factor integrals:
Data: [71269.0, 266.96254418925514] [16183.0, 127.21242077721813]
Z: [65330.095163553124, 588.9944788658634] [325.1685264515924, 46.47961868210506]
TT: [2505.068648102776, 22.27059910000248] [13199.982350137578, 51.12912248682207]
Other: [563.1655643762194, 478.8611987484083] [845.0154964458866, 688.0923700114613]
SMHiggs: [24.38991095217895, 0.2534347293005195] [33.555707982019214, 0.6219833066385294]
MuMu: RZ  =  1.038 +- 0.01 1.03830630302 0.01024
MuMu: Rtt =  1.133 +- 0.011 1.13326826192 0.01087
--------------

['*(Pt_muon1>50)*(Pt_muon1<75)', '*(Pt_miss>70)']
getting MuMu scale factors :
 using QCD data-driven when calculate MuMu scale factors
 QCD fake rate is  [1.1638, 0.0077]
MuMu scale factor integrals:
Data: [95479.0, 308.99676373709804] [19679.0, 140.28185912654564]
Z: [90439.2616907489, 774.1600115021718] [739.1976642122495, 66.94944157735394]
TT: [4254.012997412797, 29.046164460283382] [15845.052091289619, 56.024462912937075]
Other: [1538.529451679656, 394.8302653693621] [995.1694092735182, 888.8990002231668]
SMHiggs: [68.60564491143698, 0.3725012712024318] [38.601464245653794, 0.668229554490733]
MuMu: RZ  =  0.986 +- 0.009 0.985928806769 0.00938
MuMu: Rtt =  1.131 +- 0.01 1.13054066994 0.01048
--------------

['*(Pt_muon1>75)*(Pt_muon1<100)', '*(Pt_miss>70)']
getting MuMu scale factors :
 using QCD data-driven when calculate MuMu scale factors
 QCD fake rate is  [1.1638, 0.0077]
MuMu scale factor integrals:
Data: [38421.0, 196.0127546870356] [19679.0, 140.28185912654564]
Z: [35486.40958656782, 516.8758165774187] [739.1976642122495, 66.94944157735394]
TT: [1901.3926509220075, 19.431276499953825] [15845.052091289619, 56.024462912937075]
Other: [393.92946705630715, 381.7054526784185] [995.1694092735182, 888.8990002231668]
SMHiggs: [61.40315871954863, 0.3004102804203011] [38.601464245653794, 0.668229554490733]
MuMu: RZ  =  1.01 +- 0.016 1.009661017 0.01553
MuMu: Rtt =  1.13 +- 0.011 1.1298283255 0.01098
--------------

['*(Pt_muon1>100)', '*(Pt_miss>50)']
getting MuMu scale factors :
 using QCD data-driven when calculate MuMu scale factors
 QCD fake rate is  [1.1638, 0.0077]
MuMu scale factor integrals:
Data: [35926.0, 189.5415521726041] [28740.0, 169.52875862224676]
Z: [36291.67663556751, 522.404713871034] [2565.2174727417605, 128.54479485101996]
TT: [1223.9584662108139, 15.577607700926327] [21566.565139943763, 65.37879897387276]
Other: [1298.2833183006098, 206.10004212288837] [1369.3588593462057, 1385.4132177420088]
SMHiggs: [123.55122845304521, 0.3486899723364559] [50.57819543824972, 0.7538381963775876]
MuMu: RZ  =  0.912 +- 0.014 0.911677954146 0.01395
MuMu: Rtt =  1.158 +- 0.011 1.15787034486 0.01059
March 23, 2018
brilcalc lumi -b "STABLE BEAMS" -u /pb -i Cert_271036-284044_13TeV_23Sep2016ReReco_Collisions16_JSON.txt --normtag /afs/cern.ch/user/l/lumipro/public/normtag_file/normtag_DATACERT.json --hltpath="HLT_*Mu50*"
#Summary: 
+-----------------------------+-------+------+--------+-------------------+------------------+
| hltpath                     | nfill | nrun | ncms   | totdelivered(/pb) | totrecorded(/pb) |
+-----------------------------+-------+------+--------+-------------------+------------------+
| HLT_Mu50_IsoVVVL_PFHT400_v1 | 19    | 72   | 38302  | 5438.675          | 5218.108         |
| HLT_Mu50_IsoVVVL_PFHT400_v2 | 29    | 77   | 62598  | 10121.858         | 9689.331         |
| HLT_Mu50_IsoVVVL_PFHT400_v3 | 41    | 92   | 54253  | 9994.950          | 9581.599         |
| HLT_Mu50_IsoVVVL_PFHT400_v5 | 32    | 86   | 47447  | 8938.448          | 8605.690         |
| HLT_Mu50_v2                 | 23    | 66   | 29602  | 2882.641          | 2765.338         |
| HLT_Mu50_v3                 | 19    | 72   | 38302  | 5438.675          | 5218.108         |
| HLT_Mu50_v4                 | 70    | 169  | 116851 | 20116.808         | 19270.930        |
| HLT_Mu50_v5                 | 32    | 86   | 47447  | 8938.448          | 8605.690         |
| HLT_TkMu50_v1               | 11    | 37   | 23075  | 3139.883          | 3016.016         |
| HLT_TkMu50_v2               | 8     | 35   | 15227  | 2298.792          | 2202.091         |
| HLT_TkMu50_v3               | 102   | 255  | 164298 | 29055.256         | 27876.620        |
+-----------------------------+-------+------+--------+-------------------+------------------+

HLT_Mu50_v* 35860.066
HLT_TkMu50_v* 33094.727
brilcalc lumi -b "STABLE BEAMS" -u /pb -i Cert_271036-284044_13TeV_23Sep2016ReReco_Collisions16_JSON_B-F.txt --normtag /afs/cern.ch/user/l/lumipro/public/normtag_file/normtag_DATACERT.json --hltpath="HLT_*Mu50*"
#Summary: 
+-----------------------------+-------+------+-------+-------------------+------------------+
| hltpath                     | nfill | nrun | ncms  | totdelivered(/pb) | totrecorded(/pb) |
+-----------------------------+-------+------+-------+-------------------+------------------+
| HLT_Mu50_IsoVVVL_PFHT400_v1 | 19    | 72   | 38302 | 5438.675          | 5218.108         |
| HLT_Mu50_IsoVVVL_PFHT400_v2 | 29    | 77   | 62598 | 10121.858         | 9689.331         |
| HLT_Mu50_IsoVVVL_PFHT400_v3 | 9     | 21   | 9779  | 1887.667          | 1771.967         |
| HLT_Mu50_v2                 | 23    | 66   | 29602 | 2882.641          | 2765.338         |
| HLT_Mu50_v3                 | 19    | 72   | 38302 | 5438.675          | 5218.108         |
| HLT_Mu50_v4                 | 38    | 98   | 72377 | 12009.524         | 11461.298        |
| HLT_TkMu50_v1               | 11    | 37   | 23075 | 3139.883          | 3016.016         |
| HLT_TkMu50_v2               | 8     | 35   | 15227 | 2298.792          | 2202.091         |
| HLT_TkMu50_v3               | 38    | 98   | 72377 | 12009.524         | 11461.298        |
+-----------------------------+-------+------+-------+-------------------+------------------+
HLT_Mu50_v* 19444.744
HLT_TkMu50_v* 16679.405
brilcalc lumi -b "STABLE BEAMS" -u /pb -i Cert_271036-284044_13TeV_23Sep2016ReReco_Collisions16_JSON_GH.txt --normtag /afs/cern.ch/user/l/lumipro/public/normtag_file/normtag_DATACERT.json --hltpath="HLT_*Mu50*"
#Summary: 
+-----------------------------+-------+------+-------+-------------------+------------------+
| hltpath                     | nfill | nrun | ncms  | totdelivered(/pb) | totrecorded(/pb) |
+-----------------------------+-------+------+-------+-------------------+------------------+
| HLT_Mu50_IsoVVVL_PFHT400_v3 | 33    | 71   | 44474 | 8107.284          | 7809.632         |
| HLT_Mu50_IsoVVVL_PFHT400_v5 | 32    | 86   | 47447 | 8938.448          | 8605.690         |
| HLT_Mu50_v4                 | 33    | 71   | 44474 | 8107.284          | 7809.632         |
| HLT_Mu50_v5                 | 32    | 86   | 47447 | 8938.448          | 8605.690         |
| HLT_TkMu50_v3               | 65    | 157  | 91921 | 17045.732         | 16415.322        |
+-----------------------------+-------+------+-------+-------------------+------------------+
HLT_Mu50_v* 16415.322
HLT_TkMu50_v* 16415.322

March 20, 2018

bbWW:

QCD scale uncertainty: This uncertainty is estimated by varying the renormaliza- tion (μR) and the factorization (μF) scales, used during the MC generation of the sample, independently by a factor 0.5, 1 or 2. Unphysical cases, where one scale fluctuate up while the other fluctuate down, are not considered. An envelope is built from all the 6 possible variations by taking in each bin of the distribution the maximum (minimum) variation and is used as an estimate of the QCD scale uncer- tainties for all the background and signal samples.

Studying Z,TTbar SF as function of kinematics

Nominal:

getting MuMu scale factors :
 using QCD data-driven when calculate MuMu scale factors
 QCD fake rate is  [1.1638, 0.0077]
MuMu scale factor integrals:
Data: [248432.0, 498.42953363539766] [10558.0, 102.75212893171606]
Z: [238327.66482664645, 1212.5669546556987] [87.72461659705678, 26.959470942381863]
TT: [10314.66798118862, 44.15300716264551] [8820.214642075753, 40.79743138861904]
Other: [4239.5436184726605, 1896.3969112875761] [607.0716889876055, 571.6190993214873]
SMHiggs: [282.46381440007787, 0.6433381733097062] [24.574150519871175, 0.5200040449545305]
MuMu: RZ  =  0.975 +- 0.005 0.975274818989 0.00545
MuMu: Rtt =  1.116 +- 0.013 1.11587948808 0.01298

Varied:

['*(Pt_muon1<30)', '*(Pt_miss>90)']
getting MuMu scale factors :
 using QCD data-driven when calculate MuMu scale factors
 QCD fake rate is  [1.1638, 0.0077]
MuMu scale factor integrals:
Data: [7337.0, 85.65628990331066] [13127.0, 114.57312075700827]
Z: [6873.621199286502, 173.55502832828583] [136.89145313533965, 35.11706258611027]
TT: [272.01381312810196, 7.119649003997313] [10940.690190197958, 45.44003561960971]
Other: [152.30747193968347, 444.3604041467307] [656.6566479299447, 700.0116943931857]
SMHiggs: [1.798890386150171, 0.07037191913650494] [29.05664605336845, 0.5640061020445456]
MuMu: RZ  =  1.001 +- 0.028 1.00106129675 0.02761
MuMu: Rtt =  1.125 +- 0.012 1.12512489192 0.01172
--------------
  
['*(Pt_muon1>30)*(Pt_muon1<50)', '*(Pt_miss>80)']
getting MuMu scale factors :
 using QCD data-driven when calculate MuMu scale factors
 QCD fake rate is  [1.1638, 0.0077]
MuMu scale factor integrals:
Data: [71269.0, 266.96254418925514] [16183.0, 127.21242077721813]
Z: [66417.07126416198, 579.4243560753399] [334.1107597699348, 46.771408059188204]
TT: [2529.4956889725613, 21.844774394915092] [13349.365143847575, 50.195028606846805]
Other: [646.2223500848139, 557.3077882997203] [1037.1177784935978, 812.1969076862645]
SMHiggs: [24.55375561691779, 0.2491638535546283] [33.93745739725609, 0.6091438435704456]
MuMu: RZ  =  1.021 +- 0.01 1.02105843077 0.00952
MuMu: Rtt =  1.107 +- 0.011 1.106753266 0.01138
--------------

['*(Pt_muon1>50)*(Pt_muon1<75)', '*(Pt_miss>70)']
getting MuMu scale factors :
 using QCD data-driven when calculate MuMu scale factors
 QCD fake rate is  [1.1638, 0.0077]
MuMu scale factor integrals:
Data: [95479.0, 308.99676373709804] [19679.0, 140.28185912654564]
Z: [91489.93658206622, 761.4308031642709] [738.6624450017082, 66.89904712375873]
TT: [4323.1313470307505, 28.59771607887987] [16024.44078262387, 55.000459349967436]
Other: [1683.5585282396478, 495.03460698107216] [1361.8511341405688, 1049.5672249348245]
SMHiggs: [69.13691159471387, 0.3774173230221797] [38.98786370885649, 0.6541684057026811]
MuMu: RZ  =  0.973 +- 0.009 0.972885044292 0.00882
MuMu: Rtt =  1.096 +- 0.01 1.09568762879 0.01046
--------------

['*(Pt_muon1>75)*(Pt_muon1<100)', '*(Pt_miss>70)']
getting MuMu scale factors :
 using QCD data-driven when calculate MuMu scale factors
 QCD fake rate is  [1.1638, 0.0077]
MuMu scale factor integrals:
Data: [38421.0, 196.0127546870356] [19679.0, 140.28185912654564]
Z: [36288.17948113931, 509.0035492265613] [738.6624450017082, 66.89904712375873]
TT: [1933.7640153030072, 19.137355517040927] [16024.44078262387, 55.000459349967436]
Other: [433.66400778074205, 384.3715737667709] [1361.8511341405688, 1049.5672249348245]
SMHiggs: [61.888205816859035, 0.29470834664525497] [38.98786370885649, 0.6541684057026811]
MuMu: RZ  =  0.988 +- 0.015 0.987810227332 0.01484
MuMu: Rtt =  1.095 +- 0.01 1.09539142375 0.01025
--------------

['*(Pt_muon1>100)', '*(Pt_miss>50)']
getting MuMu scale factors :
 using QCD data-driven when calculate MuMu scale factors
 QCD fake rate is  [1.1638, 0.0077]
MuMu scale factor integrals:
Data: [35926.0, 189.5415521726041] [28740.0, 169.52875862224676]
Z: [37258.85629995557, 515.3670595985636] [2633.146541727645, 127.22782579398866]
TT: [1256.2631167541565, 15.412226642699544] [21811.187660235868, 64.18111195588685]
Other: [1323.7912604276357, 227.2910658873616] [1800.3181044884627, 1645.4715769272648]
SMHiggs: [125.08605098544216, 0.3428590483226438] [51.06270214722427, 0.7379073720161001]
MuMu: RZ  =  0.888 +- 0.013 0.887715724366 0.01333
MuMu: Rtt =  1.126 +- 0.01 1.12564343214 0.01008

['*(Pt_muon1>100)*(Pt_muon1<150)', '*(Pt_miss>80)']
getting MuMu scale factors :
 using QCD data-driven when calculate MuMu scale factors
 QCD fake rate is  [1.1638, 0.0077]
MuMu scale factor integrals:
Data: [25064.0, 158.3161394173064] [16183.0, 127.21242077721813]
Z: [25375.075443963615, 424.7684901226105] [334.1107597699348, 46.771408059188204]
TT: [1044.0615466989104, 14.051705962627006] [13349.365143847575, 50.195028606846805]
Other: [848.7839885549441, 189.93386528104799] [1037.1177784935978, 812.1969076862645]
SMHiggs: [74.05289332089069, 0.2776553012412367] [33.93745739725609, 0.6091438435704456]
MuMu: RZ  =  0.906 +- 0.016 0.906450327226 0.01612
MuMu: Rtt =  1.11 +- 0.011 1.10977890942 0.01146
--------------

['*(Pt_muon1>150)*(Pt_muon1<200)', '']
getting MuMu scale factors :
 using QCD data-driven when calculate MuMu scale factors
 QCD fake rate is  [1.1638, 0.0077]
MuMu scale factor integrals:
Data: [6669.0, 81.6639455328972] [51210.0, 226.29626598775332]
Z: [6779.420075781685, 225.15487914933883] [13632.06810426662, 301.21188984064696]
TT: [165.3263505125314, 5.58763349560919] [30648.613661345953, 76.10026178163932]
Other: [256.2877493779706, 35.034602869187374] [3399.4123512689257, 3239.4802603514754]
SMHiggs: [29.406581321174148, 0.15883040626840927] [74.86171798044481, 0.8565014803735688]
MuMu: RZ  =  0.914 +- 0.034 0.914449222259 0.03367
MuMu: Rtt =  1.151 +- 0.02 1.15057152861 0.01958
--------------

['*(Pt_muon1>200)', '']
getting MuMu scale factors :
 using QCD data-driven when calculate MuMu scale factors
 QCD fake rate is  [1.1638, 0.0077]
MuMu scale factor integrals:
Data: [4193.0, 64.7533782902483] [51210.0, 226.29626598775332]
Z: [5104.360780210341, 185.68849267920885] [13632.06810426662, 301.21188984064696]
TT: [46.87521954271866, 2.9773547898355917] [30648.613661345953, 76.10026178163932]
Other: [218.71952249473364, 14.71774166193649] [3399.4123512689257, 3239.4802603514754]
SMHiggs: [21.626576343375138, 0.12342107905037349] [74.86171798044481, 0.8565014803735688]
MuMu: RZ  =  0.764 +- 0.03 0.764153952396 0.02991
MuMu: Rtt =  1.218 +- 0.017 1.21797085174 0.01696

March 16, 2018

HLT SF:

H->ZZ->llnunu says none necessary, but have pt>25 for muons.

http://cms.cern.ch/iCMS/analysisadmin/cadilines?line=HIG-16-001&tp=an&id=1570&ancode=HIG-16-001

This talk has them for Loose and Tight:

https://indico.cern.ch/event/636555/contributions/2577291/attachments/1453162/2241537/TnP_DoubleMuSF_03_05_17.pdf

From h->aa->2mu2tau (http://cms.cern.ch/iCMS/analysisadmin/cadilines?line=HIG-17-029):

We use a trigger scale factor of 1.0 for the soup of single muon, double muon, and triple muon triggers. This is consistent with what was measured by various analyses, for example in Refs [30], [31].

CMS, “Measurement of the 2016 trigger efficiencies for a dilepton selection for a ttbar analysis”, CMS Note 2016/392, 2016. CMS, “Search for the standard model Higgs boson produced via W or Z associated production with the Higgs boson decaying to a pair of tau leptons in 2016 data”, CMS Note 2017/020, 2017.

March 15, 2018
HH, removed top-pt reweighting, veto on 2 weird data and ttbar events that were filled thousands of time

getting MuMu scale factors :
 using QCD data-driven when calculate MuMu scale factors
MuMu scale factor integrals:
Data: [248432.0, 498.42953363539766] [10558.0, 102.75212893171606]
Z: [238327.66482664645, 1212.5669546556987] [87.72461659705678, 26.959470942381863]
TT: [10314.66798118862, 44.15300716264551] [8820.214642075753, 40.79743138861904]
Other: [4455.399012575276, 2016.5130833035018] [657.2957436477051, 594.8067434743132]
SMHiggs: [282.46381440007787, 0.6433381733097062] [24.574150519871175, 0.5200040449545305]
MuMu: RZ  =  0.975 +- 0.006 0.974561303332 0.00553
MuMu: Rtt =  1.11 +- 0.013 1.11001331611 0.01308

 Looking at ss iso
W:    1866.50807028 61.0
VV:   128.641086107 16984.0
Z:    344.171605009 513.0
TT:   5001.89278144 27906.0
ST:   443.416436215 5224.0
SM H: 54.2134555774 82248.0
Data            : 15843.0 15843.0
signal1, M_{R}=300 (1 pb) : 2.20701809873
signal2, M_{R}=900 (1 pb) : 1.39527689967
W:    2376.38880158 2376.38880158 69.0
Z:    297469.944133 297469.944133 382116.0
VV:   4694.42922823 4694.42922823 804020.0
TT:   84846.8669162 84846.8669162 441342.0
ST:   4236.11539102 4236.11539102 28442.0
QCD:  10232.7721968 10232.7721968 148796.0
SM H: 475.364704156 475.364704156 1140454.0
Total Background: 404331.881371 +- 2674.16120501
Data            : 399903.0 399903.0
Signal M=260    : 2207.01809873 +- 16.1228139655

February 27, 2018
Removed top-pt reweighting, switched to 8M1 high-stat single top
This is the information for the NOTE table 6:
 Data: 23902.0
   TT: 23200.6050524
    Z: 124.204678073
 Stop: 1329.95612677
    W: 138.080776528
   VV: 749.543555809
MuMu: Rtt =  [0.929295370275323, 0.007686916124305864]
Now calculating R_mumu,emu, the ratio of mumu to e,mu events in ttbar MC. 
Should be near 0.5
R_uu,eu =  0.607308652332  +-  0.00276041064762

Using Data-driven TTbar                                                                                                                                      
MuMu scale factor integrals:
Data: [44772.0, 211.59395076419364] [20479.0, 143.10485666112103]                                                                                            
Z: [43388.64782944245, 121.94902397899257] [6220.1366556988605, 130.6622237228162]
TT: [638.8915286640027, 27.016400133023506] [13393.448501131696, 50.07011536906103]                                                                          
Other: [1512.8662248949656, 8.743646598058776] [1373.9236953485906, 24.52503665488893]
MuMu: RZ  =  0.983 +- 0.006                                                                                                                                  
MuMu: Rtt =  1.000 +- 0.023
Here $(N_1,N_2) = (   159326.0 , 59726.0 )$, $(N_{1,\ttbar},N_{2,\ttbar}) = (  43339.7 \pm 88.4 , 47995.1 \pm 92.2 )$,  $(N_{1,W},N_{2,W}) = (  109871.7 \pm 
914.0 , 7611.7 \pm 259.4 $, and $(N_{1,0},N_{2,0}) = (  14058.3 \pm 201.8 , 5386.4 \pm 70.1 )$.
\ttbar control region &  59726.0  &  47995.1 $\pm$ 92.2  &  7611.7 $\pm$ 259.4  &  5386.4 $\pm$ 70.1  &  60993.1 $\pm$ 284.0 \\ \hline                       
W control region &  159326.0  &  43339.7 $\pm$ 88.4  &  109871.7 $\pm$ 914.0  &  14058.3 $\pm$ 201.8  &  167269.7 $\pm$ 940.2 \\ \hline
MuNu scale factor integrals:                                                                                                                                 
Data: [159326.0, 399.15661086846603] [59726.0, 244.3890341238739]
W: [109871.68961294474, 914.0410504986088] [7611.6538393864475, 259.37820270120534]                                                                          
TT: [43339.70378134009, 88.38735783365614] [47995.13857627314, 92.16447797781684]
Other: [14058.31815321255, 201.7936425263286] [5386.353198135443, 70.0805287821342]                                                                          
MuNu: RW  =  0.934 +- 0.01
MuNu: Rtt =  0.984 +- 0.008                    

Processing BR_Sigma_MuMu_vsMass.C...
## LLJJ expected limit: 1516.4 GeV
## LLJJ observed limit: 1528.7 GeV
## LLJJ expected limit -2 sigma: 1357.7 GeV
## LLJJ expected limit -1 sigma: 1432.4 GeV
## LLJJ expected limit +1 sigma: 1594.7 GeV
## LLJJ expected limit +2 sigma: 1661 GeV

Processing BR_Sigma_MuNu_vsMass.C...
## LLJJ expected limit: 1257.3 GeV
## LLJJ observed limit: 1147.2 GeV
## LLJJ expected limit -2 sigma: 1078.8 GeV
## LLJJ expected limit -1 sigma: 1169.8 GeV
## LLJJ expected limit +1 sigma: 1359.7 GeV
## LLJJ expected limit +2 sigma: 1421.8 GeV

Processing ComboPlotLQ2.C...
## ---------------- B = 1/2 Limits ----------------------
##   lvjj Expected : 1274
##   lvjj Observed : 1165.1
##  combo Expected : 1364.7
##  combo Observed : 1286                                                                                                              

February 21, 2018
BTAG SF up/down variations to assess systematics - just make systematic on W/ttbar normalization?
Processing table for variation:  BTAGup
ls: cannot access Results_Testing_v236_etaSF_syst2/OptLQ_uvjjCuts_Smoothed_pol2cutoff_systable_BTAGup.txt: No such file or directory
Here $(N_1,N_2) = (   159326.0 , 59726.0 )$, $(N_{1,\ttbar},N_{2,\ttbar}) = (  36549.4 \pm 77.1 , 47386.8 \pm 93.0 )$,  $(N_{1,W},N_{2,W}) = (  97786.4 \pm 815.6 , 7911.0 \pm 269.2 $, and $(N_{1,0},N_{2,0}) = (  12450.7 \pm 189.7 , 5685.2 \pm 98.7 )$.
\ttbar control region &  59726.0  &  47386.8 $\pm$ 93.0  &  7911.0 $\pm$ 269.2  &  5685.2 $\pm$ 98.7  &  60983.0 $\pm$ 301.5 \\ \hline
W control region &  159326.0  &  36549.4 $\pm$ 77.1  &  97786.4 $\pm$ 815.6  &  12450.7 $\pm$ 189.7  &  146786.5 $\pm$ 840.9 \\ \hline
MuNu scale factor integrals:
Data: [159326.0, 399.15661086846603] [59726.0, 244.3890341238739]
W: [97786.44242418838, 815.5742093933515] [7911.017096235654, 269.2304265688445]
TT: [36549.408156160716, 77.10941414783473] [47386.80316244734, 93.00740095512617]
Other: [12450.665407187522, 189.73784167217516] [5685.210055318502, 98.70075121810453]
MuNu: RW  =  1.148 +- 0.011
MuNu: Rtt =  0.949 +- 0.009
                                      
Processing table for variation:  BTAGdown
ls: cannot access Results_Testing_v236_etaSF_syst2/OptLQ_uvjjCuts_Smoothed_pol2cutoff_systable_BTAGdown.txt: No such file or directory
Here $(N_1,N_2) = (   159326.0 , 59726.0 )$, $(N_{1,\ttbar},N_{2,\ttbar}) = (  45563.5 \pm 96.1 , 44155.3 \pm 86.7 )$,  $(N_{1,W},N_{2,W}) = (  121911.8 \pm 1016.7 , 7286.4 \pm 248.7 $, and $(N_{1,0},N_{2,0}) = (  15508.6 \pm 235.9 , 5266.7 \pm 91.0 )$.
\ttbar control region &  59726.0  &  44155.3 $\pm$ 86.7  &  7286.4 $\pm$ 248.7  &  5266.7 $\pm$ 91.0  &  56708.4 $\pm$ 278.7 \\ \hline
W control region &  159326.0  &  45563.5 $\pm$ 96.1  &  121911.8 $\pm$ 1016.7  &  15508.6 $\pm$ 235.9  &  182983.9 $\pm$ 1048.2 \\ \hline
MuNu scale factor integrals:
Data: [159326.0, 399.15661086846603] [59726.0, 244.3890341238739]
W: [121911.81739704091, 1016.730958559907] [7286.397265744175, 248.74058203677347]
TT: [45563.50149265707, 96.13114352105859] [44155.29749975143, 86.69059414389399]
Other: [15508.571793254938, 235.9217844492238] [5266.73500099843, 90.95138121061906]
MuNu: RW  =  0.766 +- 0.008
MuNu: Rtt =  1.107 +- 0.008
February 15, 2018
Processing BR_Sigma_MuMu_vsMass.C...
## LLJJ expected limit: 1520.8 GeV
## LLJJ observed limit: 1524.8 GeV
## LLJJ expected limit -2 sigma: 1361.8 GeV
## LLJJ expected limit -1 sigma: 1438 GeV
## LLJJ expected limit +1 sigma: 1600.9 GeV
## LLJJ expected limit +2 sigma: 1665.9 GeV

Processing BR_Sigma_MuNu_vsMass.C...
## LLJJ expected limit: 1258.7 GeV
## LLJJ observed limit: 1139.4 GeV
## LLJJ expected limit -2 sigma: 1068.4 GeV
## LLJJ expected limit -1 sigma: 1176.9 GeV
## LLJJ expected limit +1 sigma: 1365.1 GeV
## LLJJ expected limit +2 sigma: 1425.5 GeV

Processing ComboPlotLQ2.C...
## ---------------- B = 1/2 Limits ----------------------
##   lvjj Expected : 1276.5
##   lvjj Observed : 1149
##  combo Expected : 1368.4
##  combo Observed : 1271.6
##   
January 30, 2018
LQ with eta-dependent Muon SF only
Using Data-driven TTbar
MuMu scale factor integrals:
Data: [44772.0, 211.59395076419364] [20479.0, 143.10485666112103]
Z: [43388.64782944245, 121.94902397899257] [6220.1366556988605, 130.6622237228162]
TT: [603.8609045542329, 26.094019032502082] [12735.534395855473, 48.77488585873623]
Other: [1515.3402483823572, 10.824094451317816] [1337.4806726311986, 37.66230138552406]
MuMu: RZ  =  0.983 +- 0.006
MuMu: Rtt =  1.000 +- 0.023
Here $(N_1,N_2) = (   159326.0 , 59726.0 )$, $(N_{1,\ttbar},N_{2,\ttbar}) = (  41393.0 \pm 86.4 , 45839.1 \pm 90.0 )$,  $(N_{1,W},N_{2,W}) = (  109785.4 \pm 914.0 , 7611.7 \pm 259.4 $, and $(N_{1,0},N_{2,0}) = (  14003.3 \pm 212.3 , 5485.2 \pm 95.0 )$.
\ttbar control region &  59726.0  &  45839.1 $\pm$ 90.0  &  7611.7 $\pm$ 259.4  &  5485.2 $\pm$ 95.0  &  58935.9 $\pm$ 290.5 \\ \hline
W control region &  159326.0  &  41393.0 $\pm$ 86.4  &  109785.4 $\pm$ 914.0  &  14003.3 $\pm$ 212.3  &  165181.7 $\pm$ 942.3 \\ \hline
MuNu scale factor integrals:
Data: [159326.0, 399.15661086846603] [59726.0, 244.3890341238739]
W: [109785.39305087064, 914.0335073502181] [7611.6538393864475, 259.37820270120534]
TT: [41392.98379615509, 86.42411760500612] [45839.09266778932, 89.97367083824533]
Other: [14003.287488791308, 212.33936125024056] [5485.164253034953, 94.9921336421501]
MuNu: RW  =  0.936 +- 0.009
MuNu: Rtt =  1.028 +- 0.008

W:   55.0586700766
Z:   51190.0190863
VV:  2139.00456902
TT:  13504.0580247
ST:  811.283221881
Total Background: 67699.423572 +- 72.7627420014
Data            : 68497.0
Signal M=1000    : 41.38639405 +- 0.213324552535

January 23, 2018
HH with new ntuples
getting MuMu scale factors :
MuMu scale factor integrals:
Data: [249753.0, 499.7529389608429] [10687.0, 103.3779473582253]
Z: [239387.8204293436, 1211.778857856733] [85.97249710902861, 26.90694471199727]
TT: [10628.352063301203, 44.80791844323994] [8748.358307282633, 39.91254873363252]
Other: [6962.01565978695, 1997.6410054933542] [825.1001292086561, 231.8816703295228]
SMHiggs: [465.33317774374365, 0.7199096287688119] [24.288529999444517, 0.506962390506648]
MuMu: RZ  =  0.963 +- 0.005 0.962532740838 0.00522
MuMu: Rtt =  1.115 +- 0.013 1.11494217084 0.01324

 Looking at ss iso
W:    1267.92264438 38.0
VV:   77.7532008176 13515.0
Z:    167.856091401 259.0
TT:   1524.1075216 8822.0
ST:   127.505220497 213.0
SM H: 29.5503995586 45791.0
Data            : 5465.0 5465.0
signal1, M_{R}=300 (1 pb) : 2.20129415924
signal2, M_{R}=900 (1 pb) : 1.61738403639
W:    2372.93884333 2372.93884333 68.0
Z:    294027.285281 294027.285281 376647.0
VV:   4548.60298957 4548.60298957 780984.0
TT:   87403.8547246 87403.8547246 455027.0
ST:   3908.01385018 3908.01385018 3720.0
QCD:  2902.35781196 2902.35781196 74103.0
SM H: 683.022452659 683.022452659 1883663.0
Total Background: 395846.075953 +- 2155.99582611
Data            : 402460.0 402460.0
Signal M=300    : 2201.29415924 +- 16.0993895642

January 22, 2018
To merge multiple pdf files into one:
gs -dBATCH -dNOPAUSE -q -sDEVICE=pdfwrite -sOutputFile=merged.pdf *pdf
December 20, 2017
TTBar estimate at final selections

200:

This is the information for the NOTE table 6:
 Data: 9688.0
   TT: 8458.59572879
    Z: -5.98614003621
 Stop: 704.038125158
    W: 138.218253333
   VV: 503.808576192
MuMu: Rtt =  [0.9869157308153337, 0.014083991282531662]
Now calculating R_mumu,emu, the ratio of mumu to e,mu events in ttbar MC. 
Should be near 0.5
R_uu,eu =  0.588594918133  +-  0.00441151467065

500:

This is the information for the NOTE table 6:
 Data: 141.0
   TT: 99.9841109603
    Z: 2.17772282143
 Stop: 29.7366980921
    W: 4.94365143895
   VV: 25.5554630669
MuMu: Rtt =  [0.7859895319962339, 0.13891851535822494]
Now calculating R_mumu,emu, the ratio of mumu to e,mu events in ttbar MC. 
Should be near 0.5
R_uu,eu =  0.646593035508  +-  0.0418997959043

600:

This is the information for the NOTE table 6:
 Data: 44.0
   TT: 25.8792374112
    Z: 1.13727046657
 Stop: 8.77175112515
    W: 2.54490143114
   VV: 11.6069336993
MuMu: Rtt =  [0.7704687337228847, 0.2977991739749472]
Now calculating R_mumu,emu, the ratio of mumu to e,mu events in ttbar MC. 
Should be near 0.5
R_uu,eu =  0.766875986857  +-  0.092061962272

700:

This is the information for the NOTE table 6:
 Data: 19.0
   TT: 9.82344247858
    Z: 0.248439763909
 Stop: 4.83837678039
    W: 1.55471291155
   VV: 5.58329004371
MuMu: Rtt =  [0.6896951364252385, 0.5262764474295101]
Now calculating R_mumu,emu, the ratio of mumu to e,mu events in ttbar MC. 
Should be near 0.5
R_uu,eu =  0.756726108617  +-  0.14759826873

900:

This is the information for the NOTE table 6:
 Data: 7.0
   TT: 2.05182218828
    Z: 0.213179284117
 Stop: 1.23297140441
    W: 0.134848568801
   VV: 1.82101099296
MuMu: Rtt =  [1.753558261655033, 1.517327186441507]
Now calculating R_mumu,emu, the ratio of mumu to e,mu events in ttbar MC. 
Should be near 0.5
R_uu,eu =  0.49367309149  +-  0.241938367331
December 14, 2017
Updated Systematics:


List of systematics for each card considered:
4.09, 4.27, 4.72, 5.59, 6.24, 7.26, 9.28, 9.91, 12.2, 12.33, 17.85, 13.82, 16.12, 14.14, 13.85, 16.94, 16.85, 17.14, 17.2, 17.38, 17.59, 17.57, 17.93, 17.62, 17.68, 17.98, 18.23, 18.23, 18.23, 18.23, 18.23, 18.23, 18.23, 18.23, 18.23, 18.23, 18.23, 7.54, 8.91, 9.81, 11.26, 14.1, 15.79, 21.22, 22.03, 23.97, 24.88, 24.85, 27.44, 35.24, 33.27, 32.98, 32.98, 32.98, 34.13, 34.84, 36.17, 34.91, 35.06, 35.06, 35.06, 35.06, 32.09, 32.09, 30.82, 30.75, 30.75, 30.75, 31.47, 31.53, 31.78, 30.75, 30.42, 38.31, 

 Deliniation of systematics list
LQ_M_200.txt 4.09
LQ_M_250.txt 4.27
LQ_M_300.txt 4.72
LQ_M_350.txt 5.59
LQ_M_400.txt 6.24
LQ_M_450.txt 7.26
LQ_M_500.txt 9.28
LQ_M_550.txt 9.91
LQ_M_600.txt 12.2
LQ_M_650.txt 12.33
LQ_M_700.txt 17.85
LQ_M_750.txt 13.82
LQ_M_800.txt 16.12
LQ_M_850.txt 14.14
LQ_M_900.txt 13.85
LQ_M_950.txt 16.94
LQ_M_1000.txt 16.85
LQ_M_1050.txt 17.14
LQ_M_1100.txt 17.2
LQ_M_1150.txt 17.38
LQ_M_1200.txt 17.59
LQ_M_1250.txt 17.57
LQ_M_1300.txt 17.93
LQ_M_1350.txt 17.62
LQ_M_1400.txt 17.68
LQ_M_1450.txt 17.98
LQ_M_1500.txt 18.23
LQ_M_1550.txt 18.23
LQ_M_1600.txt 18.23
LQ_M_1650.txt 18.23
LQ_M_1700.txt 18.23
LQ_M_1750.txt 18.23
LQ_M_1800.txt 18.23
LQ_M_1850.txt 18.23
LQ_M_1900.txt 18.23
LQ_M_1950.txt 18.23
LQ_M_2000.txt 18.23
LQ_BetaHalf_M_200.txt 7.54
LQ_BetaHalf_M_250.txt 8.91
LQ_BetaHalf_M_300.txt 9.81
LQ_BetaHalf_M_350.txt 11.26
LQ_BetaHalf_M_400.txt 14.1
LQ_BetaHalf_M_450.txt 15.79
LQ_BetaHalf_M_500.txt 21.22
LQ_BetaHalf_M_550.txt 22.03
LQ_BetaHalf_M_600.txt 23.97
LQ_BetaHalf_M_650.txt 24.88
LQ_BetaHalf_M_700.txt 24.85
LQ_BetaHalf_M_750.txt 27.44
LQ_BetaHalf_M_800.txt 35.24
LQ_BetaHalf_M_850.txt 33.27
LQ_BetaHalf_M_900.txt 32.98
LQ_BetaHalf_M_950.txt 32.98
LQ_BetaHalf_M_1000.txt 32.98
LQ_BetaHalf_M_1050.txt 34.13
LQ_BetaHalf_M_1100.txt 34.84
LQ_BetaHalf_M_1150.txt 36.17
LQ_BetaHalf_M_1200.txt 34.91
LQ_BetaHalf_M_1250.txt 35.06
LQ_BetaHalf_M_1300.txt 35.06
LQ_BetaHalf_M_1350.txt 35.06
LQ_BetaHalf_M_1400.txt 35.06
LQ_BetaHalf_M_1450.txt 32.09
LQ_BetaHalf_M_1500.txt 32.09
LQ_BetaHalf_M_1550.txt 30.82
LQ_BetaHalf_M_1600.txt 30.75
LQ_BetaHalf_M_1650.txt 30.75
LQ_BetaHalf_M_1700.txt 30.75
LQ_BetaHalf_M_1750.txt 31.47
LQ_BetaHalf_M_1800.txt 31.53
LQ_BetaHalf_M_1850.txt 31.78
LQ_BetaHalf_M_1900.txt 30.75
LQ_BetaHalf_M_1950.txt 30.42
LQ_BetaHalf_M_2000.txt 38.31

MuMuJJ

jers =  [0.51, 0.31, 0.67, 0.9, 0.45, 0.73, 1.58, 0.42, 3.67, 0.93, 1.09, 0.63, 1.83, 1.27, 1.27, 1.64, 1.64, 1.64, 1.64, 2.62, 2.62, 2.62, 2.62, 2.62, 2.62, 2.62, 2.62, 2.62, 2.62, 2.62, 2.62, 2.62, 2.62, 2.62, 2.62, 2.62, 2.62]
jess =  [0.41, 0.98, 0.47, 0.68, 0.48, 1.24, 2.55, 3.09, 2.18, 1.7, 1.71, 1.14, 2.6, 2.09, 2.09, 2.29, 2.29, 2.29, 2.29, 2.25, 2.25, 2.25, 2.25, 2.25, 2.25, 2.25, 2.25, 2.25, 2.25, 2.25, 2.25, 2.25, 2.25, 2.25, 2.25, 2.25, 2.25]
lumis =  [0.27, 0.31, 0.39, 0.45, 0.58, 0.63, 0.71, 0.74, 0.78, 0.72, 0.72, 0.69, 0.71, 0.74, 0.74, 0.46, 0.46, 0.46, 0.46, 0.7, 0.7, 0.7, 0.7, 0.7, 0.7, 0.7, 0.7, 0.7, 0.7, 0.7, 0.7, 0.7, 0.7, 0.7, 0.7, 0.7, 0.7]
aligns =  []
mers =  [0.23, 0.44, 0.23, 0.22, 0.64, 1.12, 0.38, 1.6, 0.63, 0.51, 1.0, 1.08, 3.75, 1.0, 1.0, 3.36, 3.36, 3.36, 3.36, 4.27, 4.27, 4.27, 4.27, 4.27, 4.27, 4.27, 4.27, 4.27, 4.27, 4.27, 4.27, 4.27, 4.27, 4.27, 4.27, 4.27, 4.27]
mess =  [0.84, 0.71, 1.61, 2.18, 2.33, 3.46, 5.31, 5.27, 7.21, 8.51, 14.54, 9.17, 11.14, 10.21, 10.21, 11.97, 11.97, 11.97, 11.97, 13.02, 13.02, 13.02, 13.02, 13.02, 13.02, 13.02, 13.02, 13.02, 13.02, 13.02, 13.02, 13.02, 13.02, 13.02, 13.02, 13.02, 13.02]
muids =  [0.42, 0.48, 0.6, 0.7, 0.92, 0.99, 1.12, 1.16, 1.22, 1.13, 1.12, 1.07, 1.11, 1.17, 1.17, 0.71, 0.71, 0.71, 0.71, 1.09, 1.09, 1.09, 1.09, 1.09, 1.09, 1.09, 1.09, 1.09, 1.09, 1.09, 1.09, 1.09, 1.09, 1.09, 1.09, 1.09, 1.09]
pdfs =  [0.4, 0.64, 0.92, 1.15, 1.58, 1.85, 2.24, 2.41, 2.75, 2.69, 3.12, 3.43, 3.3, 2.92, 2.92, 3.5, 3.68, 3.77, 3.89, 3.05, 3.3, 3.52, 3.52, 3.52, 3.52, 3.52, 3.52, 3.52, 3.52, 3.52, 3.52, 3.52, 3.52, 3.52, 3.52, 3.52, 3.52]
pus =  [0.36, 0.28, 0.36, 0.65, 0.65, 0.61, 0.27, 0.42, 1.05, 0.76, 2.77, 1.44, 1.71, 2.6, 2.6, 4.24, 4.24, 4.24, 4.24, 2.16, 2.16, 2.16, 2.16, 2.16, 2.16, 2.16, 2.16, 2.16, 2.16, 2.16, 2.16, 2.16, 2.16, 2.16, 2.16, 2.16, 2.16]
ttnorms =  [0.27, 0.26, 0.24, 0.22, 0.19, 0.16, 0.13, 0.12, 0.09, 0.1, 0.07, 0.08, 0.07, 0.1, 0.1, 0.08, 0.08, 0.08, 0.08, 0.12, 0.12, 0.12, 0.12, 0.12, 0.12, 0.12, 0.12, 0.12, 0.12, 0.12, 0.12, 0.12, 0.12, 0.12, 0.12, 0.12, 0.12]
ttshapes =  [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]
trigs =  [0.21, 0.24, 0.3, 0.36, 0.46, 0.5, 0.56, 0.59, 0.62, 0.57, 0.57, 0.54, 0.56, 0.59, 0.59, 0.36, 0.36, 0.36, 0.36, 0.55, 0.55, 0.55, 0.55, 0.55, 0.55, 0.55, 0.55, 0.55, 0.55, 0.55, 0.55, 0.55, 0.55, 0.55, 0.55, 0.55, 0.55]
wnorms =  [0.02, 0.02, 0.03, 0.02, 0.04, 0.03, 0.04, 0.04, 0.05, 0.03, 0.05, 0.06, 0.04, 0.04, 0.04, 0.08, 0.08, 0.08, 0.08, 0.06, 0.06, 0.06, 0.06, 0.06, 0.06, 0.06, 0.06, 0.06, 0.06, 0.06, 0.06, 0.06, 0.06, 0.06, 0.06, 0.06, 0.06]
wshapes =  [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.01, 0.0, 0.01, 0.01, 0.01, 0.0, 0.0, 0.01, 0.01, 0.01, 0.01, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]
znorms =  [3.47, 3.53, 3.61, 3.91, 4.16, 4.61, 4.99, 5.25, 5.82, 5.82, 6.62, 6.29, 6.28, 5.55, 5.55, 6.64, 6.64, 6.64, 6.64, 5.48, 5.48, 5.48, 5.48, 5.48, 5.48, 5.48, 5.48, 5.48, 5.48, 5.48, 5.48, 5.48, 5.48, 5.48, 5.48, 5.48, 5.48]
zshapes =  [1.55, 1.54, 1.63, 2.04, 2.26, 2.12, 2.37, 2.54, 2.84, 3.49, 3.91, 4.3, 4.81, 4.11, 3.39, 4.71, 4.44, 5.58, 5.13, 4.05, 5.04, 5.0, 5.87, 4.81, 4.56, 4.7, 5.14, 5.14, 5.14, 5.14, 5.14, 5.14, 5.14, 5.14, 5.14, 5.14, 5.14]
vvshapes =  [0.69, 0.86, 1.27, 1.75, 2.42, 2.49, 3.32, 3.99, 5.01, 4.43, 4.85, 5.5, 5.75, 4.85, 4.56, 5.19, 5.01, 4.8, 5.37, 6.33, 6.05, 5.91, 6.2, 6.2, 6.56, 7.24, 7.57, 7.57, 7.57, 7.57, 7.57, 7.57, 7.57, 7.57, 7.57, 7.57, 7.57]

MuNuJJ:

jers =  [4.56, 4.86, 4.18, 6.27, 7.13, 6.56, 14.21, 8.77, 12.5, 12.5, 9.45, 9.65, 12.02, 14.51, 14.51, 14.51, 14.51, 17.59, 18.09, 18.99, 15.63, 16.25, 16.25, 16.25, 16.25, 9.49, 9.49, 9.17, 9.19, 9.19, 9.19, 9.87, 9.81, 9.9, 10.07, 10.18, 13.8]
jess =  [1.11, 1.01, 1.46, 3.11, 2.61, 3.76, 8.95, 3.7, 4.99, 4.99, 4.87, 3.12, 14.29, 8.36, 8.36, 8.36, 8.36, 10.22, 10.56, 11.11, 9.04, 9.45, 9.45, 9.45, 9.45, 4.85, 4.85, 4.82, 4.9, 4.9, 4.9, 5.4, 5.46, 5.62, 5.71, 5.78, 7.87]
lumis =  [0.48, 0.56, 0.63, 0.68, 0.75, 0.84, 0.83, 1.01, 0.92, 0.92, 0.96, 1.09, 1.04, 0.96, 0.96, 0.96, 0.96, 0.91, 0.87, 0.76, 0.82, 0.81, 0.81, 0.81, 0.81, 1.12, 1.12, 1.2, 1.2, 1.2, 1.2, 1.15, 1.15, 1.14, 1.18, 1.19, 0.7]
aligns =  []
mers =  [1.06, 0.89, 0.82, 0.45, 1.37, 5.16, 2.8, 6.2, 4.2, 4.2, 3.97, 5.22, 7.72, 3.82, 3.82, 3.82, 3.82, 4.35, 4.34, 4.83, 4.3, 4.4, 4.4, 4.4, 4.4, 3.62, 3.62, 3.83, 3.87, 3.87, 3.87, 3.9, 3.93, 3.96, 4.1, 4.16, 3.58]
mess =  [5.06, 6.46, 7.65, 7.27, 10.09, 9.79, 8.74, 16.03, 16.95, 16.95, 16.86, 16.45, 17.68, 18.17, 18.17, 18.17, 18.17, 19.49, 19.69, 19.01, 17.63, 17.76, 17.76, 17.76, 17.76, 16.21, 16.21, 15.24, 15.0, 15.0, 15.0, 15.04, 14.69, 14.3, 14.31, 14.3, 17.39]
muids =  [0.36, 0.43, 0.49, 0.53, 0.59, 0.66, 0.66, 0.8, 0.73, 0.73, 0.77, 0.87, 0.83, 0.75, 0.75, 0.75, 0.75, 0.71, 0.68, 0.59, 0.65, 0.64, 0.64, 0.64, 0.64, 0.89, 0.89, 0.96, 0.96, 0.96, 0.96, 0.91, 0.92, 0.91, 0.94, 0.95, 0.55]
pdfs =  [0.9, 1.16, 1.6, 2.49, 2.75, 3.96, 5.25, 5.48, 5.85, 8.58, 11.74, 16.34, 20.22, 18.62, 18.62, 18.62, 18.62, 13.59, 13.9, 15.64, 20.66, 19.88, 19.88, 19.88, 19.88, 23.05, 23.05, 21.85, 21.85, 21.85, 21.85, 22.5, 22.8, 23.27, 21.61, 21.02, 28.13]
pus =  [1.49, 1.74, 2.04, 2.15, 3.14, 4.75, 4.7, 5.23, 4.09, 4.09, 4.64, 5.2, 5.39, 2.92, 2.92, 2.92, 2.92, 3.18, 3.26, 2.71, 2.39, 2.44, 2.44, 2.44, 2.44, 1.76, 1.76, 1.7, 1.7, 1.7, 1.7, 1.78, 1.77, 1.78, 1.78, 1.79, 2.25]
ttnorms =  [0.92, 0.77, 0.71, 0.59, 0.51, 0.39, 0.37, 0.2, 0.32, 0.32, 0.3, 0.27, 0.37, 0.49, 0.49, 0.49, 0.49, 0.67, 0.7, 0.73, 0.52, 0.56, 0.56, 0.56, 0.56, 0.17, 0.17, 0.18, 0.19, 0.19, 0.19, 0.22, 0.23, 0.24, 0.26, 0.27, 0.37]
ttshapes =  [0.71, 1.13, 1.63, 1.77, 2.2, 2.14, 2.32, 1.29, 2.63, 3.13, 3.03, 3.05, 4.53, 7.18, 8.24, 8.24, 8.24, 11.47, 11.91, 12.38, 8.84, 9.53, 9.53, 9.53, 9.53, 2.63, 2.63, 2.85, 2.98, 2.98, 2.98, 3.61, 3.68, 3.89, 4.25, 4.44, 6.16]
trigs =  [0.17, 0.21, 0.24, 0.26, 0.29, 0.33, 0.33, 0.4, 0.36, 0.36, 0.38, 0.43, 0.41, 0.37, 0.37, 0.37, 0.37, 0.35, 0.33, 0.29, 0.32, 0.31, 0.31, 0.31, 0.31, 0.44, 0.44, 0.48, 0.48, 0.48, 0.48, 0.45, 0.46, 0.45, 0.47, 0.47, 0.27]
wnorms =  [0.29, 0.37, 0.37, 0.44, 0.47, 0.52, 0.55, 0.58, 0.54, 0.54, 0.54, 0.49, 0.42, 0.38, 0.38, 0.38, 0.38, 0.26, 0.27, 0.31, 0.43, 0.41, 0.41, 0.41, 0.41, 0.48, 0.48, 0.45, 0.45, 0.45, 0.45, 0.47, 0.48, 0.49, 0.45, 0.44, 0.6]
wshapes =  [1.61, 2.08, 2.29, 2.78, 3.33, 4.51, 4.57, 5.05, 3.77, 3.93, 3.79, 4.37, 6.54, 7.37, 4.32, 4.32, 4.32, 2.93, 3.01, 3.4, 4.79, 4.58, 4.58, 4.58, 4.58, 5.49, 5.49, 5.16, 5.16, 5.16, 5.16, 5.33, 5.42, 5.55, 5.09, 4.93, 6.83]
znorms =  [0.56, 0.59, 0.62, 0.69, 0.64, 0.69, 0.62, 0.73, 0.57, 0.57, 0.64, 0.6, 0.64, 0.57, 0.57, 0.57, 0.57, 0.48, 0.43, 0.43, 0.58, 0.52, 0.52, 0.52, 0.52, 1.23, 1.23, 1.02, 0.95, 0.95, 0.95, 0.83, 0.74, 0.61, 0.6, 0.58, 0.76]
zshapes =  [0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01]
vvshapes =  [0.52, 0.8, 1.01, 1.15, 1.52, 2.1, 2.45, 3.46, 3.77, 3.87, 4.39, 5.21, 4.1, 4.29, 4.28, 4.28, 4.28, 3.91, 3.44, 4.61, 5.24, 5.11, 5.11, 5.11, 5.11, 8.07, 8.07, 8.76, 8.79, 8.79, 8.79, 8.24, 8.25, 8.15, 8.52, 8.63, 4.16]

December 12, 2017
Systematics with no cutoffs
MuMuJJ

jers =  [0.51, 0.31, 0.67, 0.91, 0.44, 0.74, 1.57, 0.41, 3.67, 0.93, 1.09, 0.63, 1.84, 0.72, 1.27, 1.64, 1.64, 1.64, 1.64, 2.62, 2.62, 2.62, 2.62, 2.62, 2.62, 2.62, 2.62, 2.62, 2.62, 2.62, 2.62, 2.62, 2.62, 2.62, 2.62, 2.62, 2.62]
jess =  [0.41, 0.98, 0.47, 0.67, 0.48, 1.25, 2.55, 3.09, 2.2, 1.7, 1.73, 1.14, 2.6, 1.42, 2.11, 2.31, 2.31, 2.31, 2.31, 2.26, 2.26, 2.26, 2.26, 2.26, 2.26, 2.26, 2.26, 2.26, 2.26, 2.26, 2.26, 2.26, 2.26, 2.26, 2.26, 2.26, 2.26]
lumis =  [0.27, 0.31, 0.38, 0.45, 0.58, 0.63, 0.71, 0.74, 0.78, 0.72, 0.71, 0.68, 0.71, 0.64, 0.74, 0.45, 0.45, 0.45, 0.45, 0.7, 0.7, 0.7, 0.7, 0.7, 0.7, 0.7, 0.7, 0.7, 0.7, 0.7, 0.7, 0.7, 0.7, 0.7, 0.7, 0.7, 0.7]
aligns =  []
mers =  [0.23, 0.44, 0.23, 0.22, 0.63, 1.12, 0.38, 1.61, 0.63, 0.5, 1.0, 1.08, 3.75, 0.74, 1.0, 3.36, 3.36, 3.36, 3.36, 4.27, 4.27, 4.27, 4.27, 4.27, 4.27, 4.27, 4.27, 4.27, 4.27, 4.27, 4.27, 4.27, 4.27, 4.27, 4.27, 4.27, 4.27]
mess =  [0.84, 0.71, 1.61, 2.17, 2.34, 3.47, 5.31, 5.27, 7.21, 8.51, 14.54, 9.18, 11.14, 11.09, 10.22, 11.97, 11.97, 11.97, 11.97, 13.03, 13.03, 13.03, 13.03, 13.03, 13.03, 13.03, 13.03, 13.03, 13.03, 13.03, 13.03, 13.03, 13.03, 13.03, 13.03, 13.03, 13.03]
muids =  [0.43, 0.49, 0.61, 0.71, 0.92, 1.0, 1.13, 1.17, 1.24, 1.14, 1.13, 1.08, 1.12, 1.02, 1.18, 0.72, 0.72, 0.72, 0.72, 1.1, 1.1, 1.1, 1.1, 1.1, 1.1, 1.1, 1.1, 1.1, 1.1, 1.1, 1.1, 1.1, 1.1, 1.1, 1.1, 1.1, 1.1]
pdfs =  [0.4, 0.63, 0.91, 1.14, 1.57, 1.84, 2.22, 2.39, 2.74, 2.68, 3.1, 3.41, 3.28, 2.72, 2.91, 3.48, 3.66, 3.76, 3.88, 3.04, 3.29, 3.51, 3.51, 3.51, 3.51, 3.51, 3.51, 3.51, 3.51, 3.51, 3.51, 3.51, 3.51, 3.51, 3.51, 3.51, 3.51]
pus =  [0.35, 0.28, 0.36, 0.65, 0.64, 0.6, 0.26, 0.41, 1.03, 0.75, 2.76, 1.43, 1.7, 1.92, 2.59, 4.22, 4.22, 4.22, 4.22, 2.15, 2.15, 2.15, 2.15, 2.15, 2.15, 2.15, 2.15, 2.15, 2.15, 2.15, 2.15, 2.15, 2.15, 2.15, 2.15, 2.15, 2.15]
ttnorms =  [0.27, 0.26, 0.25, 0.22, 0.19, 0.16, 0.14, 0.12, 0.09, 0.1, 0.07, 0.09, 0.08, 0.13, 0.1, 0.09, 0.09, 0.09, 0.09, 0.13, 0.13, 0.13, 0.13, 0.13, 0.13, 0.13, 0.13, 0.13, 0.13, 0.13, 0.13, 0.13, 0.13, 0.13, 0.13, 0.13, 0.13]
ttshapes =  [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]
trigs =  [0.22, 0.25, 0.31, 0.36, 0.46, 0.5, 0.57, 0.59, 0.62, 0.57, 0.57, 0.55, 0.56, 0.51, 0.59, 0.36, 0.36, 0.36, 0.36, 0.55, 0.55, 0.55, 0.55, 0.55, 0.55, 0.55, 0.55, 0.55, 0.55, 0.55, 0.55, 0.55, 0.55, 0.55, 0.55, 0.55, 0.55]
wnorms =  [0.02, 0.02, 0.03, 0.02, 0.04, 0.03, 0.04, 0.04, 0.05, 0.03, 0.05, 0.06, 0.04, 0.03, 0.04, 0.08, 0.08, 0.08, 0.08, 0.06, 0.06, 0.06, 0.06, 0.06, 0.06, 0.06, 0.06, 0.06, 0.06, 0.06, 0.06, 0.06, 0.06, 0.06, 0.06, 0.06, 0.06]
wshapes =  [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]
znorms =  [3.47, 3.52, 3.61, 3.91, 4.15, 4.6, 4.99, 5.25, 5.82, 5.81, 6.61, 6.29, 6.27, 5.2, 5.54, 6.63, 6.63, 6.63, 6.63, 5.48, 5.48, 5.48, 5.48, 5.48, 5.48, 5.48, 5.48, 5.48, 5.48, 5.48, 5.48, 5.48, 5.48, 5.48, 5.48, 5.48, 5.48]
zshapes =  [1.54, 1.53, 1.62, 2.04, 2.25, 2.11, 2.36, 2.53, 2.83, 3.48, 3.9, 4.29, 4.8, 3.85, 3.38, 4.7, 4.43, 5.57, 5.12, 4.04, 5.03, 4.99, 5.86, 4.8, 4.55, 4.69, 5.13, 5.13, 5.13, 5.13, 5.13, 5.13, 5.13, 5.13, 5.13, 5.13, 5.13]
vvshapes =  [0.69, 0.85, 1.27, 1.75, 2.41, 2.49, 3.31, 3.98, 5.01, 4.43, 4.85, 5.49, 5.75, 4.81, 4.55, 5.18, 5.0, 4.79, 5.37, 6.32, 6.05, 5.9, 6.2, 6.2, 6.55, 7.23, 7.57, 7.57, 7.57, 7.57, 7.57, 7.57, 7.57, 7.57, 7.57, 7.57, 7.57]

MuNuJJ

jers =  [4.56, 4.87, 4.19, 6.28, 7.13, 6.57, 14.23, 8.77, 12.5, 12.5, 9.45, 9.66, 12.03, 14.52, 14.52, 14.52, 14.52, 8.5, 10.34, 14.67, 19.24, 19.84, 19.84, 19.84, 19.84, 19.84, 88.41, 55.68, 60.26, 60.26, 60.26, 68.39, 68.22, 70.95, 75.5, 99.22, 107.23]
jess =  [1.12, 1.03, 1.47, 3.11, 2.6, 3.74, 8.95, 3.7, 4.99, 4.99, 4.85, 3.11, 14.28, 8.36, 8.36, 8.36, 8.36, 5.38, 5.83, 9.86, 15.15, 14.57, 14.57, 14.57, 14.57, 14.57, 41.21, 45.07, 48.07, 48.07, 48.07, 55.09, 56.28, 58.18, 64.61, 65.11, 90.54]
lumis =  [0.47, 0.55, 0.63, 0.67, 0.75, 0.84, 0.83, 1.01, 0.93, 0.93, 0.97, 1.1, 1.04, 0.95, 0.95, 0.95, 0.95, 0.9, 0.86, 0.76, 0.82, 0.81, 0.81, 0.81, 0.81, 0.81, 1.12, 1.2, 1.21, 1.21, 1.21, 1.15, 1.15, 1.14, 1.18, 1.2, 0.7]
aligns =  []
mers =  [1.06, 0.89, 0.82, 0.45, 1.37, 5.15, 2.81, 6.21, 4.2, 4.2, 3.97, 5.22, 7.72, 3.81, 3.81, 3.81, 3.81, 7.15, 8.3, 27.81, 16.99, 18.18, 18.18, 18.18, 18.18, 18.18, 43.27, 44.05, 46.14, 46.14, 46.14, 53.81, 54.89, 60.68, 64.91, 66.01, 95.33]
mess =  [5.09, 6.47, 7.64, 7.27, 10.09, 9.78, 8.75, 16.02, 16.96, 16.96, 20.49, 24.35, 28.51, 59.48, 59.48, 59.48, 59.48, 26.47, 24.05, 39.79, 42.29, 45.63, 45.63, 45.63, 45.63, 45.63, 33.6, 29.97, 28.27, 28.27, 28.27, 22.59, 18.22, 17.03, 15.31, 45.21, 27.65]
muids =  [0.37, 0.44, 0.5, 0.54, 0.6, 0.67, 0.67, 0.81, 0.74, 0.74, 0.77, 0.87, 0.83, 0.76, 0.76, 0.76, 0.76, 0.72, 0.69, 0.61, 0.66, 0.65, 0.65, 0.65, 0.65, 0.65, 0.9, 0.96, 0.96, 0.96, 0.96, 0.92, 0.92, 0.91, 0.95, 0.96, 0.56]
pdfs =  [0.88, 1.14, 1.58, 2.47, 2.73, 3.94, 5.23, 5.46, 5.83, 8.57, 11.73, 16.32, 20.21, 18.6, 18.6, 18.6, 18.6, 13.57, 13.88, 15.62, 20.64, 19.86, 19.86, 19.86, 19.86, 19.86, 23.04, 21.84, 21.84, 21.84, 21.84, 22.48, 22.79, 23.26, 21.6, 21.0, 28.11]
pus =  [1.48, 1.72, 2.02, 2.14, 3.13, 4.73, 4.68, 5.23, 4.08, 4.08, 4.63, 5.21, 5.4, 2.91, 2.91, 2.91, 2.91, 5.15, 4.95, 8.77, 13.5, 13.53, 13.53, 13.53, 13.53, 13.53, 30.69, 34.0, 35.87, 35.87, 35.87, 43.39, 43.52, 46.11, 51.14, 53.58, 73.31]
ttnorms =  [0.91, 0.76, 0.71, 0.58, 0.5, 0.38, 0.36, 0.19, 0.31, 0.31, 0.29, 0.26, 0.37, 0.48, 0.48, 0.48, 0.48, 0.67, 0.69, 0.72, 0.52, 0.56, 0.56, 0.56, 0.56, 0.56, 0.16, 0.17, 0.18, 0.18, 0.18, 0.21, 0.22, 0.23, 0.25, 0.26, 0.36]
ttshapes =  [0.7, 1.12, 1.61, 1.76, 2.19, 2.14, 2.31, 1.28, 2.62, 3.12, 3.03, 3.05, 4.52, 7.17, 8.23, 6.69, 7.04, 9.58, 9.77, 7.01, 13.55, 13.76, 13.76, 13.76, 13.76, 14.6, 4.02, 4.36, 4.56, 4.56, 4.56, 5.95, 6.06, 6.41, 7.0, 7.32, 10.15]
trigs =  [0.2, 0.23, 0.26, 0.28, 0.31, 0.34, 0.34, 0.41, 0.37, 0.37, 0.39, 0.44, 0.42, 0.39, 0.39, 0.39, 0.39, 0.37, 0.35, 0.31, 0.34, 0.33, 0.33, 0.33, 0.33, 0.33, 0.45, 0.48, 0.49, 0.49, 0.49, 0.46, 0.46, 0.46, 0.48, 0.48, 0.29]
wnorms =  [0.3, 0.38, 0.38, 0.45, 0.49, 0.54, 0.57, 0.6, 0.56, 0.56, 0.55, 0.51, 0.44, 0.4, 0.4, 0.4, 0.4, 0.27, 0.28, 0.32, 0.44, 0.42, 0.42, 0.42, 0.42, 0.42, 0.5, 0.47, 0.47, 0.47, 0.47, 0.49, 0.49, 0.51, 0.47, 0.45, 0.62]
wshapes =  [1.63, 2.09, 2.31, 2.8, 3.35, 4.53, 4.58, 5.06, 3.79, 3.94, 3.81, 4.39, 6.55, 7.38, 4.33, 7.87, 7.82, 6.24, 3.34, 4.25, 4.63, 5.76, 11.74, 21.16, 17.81, 6.1, 7.6, 8.72, 9.28, 5.44, 3.64, 3.17, 3.31, 3.42, 2.83, 2.73, 3.76]
znorms =  [0.57, 0.6, 0.63, 0.7, 0.65, 0.7, 0.62, 0.73, 0.57, 0.57, 0.64, 0.6, 0.65, 0.57, 0.57, 0.57, 0.57, 0.49, 0.44, 0.44, 0.59, 0.52, 0.52, 0.52, 0.52, 0.52, 1.23, 1.02, 0.95, 0.95, 0.95, 0.83, 0.74, 0.61, 0.6, 0.58, 0.76]
zshapes =  [0.02, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01]
vvshapes =  [0.52, 0.8, 1.01, 1.15, 1.52, 2.1, 2.45, 3.47, 3.78, 3.87, 4.39, 5.21, 4.1, 4.29, 4.28, 4.41, 4.72, 4.26, 3.91, 5.78, 6.79, 6.56, 7.17, 7.48, 7.51, 7.54, 11.92, 12.93, 13.02, 13.02, 13.57, 12.4, 12.47, 11.93, 12.34, 12.52, 6.03]

Cutting munujj MES at 600, all munujj at 900

$M_{LQ}$ &    Signal &                  Z+Jets &                $\ttbar$ &              W+Jets &                      sTop &                       VV &                    All BG (stat + syst)&                      Data \\ \hline   
200 &         553200 $\pm$ 4900  &      3004 $\pm$ 7.5  &       5291 $\pm$ 54  &        47.9 $\pm$ 3.2  &             444 $\pm$ 23  &              383.9 $\pm$ 2.1  &     9171 $\pm$ 59  $\pm$ 361  &                 9317 \\          
250 &         244600 $\pm$ 1900  &      1704.3 $\pm$ 5.2  &     2877 $\pm$ 39  &        28 $\pm$ 2.2  &               285 $\pm$ 19  &              252.6 $\pm$ 1.7  &     5147 $\pm$ 44  $\pm$ 207  &                 5102 \\          
300 &         106400 $\pm$ 810  &       813.9 $\pm$ 3.1  &      1255 $\pm$ 25  &        21.5 $\pm$ 1.9  &             161 $\pm$ 14  &              146.4 $\pm$ 1.3  &     2398 $\pm$ 29  $\pm$ 103  &                 2360 \\          
350 &         49160 $\pm$ 360  &        400.4 $\pm$ 1.9  &      515.3 $\pm$ 15.7  &     7.94 $\pm$ 0.86  &            86.6 $\pm$ 10.3  &           85.9 $\pm$ 1.1  &      1096 $\pm$ 19  $\pm$ 54  &                  1113 \\          
400 &         24160 $\pm$ 180  &        209.7 $\pm$ 1.2  &      219.1 $\pm$ 9.6  &      5.21 $\pm$ 0.7  &             52.5 $\pm$ 8.0  &            55.11 $\pm$ 0.89  &    542 $\pm$ 13  $\pm$ 29  &                   572 \\           
450 &         12891 $\pm$ 92  &         136.76 $\pm$ 0.95  &    110.1 $\pm$ 6.6  &      2.68 $\pm$ 0.44  &            35.1 $\pm$ 6.6  &            34.26 $\pm$ 0.7  &     318.9 $\pm$ 9.4  $\pm$ 19.5  &              299 \\           
500 &         7156 $\pm$ 51  &          82.11 $\pm$ 0.68  &     49.8 $\pm$ 4.2  &       1.77 $\pm$ 0.37  &            20.9 $\pm$ 5.4  &            22.31 $\pm$ 0.57  &    176.9 $\pm$ 6.9  $\pm$ 12.9  &              147 \\           
550 &         4130 $\pm$ 29  &          54.06 $\pm$ 0.53  &     28 $\pm$ 3.2  &         0.801 $\pm$ 0.2  &            12.5 $\pm$ 4.2  &            15.41 $\pm$ 0.49  &    110.8 $\pm$ 5.3  $\pm$ 8.6  &               78 \\            
600 &         2501 $\pm$ 18  &          36.16 $\pm$ 0.4  &      12.5 $\pm$ 1.9  &       0.818 $\pm$ 0.259  &          6.7 $\pm$ 3.0  &             10.75 $\pm$ 0.41  &    67 $\pm$ 3.6  $\pm$ 6.1  &                  44 \\            
650 &         1570 $\pm$ 11  &          27.11 $\pm$ 0.34  &     9.95 $\pm$ 1.79  &      0.258 $\pm$ 0.115  &          5.34 $\pm$ 2.67  &           7.01 $\pm$ 0.32  &     49.7 $\pm$ 3.2  $\pm$ 5.2  &                26 \\            
700 &         1019.4 $\pm$ 7.0  &       18.97 $\pm$ 0.27  &     4.3 $\pm$ 0.99  &       0.259 $\pm$ 0.149  &          2.4 $\pm$ 1.7  &             4.67 $\pm$ 0.25  &     30.6 $\pm$ 2.0  $\pm$ 4.0  &                16 \\            
750 &         677.5 $\pm$ 4.6  &        12.91 $\pm$ 0.2  &      3.81 $\pm$ 1.02  &      0.259 $\pm$ 0.149  &          1.43 $\pm$ 1.43  &           3.4 $\pm$ 0.22  &      21.8 $\pm$ 1.8  $\pm$ 2.5  &                11 \\            
800 &         456.3 $\pm$ 3.0  &        9.59 $\pm$ 0.17  &      2.4 $\pm$ 0.76  &       0.237 $\pm$ 0.168  &          1.43 $\pm$ 1.43  &           2.62 $\pm$ 0.2  &      16.3 $\pm$ 1.7  $\pm$ 2.1  &                8 \\             
850 &         314.8 $\pm$ 2.1  &        7.25 $\pm$ 0.14  &      3.94 $\pm$ 1.25  &      0.237 $\pm$ 0.168  &          1.43 $\pm$ 1.43  &           2.01 $\pm$ 0.18  &     14.9 $\pm$ 1.9  $\pm$ 1.8  &                7 \\             
900 &         221.1 $\pm$ 1.4  &        5.81 $\pm$ 0.12  &      2.33 $\pm$ 0.88  &      0.237 $\pm$ 0.168  &          1.43 $\pm$ 1.43  &           1.53 $\pm$ 0.16  &     11.3 $\pm$ 1.7  $\pm$ 1.3  &                6 \\             
950 &         127.07 $\pm$ 0.89  &      2.836 $\pm$ 0.078  &    0.786 $\pm$ 0.556  &    0.237 $\pm$ 0.168  &          0.0 $ _{-0.0}^{+1.4}$   &    0.74 $\pm$ 0.11  &     4.59 $ _{-0.6}^{+1.54}$   $\pm$ 0.64  &     3 \\             
1000 &        99.82 $\pm$ 0.66  &       2.836 $\pm$ 0.078  &    0.786 $\pm$ 0.556  &    0.237 $\pm$ 0.168  &          0.0 $ _{-0.0}^{+1.4}$   &    0.74 $\pm$ 0.11  &     4.59 $ _{-0.6}^{+1.54}$   $\pm$ 0.64  &     3 \\             
1050 &        77.23 $\pm$ 0.48  &       2.836 $\pm$ 0.078  &    0.786 $\pm$ 0.556  &    0.237 $\pm$ 0.168  &          0.0 $ _{-0.0}^{+1.4}$   &    0.74 $\pm$ 0.11  &     4.59 $ _{-0.6}^{+1.54}$   $\pm$ 0.66  &     3 \\             
1100 &        59.04 $\pm$ 0.36  &       2.836 $\pm$ 0.078  &    0.786 $\pm$ 0.556  &    0.237 $\pm$ 0.168  &          0.0 $ _{-0.0}^{+1.4}$   &    0.74 $\pm$ 0.11  &     4.59 $ _{-0.6}^{+1.54}$   $\pm$ 0.65  &     3 \\             
1150 &        34.69 $\pm$ 0.23  &       1.102 $\pm$ 0.047  &    0.566 $\pm$ 0.566  &    0.0 $ _{-0.0}^{+0.24}$   &    0.0 $ _{-0.0}^{+1.4}$   &    0.5 $\pm$ 0.11  &      2.17 $ _{-0.58}^{+1.55}$   $\pm$ 0.3  &     2 \\             
1200 &        27.42 $\pm$ 0.17  &       1.102 $\pm$ 0.047  &    0.566 $\pm$ 0.566  &    0.0 $ _{-0.0}^{+0.24}$   &    0.0 $ _{-0.0}^{+1.4}$   &    0.5 $\pm$ 0.11  &      2.17 $ _{-0.58}^{+1.55}$   $\pm$ 0.31  &    2 \\             
1250 &        21.48 $\pm$ 0.13  &       1.102 $\pm$ 0.047  &    0.566 $\pm$ 0.566  &    0.0 $ _{-0.0}^{+0.24}$   &    0.0 $ _{-0.0}^{+1.4}$   &    0.5 $\pm$ 0.11  &      2.17 $ _{-0.58}^{+1.55}$   $\pm$ 0.31  &    2 \\             
1300 &        16.536 $\pm$ 0.099  &     1.102 $\pm$ 0.047  &    0.566 $\pm$ 0.566  &    0.0 $ _{-0.0}^{+0.24}$   &    0.0 $ _{-0.0}^{+1.4}$   &    0.5 $\pm$ 0.11  &      2.17 $ _{-0.58}^{+1.55}$   $\pm$ 0.31  &    2 \\             
1350 &        12.677 $\pm$ 0.074  &     1.102 $\pm$ 0.047  &    0.566 $\pm$ 0.566  &    0.0 $ _{-0.0}^{+0.24}$   &    0.0 $ _{-0.0}^{+1.4}$   &    0.5 $\pm$ 0.11  &      2.17 $ _{-0.58}^{+1.55}$   $\pm$ 0.31  &    2 \\             
1400 &        9.733 $\pm$ 0.056  &      1.102 $\pm$ 0.047  &    0.566 $\pm$ 0.566  &    0.0 $ _{-0.0}^{+0.24}$   &    0.0 $ _{-0.0}^{+1.4}$   &    0.5 $\pm$ 0.11  &      2.17 $ _{-0.58}^{+1.55}$   $\pm$ 0.31  &    2 \\             
1450 &        7.368 $\pm$ 0.042  &      1.102 $\pm$ 0.047  &    0.566 $\pm$ 0.566  &    0.0 $ _{-0.0}^{+0.24}$   &    0.0 $ _{-0.0}^{+1.4}$   &    0.5 $\pm$ 0.11  &      2.17 $ _{-0.58}^{+1.55}$   $\pm$ 0.31  &    2 \\             
1500 &        5.644 $\pm$ 0.032  &      1.102 $\pm$ 0.047  &    0.566 $\pm$ 0.566  &    0.0 $ _{-0.0}^{+0.24}$   &    0.0 $ _{-0.0}^{+1.4}$   &    0.5 $\pm$ 0.11  &      2.17 $ _{-0.58}^{+1.55}$   $\pm$ 0.32  &    2 \\             
1550 &        4.29 $\pm$ 0.024  &       1.102 $\pm$ 0.047  &    0.566 $\pm$ 0.566  &    0.0 $ _{-0.0}^{+0.24}$   &    0.0 $ _{-0.0}^{+1.4}$   &    0.5 $\pm$ 0.11  &      2.17 $ _{-0.58}^{+1.55}$   $\pm$ 0.32  &    2 \\             
1600 &        3.296 $\pm$ 0.018  &      1.102 $\pm$ 0.047  &    0.566 $\pm$ 0.566  &    0.0 $ _{-0.0}^{+0.24}$   &    0.0 $ _{-0.0}^{+1.4}$   &    0.5 $\pm$ 0.11  &      2.17 $ _{-0.58}^{+1.55}$   $\pm$ 0.32  &    2 \\             
1650 &        2.526 $\pm$ 0.014  &      1.102 $\pm$ 0.047  &    0.566 $\pm$ 0.566  &    0.0 $ _{-0.0}^{+0.24}$   &    0.0 $ _{-0.0}^{+1.4}$   &    0.5 $\pm$ 0.11  &      2.17 $ _{-0.58}^{+1.55}$   $\pm$ 0.32  &    2 \\             
1700 &        1.927 $\pm$ 0.01  &       1.102 $\pm$ 0.047  &    0.566 $\pm$ 0.566  &    0.0 $ _{-0.0}^{+0.24}$   &    0.0 $ _{-0.0}^{+1.4}$   &    0.5 $\pm$ 0.11  &      2.17 $ _{-0.58}^{+1.55}$   $\pm$ 0.32  &    2 \\             
1750 &        1.4859 $\pm$ 0.008  &     1.102 $\pm$ 0.047  &    0.566 $\pm$ 0.566  &    0.0 $ _{-0.0}^{+0.24}$   &    0.0 $ _{-0.0}^{+1.4}$   &    0.5 $\pm$ 0.11  &      2.17 $ _{-0.58}^{+1.55}$   $\pm$ 0.32  &    2 \\             
1800 &        1.1473 $\pm$ 0.0062  &    1.102 $\pm$ 0.047  &    0.566 $\pm$ 0.566  &    0.0 $ _{-0.0}^{+0.24}$   &    0.0 $ _{-0.0}^{+1.4}$   &    0.5 $\pm$ 0.11  &      2.17 $ _{-0.58}^{+1.55}$   $\pm$ 0.32  &    2 \\             
1850 &        0.884 $\pm$ 0.005  &      1.102 $\pm$ 0.047  &    0.566 $\pm$ 0.566  &    0.0 $ _{-0.0}^{+0.24}$   &    0.0 $ _{-0.0}^{+1.4}$   &    0.5 $\pm$ 0.11  &      2.17 $ _{-0.58}^{+1.55}$   $\pm$ 0.32  &    2 \\             
1900 &        0.684 $\pm$ 0.004  &      1.102 $\pm$ 0.047  &    0.566 $\pm$ 0.566  &    0.0 $ _{-0.0}^{+0.24}$   &    0.0 $ _{-0.0}^{+1.4}$   &    0.5 $\pm$ 0.11  &      2.17 $ _{-0.58}^{+1.55}$   $\pm$ 0.32  &    2 \\             
1950 &        0.529 $\pm$ 0.003  &      1.102 $\pm$ 0.047  &    0.566 $\pm$ 0.566  &    0.0 $ _{-0.0}^{+0.24}$   &    0.0 $ _{-0.0}^{+1.4}$   &    0.5 $\pm$ 0.11  &      2.17 $ _{-0.58}^{+1.55}$   $\pm$ 0.32  &    2 \\             
2000 &        0.405 $\pm$ 0.002  &      1.102 $\pm$ 0.047  &    0.566 $\pm$ 0.566  &    0.0 $ _{-0.0}^{+0.24}$   &    0.0 $ _{-0.0}^{+1.4}$   &    0.5 $\pm$ 0.11  &      2.17 $ _{-0.58}^{+1.55}$   $\pm$ 0.32  &    2 \\             
$M_{LQ}$ &    Signal &                  W+Jets &                $\ttbar$ &              Z+Jets &                      sTop &                       VV &                    All BG (stat + syst)&                      Data \\ \hline   
200 &         119800 $\pm$ 1600  &      5798 $\pm$ 27  &        16374 $\pm$ 87  &       1359 $\pm$ 4.4  &             1450 $\pm$ 40  &             1079 $\pm$ 5.1  &      26060 $\pm$ 100  $\pm$ 1220  &              26043 \\         
250 &         52750 $\pm$ 600  &        2698 $\pm$ 17  &        4920 $\pm$ 47  &        519.1 $\pm$ 2.2  &            682 $\pm$ 28  &              594.2 $\pm$ 3.9  &     9413 $\pm$ 57  $\pm$ 528  &                 9519 \\          
300 &         24680 $\pm$ 260  &        1291 $\pm$ 10  &        2190 $\pm$ 30  &        263 $\pm$ 1.5  &              402 $\pm$ 22  &              358.5 $\pm$ 3.1  &     4505 $\pm$ 39  $\pm$ 279  &                 4669 \\          
350 &         12000 $\pm$ 120  &        776.5 $\pm$ 7.4  &      900 $\pm$ 18  &         146.1 $\pm$ 1.1  &            220 $\pm$ 16  &              207.7 $\pm$ 2.4  &     2250 $\pm$ 25  $\pm$ 157  &                 2379 \\          
400 &         6273 $\pm$ 61  &          428.7 $\pm$ 4.9  &      399 $\pm$ 11  &         69.38 $\pm$ 0.64  &           125 $\pm$ 12  &              136.3 $\pm$ 2.0  &     1158 $\pm$ 17  $\pm$ 100  &                 1279 \\          
450 &         3402 $\pm$ 33  &          254.3 $\pm$ 3.5  &      160 $\pm$ 6.3  &        39.83 $\pm$ 0.45  &           72.9 $\pm$ 8.9  &            89.6 $\pm$ 1.7  &      617 $\pm$ 12  $\pm$ 62  &                   737 \\           
500 &         1982 $\pm$ 18  &          181.7 $\pm$ 2.9  &      101.7 $\pm$ 5.4  &      23.99 $\pm$ 0.32  &           47.5 $\pm$ 7.2  &            61 $\pm$ 1.4  &        415.9 $\pm$ 9.5  $\pm$ 58.8  &              430 \\           
550 &         1208 $\pm$ 11  &          101.9 $\pm$ 1.9  &      28 $\pm$ 2.0  &         15.07 $\pm$ 0.23  &           29.4 $\pm$ 5.6  &            45.6 $\pm$ 1.3  &      219.9 $\pm$ 6.3  $\pm$ 30.2  &              270 \\           
600 &         628.6 $\pm$ 6.0  &        55.3 $\pm$ 1.3  &       27.4 $\pm$ 2.9  &       6.81 $\pm$ 0.14  &            14.8 $\pm$ 4.0  &            23.75 $\pm$ 0.94  &    128 $\pm$ 5.2  $\pm$ 17.8  &                130 \\           
650 &         470.3 $\pm$ 4.0  &        55.3 $\pm$ 1.3  &       27.4 $\pm$ 2.9  &       6.81 $\pm$ 0.14  &            14.8 $\pm$ 4.0  &            23.75 $\pm$ 0.94  &    128 $\pm$ 5.2  $\pm$ 19.5  &                130 \\           
700 &         312.3 $\pm$ 2.6  &        36.99 $\pm$ 0.98  &     16.9 $\pm$ 2.2  &       5.15 $\pm$ 0.12  &            10.2 $\pm$ 3.4  &            17.66 $\pm$ 0.81  &    86.8 $\pm$ 4.2  $\pm$ 14.4  &               93 \\            
750 &         206.7 $\pm$ 1.7  &        23.35 $\pm$ 0.7  &      10.6 $\pm$ 1.7  &       3.324 $\pm$ 0.085  &          8.8 $\pm$ 3.1  &             13.81 $\pm$ 0.74  &    59.9 $\pm$ 3.7  $\pm$ 11.8  &               68 \\            
800 &         141.3 $\pm$ 1.1  &        14.34 $\pm$ 0.47  &     10.6 $\pm$ 2.1  &       2.559 $\pm$ 0.072  &          6.2 $\pm$ 2.5  &             8.89 $\pm$ 0.54  &     42.6 $\pm$ 3.4  $\pm$ 10.9  &               57 \\            
850 &         90.74 $\pm$ 0.75  &       9.21 $\pm$ 0.35  &      10 $\pm$ 2.4  &         1.617 $\pm$ 0.053  &          3.21 $\pm$ 1.85  &           6.36 $\pm$ 0.5  &      30.4 $\pm$ 3.1  $\pm$ 7.9  &                35 \\            
900 &         68.34 $\pm$ 0.53  &       9.21 $\pm$ 0.35  &      10 $\pm$ 2.4  &         1.617 $\pm$ 0.053  &          3.21 $\pm$ 1.85  &           6.36 $\pm$ 0.5  &      30.4 $\pm$ 3.1  $\pm$ 7.8  &                35 \\            
950 &         51.88 $\pm$ 0.38  &       9.21 $\pm$ 0.35  &      10 $\pm$ 2.4  &         1.617 $\pm$ 0.053  &          3.21 $\pm$ 1.85  &           6.36 $\pm$ 0.5  &      30.4 $\pm$ 3.1  $\pm$ 7.8  &                35 \\            
1000 &        38.93 $\pm$ 0.28  &       9.21 $\pm$ 0.35  &      10 $\pm$ 2.4  &         1.617 $\pm$ 0.053  &          3.21 $\pm$ 1.85  &           6.36 $\pm$ 0.5  &      30.4 $\pm$ 3.1  $\pm$ 7.8  &                35 \\            
1050 &        25.33 $\pm$ 0.19  &       4.32 $\pm$ 0.21  &      9.7 $\pm$ 3.4  &        0.938 $\pm$ 0.038  &          2.12 $\pm$ 1.5  &            4.03 $\pm$ 0.42  &     21.1 $\pm$ 3.8  $\pm$ 5.8  &                20 \\            
1100 &        18.67 $\pm$ 0.14  &       4.28 $\pm$ 0.22  &      9.7 $\pm$ 3.4  &        0.807 $\pm$ 0.035  &          2.12 $\pm$ 1.5  &            3.42 $\pm$ 0.4  &      20.3 $\pm$ 3.8  $\pm$ 5.7  &                15 \\            
1150 &        13.914 $\pm$ 0.099  &     3.13 $\pm$ 0.18  &      6.5 $\pm$ 2.7  &        0.53 $\pm$ 0.025  &           0.0 $ _{-0.0}^{+1.3}$   &    2.97 $\pm$ 0.36  &     13.2 $ _{-2.7}^{+3.0}$   $\pm$ 3.9  &       13 \\            
1200 &        10.352 $\pm$ 0.073  &     3.11 $\pm$ 0.19  &      3.3 $\pm$ 1.6  &        0.501 $\pm$ 0.024  &          0.0 $ _{-0.0}^{+1.3}$   &    2.37 $\pm$ 0.33  &     9.2 $ _{-1.7}^{+2.1}$   $\pm$ 2.6  &        11 \\            
1250 &        7.695 $\pm$ 0.054  &      2.75 $\pm$ 0.17  &      3.3 $\pm$ 1.6  &        0.413 $\pm$ 0.021  &          0.0 $ _{-0.0}^{+1.3}$   &    2.14 $\pm$ 0.31  &     8.6 $ _{-1.7}^{+2.1}$   $\pm$ 2.4  &        11 \\            
1300 &        5.946 $\pm$ 0.04  &       2.75 $\pm$ 0.17  &      3.3 $\pm$ 1.6  &        0.413 $\pm$ 0.021  &          0.0 $ _{-0.0}^{+1.3}$   &    2.14 $\pm$ 0.31  &     8.6 $ _{-1.7}^{+2.1}$   $\pm$ 2.4  &        11 \\            
1350 &        4.582 $\pm$ 0.03  &       2.75 $\pm$ 0.17  &      3.3 $\pm$ 1.6  &        0.413 $\pm$ 0.021  &          0.0 $ _{-0.0}^{+1.3}$   &    2.14 $\pm$ 0.31  &     8.6 $ _{-1.7}^{+2.1}$   $\pm$ 2.4  &        11 \\            
1400 &        3.537 $\pm$ 0.023  &      2.75 $\pm$ 0.17  &      3.3 $\pm$ 1.6  &        0.413 $\pm$ 0.021  &          0.0 $ _{-0.0}^{+1.3}$   &    2.14 $\pm$ 0.31  &     8.6 $ _{-1.7}^{+2.1}$   $\pm$ 2.4  &        11 \\            
1450 &        2.712 $\pm$ 0.017  &      2.75 $\pm$ 0.17  &      3.3 $\pm$ 1.6  &        0.413 $\pm$ 0.021  &          0.0 $ _{-0.0}^{+1.3}$   &    2.14 $\pm$ 0.31  &     8.6 $ _{-1.7}^{+2.1}$   $\pm$ 2.4  &        11 \\            
1500 &        1.91 $\pm$ 0.012  &       1.33 $\pm$ 0.11  &      0.36 $\pm$ 0.26  &      0.398 $\pm$ 0.027  &          0.0 $ _{-0.0}^{+1.3}$   &    1.36 $\pm$ 0.27  &     3.45 $ _{-0.39}^{+1.31}$   $\pm$ 0.9  &     7 \\             
1550 &        1.4531 $\pm$ 0.0094  &    1.15 $\pm$ 0.1  &       0.36 $\pm$ 0.26  &      0.304 $\pm$ 0.022  &          0.0 $ _{-0.0}^{+1.3}$   &    1.36 $\pm$ 0.27  &     3.18 $ _{-0.39}^{+1.31}$   $\pm$ 0.79  &    6 \\             
1600 &        1.107 $\pm$ 0.0071  &     1.1 $\pm$ 0.1  &        0.36 $\pm$ 0.26  &      0.27 $\pm$ 0.02  &            0.0 $ _{-0.0}^{+1.3}$   &    1.31 $\pm$ 0.27  &     3.04 $ _{-0.38}^{+1.31}$   $\pm$ 0.76  &    6 \\             
1650 &        0.8666 $\pm$ 0.0056  &    1.1 $\pm$ 0.1  &        0.36 $\pm$ 0.26  &      0.27 $\pm$ 0.02  &            0.0 $ _{-0.0}^{+1.3}$   &    1.31 $\pm$ 0.27  &     3.04 $ _{-0.38}^{+1.31}$   $\pm$ 0.76  &    6 \\             
1700 &        0.679 $\pm$ 0.004  &      1.1 $\pm$ 0.1  &        0.36 $\pm$ 0.26  &      0.27 $\pm$ 0.02  &            0.0 $ _{-0.0}^{+1.3}$   &    1.31 $\pm$ 0.27  &     3.04 $ _{-0.38}^{+1.31}$   $\pm$ 0.76  &    6 \\             
1750 &        0.505 $\pm$ 0.003  &      0.94 $\pm$ 0.11  &      0.36 $\pm$ 0.26  &      0.195 $\pm$ 0.017  &          0.0 $ _{-0.0}^{+1.3}$   &    1.01 $\pm$ 0.24  &     2.5 $ _{-0.37}^{+1.31}$   $\pm$ 0.64  &     5 \\             
1800 &        0.387 $\pm$ 0.002  &      0.93 $\pm$ 0.11  &      0.36 $\pm$ 0.26  &      0.169 $\pm$ 0.015  &          0.0 $ _{-0.0}^{+1.3}$   &    0.99 $\pm$ 0.25  &     2.46 $ _{-0.37}^{+1.31}$   $\pm$ 0.64  &    5 \\             
1850 &        0.298 $\pm$ 0.002  &      0.9 $\pm$ 0.11  &       0.36 $\pm$ 0.26  &      0.131 $\pm$ 0.012  &          0.0 $ _{-0.0}^{+1.3}$   &    0.93 $\pm$ 0.24  &     2.32 $ _{-0.37}^{+1.31}$   $\pm$ 0.61  &    4 \\             
1900 &        0.2292 $\pm$ 0.0014  &    0.76 $\pm$ 0.1  &       0.36 $\pm$ 0.26  &      0.118 $\pm$ 0.012  &          0.0 $ _{-0.0}^{+1.3}$   &    0.89 $\pm$ 0.25  &     2.13 $ _{-0.37}^{+1.31}$   $\pm$ 0.53  &    3 \\             
1950 &        0.1764 $\pm$ 0.0011  &    0.704 $\pm$ 0.099  &    0.36 $\pm$ 0.26  &      0.11 $\pm$ 0.012  &           0.0 $ _{-0.0}^{+1.3}$   &    0.86 $\pm$ 0.25  &     2.04 $ _{-0.37}^{+1.31}$   $\pm$ 0.5  &     3 \\             
2000 &        0.1368 $\pm$ 0.0008  &    0.7 $\pm$ 0.1  &        0.36 $\pm$ 0.26  &      0.104 $\pm$ 0.011  &          0.0 $ _{-0.0}^{+1.3}$   &    0.298 $\pm$ 0.09  &    1.47 $ _{-0.29}^{+1.29}$   $\pm$ 0.47  &    2 \\ 

December 9, 2017
For single top, no 2nd muon, no st, do dr_mu1mu2
tt: $ 814456.84 \pm 728.7 $ [1]
DY: $ 64099.73 \pm 329.24 $ [[64099.733663977386, 3214423]]
W: $ 59.8 \pm 20.25 $ [[59.795207931194874, 342]]
t: $ 1014.63 \pm 36.89 $ [[1014.6318233151267, 820]]
VV: $ 2615.99 \pm 11.48 $ [[2615.989198878593, 374496]]
tot bg: $ 882246.99 \pm 800.81 $
sig: $ 796365.35 \pm 6047.28 $ \\ 
December 9, 2017
HH:

getting MuMu scale factors :
MuMu scale factor integrals:
Data: [227287.0, 476.7462637504357] [10015.0, 100.07497189607399]
Z: [235611.46542144925, 1208.8826330806046] [95.99384674445905, 28.91396691955365]
TT: [12797.426264920909, 49.305478684902575] [10663.727083357122, 44.17878984728506]
Other: [4426.071906108644, 904.9345934619787] [891.8218334528673, 234.29956965767548]
SMHiggs: [296.5392124727365, 0.6577513316236097] [24.251837829613763, 0.508745767171459]
MuMu: RZ  =  0.899 +- 0.005 0.898727293368 0.00484
MuMu: Rtt =  0.845 +- 0.01 0.845426818535 0.01036


December 8, 2017
bblnulnu talk:

https://indico.cern.ch/event/675081/contributions/2818279/attachments/1572505/2481611/Rami_HZZ_8dec2017.pdf

Double muon trigger efficiencies:

https://indico.cern.ch/event/636555/contributions/2577291/attachments/1453162/2241537/TnP_DoubleMuSF_03_05_17.pdf

Run BCDEFG:

https://gaperrin.web.cern.ch/gaperrin/tnp/Hbb/2017/DoubleTrigMoriond_04_05_17/Efficiency/RunBCDEFG/

Run H:

https://gaperrin.web.cern.ch/gaperrin/tnp/Hbb/2017/DoubleTrigMoriond_04_05_17/Efficiency/RunH/

Run H DZ:

https://gaperrin.web.cern.ch/gaperrin/tnp/Hbb/2017/DoubleTrigMoriond_dZ_06_04_17/Efficiency/RunH/

December 5, 2017
VV Cross section check
LO:

ZZ_TuneCUETP8M1_13TeV-pythia8, 16.523
WZ_TuneCUETP8M1_13TeV-pythia8, 47.13
WW_TuneCUETP8M1_13TeV-pythia8, 118.7

Total: 182.353

NLO:

ZZTo4L, 1.212
ZZTo2L2Q, 3.22
ZZTo2Q2Nu, 4.04
ZZTo4Q, 6.896587
WZTo3LNu, 4.42965
WZTo2L2Q, 5.595
WZTo1L1Nu2Q, 10.71
WZTo1L3Nu, 3.033
WZTo2Q2Nu, 6.324
WWTo1L1Nu2Q, 49.997
WWTo4Q, 51.723
VVTo2L2Nu, 11.95

Total: 159.130237

Systematics

mumujj Systematic Signal min - max BG min - max
Jet Energy Resolution 0.05 - 0.43 0.31 - 5.06
Jet Energy Scale 0.2 - 1.81 0.41 - 5.26
Lumi 2.5 - 2.5 0.27 - 1.04
Muon Energy Resolution 0.04 - 0.35 0.18 - 16.45
Muon Energy Scale 1.16 - 5.26 0.71 - 36.17
Muon ID/Iso 4.0 - 4.0 0.43 - 1.68
PDF 1.88 - 3.96 0.4 - 4.91
PileUp 0.02 - 0.31 0.27 - 6.2
Trigger 2.0 - 2.0 0.21 - 0.83
TT Normalization 0.0 - 0.0 0.01 - 0.27
TT Shape 0.0 - 0.0 0.0 - 0.01
W Normalization 0.0 - 0.0 0.02 - 0.12
W Shape 0.0 - 0.0 0.0 - 0.0
Z Normalization 0.0 - 0.0 3.47 - 7.42
Z Shape 0.0 - 0.0 1.53 - 6.75
VV Shape 0.0 - 0.0 0.0 - 0.01

munujj systematic Signal min - max BG min - max
Jet Energy Resolution 0.34 - 2.33 2.7 - 41.35
Jet Energy Scale 0.01 - 0.75 2.05 - 52.31
Lumi 2.5 - 2.5 0.48 - 1.28
Muon Energy Resolution 0.02 - 0.39 0.43 - 31.71
Muon Energy Scale 0.07 - 1.2 5.05 - 59.48
Muon ID/Iso 2.0 - 2.0 0.34 - 1.01
PDF 0.35 - 2.35 0.93 - 28.13
PileUp 0.02 - 0.33 1.51 - 27.21
Trigger 1.0 - 1.0 0.17 - 0.51
TT Normalization 0.0 - 0.0 0.17 - 0.93
TT Shape 0.0 - 0.0 0.72 - 18.49
W Normalization 0.0 - 0.0 0.22 - 0.61
W Shape 0.0 - 0.0 1.61 - 12.64
Z Normalization 0.0 - 0.0 0.43 - 1.23
Z Shape 0.0 - 0.0 0.02 - 0.04
VV Shape 0.0 - 0.0 0.54 - 13.94

QCD study for munujj with updated VV (now with ZZTo4Q)

Performing QCD Study

------ DIMUON CHANNEL -------

 In the non-isolated region (TrkIso_muon1>0.1)*(TrkIso_muon2>0.1), uujj global QCD rescaling is: $ 0.5932 \pm 0.0292 $
Number of events in QCD MC:
Q_ss: [2115.588650070696, 102.84047865839672]
Q_os: [4350.08911155304, 242.79797663331703]
Test: In normal Iso data, the number of same-sign events is [420.0, 20.493901531919196]
Test: In normal Iso MC, the number of same-sign events is
    Z: [9.645365050824394, 1.7159942599049818]
    W: [21.17497366883696, 7.692630565125724]
    t: [23.53624964217114, 5.087952675769992]
   VV: [82.7688112686844, 1.8942594628239318]
   tt: [208.827185908606, 6.257127167393448]
Test: QCD Prediction in SS Isolated: [2.7162219784565753, 1.0644818503906455]

In QCD MC, the conversion factor between same-sign muon events and all events is: $ 3.0613 \pm 0.1519 $
In QCD MC, the single-muon isolation acceptance is: $ 0.1777 \pm 0.0211 $
In QCD MC, the conversion factor between non-isolated di-muon events and isolated dimuon events is: $ 0.0316 \pm 0.0075 $
Thus, in same-sign non-iso data, a factor of: $ 0.0967 \pm 0.0235 $ will give the QCD estimate.

For final selections, this gives estimates:

200 & $ 64.2233 \pm 17.1358 $ \\
250 & $ 28.2497 \pm 9.1287 $ \\
300 & $ 9.7036 \pm 4.7286 $ \\
350 & $ 2.1471 \pm 1.9615 $ \\
400 & $ -0.7541 \pm -1.4094 $ \\
450 & $ -1.5268 \pm -0.9549 $ \\
500 & $ -1.3441 \pm -0.6771 $ \\

------ MUON+MET CHANNEL -------

  Data (noniso): [106951.0, 327.03363741364586]
 SM BG (noniso): [44131.95023515973, 545.0736738446495]
QCD MC (noniso): [91592.250486435, 2516.0231289145495]
  Data (iso): [43321.0, 208.13697413001853]
 SM BG (iso): [42453.425185993605, 531.3589158695034]
QCD MC (iso): [5169.216785859671, 346.54807297780224]

In the non_isolated low-MET region, the global QCD rescaling is: $ 0.6859 \pm 0.0201 $

The data-driven fake-rate is: $ 0.0138 \pm 0.0091 $

The MC-driven fake-rate is: $ 0.0564 \pm 0.0041 $

For final selections, this gives estimates:

200 & $ 47.4673 \pm 31.3961 $ \\
250 & $ 19.8796 \pm 13.2657 $ \\
300 & $ 10.1389 \pm 6.9422 $ \\
350 & $ 5.2292 \pm 3.7029 $ \\
400 & $ 3.432 \pm 2.6275 $ \\
450 & $ 1.2667 \pm 0.8523 $ \\
500 & $ 0.8505 \pm 0.576 $ \\
550 & $ 0.5283 \pm 0.3579 $ \\
600 & $ 0.3552 \pm 0.2432 $ \\
650 & $ 0.3005 \pm 0.2086 $ \\
700 & $ 0.2516 \pm 0.178 $ \\
750 & $ 0.2119 \pm 0.1538 $ \\
800 & $ 0.1686 \pm 0.1279 $ \\
850 & $ 0.1525 \pm 0.1187 $ \\
900 & $ 0.1285 \pm 0.1052 $ \\
950 & $ 0.1133 \pm 0.0971 $ \\
1000 & $ 0.1079 \pm 0.0944 $ \\
1050 & $ 0.1041 \pm 0.0925 $ \\
1100 & $ 0.102 \pm 0.0915 $ \\
1150 & $ 0.0907 \pm 0.0859 $ \\
1200 & $ 0.0861 \pm 0.0838 $ \\
1250 & $ 0.0841 \pm 0.083 $ \\
1300 & $ 0.0819 \pm 0.082 $ \\
1350 & $ 0.081 \pm 0.0816 $ \\
1400 & $ 0.08 \pm 0.0812 $ \\
1450 & $ 0.079 \pm 0.0807 $ \\
1500 & $ 0.0765 \pm 0.0797 $ \\
1550 & $ 0.0756 \pm 0.0793 $ \\
1600 & $ 0.0749 \pm 0.079 $ \\
1650 & $ 0.074 \pm 0.0787 $ \\
1700 & $ 0.0115 \pm 0.0086 $ \\
1750 & $ 0.0106 \pm 0.0081 $ \\
1800 & $ 0.0103 \pm 0.0079 $ \\
1850 & $ 0.01 \pm 0.0077 $ \\
1900 & $ 0.0095 \pm 0.0075 $ \\
1950 & $ 0.0089 \pm 0.0071 $ \\
2000 & $ 0.0071 \pm 0.006 $ \\
December 1, 2017

Full Hybrid CLs limit studies

LQ_M_1000

Asymptotic:
Expected  2.5%: r < 0.030780921
Expected 16.0%: r < 0.042474419
Expected 50.0%: r < 0.062291823
Expected 84.0%: r < 0.094322249
Expected 97.5%: r < 0.137785047

Full Hybrid:
Expected  2.5%: r < 0.0341431 
Expected 16.0%: r < 0.0440472 
Expected 50.0%: r < 0.0635866 
Expected 84.0%: r < 0.0937692 
Expected 97.5%: r < 0.124369 

LQ_M_1300

Asymptotic:
Expected  2.5%: r < 0.116176218
Expected 16.0%: r < 0.164094687
Expected 50.0%: r < 0.250979841
Expected 84.0%: r < 0.396040231
Expected 97.5%: r < 0.611168802

Full Hybrid:
Expected  2.5%: r < 0.112223 
Expected 16.0%: r < 0.158877 
Expected 50.0%: r < 0.255274 
Expected 84.0%: r < 0.356585 
Expected 97.5%: r < 0.504717 


LQ_M_1500

Asymptotic:
Expected  2.5%: r < 0.375549436
Expected 16.0%: r < 0.529712260
Expected 50.0%: r < 0.804524302
Expected 84.0%: r < 1.269520164
Expected 97.5%: r < 1.940732718

Full Hybrid:
Expected  2.5%: r < 0.512476 
Expected 16.0%: r < 0.603034 
Expected 50.0%: r < 0.806282 
Expected 84.0%: r < 1.25713 
Expected 97.5%: r < 1.57391 

LQ_M_2000

Asymptotic:
Expected  2.5%: r < 5.227019787
Expected 16.0%: r < 7.396031380
Expected 50.0%: r < 11.197632790
Expected 84.0%: r < 17.669597626
Expected 97.5%: r < 27.011754990

Full Hybrid:
Expected  2.5%: r < 6.77654 
Expected 16.0%: r < 8.41146 
Expected 50.0%: r < 11.1713 
Expected 84.0%: r < 17.5005 
Expected 97.5%: r < 22.25 

November 21, 2017
Updated limits - no QCD, updated VV
Processing BR_Sigma_MuMu_vsMass.C...
## LLJJ expected limit: 1539.7 GeV
## LLJJ observed limit: 1526.8 GeV
## LLJJ expected limit -2 sigma: 1379 GeV
## LLJJ expected limit -1 sigma: 1455.5 GeV
## LLJJ expected limit +1 sigma: 1619.8 GeV
## LLJJ expected limit +2 sigma: 1684.7 GeV

Processing BR_Sigma_MuNu_vsMass.C...
## LLJJ expected limit: 1190.9 GeV
## LLJJ observed limit: 1184.3 GeV
## LLJJ expected limit -2 sigma: 1015.2 GeV
## LLJJ expected limit -1 sigma: 1091 GeV
## LLJJ expected limit +1 sigma: 1250.4 GeV
## LLJJ expected limit +2 sigma: 1322.1 GeV

November 20, 2017
QCD study with updated VV (still missing ZZTo4Q)
--------------
--------------
Performing QCD Study

------ DIMUON CHANNEL -------

In the non-isolated region (TrkIso_muon1>0.1)*(TrkIso_muon2>0.1), uujj global QCD rescaling is: $ 0.5942 \pm 0.0295 $
Number of events in QCD MC:
Q_ss: [2090.7055198401404, 102.46333470822532]
Q_os: [4300.580646720382, 242.43914893068094]
Test: In normal Iso data, the number of same-sign events is [420.0, 20.493901531919196]
Test: In normal Iso MC, the number of same-sign events is
    Z: [9.645365050824394, 1.7159942599049818]
    W: [21.17497366883696, 7.692630565125724]
    t: [23.53624964217114, 5.087952675769992]
   VV: [82.75382898439719, 1.894200212135863]
   tt: [208.827185908606, 6.257127167393448]
Test: QCD Prediction in SS Isolated: [2.7116456173172487, 1.0644720131266086]

In QCD MC, the conversion factor between same-sign muon events and all events is: $ 3.0597 \pm 0.1524 $
In QCD MC, the single-muon isolation acceptance is: $ 0.1746 \pm 0.0209 $
In QCD MC, the conversion factor between non-isolated di-muon events and isolated dimuon events is: $ 0.0305 \pm 0.0073 $
Thus, in same-sign non-iso data, a factor of: $ 0.0933 \pm 0.0229 $ will give the QCD estimate.

For final selections, this gives estimates:

200 & $ 62.0005 \pm 16.6675 $ \\
250 & $ 27.4327 \pm 8.8819 $ \\
300 & $ 9.7832 \pm 4.6209 $ \\
350 & $ 2.2556 \pm 1.8999 $ \\
400 & $ -0.5883 \pm -1.3508 $ \\
450 & $ -1.419 \pm -0.9102 $ \\
500 & $ -1.334 \pm -0.652 $ \\

------ MUON+MET CHANNEL -------

 Data (noniso): [105839.0, 325.3290641796395]
 SM BG (noniso): [43376.890909411944, 542.7473314184568]
 QCD MC (noniso): [90738.20800572823, 2513.1017754304385]
 Data (iso): [42870.0, 207.05071842425468]
 SM BG (iso): [41743.147893314715, 529.2336012722202]
 QCD MC (iso): [5145.140390922521, 346.41132752229976]

In the non_isolated low-MET region, the global QCD rescaling is: $ 0.6884 \pm 0.0203 $

The data-driven fake-rate is: $ 0.018 \pm 0.0091 $

The MC-driven fake-rate is: $ 0.0567 \pm 0.0041 $

For final selections, this gives estimates:

200 & $ 64.7938 \pm 32.9672 $ \\
250 & $ 26.2858 \pm 13.5768 $ \\
300 & $ 13.2994 \pm 7.1678 $ \\
350 & $ 6.8386 \pm 3.8894 $ \\
400 & $ 4.4749 \pm 2.8635 $ \\
450 & $ 1.6445 \pm 0.862 $ \\
500 & $ 1.1034 \pm 0.5847 $ \\
550 & $ 0.6834 \pm 0.3625 $ \\
600 & $ 0.4583 \pm 0.2475 $ \\
650 & $ 0.387 \pm 0.2138 $ \\
700 & $ 0.3251 \pm 0.1851 $ \\
750 & $ 0.2733 \pm 0.162 $ \\
800 & $ 0.2206 \pm 0.1392 $ \\
850 & $ 0.1996 \pm 0.1306 $ \\
900 & $ 0.1682 \pm 0.1181 $ \\
950 & $ 0.1484 \pm 0.1107 $ \\
1000 & $ 0.1413 \pm 0.1084 $ \\
1050 & $ 0.1363 \pm 0.1067 $ \\
1100 & $ 0.1336 \pm 0.1058 $ \\
1150 & $ 0.1188 \pm 0.1008 $ \\
1200 & $ 0.1127 \pm 0.099 $ \\
1250 & $ 0.1103 \pm 0.0983 $ \\
1300 & $ 0.1074 \pm 0.0975 $ \\
1350 & $ 0.1062 \pm 0.0971 $ \\
1400 & $ 0.1049 \pm 0.0968 $ \\
1450 & $ 0.1036 \pm 0.0964 $ \\
1500 & $ 0.1003 \pm 0.0955 $ \\
1550 & $ 0.0991 \pm 0.0952 $ \\
1600 & $ 0.0981 \pm 0.0949 $ \\
1650 & $ 0.0971 \pm 0.0946 $ \\
1700 & $ 0.0151 \pm 0.0093 $ \\
1750 & $ 0.0139 \pm 0.0088 $ \\
1800 & $ 0.0134 \pm 0.0086 $ \\
1850 & $ 0.0131 \pm 0.0085 $ \\
1900 & $ 0.0125 \pm 0.0083 $ \\
1950 & $ 0.0116 \pm 0.0079 $ \\
2000 & $ 0.0093 \pm 0.0068 $ \\

November 15, 2017
No QCD background, amc@NLO VV
This is the information for the NOTE table 6:
 Data: 23902.0
   TT: 22300.5721829
    Z: 126.227194958
 Stop: 1307.90300874
    W: 141.476424172
   VV: 919.156276819
MuMu: Rtt =  [0.9599411584499503, 0.008195827694747936]
Now calculating R_mumu,emu, the ratio of mumu to e,mu events in ttbar MC. 
Should be near 0.5
R_uu,eu =  0.586505470035  +-  0.00270930206375

Using Data-driven TTbar
MuMu scale factor integrals:
Data: [44772.0, 211.59395076419364] [20479.0, 143.10485666112103]
Z: [44577.39429476766, 123.88059023311463] [6429.609534169691, 133.91456562526403]
TT: [617.4713419137317, 26.49897233329034] [13064.846796281901, 50.02108314212896]
Other: [2913.2202911895674, 61.32748553701391] [1653.4460687899725, 48.78312985421769]
MuMu: RZ  =  0.925 +- 0.005
MuMu: Rtt =  1.000 +- 0.023

Here $(N_1,N_2) = (   159325.0 , 59726.0 )$, $(N_{1,\ttbar},N_{2,\ttbar}) = (  41729.2 \pm 87.1 , 46097.9 \pm 90.5 )$,  $(N_{1,W},N_{2,W}) = (  110697.3 \pm 917.5 , 7661.2 \pm 260.1 $, and $(N_{1,0},N_{2,0}) = (  16986.6 \pm 221.7 , 5667.2 \pm 96.4 )$.
\ttbar control region &  59726.0  &  46097.9 $\pm$ 90.5  &  7661.2 $\pm$ 260.1  &  5667.2 $\pm$ 96.4  &  59426.2 $\pm$ 291.8 \\ \hline
W control region &  159325.0  &  41729.2 $\pm$ 87.1  &  110697.3 $\pm$ 917.5  &  16986.6 $\pm$ 221.7  &  169413.2 $\pm$ 947.9 \\ \hline
MuNu scale factor integrals:
Data: [159325.0, 399.15535822534065] [59726.0, 244.3890341238739]
W: [110697.31356823909, 917.4903247765295] [7661.154160419787, 260.1495211815775]
TT: [41729.22685888018, 87.10910422658908] [46097.883693250995, 90.46011167549882]
Other: [16986.631042415553, 221.6787476689666] [5667.189422111985, 96.4174802941345]
MuNu: RW  =  0.9 +- 0.009
MuNu: Rtt =  1.023 +- 0.008

November 14, 2017
Redoing everything with no QCD background
This is the information for the NOTE table 6:
 Data: 23902.0
   TT: 22300.5721829
    Z: 126.227194958
 Stop: 1307.90300874
    W: 141.476424172
   VV: 315.466812669
MuMu: Rtt =  [0.9870117402807903, 0.00819796096796714]
Now calculating R_mumu,emu, the ratio of mumu to e,mu events in ttbar MC. 
Should be near 0.5
R_uu,eu =  0.594514764232  +-  0.0135190291782


November 13, 2017

Performing QCD Study

------ DIMUON CHANNEL -------


 In the non_isolated region (TrkIso_muon1>0.1)*(TrkIso_muon2>0.1), uujj global QCD rescaling is: $ 0.5949 \pm 0.0295 $
Number of events in QCD MC:
Q_ss: [2090.7055198401404, 102.46333470822532]
Q_os: [4300.580646720382, 242.43914893068094]
Test: In normal Iso data, the number of same-sign events is [420.0, 20.493901531919196]
Test: In normal Iso MC, the number of same-sign events is
    Z: [9.645365050824394, 1.7159942599049818]
    W: [21.17497366883696, 7.692630565125724]
    t: [23.53624964217114, 5.087952675769992]
   VV: [31.61435725292553, 3.6803543005636103]
   tt: [237.8636061797991, 38.06383140203353]
Test: QCD Prediction in SS Isolated: [2.7116456173172487, 1.0644720131266086]

In QCD MC, the conversion factor between same-sign muon events and all events is: $ 3.0612 \pm 0.1541 $
In QCD MC, the single-muon isolation acceptance is: $ 0.1747 \pm 0.0214 $
In QCD MC, the conversion factor between non-isolated di-muon events and isolated dimuon events is: $ 0.0305 \pm 0.0075 $
Thus, in same-sign non-iso data, a factor of: $ 0.0935 \pm 0.0234 $ will give the QCD estimate.

For final selections, this gives estimates:

200 & $ 66.0469 \pm 17.9074 $ \\
250 & $ 30.2217 \pm 9.5449 $ \\
300 & $ 11.3459 \pm 4.8731 $ \\
350 & $ 3.1677 \pm 1.99 $ \\
400 & $ -0.0707 \pm -1.3497 $ \\
450 & $ -0.9484 \pm -0.8755 $ \\
500 & $ -1.0154 \pm -0.6192 $ \\


------ MUON+MET CHANNEL -------

  Data (noniso): [106869.0, 326.9082440073973]
 SM BG (noniso): [43947.334133899545, 544.7728045258804]
QCD MC (noniso): [91089.4403351421, 2513.885502651361]
  Data (iso): [43696.0, 209.0358820872627]
 SM BG (iso): [42290.58357746809, 530.8977509418922]
QCD MC (iso): [5160.687381920303, 346.51982383037785]

In the non_isolated low-MET region, the global QCD rescaling is: $ 0.6908 \pm 0.0203 $

The data-driven fake-rate is: $ 0.0223 \pm 0.0091 $

The MC-driven fake-rate is: $ 0.0567 \pm 0.0041 $

For final selections, this gives estimates:

200 & $ 80.4996 \pm 33.1276 $ \\
250 & $ 32.6573 \pm 13.7492 $ \\
300 & $ 16.5232 \pm 7.4068 $ \\
350 & $ 8.4963 \pm 4.1093 $ \\
400 & $ 5.5597 \pm 3.1447 $ \\
450 & $ 2.0431 \pm 0.8794 $ \\
500 & $ 1.3709 \pm 0.5995 $ \\
550 & $ 0.8491 \pm 0.3718 $ \\
600 & $ 0.5693 \pm 0.256 $ \\
650 & $ 0.4808 \pm 0.2234 $ \\
700 & $ 0.4039 \pm 0.1957 $ \\
750 & $ 0.3395 \pm 0.1738 $ \\
800 & $ 0.2741 \pm 0.1522 $ \\
850 & $ 0.248 \pm 0.1442 $ \\
900 & $ 0.209 \pm 0.1327 $ \\
950 & $ 0.1843 \pm 0.1261 $ \\
1000 & $ 0.1755 \pm 0.1239 $ \\
1050 & $ 0.1694 \pm 0.1225 $ \\
1100 & $ 0.166 \pm 0.1217 $ \\
1150 & $ 0.1476 \pm 0.1172 $ \\
1200 & $ 0.14 \pm 0.1157 $ \\
1250 & $ 0.1371 \pm 0.1151 $ \\
1300 & $ 0.1335 \pm 0.1143 $ \\
1350 & $ 0.1319 \pm 0.114 $ \\
1400 & $ 0.1303 \pm 0.1137 $ \\
1450 & $ 0.1287 \pm 0.1134 $ \\
1500 & $ 0.1246 \pm 0.1126 $ \\
1550 & $ 0.1231 \pm 0.1123 $ \\
1600 & $ 0.1219 \pm 0.1121 $ \\
1650 & $ 0.1206 \pm 0.1119 $ \\
1700 & $ 0.0187 \pm 0.0101 $ \\
1750 & $ 0.0172 \pm 0.0097 $ \\
1800 & $ 0.0167 \pm 0.0095 $ \\
1850 & $ 0.0162 \pm 0.0094 $ \\
1900 & $ 0.0155 \pm 0.0092 $ \\
1950 & $ 0.0145 \pm 0.0088 $ \\
2000 & $ 0.0116 \pm 0.0077 $ \\

October 5, 2017
Moving back to efficiencies for HLT not SF - too many complications for no gain

Mu50_OR_TkMu50 efficiencies, binned in eta: {-2.4 -2.1 -1.6 -1.2 -0.9 -0.3 -0.2 0 0.2 0.3 0.9 1.2 1.6 2.1 2.4}

B-F G-H
0.542123915 0.457876085 averaged
     
0.793579 0.82686 0.808817574
0.840308 0.840032 0.840181626
0.914036 0.949155 0.93011615
0.920788 0.947456 0.932998639
0.936468 0.954834 0.944877352
0.801847 0.872999 0.834425799
0.929165 0.957222 0.942011629
0.935369 0.957921 0.945695021
0.836332 0.872519 0.852901162
0.93959 0.950367 0.944524531
0.91893 0.94529 0.930999614
0.908267 0.938349 0.922040828
0.848675 0.852299 0.850334343
0.770853 0.816826 0.791902937

This is the information for the NOTE table 6:
 Data: 20308.0
   TT: 18991.7921723
    Z: 93.6485899818
 Stop: 1104.39170324
    W: 79.0913632902
   VV: 229.896402857
  QCD: 7.13359918372
MuMu: Rtt =  [0.9895768746272456, 0.008647677412741339]
Now calculating R_mumu,emu, the ratio of mumu to e,mu events in ttbar MC. 
Should be near 0.5
R_uu,eu =  0.69809206489  +-  0.0158943703835

Using Data-driven TTbar
MuMu scale factor integrals:
Data: [44772.0, 211.59395076419364] [20479.0, 143.10485666112103]
Z: [44577.39429476766, 123.88059023311463] [6429.609534169691, 133.91456562526403]
TT: [624.0071119229444, 30.420017422654965] [13212.555941176057, 310.8032861959486]
Other: [889.2767147851774, 20.235179160861] [1120.7618594078153, 40.17475395530877]
MuMu: RZ  =  0.971 +- 0.006
MuMu: Rtt =  1.000 +- 0.023

Here $(N_1,N_2) = (   159325.0 , 59726.0 )$, $(N_{1,\ttbar},N_{2,\ttbar}) = (  41403.1 \pm 510.2 , 45934.5 \pm 524.3 )$,  $(N_{1,W},N_{2,W}) = (  110697.3 \pm 917.5 , 7661.2 \pm 260.1 $, and $(N_{1,0},N_{2,0}) = (  16783.6 \pm 490.9 , 9016.6 \pm 754.7 )$.
\ttbar control region &  59726.0  &  45934.5 $\pm$ 524.3  &  7661.2 $\pm$ 260.1  &  9016.6 $\pm$ 754.7  &  62612.3 $\pm$ 955.0 \\ \hline
W control region &  159325.0  &  41403.1 $\pm$ 510.2  &  110697.3 $\pm$ 917.5  &  16783.6 $\pm$ 490.9  &  168884.0 $\pm$ 1158.9 \\ \hline
MuNu scale factor integrals:
Data: [159325.0, 399.15535822534065] [59726.0, 244.3890341238739]
W: [110697.31356823909, 917.4903247765295] [7661.154160419787, 260.1495211815775]
TT: [41403.11521607723, 510.1520884430706] [45934.511660944765, 524.3022669301334]
Other: [16783.60526976984, 490.9137007509793] [9016.644143891092, 754.6797181407247]
MuNu: RW  =  0.933 +- 0.011
MuNu: Rtt =  0.948 +- 0.014

October 4, 2017
Using correct btag weights:
[10/4/17, 11:00:48] Seth Cooper: for histograms with at least one b-tag, i apply a scale factor of 1-SF_zeroBtags
[10/4/17, 11:01:20] Seth Cooper: where SF_zeroBtags = PI[1-SF_i], where i goes over all the jets passing the btag cut in the event
[10/4/17, 11:01:43] Seth Cooper: and then SF_zeroBtags is applied to histograms for zero b-tag events

munu1Data =  '(MT_uv>70)*(MT_uv<110)*(CISV_jet1<0.5426)*(CISV_jet2<0.5426)'
munu2Data =  '(MT_uv>70)*(MT_uv<110)*(((CISV_jet1>0.8484)+(CISV_jet2>0.8484))>0)'

munu1 = '(MT_uv>70)*(MT_uv<110)*(((CISV_jet1>0.5426)+(CISV_jet2>0.5426))<1)*(2-0.887973*((1.+(0.0523821*Pt_jet1))/(1.+(0.0460876*Pt_jet1))))'
munu2 = '(MT_uv>70)*(MT_uv<110)*(((CISV_jet1>0.8484)+(CISV_jet2>0.8484))>=1)*(0.561694*((1.+(0.31439*Pt_jet1))/(1.+(0.17756*Pt_jet1))))'#*(CISV_jet1>CISV_jet2)+(0.901114+(1.40704e-05*(Pt_jet2)))*(CISV_jet2>0.8484)*(CISV_jet1<CISV_jet2))'

Here $(N_1,N_2) = (   159325.0 , 59726.0 )$, $(N_{1,\ttbar},N_{2,\ttbar}) = (  41702.4 \pm 89.9 , 46167.9 \pm 93.4 )$,  $(N_{1,W},N_{2,W}) = (  110783.0 \pm 955.5 , 7649.3 \pm 274.3 $, and $(N_{1,0},N_{2,0}) = (  16755.8 \pm 519.0 , 8986.4 \pm 846.9 )$.
\ttbar control region &  59726.0  &  46167.9 $\pm$ 93.4  &  7649.3 $\pm$ 274.3  &  8986.4 $\pm$ 846.9  &  62803.6 $\pm$ 895.1 \\ \hline
W control region &  159325.0  &  41702.4 $\pm$ 89.9  &  110783.0 $\pm$ 955.5  &  16755.8 $\pm$ 519.0  &  169241.2 $\pm$ 1091.1 \\ \hline
MuNu scale factor integrals:
Data: [159325.0, 399.15535822534065] [59726.0, 244.3890341238739]
W: [110783.03891959981, 955.53294531512] [7649.335429885223, 274.28541085814004]
TT: [41702.43013431801, 89.8826571567409] [46167.906657743355, 93.37391101733986]
Other: [16755.759905834795, 519.0279946568498] [8986.366922515452, 846.8570415601454]
MuNu: RW  =  0.931 +- 0.01
MuNu: Rtt =  0.945 +- 0.008
October 1, 2017
Final systematics (Presel then final selections):
shapesysvar_uujj_zjets  = [0.54, 2.48, 2.28, 2.58, 3.8, 4.13, 2.76, 3.04, 3.18, 3.26, 4.92, 4.79, 6.01, 7.04, 6.74, 5.07, 6.35, 5.83, 7.94, 7.13, 6.72, 8.86, 8.77, 10.59, 8.37, 7.83, 8.14, 9.08, 9.08, 9.08, 9.08, 9.08, 9.08, 9.08, 9.08, 9.08, 9.08, 9.08]
shapesysvar_uujj_wjets  = [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]
shapesysvar_uujj_ttjets = [1.23, 3.08, 4.5, 7.53, 11.1, 14.59, 16.1, 17.74, 19.91, 24.51, 27.37, 27.9, 23.69, 22.78, 25.15, 34.55, 31.99, 24.91, 24.91, 8.46, 8.46, 8.47, 8.47, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]
 
Final systematics (Presel then final selections):
shapesysvar_uvjj_zjets  = [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]
shapesysvar_uvjj_wjets  = [1.23, 1.54, 1.67, 3.76, 3.94, 5.6, 8.37, 7.73, 8.33, 5.19, 5.78, 5.47, 8.73, 18.11, 23.3, 12.4, 24.98, 24.79, 29.56, 14.12, 16.29, 11.8, 16.47, 35.87, 65.54, 55.04, 17.6, 18.42, 22.98, 24.6, 13.22, 7.16, 4.7, 5.11, 5.23, 3.57, 3.51, 3.42]
shapesysvar_uvjj_ttjets = [0.68, 1.13, 2.16, 3.34, 4.42, 6.39, 8.25, 9.47, 10.08, 12.29, 14.62, 15.59, 17.25, 18.12, 21.74, 24.95, 20.29, 21.35, 20.86, 20.49, 14.14, 38.26, 36.05, 36.05, 36.05, 36.05, 38.26, 38.26, 38.26, 38.26, 38.26, 38.26, 41.15, 41.15, 41.15, 41.15, 41.15, 41.15]

September 11, 2017
Final V+Jets, corrected muon isolation, muon cuts instead of flag:
This is the information for the NOTE table 6:
 Data: 20308.0
   TT: 18991.7921723
    Z: 93.6485899818
 Stop: 1104.39170324
    W: 79.0913632902
   VV: 229.896402857
  QCD: 7.13359918372
MuMu: Rtt =  [0.9895768746272456, 0.008647677412741339]
Now calculating R_mumu,emu, the ratio of mumu to e,mu events in ttbar MC. 
Should be near 0.5
R_uu,eu =  0.732919658343  +-  0.00348616547477

Using Data-driven TTbar
MuMu scale factor integrals:
Data: [44772.0, 211.59395076419364] [20479.0, 143.10485666112103]
Z: [44648.27012528625, 124.5852886795734] [6440.861714636685, 133.90579977574316]
TT: [652.3152463326313, 31.912932483765662] [13092.580133319416, 50.21720232224213]
Other: [889.7236163962616, 20.31148983412096] [1122.8192637849033, 40.38419122772943]
MuMu: RZ  =  0.968 +- 0.005
MuMu: Rtt =  1.000 +- 0.023

Here $(N_1,N_2) = (   159325.0 , 59726.0 )$, $(N_{1,\ttbar},N_{2,\ttbar}) = (  41625.3 \pm 90.7 , 46186.4 \pm 93.4 )$,  $(N_{1,W},N_{2,W}) = (  111403.9 \pm 962.2 , 7670.6 \pm 275.0 $, and $(N_{1,0},N_{2,0}) = (  16780.4 \pm 523.6 , 9018.9 \pm 853.8 )$.
\ttbar control region &  59726.0  &  46186.4 $\pm$ 93.4  &  7670.6 $\pm$ 275.0  &  9018.9 $\pm$ 853.8  &  62875.9 $\pm$ 901.8 \\ \hline
W control region &  159325.0  &  41625.3 $\pm$ 90.7  &  111403.9 $\pm$ 962.2  &  16780.4 $\pm$ 523.6  &  169809.6 $\pm$ 1099.2 \\ \hline
MuNu scale factor integrals:
Data: [159325.0, 399.15535822534065] [59726.0, 244.3890341238739]
W: [111403.86637847923, 962.1904040124786] [7670.597115057607, 274.95531442053095]
TT: [41625.34804389765, 90.66153131599631] [46186.44741502992, 93.40966018562392]
Other: [16780.420939195872, 523.5778510943629] [9018.898375799105, 853.7530897282211]
MuNu: RW  =  0.927 +- 0.01
MuNu: Rtt =  0.944 +- 0.009

August 17, 2017
DY:
>>> 5512.44*0.972*0.98984218979
5303.66520162678
>>> 374.88*0.972*0.98844381919
360.17248000768467
>>> 86.52*0.972*1.0066132797
84.65359989277397
>>> 3.32*0.972*1.04351384584
3.367460921079513
>>> 0.45*0.972*1.0613854949
0.46425001546926
>>> 0.04*0.972*1.07918838682
0.0419588444795616

WJets:

Info in <TCanvas::SaveAs>: ROOT file lWPt_plot_rebin.root has been created
bin: 0.0 - 50.0 ,ratio: 0.986826721796
bin: 50.0 - 100.0 ,ratio: 0.903296014858
bin: 100.0 - 250.0 ,ratio: 1.00209431998
bin: 250.0 - 400.0 ,ratio: 1.12779227858
bin: 400.0 - 600.0 ,ratio: 1.23161090382
bin: 600.0 - 2000.0 ,ratio: 1.38949089156

Info in <TCanvas::SaveAs>: ROOT file mtlnu_plot_rebin.root has been created
bin: 0.0 - 50.0 ,ratio: 0.980682117511
bin: 50.0 - 100.0 ,ratio: 0.977873689366
bin: 100.0 - 250.0 ,ratio: 0.964227564353
bin: 250.0 - 400.0 ,ratio: 1.01466090603
bin: 400.0 - 600.0 ,ratio: 1.01014689028
bin: 600.0 - 2000.0 ,ratio: 1.55291911517

Info in <TCanvas::SaveAs>: ROOT file mtlMET_plot_rebin.root has been created
bin: 0.0 - 50.0 ,ratio: 0.989112340536
bin: 50.0 - 100.0 ,ratio: 0.974477250197
bin: 100.0 - 250.0 ,ratio: 0.960093817715
bin: 250.0 - 400.0 ,ratio: 1.0067168403
bin: 400.0 - 600.0 ,ratio: 1.06323521673
bin: 600.0 - 2000.0 ,ratio: 2.03980095551
August 8, 2017
New VJets cross sections, doing (gridPack prematching)*(genXsecAnalyzer matching efficiency)*(Inclusive / pt-binned correction)*(NNLO[theory]/NL0[Inclusive])
WJets:
bin: 0.0 - 50.0 : 57392.47248
bin: 50.0 - 100.0 : 3368.094517
bin: 100.0 - 250.0 : 715.6015207
bin: 250.0 - 400.0 : 26.1243776
bin: 400.0 - 600.0 : 3.386882404
bin: 600.0 - Inf : 0.570660744

DYJets:
bin: 0.0 - 50.0 : 5304.106648
bin: 50.0 - 100.0 : 365.9507461
bin: 100.0 - 250.0 : 85.57578668
bin: 250.0 - 400.0 : 3.404912715
bin: 400.0 - 600.0 : 0.475010104
bin: 600.0 - Inf : 0.042230768

Using Inclusive / pt-binned ratios at LHE ratio from Seth:

WJets:
bin: 0.0 - 50.0 , ratio: 1.00162364289
bin: 50.0 - 100.0 , ratio: 1.02110158746
bin: 100.0 - 250.0 , ratio: 1.03744305931
bin: 250.0 - 400.0 , ratio: 1.06596454669
bin: 400.0 - 600.0 , ratio: 1.08895900399
bin: 600.0 - 2000.0 , ratio: 1.21853716007

DYJets:
bin: 0.0 - 50.0 , ratio: 0.990949055763
bin: 50.0 - 100.0 , ratio: 1.00587747112
bin: 100.0 - 250.0 , ratio: 1.0185849791
bin: 250.0 - 400.0 , ratio: 1.05471828618
bin: 400.0 - 600.0 , ratio: 1.08928807237
bin: 600.0 - 2000.0 , ratio: 1.03062217429
August 2, 2017
Scale factors for output of GenXsecAnalyzer from Kenneth
DYJetsToLL_012j_Zpt-0To50_5f_NLO_FXFX_gridpack_generation.log
    1.094

DYJetsToLL_012j_Zpt-50To100_5f_NLO_FXFX_gridpack_generation.log
    1.6164  

DYJetsToLL_012j_Zpt-100To250_5f_NLO_FXFX_gridpack_generation.log
    1.0367  

DYJetsToLL_012j_Zpt-250To400_5f_NLO_FXFX_gridpack_generation.log
    1.0904 

DYJetsToLL_012j_Zpt-400To650_5f_NLO_FXFX_gridpack_generation.log
    1.1423  

DYJetsToLL_012j_Zpt-650ToInf_5f_NLO_FXFX_gridpack_generation.log
    1.1036 


dyellell012j_5f_NLO_FXFX_gridpack_generation.log
    1.0000 

dyellell012j_5f_NLO_FXFX_MG233_gridpack_generation.log
    1.0323 

This gives the following for DY:

0-50: 5887.18596
50-100: 572.835996
100-250: 84.188530573
250-400: 3.2618967072
400-650: 0.4433969957
650-INF: 0.04124351848

Total: 6547.9570237944

GenXsecAnalyzer Output:

DY:

Inclusive

Overall cross-section summary 
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Process      xsec_before [pb]      passed   nposw   nnegw   tried   nposw   nnegw    xsec_match [pb]         accepted [%]    event_eff [%]
0      5.79401e+03 +/- 8.49808e+00      5759896   5232434   527462   6933574   6334402   599172   4.75319e+03 +/- 7.04257e+00      82.0 +/- 0.083.1 +/- 0.0
1      3.26929e+03 +/- 9.86705e+00      1853386   1360622   492764   8326964   5804566   2522398   8.64452e+02 +/- 2.87245e+00      26.4 +/- 0.022.3 +/- 0.0
2      1.59257e+03 +/- 9.31962e+00      1218730   782172   436558   7960017   4786884   3173133   3.41078e+02 +/- 2.24009e+00      21.4 +/- 0.115.3 +/- 0.0
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 
Total      1.06559e+04 +/- 1.60135e+01      8832012   7375228   1456784   23220555   16925852   6294703   5.93221e+03 +/- 9.25731e+00      55.7 +/- 0.0   38.0 +/- 0.0
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Before matching: total cross section = 1.065587e+04 +- 1.601347e+01 pb
After matching: total cross section = 5.932206e+03 +- 9.257314e+00 pb
Filter efficiency (taking into account weights)= (1.38749e+11) / (1.38749e+11) = 1.000000e+00 +- 0.000000e+00
Filter efficiency (event-level)= (8.83201e+06) / (8.83201e+06) = 1.000000e+00 +- 0.000000e+00
After filter: final cross section = 5.932206e+03 +- 9.257314e+00 pb
0-50
Overall cross-section summary 
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Process      xsec_before [pb]      passed   nposw   nnegw   tried   nposw   nnegw    xsec_match [pb]         accepted [%]    event_eff [%]
0      5.46689e+03 +/- 8.04625e-02      4371099   3971195   399904   5065308   4591473   473835   4.74152e+03 +/- 1.03007e+00      86.7 +/- 0.086.3 +/- 0.0
1      2.90886e+03 +/- 8.68969e-02      1132350   794972   337378   6814294   4532540   2281754   5.91387e+02 +/- 1.26215e+00      20.3 +/- 0.016.6 +/- 0.0
2      1.09825e+03 +/- 7.04402e-02      465692   298005   167687   5030930   2992435   2038495   1.50032e+02 +/- 7.57069e-01      13.7 +/- 0.19.3 +/- 0.0
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 
Total      9.47400e+03 +/- 1.37794e-01      5969141   5064172   904969   16910532   12116448   4794084   5.38134e+03 +/- 2.78937e+00      56.8 +/- 0.0   35.3 +/- 0.0
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Before matching: total cross section = 9.474002e+03 +- 1.377937e-01 pb
After matching: total cross section = 5.381340e+03 +- 2.789367e+00 pb
Filter efficiency (taking into account weights)= (8.9493e+10) / (8.9493e+10) = 1.000000e+00 +- 0.000000e+00
Filter efficiency (event-level)= (5.96914e+06) / (5.96914e+06) = 1.000000e+00 +- 0.000000e+00
After filter: final cross section = 5.381340e+03 +- 2.789367e+00 pb
50-100
Overall cross-section summary 
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Process      xsec_before [pb]      passed   nposw   nnegw   tried   nposw   nnegw    xsec_match [pb]         accepted [%]    event_eff [%]
0      2.48467e+02 +/- 4.28534e-03      14677   14676   1   2214414   2213704   710   1.64767e+00 +/- 1.35573e-02      0.7 +/- 0.0   0.7 +/- 0.0
1      3.73442e+02 +/- 7.38775e-03      5108694   3660131   1448563   7984688   5659981   2324707   2.47624e+02 +/- 1.52144e-01      66.3 +/- 0.064.0 +/- 0.0
2      2.65007e+02 +/- 8.91897e-03      3910065   2487466   1422599   13256594   7972446   5284148   1.04973e+02 +/- 1.67692e-01      39.6 +/- 0.1   29.5 +/- 0.0
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 
Total      8.86916e+02 +/- 1.23487e-02      9033436   6162273   2871163   23455696   15846131   7609565   3.54390e+02 +/- 2.53945e-01      40.0 +/- 0.0   38.5 +/- 0.0
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Before matching: total cross section = 8.869162e+02 +- 1.234872e-02 pb
After matching: total cross section = 3.543900e+02 +- 2.539446e-01 pb
Filter efficiency (taking into account weights)= (8.13684e+09) / (8.13684e+09) = 1.000000e+00 +- 0.000000e+00
Filter efficiency (event-level)= (9.03344e+06) / (9.03344e+06) = 1.000000e+00 +- 0.000000e+00
After filter: final cross section = 3.543900e+02 +- 2.539446e-01 pb
100-250
Overall cross-section summary 
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Process      xsec_before [pb]      passed   nposw   nnegw   tried   nposw   nnegw    xsec_match [pb]         accepted [%]    event_eff [%]
0      5.64238e+01 +/- 2.08652e-03      104   104   0   478926   478742   184   1.22708e-02 +/- 1.20314e-03      0.0 +/- 0.0   0.0 +/- 0.0
1      8.36283e+01 +/- 3.09811e-03      589875   446841   143034   1509202   1113964   395238   3.53504e+01 +/- 6.99095e-02      42.3 +/- 0.139.1 +/- 0.0
2      6.93063e+01 +/- 4.11199e-03      1450617   937795   512822   2986450   1834153   1152297   4.31960e+01 +/- 9.10916e-02      62.3 +/- 0.148.6 +/- 0.0
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 
Total      2.09358e+02 +/- 5.55521e-03      2040596   1384740   655856   4974578   3426859   1547719   8.12082e+01 +/- 1.22374e-01      38.8 +/- 0.141.0 +/- 0.0
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Before matching: total cross section = 2.093583e+02 +- 5.555212e-03 pb
After matching: total cross section = 8.120819e+01 +- 1.223741e-01 pb
Filter efficiency (taking into account weights)= (3.967e+08) / (3.967e+08) = 1.000000e+00 +- 0.000000e+00
Filter efficiency (event-level)= (2.0406e+06) / (2.0406e+06) = 1.000000e+00 +- 0.000000e+00
After filter: final cross section = 8.120819e+01 +- 1.223741e-01 pb
250-400
Overall cross-section summary 
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Process      xsec_before [pb]      passed   nposw   nnegw   tried   nposw   nnegw    xsec_match [pb]         accepted [%]    event_eff [%]
0      2.06509e+00 +/- 1.59700e-04      4   4   0   99032   98977   55   8.34292e-05 +/- 4.17145e-05      0.0 +/- 0.0   0.0 +/- 0.0
1      3.01579e+00 +/- 2.21523e-04      57307   45828   11479   299240   223560   75680   7.00443e-01 +/- 4.41335e-03      23.2 +/- 0.119.2 +/- 0.1
2      2.70303e+00 +/- 2.96788e-04      366665   244582   122083   594584   377958   216626   2.05240e+00 +/- 6.55037e-03      75.9 +/- 0.261.7 +/- 0.1
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 
Total      7.78390e+00 +/- 4.03311e-04      423976   290414   133562   992856   700495   292361   2.99147e+00 +/- 9.43693e-03      38.4 +/- 0.142.7 +/- 0.0
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Before matching: total cross section = 7.783905e+00 +- 4.033113e-04 pb
After matching: total cross section = 2.991468e+00 +- 9.436932e-03 pb
Filter efficiency (taking into account weights)= (2.90394e+06) / (2.90394e+06) = 1.000000e+00 +- 0.000000e+00
Filter efficiency (event-level)= (423976) / (423976) = 1.000000e+00 +- 0.000000e+00
After filter: final cross section = 2.991468e+00 +- 9.436932e-03 pb
400-650
Overall cross-section summary 
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Process      xsec_before [pb]      passed   nposw   nnegw   tried   nposw   nnegw    xsec_match [pb]         accepted [%]    event_eff [%]
0      2.76393e-01 +/- 1.76319e-05      1   1   0   105853   105749   104   2.72303e-06 +/- 2.72302e-06      0.0 +/- 0.0   0.0 +/- 0.0
1      3.92233e-01 +/- 2.53056e-05      38531   31931   6600   306418   231913   74505   6.31157e-02 +/- 4.59949e-04      16.1 +/- 0.112.6 +/- 0.1
2      3.58917e-01 +/- 3.15944e-05      393524   267732   125792   587101   383437   203664   2.83381e-01 +/- 7.42500e-04      79.0 +/- 0.267.0 +/- 0.1
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 
Total      1.02754e+00 +/- 4.41527e-05      432056   299664   132392   999372   721099   278273   3.88162e-01 +/- 1.15644e-03      37.8 +/- 0.143.2 +/- 0.0
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Before matching: total cross section = 1.027544e+00 +- 4.415271e-05 pb
After matching: total cross section = 3.881616e-01 +- 1.156437e-03 pb
Filter efficiency (taking into account weights)= (378131) / (378131) = 1.000000e+00 +- 0.000000e+00
Filter efficiency (event-level)= (432056) / (432056) = 1.000000e+00 +- 0.000000e+00
After filter: final cross section = 3.881616e-01 +- 1.156437e-03 pb
650-INF
Overall cross-section summary 
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Process      xsec_before [pb]      passed   nposw   nnegw   tried   nposw   nnegw    xsec_match [pb]         accepted [%]    event_eff [%]
0      2.65337e-02 +/- 1.66581e-06      0   0   0   113700   113503   197   0.00000e+00 +/- 0.00000e+00      0.0 +/- 0.0   0.0 +/- 0.0
1      3.82809e-02 +/- 2.16019e-06      24893   21220   3673   316050   243284   72766   3.93904e-03 +/- 3.41379e-05      10.3 +/- 0.17.9 +/- 0.0
2      3.70660e-02 +/- 3.05544e-06      405798   282676   123122   567234   383130   184104   2.97143e-02 +/- 6.44830e-05      80.2 +/- 0.271.5 +/- 0.1
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 
Total      1.01881e-01 +/- 4.09598e-06      430691   303896   126795   996984   739917   257067   3.73718e-02 +/- 1.05284e-04   

Before matching: total cross section = 1.018806e-01 +- 4.095980e-06 pb
After matching: total cross section = 3.737180e-02 +- 1.052837e-04 pb
Filter efficiency (taking into account weights)= (36542.9) / (36542.9) = 1.000000e+00 +- 0.000000e+00
Filter efficiency (event-level)= (430691) / (430691) = 1.000000e+00 +- 0.000000e+00
After filter: final cross section = 3.737180e-02 +- 1.052837e-04 pb

W+Jets

Inclusive

Overall cross-section summary 
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Process      xsec_before [pb]      passed   nposw   nnegw   tried   nposw   nnegw    xsec_match [pb]         accepted [%]    event_eff [%]
0      3.37562e+04 +/- 9.40504e+01      3216976   2916635   300341   3780325   3441562   338763   2.84634e+04 +/- 7.96609e+01      84.3 +/- 0.085.1 +/- 0.0
1      1.84854e+04 +/- 7.18273e+01      899322   665075   234247   4234504   2973535   1260969   4.65035e+03 +/- 2.02433e+01      25.2 +/- 0.021.2 +/- 0.0
2      8.58801e+03 +/- 6.61631e+01      597447   382604   214843   3994960   2396282   1598678   1.80633e+03 +/- 1.59460e+01      21.0 +/- 0.115.0 +/- 0.0
3      2.50227e+04 +/- 6.87611e+01      2380320   2157347   222973   2797303   2547251   250052   2.10706e+04 +/- 5.82635e+01      84.2 +/- 0.085.1 +/- 0.0
4      1.36064e+04 +/- 6.12284e+01      663681   492231   171450   3124169   2197390   926779   3.43509e+03 +/- 1.73048e+01      25.2 +/- 0.121.2 +/- 0.0
5      6.20831e+03 +/- 6.05074e+01      415027   267634   147393   2873095   1731653   1141442   1.26479e+03 +/- 1.38693e+01      20.4 +/- 0.114.4 +/- 0.0
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 
Total      1.05667e+05 +/- 1.74701e+02      8172773   6881526   1291247   20804356   15287673   5516683   6.04553e+04 +/- 1.03193e+02      57.2 +/- 0.0   39.3 +/- 0.0
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Before matching: total cross section = 1.056670e+05 +- 1.747007e+02 pb
After matching: total cross section = 6.045529e+04 +- 1.031933e+02 pb
Filter efficiency (taking into account weights)= (1.2628e+12) / (1.2628e+12) = 1.000000e+00 +- 0.000000e+00
Filter efficiency (event-level)= (8.17277e+06) / (8.17277e+06) = 1.000000e+00 +- 0.000000e+00
After filter: final cross section = 6.045529e+04 +- 1.031933e+02 pb
0-50
Overall cross-section summary 
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Process      xsec_before [pb]      passed   nposw   nnegw   tried   nposw   nnegw    xsec_match [pb]         accepted [%]    event_eff [%]
0      3.17664e+04 +/- 8.91173e-01      2474393   2242226   232167   2807764   2541317   266447   2.80685e+04 +/- 7.61010e+00      88.4 +/- 0.088.1 +/- 0.0
1      1.60799e+04 +/- 6.49438e-01      556106   395487   160619   3489919   2348466   1141453   3.12899e+03 +/- 9.15196e+00      19.5 +/- 0.115.9 +/- 0.0
2      5.16934e+03 +/- 4.88610e-01      250487   160408   90079   2646611   1573715   1072896   7.25935e+02 +/- 4.97560e+00      14.0 +/- 0.19.5 +/- 0.0
3      2.33293e+04 +/- 6.57432e-01      1834092   1661743   172349   2084945   1887508   197437   2.05592e+04 +/- 6.51044e+00      88.1 +/- 0.088.0 +/- 0.0
4      1.18733e+04 +/- 5.10570e-01      413940   295307   118633   2604861   1753052   851809   2.32756e+03 +/- 7.81424e+00      19.6 +/- 0.115.9 +/- 0.0
5      3.60523e+03 +/- 4.04315e-01      174522   112367   62155   1911171   1141820   769351   4.86036e+02 +/- 3.89857e+00      13.5 +/- 0.19.1 +/- 0.0
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 
Total      9.18234e+04 +/- 1.52022e+00      5703540   4867538   836002   15545271   11245878   4299393   5.32908e+04 +/- 2.74875e+01      58.0 +/- 0.0   36.7 +/- 0.0
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Before matching: total cross section = 9.182338e+04 +- 1.520219e+00 pb
After matching: total cross section = 5.329077e+04 +- 2.748747e+01 pb
Filter efficiency (taking into account weights)= (8.04484e+11) / (8.04484e+11) = 1.000000e+00 +- 0.000000e+00
Filter efficiency (event-level)= (5.70354e+06) / (5.70354e+06) = 1.000000e+00 +- 0.000000e+00
After filter: final cross section = 5.329077e+04 +- 2.748747e+01 pb
50-100
Overall cross-section summary 
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Process      xsec_before [pb]      passed   nposw   nnegw   tried   nposw   nnegw    xsec_match [pb]         accepted [%]    event_eff [%]
0      1.22697e+03 +/- 1.88638e-01      516   515   1   71522   71486   36   8.82621e+00 +/- 3.88658e-01      0.7 +/- 0.0   0.7 +/- 0.0
1      1.84923e+03 +/- 2.90571e-01      164031   117876   46155   254748   181169   73579   1.23274e+03 +/- 4.16334e+00      66.7 +/- 0.264.4 +/- 0.1
2      1.34312e+03 +/- 3.62504e-01      126836   80898   45938   427151   257318   169833   5.36717e+02 +/- 4.70101e+00      40.0 +/- 0.329.7 +/- 0.1
3      8.93135e+02 +/- 1.56848e-01      381   381   0   52370   52369   1   6.49882e+00 +/- 3.31736e-01      0.7 +/- 0.0   0.7 +/- 0.0
4      1.34484e+03 +/- 2.35937e-01      119836   86533   33303   184525   132044   52481   8.99722e+02 +/- 3.47101e+00      66.9 +/- 0.364.9 +/- 0.1
5      9.47167e+02 +/- 2.77636e-01      88562   56735   31827   302542   182846   119696   3.73611e+02 +/- 3.84801e+00      39.4 +/- 0.429.3 +/- 0.1
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 
Total      7.60446e+03 +/- 6.39355e-01      500162   342938   157224   1292858   877232   415626   3.05946e+03 +/- 9.13115e+00      40.2 +/- 0.138.7 +/- 0.0
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Before matching: total cross section = 7.604461e+03 +- 6.393545e-01 pb
After matching: total cross section = 3.059459e+03 +- 9.131153e+00 pb
Filter efficiency (taking into account weights)= (3.9016e+09) / (3.9016e+09) = 1.000000e+00 +- 0.000000e+00
Filter efficiency (event-level)= (500162) / (500162) = 1.000000e+00 +- 0.000000e+00
After filter: final cross section = 3.059459e+03 +- 9.131153e+00 pb
100-250
Overall cross-section summary 
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Process      xsec_before [pb]      passed   nposw   nnegw   tried   nposw   nnegw    xsec_match [pb]         accepted [%]    event_eff [%]
0      2.57382e+02 +/- 6.08112e-03      249   249   0   1154187   1153438   749   5.55971e-02 +/- 3.52301e-03      0.0 +/- 0.0   0.0 +/- 0.0
1      3.91124e+02 +/- 9.74672e-03      1426446   1083105   343341   3636737   2694788   941949   1.65067e+02 +/- 2.08195e-01      42.2 +/- 0.139.2 +/- 0.0
2      3.16475e+02 +/- 1.26497e-02      3522918   2277916   1245002   7154034   4395154   2758880   1.99775e+02 +/- 2.68535e-01      63.1 +/- 0.149.2 +/- 0.0
3      1.74359e+02 +/- 5.36306e-03      244   244   0   787721   787706   15   5.40179e-02 +/- 3.45767e-03      0.0 +/- 0.0   0.0 +/- 0.0
4      2.59819e+02 +/- 7.98490e-03      981999   748367   233632   2461541   1826279   635262   1.12289e+02 +/- 1.68024e-01      43.2 +/- 0.139.9 +/- 0.0
5      2.04083e+02 +/- 1.02053e-02      2328555   1512202   816353   4742443   2932258   1810185   1.26562e+02 +/- 2.04613e-01      62.0 +/- 0.149.1 +/- 0.0
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 
Total      1.60324e+03 +/- 2.21057e-02      8260411   5622083   2638328   19936663   13789623   6147040   6.25932e+02 +/- 4.62051e-01      39.0 +/- 0.0   41.4 +/- 0.0
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Before matching: total cross section = 1.603242e+03 +- 2.210568e-02 pb
After matching: total cross section = 6.259319e+02 +- 4.620506e-01 pb
Filter efficiency (taking into account weights)= (1.22684e+10) / (1.22684e+10) = 1.000000e+00 +- 0.000000e+00
Filter efficiency (event-level)= (8.26041e+06) / (8.26041e+06) = 1.000000e+00 +- 0.000000e+00
After filter: final cross section = 6.259319e+02 +- 4.620506e-01 pb
250-400
Overall cross-section summary 
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Process      xsec_before [pb]      passed   nposw   nnegw   tried   nposw   nnegw    xsec_match [pb]         accepted [%]    event_eff [%]
0      9.36774e+00 +/- 5.63704e-04      6   6   0   147807   147681   126   3.80014e-04 +/- 1.55141e-04      0.0 +/- 0.0   0.0 +/- 0.0
1      1.39975e+01 +/- 9.47381e-04      85385   68667   16718   442639   332007   110632   3.28517e+00 +/- 1.66944e-02      23.5 +/- 0.119.3 +/- 0.1
2      1.28160e+01 +/- 1.29656e-03      541853   359590   182263   866318   548995   317323   9.80993e+00 +/- 2.59621e-02      76.5 +/- 0.262.5 +/- 0.1
3      5.53669e+00 +/- 4.42425e-04      6   6   0   87407   87404   3   3.79994e-04 +/- 1.55132e-04      0.0 +/- 0.0   0.0 +/- 0.0
4      8.26573e+00 +/- 6.36944e-04      51877   41829   10048   266127   200471   65656   1.94847e+00 +/- 1.25975e-02      23.6 +/- 0.219.5 +/- 0.1
5      7.05525e+00 +/- 8.89948e-04      322123   215200   106923   513109   327773   185336   5.36308e+00 +/- 1.77953e-02      76.0 +/- 0.362.8 +/- 0.1
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 
Total      5.70389e+01 +/- 2.07119e-03      1001250   685298   315952   2323407   1644331   679076   2.18265e+01 +/- 4.48253e-02      38.3 +/- 0.143.1 +/- 0.0
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Before matching: total cross section = 5.703890e+01 +- 2.071187e-03 pb
After matching: total cross section = 2.182654e+01 +- 4.482527e-02 pb
Filter efficiency (taking into account weights)= (4.97311e+07) / (4.97311e+07) = 1.000000e+00 +- 0.000000e+00
Filter efficiency (event-level)= (1.00125e+06) / (1.00125e+06) = 1.000000e+00 +- 0.000000e+00
After filter: final cross section = 2.182654e+01 +- 4.482527e-02 pb
400-600
Overall cross-section summary 
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Process      xsec_before [pb]      passed   nposw   nnegw   tried   nposw   nnegw    xsec_match [pb]         accepted [%]    event_eff [%]
0      1.24546e+00 +/- 6.76286e-05      1   1   0   152937   152718   219   8.03279e-06 +/- 8.03277e-06      0.0 +/- 0.0   0.0 +/- 0.0
1      1.78900e+00 +/- 1.00152e-04      55004   45624   9380   440705   332794   107911   2.88316e-01 +/- 1.75612e-03      16.1 +/- 0.112.5 +/- 0.0
2      1.64070e+00 +/- 1.31902e-04      563279   381421   181858   832033   540326   291707   1.31689e+00 +/- 2.91660e-03      80.3 +/- 0.267.7 +/- 0.1
3      6.52390e-01 +/- 4.72357e-05      3   3   0   81957   81949   8   2.40302e-05 +/- 1.38736e-05      0.0 +/- 0.0   0.0 +/- 0.0
4      9.06592e-01 +/- 6.37482e-05      30974   25739   5235   238112   180018   58094   1.52461e-01 +/- 1.22860e-03      16.8 +/- 0.113.0 +/- 0.1
5      7.50193e-01 +/- 8.09262e-05      302452   205310   97142   443572   289915   153657   5.95559e-01 +/- 1.75779e-03      79.4 +/- 0.268.2 +/- 0.1
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 
Total      6.98433e+00 +/- 2.11769e-04      951713   658098   293615   2189316   1577720   611596   2.63515e+00 +/- 5.33929e-03      37.7 +/- 0.143.5 +/- 0.0
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Before matching: total cross section = 6.984332e+00 +- 2.117693e-04 pb
After matching: total cross section = 2.635150e+00 +- 5.339293e-03 pb
Filter efficiency (taking into account weights)= (5.59965e+06) / (5.59965e+06) = 1.000000e+00 +- 0.000000e+00
Filter efficiency (event-level)= (951713) / (951713) = 1.000000e+00 +- 0.000000e+00
After filter: final cross section = 2.635150e+00 +- 5.339293e-03 pb
600-INF
Overall cross-section summary 
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Process      xsec_before [pb]      passed   nposw   nnegw   tried   nposw   nnegw    xsec_match [pb]         accepted [%]    event_eff [%]
0      2.01638e-01 +/- 1.21498e-05      0   0   0   176459   176071   388   0.00000e+00 +/- 0.00000e+00      0.0 +/- 0.0   0.0 +/- 0.0
1      2.85092e-01 +/- 1.65024e-05      40780   34853   5927   475915   365690   110225   3.22822e-02 +/- 2.16559e-04      11.3 +/- 0.18.6 +/- 0.0
2      2.85576e-01 +/- 2.45580e-05      624569   430404   194165   872594   582511   290083   2.30703e-01 +/- 4.20430e-04      80.8 +/- 0.171.6 +/- 0.0
3      9.47198e-02 +/- 7.71696e-06      3   3   0   83919   83913   6   3.37700e-06 +/- 1.94974e-06      0.0 +/- 0.0   0.0 +/- 0.0
4      1.36680e-01 +/- 1.05637e-05      20454   17565   2889   233259   180698   52561   1.56548e-02 +/- 1.46381e-04      11.5 +/- 0.18.8 +/- 0.1
5      1.18122e-01 +/- 1.37255e-05      299321   207984   91337   416080   280494   135586   9.50865e-02 +/- 2.40760e-04      80.5 +/- 0.271.9 +/- 0.1
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 
Total      1.12183e+00 +/- 3.71830e-05      985127   690809   294318   2258226   1669377   588849   4.11670e-01 +/- 7.81417e-04      36.7 +/- 0.143.6 +/- 0.0
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Before matching: total cross section = 1.121828e+00 +- 3.718297e-05 pb
After matching: total cross section = 4.116702e-01 +- 7.814174e-04 pb
Filter efficiency (taking into account weights)= (915270) / (915270) = 1.000000e+00 +- 0.000000e+00
Filter efficiency (event-level)= (985127) / (985127) = 1.000000e+00 +- 0.000000e+00
After filter: final cross section = 4.116702e-01 +- 7.814174e-04 pb

DY Jet-binned

0Jet

Overall cross-section summary 
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Process      xsec_before [pb]      passed   nposw   nnegw   tried   nposw   nnegw    xsec_match [pb]         accepted [%]    event_eff [%]
0      5.79634e+03 +/- 7.08003e+00      8057944   7321401   736543   9711010   8867978   843032   4.75618e+03 +/- 5.87081e+00      82.1 +/- 0.083.0 +/- 0.0
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 
Total      5.79634e+03 +/- 7.08003e+00      8057944   7321401   736543   9711010   8867978   843032   4.75618e+03 +/- 5.87081e+00      82.1 +/- 0.083.0 +/- 0.0
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Before matching: total cross section = 5.796342e+03 +- 7.080032e+00 pb
After matching: total cross section = 4.756180e+03 +- 5.870813e+00 pb
Filter efficiency (taking into account weights)= (4.61668e+10) / (4.61668e+10) = 1.000000e+00 +- 0.000000e+00
Filter efficiency (event-level)= (8.05794e+06) / (8.05794e+06) = 1.000000e+00 +- 0.000000e+00
After filter: final cross section = 4.756180e+03 +- 5.870813e+00 pb
1Jet
Overall cross-section summary 
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Process      xsec_before [pb]      passed   nposw   nnegw   tried   nposw   nnegw    xsec_match [pb]         accepted [%]    event_eff [%]
0      3.41831e+03 +/- 7.18338e+00      6070688   4412245   1658443   30389680   20511817   9877863   8.85216e+02 +/- 1.99335e+00      25.9 +/- 0.0   20.0 +/- 0.0
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 
Total      3.41831e+03 +/- 7.18338e+00      6070688   4412245   1658443   30389680   20511817   9877863   8.85216e+02 +/- 1.99335e+00      25.9 +/- 0.0   20.0 +/- 0.0
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Before matching: total cross section = 3.418309e+03 +- 7.183384e+00 pb
After matching: total cross section = 8.852159e+02 +- 1.993352e+00 pb
Filter efficiency (taking into account weights)= (2.71669e+10) / (2.71669e+10) = 1.000000e+00 +- 0.000000e+00
Filter efficiency (event-level)= (6.07069e+06) / (6.07069e+06) = 1.000000e+00 +- 0.000000e+00
After filter: final cross section = 8.852159e+02 +- 1.993352e+00 pb
2Jet
Overall cross-section summary 
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Process      xsec_before [pb]      passed   nposw   nnegw   tried   nposw   nnegw    xsec_match [pb]         accepted [%]    event_eff [%]
0      1.61640e+03 +/- 2.54188e-02      4854765   3133174   1721591   34259366   20470445   13788921   3.41492e+02 +/- 5.03585e-01   21.1 +/- 0.0   14.2 +/- 0.0
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 
Total      1.61640e+03 +/- 2.54188e-02      4854765   3133174   1721591   34259366   20470445   13788921   3.41492e+02 +/- 5.03585e-01   21.1 +/- 0.0   14.2 +/- 0.0
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Before matching: total cross section = 1.616401e+03 +- 2.541883e-02 pb
After matching: total cross section = 3.414921e+02 +- 5.035852e-01 pb
Filter efficiency (taking into account weights)= (1.18756e+10) / (1.18756e+10) = 1.000000e+00 +- 0.000000e+00
Filter efficiency (event-level)= (4.85476e+06) / (4.85476e+06) = 1.000000e+00 +- 0.000000e+00
After filter: final cross section = 3.414921e+02 +- 5.035852e-01 pb

W Jet-binned

0Jet

Overall cross-section summary 
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Process      xsec_before [pb]      passed   nposw   nnegw   tried   nposw   nnegw    xsec_match [pb]         accepted [%]    event_eff [%]
0      3.35333e+04 +/- 5.66205e+01      4580462   4151591   428871   5388282   4902072   486210   2.82697e+04 +/- 4.81462e+01      84.3 +/- 0.085.0 +/- 0.0
1      2.49024e+04 +/- 5.18306e+01      3395135   3076116   319019   3992670   3632340   360330   2.09836e+04 +/- 4.40098e+01      84.3 +/- 0.085.0 +/- 0.0
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 
Total      5.84358e+04 +/- 7.67612e+01      7975597   7227707   747890   9380952   8534412   846540   4.92533e+04 +/- 6.52307e+01      84.3 +/- 0.085.0 +/- 0.0
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Before matching: total cross section = 5.843579e+04 +- 7.676123e+01 pb
After matching: total cross section = 4.925332e+04 +- 6.523067e+01 pb
Filter efficiency (taking into account weights)= (4.62904e+11) / (4.62904e+11) = 1.000000e+00 +- 0.000000e+00
Filter efficiency (event-level)= (7.9756e+06) / (7.9756e+06) = 1.000000e+00 +- 0.000000e+00
After filter: final cross section = 4.925332e+04 +- 6.523067e+01 pb
1Jet
Overall cross-section summary 
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Process      xsec_before [pb]      passed   nposw   nnegw   tried   nposw   nnegw    xsec_match [pb]         accepted [%]    event_eff [%]
0      1.93180e+04 +/- 5.70263e+01      4287308   3146495   1140813   22415163   15285423   7129740   4.75078e+03 +/- 1.47142e+01      24.6 +/- 0.0   19.1 +/- 0.0
1      1.43407e+04 +/- 4.36705e+01      3154750   2321558   833192   16623277   11338223   5285054   3.52612e+03 +/- 1.13991e+01      24.6 +/- 0.0   19.0 +/- 0.0
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 
Total      3.36587e+04 +/- 7.18270e+01      7442058   5468053   1974005   39038440   26623646   12414794   8.27690e+03 +/- 1.86129e+01   24.6 +/- 0.0   19.1 +/- 0.0
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Before matching: total cross section = 3.365874e+04 +- 7.182700e+01 pb
After matching: total cross section = 8.276900e+03 +- 1.861292e+01 pb
Filter efficiency (taking into account weights)= (3.24712e+11) / (3.24712e+11) = 1.000000e+00 +- 0.000000e+00
Filter efficiency (event-level)= (7.44206e+06) / (7.44206e+06) = 1.000000e+00 +- 0.000000e+00
After filter: final cross section = 8.276900e+03 +- 1.861292e+01 pb
2Jet
Overall cross-section summary 
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Process      xsec_before [pb]      passed   nposw   nnegw   tried   nposw   nnegw    xsec_match [pb]         accepted [%]    event_eff [%]
0      7.93043e+03 +/- 2.10351e-01      4436925   2862527   1574398   31975208   19098914   12876294   1.64168e+03 +/- 2.53982e+00   20.7 +/- 0.0   13.9 +/- 0.0
1      5.62396e+03 +/- 1.78820e-01      3095401   2005765   1089636   23115460   13867242   9248218   1.11547e+03 +/- 2.02931e+00      19.8 +/- 0.0   13.4 +/- 0.0
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 
Total      1.35544e+04 +/- 2.76087e-01      7532326   4868292   2664034   55090668   32966156   22124512   2.75584e+03 +/- 3.24794e+00   20.3 +/- 0.0   13.7 +/- 0.0
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Before matching: total cross section = 1.355439e+04 +- 2.760873e-01 pb
After matching: total cross section = 2.755843e+03 +- 3.247944e+00 pb
Filter efficiency (taking into account weights)= (1.56321e+11) / (1.56321e+11) = 1.000000e+00 +- 0.000000e+00
Filter efficiency (event-level)= (7.53233e+06) / (7.53233e+06) = 1.000000e+00 +- 0.000000e+00
After filter: final cross section = 2.755843e+03 +- 3.247944e+00 pb
July 31, 2017
Repeating using at least one 45GeV muon or electron:

GEN level Pt-binned / Inclusive ratios:

5-50: 0.929913 +- 0.00178124
50-100: 0.912153 +- 0.00305501
100-250: 0.876003 +- 0.00509665
250-400: 0.827506 +- 0.0212155
400-600: 0.73945 +- 0.0484175
600-inf: 0.815384 +- 0.146192

First scale GenXsecAnalyzer xsecs by the correction factors WSystemPt ratios, inclusive / Pt-binned:

5-50: 1.0753694163 +- 0.00178124
50-100: 1.0963073081 +- 0.00305501
100-250: 1.141548602 +- 0.00509665
250-400: 1.2084504523 +- 0.0212155
400-600: 1.3523564812 +- 0.0484175
600-inf: 1.2264160199 +- 0.146192

This gives:

0-50: 57307.3 +- 27.4875
50-100: 3361.23 +- 6.45779
100-250: 715.829 +- 1.32893
250-400: 26.3784 +- 0.0496185
400-600: 3.56366 +- 0.048711
600-INF: 0.503023 +- 0.146194

Total: 61414.804083

Scaling the total to the NNLO theory cross section of 61526.7/61414.804083=1.0018219698, this finally gives

0-50: 57411.7 +- 27.4875
50-100: 3367.36 +- 6.45779
100-250: 717.133 +- 1.32893
250-400: 26.4265 +- 0.0496185
400-600: 3.57016 +- 0.048711
600-INF: 0.503939 +- 0.146194
July 28, 2017

Using W+Jets GenXsecAnalyzer cross sections:

0-50: 5.329077e+04 +- 2.748747e+01 pb
50-100: 3.065958e+03 +- 6.457792e+00 pb
100-250: 6.270685e+02 +- 1.328923e+00 pb
250-400: 2.182828e+01 +- 4.485424e-02 pb
400-600: 2.635150e+00 +- 5.339293e-03 pb
600-INF: 4.101567e-01 +- 7.805189e-04 pb

Scaled by the correction factors WSystemPt ratios, inclusive / Pt-binned:

5-50: 1.03826 +- 0.00270309
50-100: 1.09899 +- 0.00516425
100-250: 1.05987 +- 0.00896009
250-400: 1.15998 +- 0.0436476
400-600: 1.31571 +- 0.124288
600-inf: 1.25735 +- 0.299175

This gives:

0-50: 55329.7 +- 27.4875
50-100: 3369.46 +- 6.45779
100-250: 664.611 +- 1.32895
250-400: 25.3204 +- 0.0625861
400-600: 3.46709 +- 0.124403
600-INF: 0.515711 +- 0.299176

Total: 59393.074201

Scaling the total to the NNLO theory cross section of 61526.7/59393.074201=1.0359238148, this finally gives

0-50: 57317.3 +- 27.4875
50-100: 3490.5 +- 6.45779
100-250: 688.486 +- 1.32895
250-400: 26.23 +- 0.0625861
400-600: 3.59164 +- 0.124403
600-INF: 0.534237 +- 0.299176

Compared to the old values:

0-50: 57514.15
50-100: 3308.94
100-250: 676.76
250-400: 23.558
400-600: 2.844
600-INF: 0.4427

July 24, 2017

Inclusive W

      munu1 = '(MT_uv>70)*(MT_uv<110)*(((CISV_jet1>0.5426)+(CISV_jet2>0.5426))<1)*(2-0.887973*((1.+(0.0523821*Pt_jet1))/(1.+(0.0460876*Pt_jet1))))'
      munu2 = '(MT_uv>70)*(MT_uv<110)*(((CISV_jet1>0.8484)+(CISV_jet2>0.8484))>=1)*(0.561694*((1.+(0.31439*Pt_jet1))/(1.+(0.17756*Pt_jet1))))'#*(CISV_jet1>CISV_jet2)+(0.901114+(1.40704e-05*(Pt_jet2)))*(CISV_jet2>0.8484)*(CISV_jet1<CISV_jet2))'

Here $(N_1,N_2) = (   164500.0 , 61732.0 )$, $(N_{1,\ttbar},N_{2,\ttbar}) = (  42142.5 \pm 91.2 , 46674.0 \pm 93.9 )$,  $(N_{1,W},N_{2,W}) = (  127611.1 \pm 6784.5 , 11072.3 \pm 1855.2 $, and $(N_{1,0},N_{2,0}) = (  15043.3 \pm 454.2 , 8635.3 \pm 820.4 )$.
\ttbar control region &  61732.0  &  46674.0 $\pm$ 93.9  &  11072.3 $\pm$ 1855.2  &  8635.3 $\pm$ 820.4  &  66381.6 $\pm$ 2030.6 \\ \hline
W control region &  164500.0  &  42142.5 $\pm$ 91.2  &  127611.1 $\pm$ 6784.5  &  15043.3 $\pm$ 454.2  &  184796.9 $\pm$ 6800.3 \\ \hline
MuNu scale factor integrals:
Data: [164500.0, 405.58599581346493] [61732.0, 248.45925219238666]
W: [127611.14428850393, 6784.488958497018] [11072.287881176851, 1855.1574235512671]
TT: [42142.458206498835, 91.22308249925588] [46674.01982133387, 93.89876385824796]
Other: [15043.347132304149, 454.2186179462554] [8635.296680146257, 820.3790067674262]
MuNu: RW  =  0.866 +- 0.052
MuNu: Rtt =  0.932 +- 0.039

W:   255515.618684
Z:   19457.1718851
VV:  5085.77095489
TT:  238396.979491
ST:  23540.1876182
QCD: 20748.7692892
Total Background: 562744.497922 +- 2934.12179341
Data            : 578858.0

Pt-binned with no scale factor....

W:   261431.752217
Z:   19459.3160653
VV:  5085.77095489
TT:  255905.874632
ST:  23540.1876182
QCD: 20748.7692892
Total Background: 586171.670776 +- 2934.12179341
Data            : 607745.0

So, in order to normalize the pt-binned to the final mc counts found in inclusive, we would need the following scale factors (errors taken from inclusive...)

MuNu: RW = 0.9773702564 +- 0.052

MuNu: Rtt = 0.9315807221 +- 0.039

July 20, 2017
W+Jets control region selections:
      munu1 = '(MT_uv>70)*(MT_uv<150)*(((CISV_jet1>0.5426)+(CISV_jet2>0.5426))<1)*(2-0.887973*((1.+(0.0523821*Pt_jet1))/(1.+(0.0460876*Pt_jet1))))'
      munu2 = '(MT_uv>70)*(MT_uv<150)*(((CISV_jet1>0.8484)+(CISV_jet2>0.8484))>=1)*(0.561694*((1.+(0.31439*Pt_jet1))/(1.+(0.17756*Pt_jet1))))'#*(CISV_jet1>CISV_jet2)+(0.901114+(1.40704e-05*(Pt_jet2)))*(CISV_jet2>0.8484)*(CISV_jet1<CISV_jet2))'

Inclusive W:

Here $(N_1,N_2) = (   256839.0 , 105975.0 )$, $(N_{1,\ttbar},N_{2,\ttbar}) = (  65828.9 \pm 113.9 , 80012.9 \pm 122.9 )$,  $(N_{1,W},N_{2,W}) = (  187179.2 \pm 8254.1 , 18446.7 \pm 2248.7 $, and $(N_{1,0},N_{2,0}) = (  23825.7 \pm 507.8 , 12785.4 \pm 832.5 )$.
\ttbar control region &  105975.0  &  80012.9 $\pm$ 122.9  &  18446.7 $\pm$ 2248.7  &  12785.4 $\pm$ 832.5  &  111245.0 $\pm$ 2401.0 \\ \hline
W control region &  256839.0  &  65828.9 $\pm$ 113.9  &  187179.2 $\pm$ 8254.1  &  23825.7 $\pm$ 507.8  &  276833.8 $\pm$ 8270.5 \\ \hline
MuNu scale factor integrals:
Data: [256839.0, 506.7928570925206] [105975.0, 325.5380162131606]
W: [187179.17696171987, 8254.128334309595] [18446.657762621828, 2248.6677520997164]
TT: [65828.92233397362, 113.91894692377295] [80012.94029446109, 122.86615750683261]
Other: [23825.741147071705, 507.79143653020816] [12785.355368128372, 832.5368840769432]
MuNu: RW  =  0.912 +- 0.044
MuNu: Rtt =  0.954 +- 0.03

Pt-binned W:

Here $(N_1,N_2) = (   256839.0 , 105975.0 )$, $(N_{1,\ttbar},N_{2,\ttbar}) = (  65828.9 \pm 113.9 , 80012.9 \pm 122.9 )$,  $(N_{1,W},N_{2,W}) = (  162105.3 \pm 1403.4 , 11315.1 \pm 389.8 $, and $(N_{1,0},N_{2,0}) = (  23825.7 \pm 507.8 , 12785.4 \pm 832.5 )$.
\ttbar control region &  105975.0  &  80012.9 $\pm$ 122.9  &  11315.1 $\pm$ 389.8  &  12785.4 $\pm$ 832.5  &  104113.4 $\pm$ 927.4 \\ \hline
W control region &  256839.0  &  65828.9 $\pm$ 113.9  &  162105.3 $\pm$ 1403.4  &  23825.7 $\pm$ 507.8  &  251759.9 $\pm$ 1496.8 \\ \hline
MuNu scale factor integrals:
Data: [256839.0, 506.7928570925206] [105975.0, 325.5380162131606]
W: [162105.27232993176, 1403.371323281884] [11315.058233421902, 389.7778608884275]
TT: [65828.92233397362, 113.91894692377295] [80012.94029446109, 122.86615750683261]
Other: [23825.741147071705, 507.79143653020816] [12785.355368128372, 832.5368840769432]
MuNu: RW  =  1.023 +- 0.01
MuNu: Rtt =  1.02 +- 0.007
July 10, 2017
70-110, no btag veto, MT>50
inclusive: 161706.9116677688
pt-binned: 137611.404031978
inclusive / pt-binned: 1.175098189

70-110, with btag veto, MT>50

inclusive: 122987.17653367642 +- 6630.414385918211
pt-binned: 103591.418126031 +- 925.8817939827576
inclusive / pt-binned: 1.187 +- 0.065

July 7, 2017
nJet-binned amc@NLO W_Jets 0Jet: 50279.20 1Jet: 8434.257 2Jet: 2813.243

Total:

61526.7

July 2, 2017
Pt-binned amc@NLO V+Jets, Powheg TTBar. 100<mt<150 with btag requirement for munujj control regions, no btag SF
Using Data-driven TTbar
MuMu scale factor integrals:
Data: [46413.0, 215.43676566454482] [21155.0, 145.4475850607359]
Z: [41951.642266830255, 120.06449153002006] [6115.130857543708, 133.6502008751061]
TT: [640.0248074207631, 22.721830535175798] [13251.753420236892, 50.52251049530382]
Other: [908.3107922344126, 20.522530537663904] [1121.64813062402, 40.31262104904967]
MuMu: RZ  =  1.069 +- 0.006
MuMu: Rtt =  1.000 +- 0.023

Here $(N_1,N_2) = (   123954.0 , 58933.0 )$, $(N_{1,\ttbar},N_{2,\ttbar}) = (  31380.8 \pm 78.2 , 45356.2 \pm 93.6 )$,  $(N_{1,W},N_{2,W}) = (  74723.4 \pm 1135.6 , 5836.4 \pm 333.4 $, and $(N_{1,0},N_{2,0}) = (  11576.6 \pm 272.1 , 6028.9 \pm 180.1 )$.
\ttbar control region &  58933.0  &  45356.2 $\pm$ 93.6  &  5836.4 $\pm$ 333.4  &  6028.9 $\pm$ 180.1  &  57221.5 $\pm$ 390.4 \\ \hline
W control region &  123954.0  &  31380.8 $\pm$ 78.2  &  74723.4 $\pm$ 1135.6  &  11576.6 $\pm$ 272.1  &  117680.8 $\pm$ 1170.4 \\ \hline
MuNu scale factor integrals:
Data: [123954.0, 352.07101556362176] [58933.0, 242.7611995356754]
W: [74723.38932297018, 1135.591541928535] [5836.395268618182, 333.43379689650357]
TT: [31380.787476639696, 78.24670762369087] [45356.182583886, 93.57698444313503]
Other: [11576.615584428617, 272.12513648291053] [6028.882051561296, 180.12675213249446]
MuNu: RW  =  1.072 +- 0.018
MuNu: Rtt =  1.028 +- 0.011

Pt-binned amc@NLO V+Jets, Powheg TTBar. 100<mt<150 with btag requirement for munujj control regions, with btag SF

Using Data-driven TTbar
MuMu scale factor integrals:
Data: [46413.0, 215.43676566454482] [21155.0, 145.4475850607359]
Z: [41951.642266830255, 120.06449153002006] [6115.130857543708, 133.6502008751061]
TT: [640.0248074207631, 22.721830535175798] [13251.753420236892, 50.52251049530382]
Other: [908.3107922344126, 20.522530537663904] [1121.64813062402, 40.31262104904967]
MuMu: RZ  =  1.069 +- 0.006
MuMu: Rtt =  1.000 +- 0.023
Here $(N_1,N_2) = (   123954.0 , 58933.0 )$, $(N_{1,\ttbar},N_{2,\ttbar}) = (  31380.8 \pm 78.2 , 40957.9 \pm 84.5 )$,  $(N_{1,W},N_{2,W}) = (  74723.4 \pm 1135.6 , 5272.9 \pm 301.1 $, and $(N_{1,0},N_{2,0}) = (  11576.6 \pm 272.1 , 5446.2 \pm 162.7 )$.
\ttbar control region &  58933.0  &  40957.9 $\pm$ 84.5  &  5272.9 $\pm$ 301.1  &  5446.2 $\pm$ 162.7  &  51677.0 $\pm$ 352.6 \\ \hline
W control region &  123954.0  &  31380.8 $\pm$ 78.2  &  74723.4 $\pm$ 1135.6  &  11576.6 $\pm$ 272.1  &  117680.8 $\pm$ 1170.4 \\ \hline
MuNu scale factor integrals:
Data: [123954.0, 352.07101556362176] [58933.0, 242.7611995356754]
W: [74723.38932297018, 1135.591541928535] [5272.872149407107, 301.1476883645443]
TT: [31380.787476639696, 78.24670762369087] [40957.936268760066, 84.50117557702283]
Other: [11576.615584428617, 272.12513648291053] [5446.186998430547, 162.70795379482266]
MuNu: RW  =  1.01 +- 0.017
MuNu: Rtt =  1.176 +- 0.011
June 29, 2017
Jet-binned amc@NLO V+Jets, Powheg TTBar. 70<mt<150 with btag requirement for munujj control regions, no btag SF
Data: 18991.0
   TT: 18987.2753598
    Z: 115.291250093
 Stop: 1055.73200458
    W: 114.692023599
   VV: 222.112157309
  QCD: 4.59877882348
MuMu: Rtt =  [0.9205414391696385, 0.008195960610058221]
Now calculating R_mumu,emu, the ratio of mumu to e,mu events in ttbar MC. 
Should be near 0.5
R_uu,eu =  0.739174212155  +-  0.00355192027551

Using Data-driven TTbar
MuMu scale factor integrals:
Data: [46413.0, 215.43676566454482] [21155.0, 145.4475850607359]
Z: [46939.09811773716, 244.75987914577982] [7000.222563237725, 96.74268088820085]
TT: [640.0248074207631, 22.721830535175798] [13251.753420236892, 50.52251049530382]
Other: [905.472940597972, 20.41928179132559] [1117.8812074894583, 38.05686994233833]
MuMu: RZ  =  0.956 +- 0.007
MuMu: Rtt =  1.000 +- 0.023

Here $(N_1,N_2) = (   246190.0 , 105975.0 )$, $(N_{1,\ttbar},N_{2,\ttbar}) = (  62255.9 \pm 110.3 , 81956.6 \pm 125.9 )$,  $(N_{1,W},N_{2,W}) = (  139733.0 \pm 995.3 , 10410.0 \pm 274.2 $, and $(N_{1,0},N_{2,0}) = (  24120.2 \pm 475.2 , 13216.7 \pm 851.7 )$.
\ttbar control region &  105975.0  &  81956.6 $\pm$ 125.9  &  10410.0 $\pm$ 274.2  &  13216.7 $\pm$ 851.7  &  105583.4 $\pm$ 903.6 \\ \hline
W control region &  246190.0  &  62255.9 $\pm$ 110.3  &  139733.0 $\pm$ 995.3  &  24120.2 $\pm$ 475.2  &  226109.0 $\pm$ 1108.4 \\ \hline
MuNu scale factor integrals:
Data: [246190.0, 496.1753722223625] [105975.0, 325.5380162131606]
W: [139732.95030014843, 995.251403005073] [10410.01891904698, 274.24667404570084]
TT: [62255.88376464463, 110.33433746862897] [81956.6296784314, 125.86212713958699]
Other: [24120.19398545154, 475.2142922193726] [13216.749910836039, 851.7220997278702]
MuNu: RW  =  1.15 +- 0.01
MuNu: Rtt =  0.986 +- 0.006

Jet-binned amc@NLO V+Jets, Powheg TTBar. 80<mt<160 with btag requirement for munujj control regions, with btag SF

Using Data-driven TTbar
MuMu scale factor integrals:
Data: [46413.0, 215.43676566454482] [21155.0, 145.4475850607359]
Z: [46939.09811773716, 244.75987914577982] [7000.222563237725, 96.74268088820085]
TT: [640.0248074207631, 22.721830535175798] [13251.753420236892, 50.52251049530382]
Other: [905.472940597972, 20.41928179132559] [1117.8812074894583, 38.05686994233833]
MuMu: RZ  =  0.956 +- 0.007
MuMu: Rtt =  1.000 +- 0.023

Here $(N_1,N_2) = (   219568.0 , 98446.0 )$, $(N_{1,\ttbar},N_{2,\ttbar}) = (  56318.4 \pm 104.9 , 68859.4 \pm 109.6 )$,  $(N_{1,W},N_{2,W}) = (  123171.6 \pm 933.3 , 8512.1 \pm 235.4 $, and $(N_{1,0},N_{2,0}) = (  21238.9 \pm 338.6 , 9859.8 \pm 288.7 )$.
\ttbar control region &  98446.0  &  68859.4 $\pm$ 109.6  &  8512.1 $\pm$ 235.4  &  9859.8 $\pm$ 288.7  &  87231.3 $\pm$ 388.3 \\ \hline
W control region &  219568.0  &  56318.4 $\pm$ 104.9  &  123171.6 $\pm$ 933.3  &  21238.9 $\pm$ 338.6  &  200729.0 $\pm$ 998.3 \\ \hline
MuNu scale factor integrals:
Data: [219568.0, 468.5808361424953] [98446.0, 313.76105558211015]
W: [123171.63403804091, 933.2975374834309] [8512.110323734478, 235.44027877664095]
TT: [56318.427147758826, 104.90148747485638] [68859.39278845307, 109.59105941580971]
Other: [21238.906164887212, 338.5593192083303] [9859.76257918777, 288.68670119416976]
MuNu: RW  =  1.083 +- 0.01
MuNu: Rtt =  1.153 +- 0.007

Pt-binned amc@NLO W+Jets, Powheg TTBar. 80<mt<160 with btag requirement for munujj control regions, with btag SF

Here $(N_1,N_2) = (   219568.0 , 98446.0 )$, $(N_{1,\ttbar},N_{2,\ttbar}) = (  56318.4 \pm 104.9 , 68859.4 \pm 109.6 )$,  $(N_{1,W},N_{2,W}) = (  134938.5 \pm 1337.0 , 9042.4 \pm 350.7 $, and $(N_{1,0},N_{2,0}) = (  21238.9 \pm 338.6 , 9859.8 \pm 288.7 )$.
\ttbar control region &  98446.0  &  68859.4 $\pm$ 109.6  &  9042.4 $\pm$ 350.7  &  9859.8 $\pm$ 288.7  &  87761.6 $\pm$ 467.2 \\ \hline
W control region &  219568.0  &  56318.4 $\pm$ 104.9  &  134938.5 $\pm$ 1337.0  &  21238.9 $\pm$ 338.6  &  212495.9 $\pm$ 1383.2 \\ \hline
MuNu scale factor integrals:
Data: [219568.0, 468.5808361424953] [98446.0, 313.76105558211015]
W: [134938.53136168382, 1337.0063112658627] [9042.438389840694, 350.67030001036125]
TT: [56318.427147758826, 104.90148747485638] [68859.39278845307, 109.59105941580971]
Other: [21238.906164887212, 338.5593192083303] [9859.76257918777, 288.68670119416976]
MuNu: RW  =  0.987 +- 0.011
MuNu: Rtt =  1.157 +- 0.008

June 26, 2017
Inclusive amc@NLO Z and W and tt
Using Data-driven TTbar
MuMu scale factor integrals:
Data: [46413.0, 215.43676566454482] [21155.0, 145.4475850607359]
Z: [47976.9331022972, 587.3665630400678] [7134.827946275445, 230.35526241280022]
TT: [617.7182132591076, 31.83862440543806] [12935.89602747438, 307.58816166145624]
Other: [902.7527038683652, 19.908489888992566] [1066.9144329555904, 34.66964354537684]
MuMu: RZ  =  0.935 +- 0.012
MuMu: Rtt =  1.000 +- 0.023
Here $(N_1,N_2) = (   246190.0 , 105975.0 )$, $(N_{1,\ttbar},N_{2,\ttbar}) = (  59129.0 \pm 636.8 , 79294.5 \pm 718.1 )$,  $(N_{1,W},N_{2,W}) = (  180772.9 \pm 8050.8 , 18852.2 \pm 2298.4 $, and $(N_{1,0},N_{2,0}) = (  23807.4 \pm 531.6 , 13110.6 \pm 855.3 )$.
\ttbar control region &  105975.0  &  79294.5 $\pm$ 718.1  &  18852.2 $\pm$ 2298.4  &  13110.6 $\pm$ 855.3  &  111257.4 $\pm$ 2555.4 \\ \hline
W control region &  246190.0  &  59129.0 $\pm$ 636.8  &  180772.9 $\pm$ 8050.8  &  23807.4 $\pm$ 531.6  &  263709.3 $\pm$ 8093.4 \\ \hline
MuNu scale factor integrals:
Data: [246190.0, 496.1753722223625] [105975.0, 325.5380162131606]
W: [180772.865831098, 8050.799808522408] [18852.1838195846, 2298.4000796733535]
TT: [59129.04031619615, 636.7814463573036] [79294.52794680286, 718.1232425414987]
Other: [23807.42355721304, 531.6160381366604] [13110.64564301162, 855.3235313205523]
MuNu: RW  =  0.92 +- 0.046
MuNu: Rtt =  0.952 +- 0.032
Inclusive amc@NLO Z and W, PowHeg tt
Using Data-driven TTbar
MuMu scale factor integrals:
Data: [46413.0, 215.43676566454482] [21155.0, 145.4475850607359]
Z: [47976.9331022972, 587.3665630400678] [7134.827946275445, 230.35526241280022]
TT: [617.7182132591076, 31.83862440543806] [13251.753420236892, 50.52251049530382]
Other: [902.7527038683652, 19.908489888992566] [1066.9144329555904, 34.66964354537684]
MuMu: RZ  =  0.936 +- 0.012
MuMu: Rtt =  1.000 +- 0.023
Here $(N_1,N_2) = (   246190.0 , 105975.0 )$, $(N_{1,\ttbar},N_{2,\ttbar}) = (  62255.9 \pm 110.3 , 81956.6 \pm 125.9 )$,  $(N_{1,W},N_{2,W}) = (  180772.9 \pm 8050.8 , 18852.2 \pm 2298.4 $, and $(N_{1,0},N_{2,0}) = (  23807.4 \pm 531.6 , 13110.6 \pm 855.3 )$.
\ttbar control region &  105975.0  &  81956.6 $\pm$ 125.9  &  18852.2 $\pm$ 2298.4  &  13110.6 $\pm$ 855.3  &  113919.5 $\pm$ 2455.6 \\ \hline
W control region &  246190.0  &  62255.9 $\pm$ 110.3  &  180772.9 $\pm$ 8050.8  &  23807.4 $\pm$ 531.6  &  266836.2 $\pm$ 8069.1 \\ \hline
MuNu scale factor integrals:
Data: [246190.0, 496.1753722223625] [105975.0, 325.5380162131606]
W: [180772.865831098, 8050.799808522408] [18852.1838195846, 2298.4000796733535]
TT: [62255.88376464463, 110.33433746862897] [81956.6296784314, 125.86212713958699]
Other: [23807.42355721304, 531.6160381366604] [13110.64564301162, 855.3235313205523]
MuNu: RW  =  0.914 +- 0.045
MuNu: Rtt =  0.923 +- 0.03

June 23, 2017
HT-binned V+Jets, Powheg TTBar. 70<mt<110 with btag requirement for munujj control regions, no btag SF
This is the information for the NOTE table 6:
 Data: 18991.0
   TT: 18987.2753598
    Z: 120.222195769
 Stop: 1055.73200458
    W: 86.7643349359
   VV: 222.112157309
  QCD: 4.59877882348
MuMu: Rtt =  [0.9217526052032834, 0.008065083852843574]
Now calculating R_mumu,emu, the ratio of mumu to e,mu events in ttbar MC. 
Should be near 0.5
R_uu,eu =  0.739174212155  +-  0.00355192027551

Using Data-driven TTbar
MuMu scale factor integrals:
Data: [46413.0, 215.43676566454482] [21155.0, 145.4475850607359]
Z: [41230.22407777266, 88.09507261179085] [5858.558167160638, 37.51637823703914]
TT: [640.4917459983889, 22.41308428779762] [13251.753420236892, 50.52251049530382]
Other: [905.1621469452314, 19.920931509108765] [1105.4965796543884, 34.78116549151136]
MuMu: RZ  =  1.088 +- 0.006
MuMu: Rtt =  1.000 +- 0.023

Here $(N_1,N_2) = (   164500.0 , 61732.0 )$, $(N_{1,\ttbar},N_{2,\ttbar}) = (  41781.7 \pm 90.4 , 47798.6 \pm 96.2 )$,  $(N_{1,W},N_{2,W}) = (  94390.8 \pm 202.9 , 6577.9 \pm 49.9 $, and $(N_{1,0},N_{2,0}) = (  14634.0 \pm 432.8 , 8761.6 \pm 840.2 )$.
\ttbar control region &  61732.0  &  47798.6 $\pm$ 96.2  &  6577.9 $\pm$ 49.9  &  8761.6 $\pm$ 840.2  &  63138.1 $\pm$ 847.1 \\ \hline
W control region &  164500.0  &  41781.7 $\pm$ 90.4  &  94390.8 $\pm$ 202.9  &  14634.0 $\pm$ 432.8  &  150806.6 $\pm$ 486.5 \\ \hline
MuNu scale factor integrals:
Data: [164500.0, 405.58599581346493] [61732.0, 248.45925219238666]
W: [94390.82441464561, 202.8818260236402] [6577.880358628838, 49.92574150154861]
TT: [41781.71154915692, 90.43647612553919] [47798.56031845687, 96.16935546635288]
Other: [14634.02746479587, 432.8035134504714] [8761.63207272386, 840.1537114972962]
MuNu: RW  =  1.168 +- 0.006
MuNu: Rtt =  0.947 +- 0.006

HT-binned V+Jets, amc@NLO TTBar. 70<mt<110 with btag requirement for munujj control regions, no btag SF

Using Data-driven TTbar
MuMu scale factor integrals:
Data: [46413.0, 215.43676566454482] [21155.0, 145.4475850607359]
Z: [41230.22407777266, 88.09507261179085] [5858.558167160638, 37.51637823703914]
TT: [640.4917459983889, 22.41308428779762] [12935.89602747438, 307.58816166145624]
Other: [905.1621469452314, 19.920931509108765] [1105.4965796543884, 34.78116549151136]
MuMu: RZ  =  1.087 +- 0.006
MuMu: Rtt =  1.000 +- 0.023

Here $(N_1,N_2) = (   164500.0 , 61732.0 )$, $(N_{1,\ttbar},N_{2,\ttbar}) = (  39664.0 \pm 520.0 , 46015.9 \pm 546.9 )$,  $(N_{1,W},N_{2,W}) = (  94390.8 \pm 202.9 , 6577.9 \pm 49.9 $, and $(N_{1,0},N_{2,0}) = (  14634.0 \pm 432.8 , 8761.6 \pm 840.2 )$.
\ttbar control region &  61732.0  &  46015.9 $\pm$ 546.9  &  6577.9 $\pm$ 49.9  &  8761.6 $\pm$ 840.2  &  61355.4 $\pm$ 1003.7 \\ \hline
W control region &  164500.0  &  39664.0 $\pm$ 520.0  &  94390.8 $\pm$ 202.9  &  14634.0 $\pm$ 432.8  &  148688.9 $\pm$ 706.3 \\ \hline
MuNu scale factor integrals:
Data: [164500.0, 405.58599581346493] [61732.0, 248.45925219238666]
W: [94390.82441464561, 202.8818260236402] [6577.880358628838, 49.92574150154861]
TT: [39664.02869061077, 520.0178966359646] [46015.888337091325, 546.9233505558276]
Other: [14634.02746479587, 432.8035134504714] [8761.63207272386, 840.1537114972962]
MuNu: RW  =  1.174 +- 0.01
MuNu: Rtt =  0.984 +- 0.014

June 22, 2017
nJet binned V+Jets samples
Z:
0Jet: 4.755470e+03 +- 5.872852e+00 pb
1Jet: 8.864694e+02 +- 1.989031e+00 pb
2Jet: 3.396296e+02 +- 3.969321e-01 pb

Total: 5981.569 +- 6.213 pb

W:
0Jet: 4.925332e+04 +- 6.523067e+01 pb
1Jet: 8.262167e+03 +- 1.848743e+01 pb
2Jet: 2.755843e+03 +- 3.247944e+00 pb

Total: 60271.33 +- 67.88

June 15, 2017
New cross sections on V+Jets stitched samples
Using Data-driven TTbar
MuMu scale factor integrals:
Data: [46413.0, 215.43676566454482] [21155.0, 145.4475850607359]
Z: [41951.642266830255, 120.06449153002006] [6115.130857543708, 133.6502008751061]
TT: [617.8048777852212, 30.671210950968035] [12935.89602747438, 307.58816166145624]
Other: [908.3107922344126, 20.522530537663904] [1121.64813062402, 40.31262104904967]
MuMu: RZ  =  1.069 +- 0.006
MuMu: Rtt =  1.000 +- 0.023

Here $(N_1,N_2) = (   121162.0 , 27169.0 )$, $(N_{1,\ttbar},N_{2,\ttbar}) = (  16904.6 \pm 310.7 , 23439.9 \pm 420.1 )$,  $(N_{1,W},N_{2,W}) = (  99993.6 \pm 901.3 , 667.3 \pm 75.2 $, and $(N_{1,0},N_{2,0}) = (  11650.8 \pm 388.8 , 3045.2 \pm 788.9 )$.
\ttbar control region &  27169.0  &  23439.9 $\pm$ 420.1  &  667.3 $\pm$ 75.2  &  3045.2 $\pm$ 788.9  &  27152.4 $\pm$ 897.0 \\ \hline
W control region &  121162.0  &  16904.6 $\pm$ 310.7  &  99993.6 $\pm$ 901.3  &  11650.8 $\pm$ 388.8  &  128549.0 $\pm$ 1029.6 \\ \hline
MuNu scale factor integrals:
Data: [121162.0, 348.0833233580718] [27169.0, 164.83021567661677]
W: [99993.59428267324, 901.3431178739321] [667.3307450847799, 75.16201733913442]
TT: [16904.606443870165, 310.6628605425999] [23439.85694684364, 420.0895221506239]
Other: [11650.80163664982, 388.7707065936251] [3045.181406152686, 788.9417131387324]
MuNu: RW  =  0.926 +- 0.01
MuNu: Rtt =  1.003 +- 0.02

June 12, 2017
https://twiki.cern.ch/twiki/bin/viewauth/CMS/HowToGenXSecAnalyzer

https://hypernews.cern.ch/HyperNews/CMS/get/generators/3435/1/1/1/1.html

DY cross sections from 10M events 100M for 0-50:

0-50:  5.381340e+03 +- 2.789367e+00 pb
50-100: 3.543900e+02 +- 2.539446e-01 pb
100-250: 8.120819e+01 +- 1.223741e-01 pb
250-400: 2.991468e+00 +- 9.436932e-03 pb
400-650: 3.881616e-01 +- 1.156437e-03 pb
650-INF: 3.737180e-02 +- 1.052837e-04 pb

total: 5820.3551914 +- 2.804

Inclusive NLO MC: 5932.206 +- 9.257314 pb

DY cross section from FEWZ (https://twiki.cern.ch/twiki/bin/viewauth/CMS/StandardModelCrossSectionsat13TeV): 5765.4

WJets cross sections from 10M events:


0-50: 5.329077e+04 +- 2.748747e+01 pb
50-100: 3.065958e+03 +- 6.457792e+00 pb
100-250: 6.270685e+02 +- 1.328923e+00 pb
250-400: 2.182828e+01 +- 4.485424e-02 pb
400-600: 2.635150e+00 +- 5.339293e-03 pb
600-INF: 4.101567e-01 +- 7.805189e-04 pb

total: 57008.6700867

Inclusive NLO MC: 60430 +- 130.2

W inclusive cross section (https://twiki.cern.ch/twiki/bin/view/CMS/SummaryTable1G25ns#W_jets): 61526.7

June 6, 2017
Final version for 2016 data
This is the information for the NOTE table 6:
 Data: 18991.0
   TT: 18730.748574
    Z: 91.3006418003
 Stop: 1055.73200458
    W: 53.8172654579
   VV: 222.112157309
  QCD: 4.59877882348
MuMu: Rtt =  [0.9376795103864503, 0.019396430916091525]
Now calculating R_mumu,emu, the ratio of mumu to e,mu events in ttbar MC. 
Should be near 0.5
R_uu,eu =  0.734148380141  +-  0.0217277059576

MuMu scale factor integrals:
Data: [46413.0, 215.43676566454482] [21155.0, 145.4475850607359]
Z: [44202.083959555115, 123.91595023190625] [6415.956003836131, 137.56147953728546]
TT: [617.8048777852212, 30.671210950968035] [12935.89602747438, 307.58816166145624]
Other: [907.9020277286695, 20.436133187484828] [1117.4369938033278, 39.57833806450579]
MuMu: RZ  =  1.015 +- 0.006
MuMu: Rtt =  1.000 +- 0.023
Here $(N_1,N_2) = (   176534.0 , 42101.0 )$, $(N_{1,\ttbar},N_{2,\ttbar}) = (  24814.7 \pm 377.8 , 35393.2 \pm 519.8 )$,  $(N_{1,W},N_{2,W}) = (  125978.8 \pm 1151.7 , 1975.6 \pm 162.5 $, and $(N_{1,0},N_{2,0}) = (  16359.9 \pm 418.0 , 4099.0 \pm 793.0 )$.
\ttbar control region &  42101.0  &  35393.2 $\pm$ 519.8  &  1975.6 $\pm$ 162.5  &  4099.0 $\pm$ 793.0  &  41467.8 $\pm$ 962.0 \\ \hline
W control region &  176534.0  &  24814.7 $\pm$ 377.8  &  125978.8 $\pm$ 1151.7  &  16359.9 $\pm$ 418.0  &  167153.5 $\pm$ 1282.1 \\ \hline
MuNu scale factor integrals:
Data: [176534.0, 420.15949352597045] [42101.0, 205.1852821232556]
W: [125978.81928624924, 1151.6858337090973] [1975.62635607961, 162.54139696669492]
TT: [24814.723352583682, 377.7568148200116] [35393.160388912445, 519.7611534662469]
Other: [16359.931340065028, 417.95975176053423] [4098.969521688134, 792.9850752642146]
MuNu: RW  =  1.072 +- 0.011
MuNu: Rtt =  1.014 +- 0.017

May 18, 2017
Using MC for TTBar estimate
MuMu scale factor integrals:
Data: [48410.0, 220.02272609891915] [21857.0, 147.8411309480552]
Z: [45022.62620634393, 128.95041549572434] [6464.396482598951, 137.9059079377244]
TT: [602.7790505349576, 61.978291447027125] [13136.046793873962, 306.2892680791171]
Other: [914.1895369282628, 20.338278771029863] [1118.9635737464198, 39.72219599708317]
MuMu: RZ  =  1.041 +- 0.006
MuMu: Rtt =  1.067 +- 0.03
Here $(N_1,N_2) = (   124783.0 , 28320.0 )$, $(N_{1,\ttbar},N_{2,\ttbar}) = (  17243.2 \pm 313.6 , 24423.7 \pm 428.9 )$,  $(N_{1,W},N_{2,W}) = (  91650.8 \pm 849.4 , 1396.6 \pm 126.1 $, and $(N_{1,0},N_{2,0}) = (  11479.7 \pm 387.3 , 3153.0 \pm 789.4 )$.
\ttbar control region &  28320.0  &  24423.7 $\pm$ 428.9  &  1396.6 $\pm$ 126.1  &  3153.0 $\pm$ 789.4  &  28973.3 $\pm$ 907.2 \\ \hline
W control region &  124783.0  &  17243.2 $\pm$ 313.6  &  91650.8 $\pm$ 849.4  &  11479.7 $\pm$ 387.3  &  120373.7 $\pm$ 984.8 \\ \hline
MuNu scale factor integrals:
Data: [124783.0, 353.24637294670134] [28320.0, 168.28547174370104]
W: [91650.76666369906, 849.3815441295234] [1396.5611866567156, 126.08594926604783]
TT: [17243.201176138973, 313.6387322538556] [24423.724914071794, 428.85678510226336]
Other: [11479.694805620402, 387.2512685462302] [3153.04523486428, 789.4218581722478]
MuNu: RW  =  1.054 +- 0.012
MuNu: Rtt =  0.97 +- 0.019

signal1, LQ, M = 1000 GeV, #beta = 1.0 : 127.197118713
signal2, LQ, M = 1400 GeV, #beta = 1.0 : 1.55523612927
W:   51.9190575833
Z:   56291.5953635
VV:  1230.50654252
TT:  15284.1106648
ST:  847.280562427
QCD: 20.2615904902
Total Background: 73725.6737814 +- 21.8835054411
Data            : 73673.0
Signal M=1000    : 169.846636622 +- 0.878623309892

May 5, 2017
Using fully pt-binned VJets, no more stitching
This is the information for the NOTE table 6:
 Data: 20494.0
   TT: 21561.8104293
    Z: 133.746127704
 Stop: 1133.18030726
    W: 60.5101947218
   VV: 236.514115716
  QCD: 7.11493465174
MuMu: Rtt =  [0.8776134259243874, 0.016954437001149878]
Now calculating R_mumu,emu, the ratio of mumu to e,mu events in ttbar MC. 
Should be near 0.5
R_uu,eu =  0.615959840656  +-  0.0174707852575

Using Data-driven TTbar
MuMu scale factor integrals:
Data: [48410.0, 220.02272609891915] [21857.0, 147.8411309480552]
Z: [45022.62620634393, 128.95041549572434] [6464.396482598951, 137.9059079377244]
TT: [591.0334390810278, 26.651333014620025] [13136.046793873962, 306.2892680791171]
Other: [914.1895369282628, 20.338278771029863] [1118.9635737464198, 39.72219599708317]
MuMu: RZ  =  1.041 +- 0.006
MuMu: Rtt =  1.000 +- 0.023

Here $(N_1,N_2) = (   124783.0 , 28320.0 )$, $(N_{1,\ttbar},N_{2,\ttbar}) = (  17243.2 \pm 313.6 , 24423.7 \pm 428.9 )$,  $(N_{1,W},N_{2,W}) = (  91650.8 \pm 849.4 , 1396.6 \pm 126.1 $, and $(N_{1,0},N_{2,0}) = (  11479.7 \pm 387.3 , 3153.0 \pm 789.4 )$.
\ttbar control region &  28320.0  &  24423.7 $\pm$ 428.9  &  1396.6 $\pm$ 126.1  &  3153.0 $\pm$ 789.4  &  28973.3 $\pm$ 907.2 \\ \hline
W control region &  124783.0  &  17243.2 $\pm$ 313.6  &  91650.8 $\pm$ 849.4  &  11479.7 $\pm$ 387.3  &  120373.7 $\pm$ 984.8 \\ \hline
MuNu scale factor integrals:
Data: [124783.0, 353.24637294670134] [28320.0, 168.28547174370104]
W: [91650.76666369906, 849.3815441295234] [1396.5611866567156, 126.08594926604783]
TT: [17243.201176138973, 313.6387322538556] [24423.724914071794, 428.85678510226336]
Other: [11479.694805620402, 387.2512685462302] [3153.04523486428, 789.4218581722478]
MuNu: RW  =  1.054 +- 0.012
MuNu: Rtt =  0.971 +- 0.019

MuMu:
W:   51.9096897819
Z:   56308.8538922
VV:  1230.50654252
TT:  12636.530335
ST:  847.280562427
QCD: 20.2615904902
Total Background: 71095.3426124 +- 21.8835054411
Data            : 73800.0
Signal M=1000    : 169.846636622 +- 0.878623309892

April 28, 2017
Using HLT + SF instead of efficiency for MC
This is the information for the NOTE table 6:
 Data: 20494.0
   TT: 21561.8104293
    Z: 138.325410355
 Stop: 1133.18030726
    W: 199.787144153
   VV: 236.514115716
  QCD: 7.11493465174
MuMu: Rtt =  [0.8709416191874564, 0.01769036006598747]
Now calculating R_mumu,emu, the ratio of mumu to e,mu events in ttbar MC. 
Should be near 0.5
R_uu,eu =  0.615959840656  +-  0.0174707852575

Using Data-driven TTbar
MuMu scale factor integrals:
Data: [48410.0, 220.02272609891915] [21857.0, 147.8411309480552]
Z: [44427.62478945747, 138.813447931543] [6620.006360935535, 85.0590941835109]
TT: [602.865658753738, 19.95328270685092] [13136.046793873962, 306.2892680791171]
Other: [909.7993033811947, 19.858787293546474] [1098.431163797018, 35.392405137003294]
MuMu: RZ  =  1.055 +- 0.006
MuMu: Rtt =  1.000 +- 0.023

Here $(N_1,N_2) = (   124783.0 , 28320.0 )$, $(N_{1,\ttbar},N_{2,\ttbar}) = (  17243.2 \pm 313.6 , 24423.7 \pm 428.9 )$,  $(N_{1,W},N_{2,W}) = (  92061.8 \pm 3313.9 , 1474.9 \pm 460.8 $, and $(N_{1,0},N_{2,0}) = (  11237.8 \pm 377.0 , 3185.4 \pm 788.9 )$.
\ttbar control region &  28320.0  &  24423.7 $\pm$ 428.9  &  1474.9 $\pm$ 460.8  &  3185.4 $\pm$ 788.9  &  29084.0 $\pm$ 1009.3 \\ \hline
W control region &  124783.0  &  17243.2 $\pm$ 313.6  &  92061.8 $\pm$ 3313.9  &  11237.8 $\pm$ 377.0  &  120542.8 $\pm$ 3350.0 \\ \hline
MuNu scale factor integrals:
Data: [124783.0, 353.24637294670134] [28320.0, 168.28547174370104]
W: [92061.80900161105, 3313.920066852806] [1474.8915440934613, 460.776106241045]
TT: [17243.201176138973, 313.6387322538556] [24423.724914071794, 428.85678510226336]
Other: [11237.82972068953, 377.03641176232276] [3185.370747256152, 788.905480563733]
MuNu: RW  =  1.054 +- 0.039
MuNu: Rtt =  0.966 +- 0.027
April 26, 2017
New V stitching, new HLT - why does R_uu,eu change so much?
This is the information for the NOTE table 6:
 Data: 20494.0
   TT: 20214.0665841
    Z: 129.693869955
 Stop: 1060.87376111
    W: 188.28005328
   VV: 219.64142458
  QCD: 6.66346090435
MuMu: Rtt =  [0.934440744597393, 0.018847051330900734]
Now calculating R_mumu,emu, the ratio of mumu to e,mu events in ttbar MC. 
Should be near 0.5
R_uu,eu =  0.663692810231  +-  0.0188024665694

Using Data-driven TTbar
MuMu scale factor integrals:
Data: [48410.0, 220.02272609891915] [21857.0, 147.8411309480552]
Z: [45056.66024792627, 140.76029484634014] [6715.200356571137, 86.27007965508419]
TT: [653.0023499621051, 21.554027883110294] [13334.10136126453, 310.88018299576856]
Other: [922.8128115986717, 20.14791168545524] [1114.8909956455561, 35.878677740949286]
MuMu: RZ  =  1.039 +- 0.006
MuMu: Rtt =  1.000 +- 0.023

Here $(N_1,N_2) = (   124783.0 , 28320.0 )$, $(N_{1,\ttbar},N_{2,\ttbar}) = (  16146.2 \pm 293.8 , 22946.7 \pm 403.1 )$,  $(N_{1,W},N_{2,W}) = (  85423.5 \pm 3082.2 , 1393.7 \pm 438.9 $, and $(N_{1,0},N_{2,0}) = (  10424.6 \pm 350.5 , 2927.2 \pm 694.1 )$.
\ttbar control region &  28320.0  &  22946.7 $\pm$ 403.1  &  1393.7 $\pm$ 438.9  &  2927.2 $\pm$ 694.1  &  27267.7 $\pm$ 914.9 \\ \hline
W control region &  124783.0  &  16146.2 $\pm$ 293.8  &  85423.5 $\pm$ 3082.2  &  10424.6 $\pm$ 350.5  &  111994.2 $\pm$ 3116.0 \\ \hline
MuNu scale factor integrals:
Data: [124783.0, 353.24637294670134] [28320.0, 168.28547174370104]
W: [85423.50611280827, 3082.236937354533] [1393.7454040832943, 438.882303045013]
TT: [16146.165623595627, 293.7915519203512] [22946.706802660323, 403.13195370251293]
Other: [10424.560032763364, 350.478800459631] [2927.233638997058, 694.1387314873359]
MuNu: RW  =  1.144 +- 0.042
MuNu: Rtt =  1.037 +- 0.029

March 27, 2017
New ntuples, should be final version for 2016 data - putting HIP SF back in
This is the information for the NOTE table 6:
 Data: 21131.0
   TT: 21530.2337771
    Z: 145.958065478
 Stop: 1140.66796798
    W: 312.787003219
   VV: 235.015570433
  QCD: 7.4731519955
MuMu: Rtt =  [0.8959075150130142, 0.018449652982407777]
Now calculating R_mumu,emu, the ratio of mumu to e,mu events in ttbar MC. 
Should be near 0.5
R_uu,eu =  0.495057702839  +-  0.0149249589334

Using Data-driven TTbar
MuMu scale factor integrals:
Data: [35820.0, 189.26172354705005] [15884.0, 126.0317420335052]
Z: [35180.73051631004, 104.45786795351732] [7627.113741420818, 154.31890001990405]
TT: [970.5985445909158, 31.23482317435995] [10597.100356189516, 276.13211186633174]
Other: [703.7817154045188, 17.531243647143533] [788.9145644995433, 30.268005194737547]
MuMu: RZ  =  0.978 +- 0.006
MuMu: Rtt =  1.000 +- 0.023
Here $(N_1,N_2) = (   96643.0 , 16010.0 )$, $(N_{1,\ttbar},N_{2,\ttbar}) = (  17706.6 \pm 318.3 , 15017.9 \pm 328.6 )$,  $(N_{1,W},N_{2,W}) = (  68412.5 \pm 2685.5 , 984.2 \pm 304.4 $, and $(N_{1,0},N_{2,0}) = (  9708.1 \pm 375.4 , 1303.7 \pm 167.5 )$.
\ttbar control region &  16010.0  &  15017.9 $\pm$ 328.6  &  984.2 $\pm$ 304.4  &  1303.7 $\pm$ 167.5  &  17305.8 $\pm$ 478.2 \\ \hline
W control region &  96643.0  &  17706.6 $\pm$ 318.3  &  68412.5 $\pm$ 2685.5  &  9708.1 $\pm$ 375.4  &  95827.1 $\pm$ 2730.2 \\ \hline
MuNu scale factor integrals:
Data: [96643.0, 310.87457277815435] [16010.0, 126.53062870309307]
W: [68412.45504569392, 2685.4912288633986] [984.1792928550987, 304.39549161382314]
TT: [17706.558845001902, 318.31782001772416] [15017.885350959732, 328.5512958502095]
Other: [9708.109473183194, 375.4439946021669] [1303.7442653316516, 167.49455342275786]
MuNu: RW  =  1.037 +- 0.042
MuNu: Rtt =  0.911 +- 0.03
March 27, 2017
New ntuples, should be final version for 2016 data
This is the information for the NOTE table 6:
 Data: 21131.0
   TT: 21597.7515289
    Z: 146.403689545
 Stop: 1144.2652053
    W: 313.801577004
   VV: 235.878966678
  QCD: 7.49760467724
MuMu: Rtt =  [0.8928315028998253, 0.018398951998562743]
Now calculating R_mumu,emu, the ratio of mumu to e,mu events in ttbar MC. 
Should be near 0.5
R_uu,eu =  0.496644871013  +-  0.014972800378

Using Data-driven TTbar
MuMu scale factor integrals:
Data: [35820.0, 189.26172354705005] [15884.0, 126.0317420335052]
Z: [35432.67047597055, 105.22565298424797] [7684.608157359099, 155.4886965985726]
TT: [970.8184942695142, 31.2423767962217] [10665.189676148422, 277.9149657675324]
Other: [708.6594267548376, 17.65017904909273] [794.1306972820098, 30.467693508591708]
MuMu: RZ  =  0.971 +- 0.006
MuMu: Rtt =  1.000 +- 0.023
Here $(N_1,N_2) = (   96643.0 , 16010.0 )$, $(N_{1,\ttbar},N_{2,\ttbar}) = (  17765.3 \pm 319.4 , 15064.8 \pm 329.6 )$,  $(N_{1,W},N_{2,W}) = (  68670.7 \pm 2696.2 , 988.3 \pm 305.9 $, and $(N_{1,0},N_{2,0}) = (  9748.5 \pm 377.2 , 1308.1 \pm 168.0 )$.
\ttbar control region &  16010.0  &  15064.8 $\pm$ 329.6  &  988.3 $\pm$ 305.9  &  1308.1 $\pm$ 168.0  &  17361.2 $\pm$ 480.0 \\ \hline
W control region &  96643.0  &  17765.3 $\pm$ 319.4  &  68670.7 $\pm$ 2696.2  &  9748.5 $\pm$ 377.2  &  96184.5 $\pm$ 2741.1 \\ \hline
MuNu scale factor integrals:
Data: [96643.0, 310.87457277815435] [16010.0, 126.53062870309307]
W: [68670.66924823714, 2696.219293605648] [988.2803079019657, 305.8871040459849]
TT: [17765.285776596695, 319.35056674671165] [15064.769451187909, 329.5599824207938]
Other: [9748.528546133795, 377.1514650900505] [1308.1296554529665, 167.9791042404051]
MuNu: RW  =  1.032 +- 0.043
MuNu: Rtt =  0.909 +- 0.031
February 22, 2017
DY inclusive updated to Summer16
This is the information for the NOTE table 6:
 Data: 21086.0
   TT: 19286.8584465
    Z: 165.179853083
 Stop: 1184.40635889
    W: 346.146919502
   VV: 227.072114944
  QCD: 5.32989759593
MuMu: Rtt =  [0.9933118402435823, 0.03220942978552095]
Now calculating R_mumu,emu, the ratio of mumu to e,mu events in ttbar MC. 
Should be near 0.5
R_uu,eu =  0.631969252941  +-  0.0321171483566

Using Data-driven TTbar
MuMu scale factor integrals:
Data: [48617.0, 220.49263026232873] [21967.0, 148.2126850171739]
Z: [47432.817585583594, 358.53676251508716] [10348.115855374423, 379.4639998457297]
TT: [579.7150838291069, 68.72082865537831] [12140.00138713184, 533.7736198930303]
Other: [872.4963217488064, 33.10228935373235] [1151.5456040828335, 34.47719331930303]
MuMu: RZ  =  0.996 +- 0.009
MuMu: Rtt =  1.000 +- 0.023
Here $(N_1,N_2) = (   125387.0 , 28601.0 )$, $(N_{1,\ttbar},N_{2,\ttbar}) = (  17453.6 \pm 469.3 , 23385.4 \pm 744.5 )$,  $(N_{1,W},N_{2,W}) = (  95617.5 \pm 3237.3 , 1284.2 \pm 416.5 $, and $(N_{1,0},N_{2,0}) = (  12220.2 \pm 458.4 , 3403.1 \pm 711.4 )$.
\ttbar control region &  28601.0  &  23385.4 $\pm$ 744.5  &  1284.2 $\pm$ 416.5  &  3403.1 $\pm$ 711.4  &  28072.6 $\pm$ 1110.8 \\ \hline
W control region &  125387.0  &  17453.6 $\pm$ 469.3  &  95617.5 $\pm$ 3237.3  &  12220.2 $\pm$ 458.4  &  125291.3 $\pm$ 3303.1 \\ \hline
MuNu scale factor integrals:
Data: [125387.0, 354.10026828569335] [28601.0, 169.11830178901394]
W: [95617.48787516572, 3237.2886978131974] [1284.1519887711122, 416.5007142160128]
TT: [17453.64347487161, 469.34906948006324] [23385.392903040683, 744.5428864406681]
Other: [12220.163742752055, 458.38430295340964] [3403.058295101123, 711.4341861218201]
MuNu: RW  =  0.998 +- 0.036
MuNu: Rtt =  1.024 +- 0.037
February 13, 2017
Luminosity normtag file updated:

brilcalc lumi -b "STABLE BEAMS" -u /pb -i Leptoquarks/submitJobsWithCrabV2/Cert_271036-284044_13TeV_23Sep2016ReReco_Collisions16_JSON.txt --normtag /afs/cern.ch/user/l/lumipro/public/Normtags/normtag_DATACERT.json --hltpath="HLT_*Mu50*"

#Summary: 
+-----------------------------+-------+------+--------+-------------------+------------------+
| hltpath                     | nfill | nrun | ncms   | totdelivered(/pb) | totrecorded(/pb) |
+-----------------------------+-------+------+--------+-------------------+------------------+
| HLT_Mu50_v2                 | 23    | 66   | 29602  | 2885.992          | 2768.580         |
| HLT_Mu50_v3                 | 19    | 72   | 38302  | 5438.675          | 5218.108         |
| HLT_Mu50_v4                 | 70    | 169  | 116851 | 20116.808         | 19270.930        |
| HLT_Mu50_v5                 | 32    | 86   | 47447  | 8938.448          | 8605.690         |
| HLT_TkMu50_v1               | 11    | 37   | 23075  | 3139.883          | 3016.016         |
| HLT_TkMu50_v2               | 8     | 35   | 15227  | 2298.792          | 2202.091         |
| HLT_TkMu50_v3               | 102   | 255  | 164298 | 29055.256         | 27876.620        |
+-----------------------------+-------+------+--------+-------------------+------------------+
#Check JSON:
#(run,ls) in json but not in results: []
HLT_Mu50_v* total: 35863.308

HLT_TkMu50_v* total: 33094.727

This is the information for the NOTE table 6:
 Data: 20573.0
   TT: 19286.8584465
    Z: 89.8048026196
 Stop: 1130.52502898
    W: 142.135428646
   VV: 222.549072073
  QCD: 3.32330699988
MuMu: Rtt =  [0.9843315028915746, 0.03136753284555493]
Now calculating R_mumu,emu, the ratio of mumu to e,mu events in ttbar MC. 
Should be near 0.5
R_uu,eu =  0.631969252941  +-  0.0321171483566

Using Data-driven TTbar
MuMu scale factor integrals:
Data: [44336.0, 210.5611550120297] [20073.0, 141.6792151305194]
Z: [39216.692638245964, 888.5684002356403] [7917.694719990625, 520.4764232346533]
TT: [579.7150838291069, 68.72082865537831] [12140.00138713184, 533.7736198930303]
Other: [703.6117803153103, 32.33374508857395] [957.577558437986, 44.48968265867713]
MuMu: RZ  =  1.101 +- 0.025
MuMu: Rtt =  1.000 +- 0.023
Here $(N_1,N_2) = (   120379.0 , 28577.0 )$, $(N_{1,\ttbar},N_{2,\ttbar}) = (  17453.6 \pm 469.3 , 23385.4 \pm 744.5 )$,  $(N_{1,W},N_{2,W}) = (  89700.0 \pm 2742.7 , 210.9 \pm 657.8 $, and $(N_{1,0},N_{2,0}) = (  10439.0 \pm 588.5 , 2030.3 \pm 192.6 )$.
\ttbar control region &  28577.0  &  23385.4 $\pm$ 744.5  &  210.9 $\pm$ 657.8  &  2030.3 $\pm$ 192.6  &  25626.6 $\pm$ 1012.0 \\ \hline
W control region &  120379.0  &  17453.6 $\pm$ 469.3  &  89700.0 $\pm$ 2742.7  &  10439.0 $\pm$ 588.5  &  117592.7 $\pm$ 2844.1 \\ \hline
MuNu scale factor integrals:
Data: [120379.0, 346.9567696414065] [28577.0, 169.04733065032408]
W: [89700.00849085685, 2742.665740994883] [210.8947428818363, 657.7752556154802]
TT: [17453.64347487161, 469.34906948006324] [23385.392903040683, 744.5428864406681]
Other: [10439.035163289725, 588.5408846515975] [2030.3144557429555, 192.61824946354707]
MuNu: RW  =  1.007 +- 0.033
MuNu: Rtt =  1.127 +- 0.046

February 9, 2017
Updated single mu HLT efficiencies:
This is the information for the NOTE table 6:
 Data: 20573.0
   TT: 19796.3825069
    Z: 92.1772837475
 Stop: 1160.39146394
    W: 145.890390655
   VV: 228.428417699
  QCD: 3.41110278484
MuMu: Rtt =  [0.9568769109473311, 0.03053583400402399]
Now calculating R_mumu,emu, the ratio of mumu to e,mu events in ttbar MC. 
Should be near 0.5
R_uu,eu =  0.631969252941  +-  0.0321171483566

Using Data-driven TTbar
MuMu scale factor integrals:
Data: [44336.0, 210.5611550120297] [20073.0, 141.6792151305194]
Z: [40252.727020235325, 912.0427768713008] [8126.865953059484, 534.2264728490072]
TT: [595.0301121550887, 70.53630916778859] [12460.718357084197, 547.8749574920619]
Other: [722.1999361984505, 33.187944393939176] [982.8750327333498, 45.665019939244445]
MuMu: RZ  =  1.072 +- 0.025
MuMu: Rtt =  1.000 +- 0.023
Here $(N_1,N_2) = (   120379.0 , 28577.0 )$, $(N_{1,\ttbar},N_{2,\ttbar}) = (  17914.7 \pm 481.7 , 24003.2 \pm 764.2 )$,  $(N_{1,W},N_{2,W}) = (  92069.7 \pm 2815.1 , 216.5 \pm 675.2 $, and $(N_{1,0},N_{2,0}) = (  10714.8 \pm 604.1 , 2084.0 \pm 197.7 )$.
\ttbar control region &  28577.0  &  24003.2 $\pm$ 764.2  &  216.5 $\pm$ 675.2  &  2084.0 $\pm$ 197.7  &  26303.6 $\pm$ 1038.7 \\ \hline
W control region &  120379.0  &  17914.7 $\pm$ 481.7  &  92069.7 $\pm$ 2815.1  &  10714.8 $\pm$ 604.1  &  120699.3 $\pm$ 2919.2 \\ \hline
MuNu scale factor integrals:
Data: [120379.0, 346.9567696414065] [28577.0, 169.04733065032408]
W: [92069.72114660504, 2815.122029754103] [216.46620212299013, 675.1524930772712]
TT: [17914.73729779525, 481.74842649934743] [24003.192861527856, 764.2123684221086]
Other: [10714.81566940608, 604.089074738185] [2083.9517066403628, 197.70687666839785]
MuNu: RW  =  0.979 +- 0.032
MuNu: Rtt =  1.096 +- 0.045
February 7, 2017
Adding electron RECO+HEEP SF, and using SF on both muons in TTBar estimate instead of just 1.
This is the information for the NOTE table 6:
 Data: 20573.0
   TT: 19866.288558
    Z: 92.6422018402
 Stop: 1164.47089702
    W: 146.304946653
   VV: 229.279369101
  QCD: 3.42965178986
MuMu: Rtt =  [0.9532164439405617, 0.03045069305578393]
Now calculating R_mumu,emu, the ratio of mumu to e,mu events in ttbar MC. 
Should be near 0.5
R_uu,eu =  0.632254610802  +-  0.0321652051478

MuMu scale factor integrals:
Data: [44336.0, 210.5611550120297] [20073.0, 141.6792151305194]
Z: [40276.22738485245, 912.493451765405] [8131.617632837038, 534.6211297480845]
TT: [595.2576175829583, 70.56693853398322] [12467.02924405889, 548.1805504426118]
Other: [722.6159218099731, 33.20534983322278] [983.3473033440657, 45.69462797159362]
MuMu: RZ  =  1.071 +- 0.025
MuMu: Rtt =  1.000 +- 0.023
Here $(N_1,N_2) = (   120379.0 , 28577.0 )$, $(N_{1,\ttbar},N_{2,\ttbar}) = (  17976.7 \pm 483.1 , 24068.2 \pm 767.3 )$,  $(N_{1,W},N_{2,W}) = (  92435.0 \pm 2823.7 , 220.0 \pm 675.7 $, and $(N_{1,0},N_{2,0}) = (  10758.6 \pm 608.3 , 2091.5 \pm 198.3 )$.
\ttbar control region &  28577.0  &  24068.2 $\pm$ 767.3  &  220.0 $\pm$ 675.7  &  2091.5 $\pm$ 198.3  &  26379.7 $\pm$ 1041.5 \\ \hline
W control region &  120379.0  &  17976.7 $\pm$ 483.1  &  92435.0 $\pm$ 2823.7  &  10758.6 $\pm$ 608.3  &  121170.4 $\pm$ 2928.6 \\ \hline
MuNu scale factor integrals:
Data: [120379.0, 346.9567696414065] [28577.0, 169.04733065032408]
W: [92435.00681573969, 2823.723200669384] [219.9792336140442, 675.676327446254]
TT: [17976.749109279037, 483.08490401160805] [24068.223979994676, 767.3220139246135]
Other: [10758.611863664519, 608.341397673142] [2091.499895636064, 198.25991231795695]
MuNu: RW  =  0.974 +- 0.031
MuNu: Rtt =  1.093 +- 0.044
January 31, 2017
Breaking up lumi into run periods for later use in averaging HLT efficiencies, also, munujj ttbar is >=1 med bjet + >=4j, W is <1 loose bjet + <4j:
B-F: 19955.989 (0.5421239153)
F: 3185.972 (0.08655003842)
GH: 16854.763 (0.4578760847) 

Updated HLT, ID, ISO:

This is the information for the NOTE table 6:
 Data: 20573.0
   TT: 20822.7876184
    Z: 97.9054240759
 Stop: 1221.68014652
    W: 151.43756625
   VV: 239.444517697
  QCD: 3.56902352843
MuMu: Rtt =  [0.9056886939242708, 0.028952421546163138]
Now calculating R_mumu,emu, the ratio of mumu to e,mu events in ttbar MC. 
Should be near 0.5
R_uu,eu =  0.614243472505  +-  0.0312018003926

Using Data-driven TTbar
MuMu scale factor integrals:
Data: [44336.0, 210.5611550120297] [20073.0, 141.6792151305194]
Z: [40276.22738485245, 912.493451765405] [8131.617632837038, 534.6211297480845]
TT: [595.2576175829583, 70.56693853398322] [12467.02924405889, 548.1805504426118]
Other: [722.6159218099731, 33.20534983322278] [983.3473033440657, 45.69462797159362]
MuMu: RZ  =  1.071 +- 0.025
MuMu: Rtt =  1.000 +- 0.023
Here $(N_1,N_2) = (   120379.0 , 28577.0 )$, $(N_{1,\ttbar},N_{2,\ttbar}) = (  17976.7 \pm 483.1 , 24068.2 \pm 767.3 )$,  $(N_{1,W},N_{2,W}) = (  92435.0 \pm 2823.7 , 220.0 \pm 675.7 $, and $(N_{1,0},N_{2,0}) = (  10758.6 \pm 608.3 , 2091.5 \pm 198.3 )$.
\ttbar control region &  28577.0  &  24068.2 $\pm$ 767.3  &  220.0 $\pm$ 675.7  &  2091.5 $\pm$ 198.3  &  26379.7 $\pm$ 1041.5 \\ \hline
W control region &  120379.0  &  17976.7 $\pm$ 483.1  &  92435.0 $\pm$ 2823.7  &  10758.6 $\pm$ 608.3  &  121170.4 $\pm$ 2928.6 \\ \hline
MuNu scale factor integrals:
Data: [120379.0, 346.9567696414065] [28577.0, 169.04733065032408]
W: [92435.00681573969, 2823.723200669384] [219.9792336140442, 675.676327446254]
TT: [17976.749109279037, 483.08490401160805] [24068.223979994676, 767.3220139246135]
Other: [10758.611863664519, 608.341397673142] [2091.499895636064, 198.25991231795695]
MuNu: RW  =  0.974 +- 0.031
MuNu: Rtt =  1.092 +- 0.044
January 25, 2017
brilcalc lumi -b "STABLE BEAMS" -u /pb -i Cert_271036-284044_13TeV_23Sep2016ReReco_Collisions16_JSON.txt --normtag /afs/cern.ch/user/l/lumipro/public/normtag_file/normtag_DATACERT.json --hltpath="HLT_*Mu50*"
   #Data tag : v1 , Norm tag: composite
#Summary: 
+-----------------------------+-------+------+--------+-------------------+------------------+
| hltpath                     | nfill | nrun | ncms   | totdelivered(/pb) | totrecorded(/pb) |
+-----------------------------+-------+------+--------+-------------------+------------------+
| HLT_Mu50_v2                 | 23    | 66   | 29602  | 2957.040          | 2836.688         |
| HLT_Mu50_v3                 | 19    | 72   | 38300  | 5584.311          | 5357.790         |
| HLT_Mu50_v4                 | 70    | 169  | 116849 | 20626.583         | 19759.241        |
| HLT_Mu50_v5                 | 32    | 86   | 47447  | 9199.511          | 8857.033         |
| HLT_TkMu50_v1               | 11    | 37   | 23074  | 3220.244          | 3093.175         |
| HLT_TkMu50_v2               | 8     | 35   | 15226  | 2364.066          | 2264.614         |
| HLT_TkMu50_v3               | 102   | 255  | 164296 | 29826.094         | 28616.274        |
+-----------------------------+-------+------+--------+-------------------+------------------+
#Check JSON:
#(run,ls) in json but not in results: []
HLT_Mu50_v* total: 36810.752

HLT_TkMu50_v* total: 33974.063

January 24, 2017
New SF with muon MC efficiency SF applied
Using Data-driven TTbar
MuMu scale factor integrals:
Data: [44336.0, 210.5611550120297] [20431.0, 142.93704908105525]
Z: [39078.09897630812, 895.1108469830475] [7858.620952177503, 521.4415300071242]
TT: [581.4088475970618, 68.88467218695496] [12142.432945573537, 531.5022661865077]
Other: [701.3559186689786, 32.407393884935765] [952.3316583384606, 43.893647728799294]
MuMu: RZ  =  1.104 +- 0.026
MuMu: Rtt =  1.000 +- 0.023
Here $(N_1,N_2) = (   153204.0 , 28577.0 )$, $(N_{1,\ttbar},N_{2,\ttbar}) = (  23853.8 \pm 591.8 , 22578.6 \pm 692.4 )$,  $(N_{1,W},N_{2,W}) = (  100995.0 \pm 2924.9 , 162.9 \pm 656.2 $, and $(N_{1,0},N_{2,0}) = (  13929.2 \pm 809.2 , 1939.5 \pm 187.5 )$.
MuNu scale factor integrals:
Data: [153204.0, 391.4128255435685] [28577.0, 169.04733065032408]
W: [100995.0364715184, 2924.8736455099715] [162.92074099913785, 656.1677753021849]
TT: [23853.844679165657, 591.8219652449155] [22578.638820917637, 692.355758603894]
Other: [13929.157428468821, 809.1846705897423] [1939.4614104496868, 187.54338012180594]
MuNu: RW  =  1.104 +- 0.035
MuNu: Rtt =  1.173 +- 0.048

January 16, 2017
Run2016B-H Prompt:
MuMu: RZ  =  0.99 +- 0.019
MuNu: RW  =  0.982 +- 0.027
MuNu: Rtt =  0.989 +- 0.03

Run2016B-G Prompt, 2016H ReReco:

MuMu: RZ  =  1.061 +- 0.02
MuNu: RW  =  1.028 +- 0.028
MuNu: Rtt =  1.133 +- 0.034

Run2016B-G Prompt, 2016H ReReco, new JEC, medium btag:

MuMu: RZ  =  1.09 +- 0.026
MuNu: RW  =  1.089 +- 0.034
MuNu: Rtt =  1.154 +- 0.048

Run2016B-G Prompt, 2016H ReReco, new JEC, loose btag:

MuMu: RZ  =  1.09 +- 0.026
MuNu: RW  =  1.051 +- 0.035
MuNu: Rtt =  1.105 +- 0.041

Run2016B-G Prompt, 2016H ReReco, new JEC, no btag:

MuMu: RZ  =  1.09 +- 0.025
MuNu: RW  =  1.139 +- 0.042
MuNu: Rtt =  1.059 +- 0.04

January 16, 2017
With new JEC: Spring16_23Sep2016V2 and top-pt re-weighting and updated MET filters, but removing the btag scale factor from ttbar control region in munujj SF calculation:
This is the information for the NOTE table 6:
 Data: 20573.0
   TT: 19404.8209995
    Z: 89.8485917996
 Stop: 1121.58484849
    W: 142.00091414
   VV: 222.36739966
  QCD: 3.28354570537
MuMu: Rtt =  [0.9788245251366849, 0.030931141213626775]
Now calculating R_mumu,emu, the ratio of mumu to e,mu events in ttbar MC. 
Should be near 0.5
R_uu,eu =  0.610372090127  +-  0.0306258357095

Using Data-driven TTbar
MuMu scale factor integrals:
Data: [44336.0, 210.5611550120297] [20431.0, 142.93704908105525]
Z: [39542.29034302668, 909.3073102137894] [7892.6982632626205, 528.7922022591713]
TT: [597.2518388990692, 70.87699330946197] [12304.306173464722, 535.6632637816148]
Other: [706.8065719148434, 32.686261451886864] [957.2451589317436, 44.12482604961879]
MuMu: RZ  =  1.09 +- 0.026
MuMu: Rtt =  1.000 +- 0.023
Here $(N_1,N_2) = (   153204.0 , 28577.0 )$, $(N_{1,\ttbar},N_{2,\ttbar}) = (  24147.6 \pm 600.1 , 22914.3 \pm 702.6 )$,  $(N_{1,W},N_{2,W}) = (  102274.3 \pm 2970.2 , 169.6 \pm 664.9 $, and $(N_{1,0},N_{2,0}) = (  14104.5 \pm 823.5 , 1965.3 \pm 190.2 )$.
MuNu scale factor integrals:
Data: [153204.0, 391.4128255435685] [28577.0, 169.04733065032408]
W: [102274.28204729415, 2970.18685690551] [169.6309856019798, 664.9073531256602]
TT: [24147.56943216839, 600.069431273396] [22914.28160465909, 702.5742991164354]
Other: [14104.516977851032, 823.4746477617924] [1965.28514481494, 190.17559646164005]
MuNu: RW  =  1.089 +- 0.034
MuNu: Rtt =  1.154 +- 0.048
Preselection counts:
mumujj:
W:   26.6169372558
Z:   54762.3305883
VV:  940.160906983
TT:  12451.7891406
ST:  746.323524133
QCD: 21.2087852535
Total Background: 68948.4298826 +- 38.498767345
Data            : 67643.0
Signal M=1000    : 485.714753124 +- 9.58738251797

munujj:
W:   257736.486159
Z:   17213.1439363
VV:  4471.34124823
TT:  293229.594876
ST:  23763.0465762
QCD: 21689.0316496
Total Background: 618102.644445 +- 5967.1871989
Data            : 609525.0
Signal M=850    : 536.753576536 +- 11.6541017485
January 15, 2017
With new JEC: Spring16_23Sep2016V2 and top-pt reweighting:
This is the information for the NOTE table 6:
 Data: 20744.0
   TT: 19408.8499755
    Z: 89.8698171404
 Stop: 1121.58484849
    W: 142.00091414
   VV: 222.36739966
  QCD: 3.28354570537
MuMu: Rtt =  [0.9874306565829393, 0.031175110581196434]
Now calculating R_mumu,emu, the ratio of mumu to e,mu events in ttbar MC. 
Should be near 0.5
R_uu,eu =  0.610858747523  +-  0.0306296016518

Using Data-driven TTbar
MuMu scale factor integrals:
Data: [44562.0, 211.09713404023276] [20516.0, 143.23407415835104]
Z: [39550.37350534966, 909.3314132625841] [7893.159654634931, 528.7925215744589]
TT: [597.2518388990692, 70.87699330946197] [12317.423828912737, 535.6980516855973]
Other: [706.8065719148434, 32.686261451886864] [957.8084638434094, 44.12842152550466]
MuMu: RZ  =  1.096 +- 0.026
MuMu: Rtt =  1.000 +- 0.023
Here $(N_1,N_2) = (   148449.0 , 31909.0 )$, $(N_{1,\ttbar},N_{2,\ttbar}) = (  22491.6 \pm 589.9 , 22393.9 \pm 706.5 )$,  $(N_{1,W},N_{2,W}) = (  100259.9 \pm 2947.0 , 450.0 \pm 619.0 $, and $(N_{1,0},N_{2,0}) = (  13629.9 \pm 822.2 , 2031.5 \pm 191.2 )$.
MuNu scale factor integrals:
Data: [148449.0, 385.2907992672548] [31909.0, 178.63090438107287]
W: [100259.94877995203, 2947.003577723314] [449.98940697489934, 618.9694349483174]
TT: [22491.58259979066, 589.9372603834124] [22393.901082009346, 706.4960308227462]
Other: [13629.906930582292, 822.1733735157999] [2031.5349132179072, 191.24897690142234]
MuNu: RW  =  1.05 +- 0.034
MuNu: Rtt =  1.315 +- 0.051
Brilcalc with updated normtag:
 brilcalc lumi -u /pb --normtag ~lumipro/public/normtag_file/normtag_DATACERT.json -i Cert_271036-284044_13TeV_23Sep2016ReReco_Collisions16_JSON.txt   --hltpath="HLT_*Mu50*"
#Data tag : v1 , Norm tag: composite
#Summary: 
+-----------------------------+-------+------+--------+-------------------+------------------+
| hltpath                     | nfill | nrun | ncms   | totdelivered(/pb) | totrecorded(/pb) |
+-----------------------------+-------+------+--------+-------------------+------------------+
| HLT_Mu50_IsoVVVL_PFHT400_v1 | 19    | 72   | 38300  | 5584.311          | 5357.790         |
| HLT_Mu50_IsoVVVL_PFHT400_v2 | 29    | 77   | 62596  | 10384.380         | 9940.899         |
| HLT_Mu50_IsoVVVL_PFHT400_v3 | 41    | 92   | 54253  | 10241.881         | 9818.031         |
| HLT_Mu50_IsoVVVL_PFHT400_v5 | 32    | 86   | 47447  | 9199.511          | 8857.033         |
| HLT_Mu50_v2                 | 23    | 66   | 29602  | 2957.040          | 2836.688         |
| HLT_Mu50_v3                 | 19    | 72   | 38300  | 5584.311          | 5357.790         |
| HLT_Mu50_v4                 | 70    | 169  | 116849 | 20626.261         | 19758.930        |
| HLT_Mu50_v5                 | 32    | 86   | 47447  | 9199.511          | 8857.033         |
| HLT_TkMu50_v1               | 11    | 37   | 23074  | 3220.244          | 3093.175         |
| HLT_TkMu50_v2               | 8     | 35   | 15226  | 2364.066          | 2264.614         |
| HLT_TkMu50_v3               | 102   | 255  | 164296 | 29825.772         | 28615.964        |
+-----------------------------+-------+------+--------+-------------------+------------------+
#Check JSON:
#(run,ls) in json but not in results: []
Total:

HLT_Mu50_v*: 36810.441

HLT_TkMu50_v*: 33973.753

January 15, 2017
With new JEC: Spring16_23Sep2016V2
This is the information for the NOTE table 6:
 Data: 20744.0
   TT: 20355.2042591
    Z: 89.878506161
 Stop: 1121.69328838
    W: 142.01464343
   VV: 222.388899147
  QCD: 3.28386317343
MuMu: Rtt =  [0.9415155237824148, 0.03023299861168092]
Now calculating R_mumu,emu, the ratio of mumu to e,mu events in ttbar MC. 
Should be near 0.5
R_uu,eu =  0.61294320034  +-  0.030995390914

Using Data-driven TTbar
MuMu scale factor integrals:
Data: [44562.0, 211.09713404023276] [20516.0, 143.23407415835104]
Z: [39554.19741441866, 909.4193315380911] [7893.922801026182, 528.8436476281653]
TT: [611.0059455992908, 72.36754401166873] [13000.277484719489, 566.688027152565]
Other: [706.8749091724567, 32.689421707546586] [957.9010690996945, 44.1326880609751]
MuMu: RZ  =  1.096 +- 0.026
MuMu: Rtt =  1.000 +- 0.023
Here $(N_1,N_2) = (   148449.0 , 31909.0 )$, $(N_{1,\ttbar},N_{2,\ttbar}) = (  22830.1 \pm 594.3 , 23073.6 \pm 730.0 )$,  $(N_{1,W},N_{2,W}) = (  100269.6 \pm 2947.3 , 450.0 \pm 619.0 $, and $(N_{1,0},N_{2,0}) = (  13631.2 \pm 822.3 , 2031.7 \pm 191.3 )$.
MuNu scale factor integrals:
Data: [148449.0, 385.2907992672548] [31909.0, 178.63090438107287]
W: [100269.64236546993, 2947.288507364182] [450.0329139869293, 619.0292797140721]
TT: [22830.143257298743, 594.2899356923949] [23073.5915513056, 729.994149317787]
Other: [13631.224731658502, 822.252864957816] [2031.731331205839, 191.26746771789456]
MuNu: RW  =  1.056 +- 0.035
MuNu: Rtt =  1.275 +- 0.05

December 16 2016
With 23SepReReco and Prompt 2016H
brilcalc lumi -u /pb --normtag ~lumipro/public/normtag_file/normtag_DATACERT.json -i Cert_271036-284044_13TeV_23Sep2016ReReco_Collisions16_JSON.txt  --hltpath="HLT_*Mu50*"
#Data tag : v1 , Norm tag: composite
#Summary: 
+-----------------------------+-------+------+--------+-------------------+------------------+
| hltpath                     | nfill | nrun | ncms   | totdelivered(/pb) | totrecorded(/pb) |
+-----------------------------+-------+------+--------+-------------------+------------------+
| HLT_Mu50_IsoVVVL_PFHT400_v1 | 19    | 72   | 38300  | 5584.311          | 5357.790         |
| HLT_Mu50_IsoVVVL_PFHT400_v2 | 29    | 77   | 62595  | 10294.947         | 9855.505         |
| HLT_Mu50_IsoVVVL_PFHT400_v3 | 41    | 92   | 54248  | 10061.839         | 9643.572         |
| HLT_Mu50_IsoVVVL_PFHT400_v5 | 32    | 86   | 47447  | 9101.467          | 8761.822         |
| HLT_Mu50_v2                 | 23    | 66   | 29602  | 2957.040          | 2836.688         |
| HLT_Mu50_v3                 | 19    | 72   | 38300  | 5584.311          | 5357.790         |
| HLT_Mu50_v4                 | 70    | 169  | 116843 | 20356.786         | 19499.077        |
| HLT_Mu50_v5                 | 32    | 86   | 47447  | 9101.467          | 8761.822         |
| HLT_TkMu50_v1               | 11    | 37   | 23074  | 3220.244          | 3093.175         |
| HLT_TkMu50_v2               | 8     | 35   | 15226  | 2364.066          | 2264.614         |
| HLT_TkMu50_v3               | 102   | 255  | 164290 | 29458.253         | 28260.899        |
+-----------------------------+-------+------+--------+-------------------+------------------+
#Check JSON:
#(run,ls) in json but not in results: []
December 16 2016
With 23SepReReo and Prompt 2016H
This is the information for the NOTE table 6:
 Data: 22079.0
   TT: 22564.2086485
    Z: 148.569135828
 Stop: 1275.78693209
    W: 137.210526281
   VV: 242.120115909
  QCD: 16.8731713968
MuMu: Rtt =  [0.897813011485006, 0.021783059036688892]
Now calculating R_mumu,emu, the ratio of mumu to e,mu events in ttbar MC. 
Should be near 0.5
R_uu,eu =  0.596348836602  +-  0.0231626694749

Using Data-driven TTbar
MuMu scale factor integrals:
Data: [44654.0, 211.3149308496681] [20559.0, 143.38409953687332]
Z: [40304.48519624353, 720.3068413244242] [7864.698970503163, 442.8074188680824]
TT: [664.9645208109779, 74.98204956557008] [13974.573471031845, 465.6556961446393]
Other: [715.411140057393, 31.216680898554422] [1008.026462752458, 45.81474147888844]
MuMu: RZ  =  1.078 +- 0.02
MuMu: Rtt =  1.000 +- 0.023
Here $(N_1,N_2) = (   148600.0 , 31519.0 )$, $(N_{1,\ttbar},N_{2,\ttbar}) = (  23311.1 \pm 474.2 , 24057.8 \pm 552.2 )$,  $(N_{1,W},N_{2,W}) = (  105688.3 \pm 2798.0 , 712.6 \pm 408.7 $, and $(N_{1,0},N_{2,0}) = (  13612.5 \pm 722.5 , 2028.7 \pm 184.0 )$.
MuNu scale factor integrals:
Data: [148600.0, 385.4867053479277] [31519.0, 177.5359118601079]
W: [105688.31420729027, 2797.9643742227195] [712.5565097214528, 408.6652375339713]
TT: [23311.093558706663, 474.2162463709133] [24057.847188205462, 552.2463218791598]
Other: [13612.481814394283, 722.5081854286863] [2028.678706281895, 184.0170585663106]
MuNu: RW  =  1.013 +- 0.029
MuNu: Rtt =  1.198 +- 0.032

December 13 2016
With Addition of 2016H
This is the information for the NOTE table 6:
 Data: 21758.0
   TT: 22567.0700738
    Z: 148.587976261
 Stop: 1275.94871791
    W: 137.2279263
   VV: 242.150819783
  QCD: 16.875311127
MuMu: Rtt =  [0.8834646758948932, 0.021461104939208532]
Now calculating R_mumu,emu, the ratio of mumu to e,mu events in ttbar MC. 
Should be near 0.5
R_uu,eu =  0.596348836602  +-  0.0231626694749

Using Data-driven TTbar
MuMu scale factor integrals:
Data: [41736.0, 204.29390592966791] [19146.0, 138.36907168872673]
Z: [40309.59631154234, 720.3981852852612] [7865.696313181815, 442.8635724143074]
TT: [665.0488466699506, 74.99155823188126] [13976.345622590046, 465.7147471395892]
Other: [715.5018631817344, 31.220639566045215] [1008.1542931775078, 45.82055136393936]
MuMu: RZ  =  1.006 +- 0.019
MuMu: Rtt =  1.000 +- 0.023
Here $(N_1,N_2) = (   140763.0 , 27924.0 )$, $(N_{1,\ttbar},N_{2,\ttbar}) = (  23314.0 \pm 474.3 , 24060.9 \pm 552.3 )$,  $(N_{1,W},N_{2,W}) = (  105701.7 \pm 2798.3 , 712.6 \pm 408.7 $, and $(N_{1,0},N_{2,0}) = (  13614.2 \pm 722.6 , 2028.9 \pm 184.0 )$.
MuNu scale factor integrals:
Data: [140763.0, 375.18395488080245] [27924.0, 167.10475756243446]
W: [105701.71681389709, 2798.319191272048] [712.6468708427885, 408.7170614224783]
TT: [23314.04969836006, 474.2763829512339] [24060.898025604554, 552.3163536537876]
Other: [13614.208048179482, 722.5998085475818] [2028.9359682396944, 184.0403942421906]
MuNu: RW  =  0.974 +- 0.028
MuNu: Rtt =  1.045 +- 0.03

December 2 2016
MuNu SF with no btag
Here $(N_1,N_2) = (   129556.0 , 60440.0 )$, $(N_{1,\ttbar},N_{2,\ttbar}) = (  35468.4 \pm 513.3 , 45406.5 \pm 664.2 )$,  $(N_{1,W},N_{2,W}) = (  83929.7 \pm 2168.6 , 13358.2 \pm 979.7 $, and $(N_{1,0},N_{2,0}) = (  14705.9 \pm 610.7 , 5471.5 \pm 712.6 )$.
MuNu scale factor integrals:
Data: [129556.0, 359.93888370110835] [60440.0, 245.84547992590794]
W: [83929.65449316741, 2168.621170641098] [13358.236897783325, 979.7067456740475]
TT: [35468.418718712, 513.2624566091182] [45406.510081254855, 664.1607050231578]
Other: [14705.914868610016, 610.7237730151336] [5471.518831039577, 712.6279074390578]
MuNu: RW  =  0.981 +- 0.033
MuNu: Rtt =  0.922 +- 0.031
November 26 2016
Check of QCD cross sections using genXsec_cfg.py:
15-20:       After filter: final cross section = 3.627e+06 +- 5.376e+03 pb
20-30:       After filter: final cross section = 3.140e+06 +- 4.556e+03 pb
30-50:       After filter: final cross section = 1.652e+06 +- 2.529e+03 pb
50-80:       After filter: final cross section = 4.493e+05 +- 6.503e+02 pb
80-120:     After filter: final cross section = 1.052e+05 +- 1.512e+02 pb
120-170:   After filter: final cross section = 2.552e+04 +- 3.781e+01 pb
170-300:   After filter: final cross section = 8.619e+03 +- 1.193e+01 pb
300-470:   After filter: final cross section = 7.964e+02 +- 1.257e+00 pb
470-600:   After filter: final cross section = 7.916e+01 +- 1.072e-01 pb
600-800:   After filter: final cross section = 2.527e+01 +- 3.958e-02 pb
800-1000: After filter: final cross section = 4.732e+00 +- 6.593e-03 pb
1000-inf:   After filter: final cross section = 1.621e+00 +- 2.368e-03 pb
November 23 2016
Using Data-driven TTbar
MuMu scale factor integrals:
Data: [30830.0, 175.58473737771175] [14040.0, 118.490505948789]
Z: [30063.291622671055, 537.2800204022951] [5866.313327748485, 330.29198862847]
TT: [495.9999417070714, 55.92943841310799] [10423.695415447924, 347.33461848704906]
Other: [533.6282954349138, 23.284658686884345] [751.891343247361, 34.173415861555014]
MuMu: RZ  =  0.996 +- 0.018
MuMu: Rtt =  1.000 +- 0.067
Here $(N_1,N_2) = (   103368.0 , 20121.0 )$, $(N_{1,\ttbar},N_{2,\ttbar}) = (  17387.8 \pm 353.7 , 17944.9 \pm 411.9 )$,  $(N_{1,W},N_{2,W}) = (  78833.4 \pm 2087.0 , 531.5 \pm 304.8 $, and $(N_{1,0},N_{2,0}) = (  10153.6 \pm 538.9 , 1513.2 \pm 137.3 )$.
MuNu scale factor integrals:
Data: [103368.0, 321.50894233286886] [20121.0, 141.84851074297538]
W: [78833.37538369959, 2087.013852739659] [531.4990141937203, 304.8251863834022]
TT: [17387.846545775887, 353.7199703070842] [17944.853341039685, 411.9229445895035]
Other: [10153.609666563534, 538.9220125886662] [1513.2003115459825, 137.25912806698707]
MuNu: RW  =  0.961 +- 0.027
MuNu: Rtt =  1.01 +- 0.029

November 22 2016
sed 's/pass_HLT_Mu17_Mu8/pass_HLT/g;s/BadMuon/BBB/g;s/Minimum/QQQ/g;s/Maximum/XXX/g;s/muon/ele/g;s/Muon/ZZZ/g;s/Electron/YYY/g;s/Mu/AAA/g;s/AAA/Ele/g;s/mu/CCC/g;s/CCC/ele/g;s/ZZZ/Electron/g;s/YYY/Muon/g;s/uu/ee/g;s/QQQ/Minimum/g;s/XXX/Maximum/g;s/BBB/BadMuon/g;s/pass_HLT/pass_HLT_Ele23_Ele12_CaloIdL_TrackIdL_IsoVL_DZ/g;s/Pt_ele1>20/Pt_ele1>25/g;s/Pt_ele2>10/Pt_ele2>15/g;s/diHiggs/diHiggsEE/g' HHResultProducer.py > ! HHResultProducerEE.py
November 14 2016
Reduction moving DR(mu1,mu2) from 0.3 to 1.0 400: 26346.2/29464 = 0.89

600: 2886.6/3220.43 = 0.90

800: 492.212/550.684 = 0.89

1000: 109.415/122.088 = 0.90

1200: 28.766/31.6057 = 0.91

1400: 8.12868/9.11995 = 0.89

1600: 2.57975/2.89185 = 0.89

Z+Jets: 21222.4/38481.5 = 0.55

November 7 2016
HH brilcalc
brilcalc lumi -u /pb --normtag ~lumipro/public/normtag_file/normtag_DATACERT.json -i Cert_271036-280385_13TeV_PromptReco_Collisions16_JSON_NoL1T_v2.txt --hltpath="HLT_Mu17_Mu8*"
#Summary: 
+-----------------------------+-------+------+--------+-------------------+------------------+
| hltpath                     | nfill | nrun | ncms   | totdelivered(/pb) | totrecorded(/pb) |
+-----------------------------+-------+------+--------+-------------------+------------------+
| HLT_Mu17_Mu8_DZ_v2          | 23    | 65   | 29182  | 108.657           | 104.247          |
| HLT_Mu17_Mu8_DZ_v3          | 19    | 72   | 38300  | 196.290           | 187.755          |
| HLT_Mu17_Mu8_DZ_v4          | 70    | 162  | 113736 | 532.621           | 510.660          |
| HLT_Mu17_Mu8_SameSign_DZ_v1 | 1     | 1    | 1279   | 55.022            | 51.655           |
| HLT_Mu17_Mu8_SameSign_DZ_v2 | 41    | 136  | 66203  | 8443.466          | 8102.151         |
| HLT_Mu17_Mu8_SameSign_DZ_v3 | 70    | 162  | 113736 | 19904.818         | 19060.592        |
| HLT_Mu17_Mu8_SameSign_v2    | 19    | 72   | 38300  | 5584.311          | 5357.790         |
| HLT_Mu17_Mu8_SameSign_v3    | 70    | 162  | 113736 | 19904.818         | 19060.592        |
| HLT_Mu17_Mu8_v1             | 23    | 65   | 29182  | 112.363           | 107.794          |
| HLT_Mu17_Mu8_v2             | 19    | 72   | 38300  | 196.290           | 187.755          |
| HLT_Mu17_Mu8_v3             | 70    | 162  | 113736 | 532.621           | 510.660          |
+-----------------------------+-------+------+--------+-------------------+------------------+
#Check JSON:
#(run,ls) in json but not in results: [(280363, 233), (280385, 1397), (280385, 1409), (280385, 1427), (280188, 69)]
November 5 2016
Performing QCD Study

------ DIMUON CHANNEL -------

Number of events in QCD MC:
Q_ss: [1975.9540714442942, 141.04637017918714]
Q_os: [3953.9805313731663, 403.90899587861753]
Test: In normal Iso data, the number of same-sign events is [340.0, 18.439088914585774]
Test: In normal Iso MC, the number of same-sign events is
    Z: [0.4627491061380886, 4.617159093156274]
    W: [4.538452842524889, 5.286287892261227]
    t: [23.19457403256475, 4.569116545920229]
   VV: [16.254100750894622, 4.120736338083381]
   tt: [180.98426179092357, 33.07998651411348]
Test: QCD Prediction in SS Isolated: [1.1362737602164314, 0.9384186035755306]

In QCD MC, the conversion factor between same-sign muon events and all events is: $ 3.0115 \pm 0.2434 $
In QCD MC, the single-muon isolation acceptance is: $ 0.1664 \pm 0.0303 $
In QCD MC, the conversion factor between non-isolated di-muon events and isolated dimuon events is: $ 0.0277 \pm 0.0101 $
Thus, in same-sign non-iso data, a factor of: $ 0.0833 \pm 0.0311 $ will give the QCD estimate.

  Preparing basic histo for uujj:TrkIso_muon1...  
Getting Final sel 
Doing Projections
SM Integral:  27703.7871412
hs_rec_Data.Integral():  29501.0 hs_rec_Data.GetEntries() 63828.0
Stacking...   Legend...   Saving...   Done.
  Preparing basic histo for uujj:TrkIso_muon2...  
Getting Final sel 
Doing Projections
SM Integral:  29363.9535463
hs_rec_Data.Integral():  31406.0 hs_rec_Data.GetEntries() 63828.0
Stacking...   Legend...   Saving...   Done.

For final selections, this gives estimates:

200 & $ 61.2821 \pm 25.3028 $ \\
250 & $ 40.4926 \pm 17.7576 $ \\
300 & $ 15.569 \pm 8.2105 $ \\
350 & $ 6.4845 \pm 4.6005 $ \\
400 & $ 2.5868 \pm 2.5848 $ \\
450 & $ 1.3769 \pm 1.6777 $ \\
500 & $ -0.436 \pm -1.1875 $ \\
550 & $ 1.1863 \pm 0.8937 $ \\
600 & $ 1.1116 \pm 0.6789 $ \\
650 & $ 0.613 \pm 0.4448 $ \\
700 & $ 0.3392 \pm 0.2413 $ \\
750 & $ 0.3676 \pm 0.2462 $ \\
800 & $ 0.2981 \pm 0.2168 $ \\
850 & $ 0.3002 \pm 0.2171 $ \\
900 & $ 0.3015 \pm 0.2174 $ \\
950 & $ 0.302 \pm 0.2175 $ \\
1000 & $ 0.3008 \pm 0.2173 $ \\
1050 & $ 0.2185 \pm 0.1852 $ \\
1100 & $ 0.1425 \pm 0.1532 $ \\
1150 & $ -0.0012 \pm -0.0023 $ \\
1200 & $ -0.0012 \pm -0.0023 $ \\
1250 & $ -0.0012 \pm -0.0023 $ \\
1300 & $ -0.0012 \pm -0.0023 $ \\
1350 & $ -0.0012 \pm -0.0023 $ \\
1400 & $ -0.001 \pm -0.0022 $ \\
1450 & $ -0.002 \pm -0.0021 $ \\
1500 & $ -0.0002 \pm -0.0004 $ \\
1550 & $ -0.0002 \pm -0.0004 $ \\
1600 & $ -0.0002 \pm -0.0004 $ \\
1650 & $ -0.0002 \pm -0.0004 $ \\
1700 & $ -0.0002 \pm -0.0004 $ \\
1750 & $ -0.0002 \pm -0.0004 $ \\
1800 & $ -0.0002 \pm -0.0004 $ \\
1850 & $ -0.0002 \pm -0.0004 $ \\
1900 & $ -0.0002 \pm -0.0004 $ \\
1950 & $ -0.0002 \pm -0.0004 $ \\
2000 & $ -0.0002 \pm -0.0004 $ \\



------ MUON+MET CHANNEL -------


In the non_isolated low-MET region, the global QCD rescaling is: $ 1.0648 \pm 0.0593 $

The data-driven fake-rate is: $ 0.3684 \pm 0.017 $

The MC-driven fake-rate is: $ 0.0468 \pm 0.0124 $
  Preparing basic histo for uvjj:Pt_miss...  
Getting Final sel 
Doing Projections
SM Integral:  20400.7635416
hs_rec_Data.Integral():  19203.0 hs_rec_Data.GetEntries() 19203.0
Stacking...   Legend...   Saving...   Done.
  Preparing basic histo for uvjj:Pt_miss...  
Getting Final sel 
Doing Projections
SM Integral:  21281.4609919
hs_rec_Data.Integral():  19203.0 hs_rec_Data.GetEntries() 19203.0
Stacking...   Legend...   Saving...   Done.
  Preparing basic histo for uvjj:Pt_miss...  
Getting Final sel 
Doing Projections
SM Integral:  20400.7635416
hs_rec_Data.Integral():  19203.0 hs_rec_Data.GetEntries() 19203.0
Stacking...   Legend...   Saving...   Done.
  Preparing basic histo for uvjj:Pt_miss...  
Getting Final sel 
Doing Projections
SM Integral:  21281.4609919
hs_rec_Data.Integral():  19203.0 hs_rec_Data.GetEntries() 19203.0
Stacking...   Legend...   Saving...   Done.

For final selections, this gives estimates:

200 & $ 8860.8866 \pm 712.8105 $ \\
250 & $ 8291.8138 \pm 660.7856 $ \\
300 & $ 5681.574 \pm 444.2947 $ \\
350 & $ 1976.7697 \pm 159.2723 $ \\
400 & $ 582.8924 \pm 53.2799 $ \\
450 & $ 240.6677 \pm 31.0094 $ \\
500 & $ 117.7042 \pm 24.9402 $ \\
550 & $ 72.851 \pm 23.8258 $ \\
600 & $ 26.0797 \pm 2.6907 $ \\
650 & $ 15.1601 \pm 1.8366 $ \\
700 & $ 8.6009 \pm 1.2752 $ \\
750 & $ 6.2903 \pm 1.1653 $ \\
800 & $ 4.5441 \pm 1.0898 $ \\
850 & $ 3.5292 \pm 1.0022 $ \\
900 & $ 2.6462 \pm 0.9467 $ \\
950 & $ 2.3964 \pm 0.941 $ \\
1000 & $ 2.1419 \pm 0.9352 $ \\
1050 & $ 1.9479 \pm 0.9275 $ \\
1100 & $ 1.8847 \pm 0.9264 $ \\
1150 & $ 1.5097 \pm 0.8894 $ \\
1200 & $ 1.4443 \pm 0.8885 $ \\
1250 & $ 1.3902 \pm 0.8876 $ \\
1300 & $ 1.3833 \pm 0.8875 $ \\
1350 & $ 1.2884 \pm 0.8831 $ \\
1400 & $ 1.2601 \pm 0.8824 $ \\
1450 & $ 1.2426 \pm 0.8823 $ \\
1500 & $ 0.3924 \pm 0.2329 $ \\
1550 & $ 0.3924 \pm 0.2329 $ \\
1600 & $ 0.3668 \pm 0.2315 $ \\
1650 & $ 0.1412 \pm 0.0455 $ \\
1700 & $ 0.1211 \pm 0.0417 $ \\
1750 & $ 0.1211 \pm 0.0417 $ \\
1800 & $ 0.1211 \pm 0.0417 $ \\
1850 & $ 0.1211 \pm 0.0417 $ \\
1900 & $ 0.1211 \pm 0.0417 $ \\
1950 & $ 0.1211 \pm 0.0417 $ \\
2000 & $ 0.1211 \pm 0.0417 $ \\

October 21 2016
HLTMu50 OR HLTTkMu50, 52GeV muons, ZJets Pt-binned amc@NLO, TTBar and WJets inclusive amc@NLO:
MuMu scale factor integrals:
Data: [30684.0, 175.16849031718004] [13972.0, 118.20321484629764]
Z: [27168.49135612129, 459.4996049350502] [2896.344331213748, 174.87414604075659]
TT: [502.2716599001955, 56.60977351616529] [10541.52052295364, 351.5205633210749]
Other: [540.2297947415154, 23.574299067916375] [741.33103962823, 72.23221701699688]
MuMu: RZ  =  1.092 +- 0.02
MuMu: Rtt =  1.000 +- 0.067
Here $(N_1,N_2) = (   157843.0 , 32840.0 )$, $(N_{1,\ttbar},N_{2,\ttbar}) = (  27731.7 \pm 452.9 , 29964.4 \pm 534.8 )$,  $(N_{1,W},N_{2,W}) = (  123354.9 \pm 4322.8 , 2653.6 \pm 683.8 $, and $(N_{1,0},N_{2,0}) = (  12615.2 \pm 540.7 , 2312.6 \pm 143.9 )$.
MuNu scale factor integrals:
Data: [157843.0, 397.2946010204518] [32840.0, 181.2181006411887]
W: [123354.8625057587, 4322.765307637751] [2653.612308029959, 683.7905538241874]
TT: [27731.65106552238, 452.8607587506327] [29964.390330296515, 534.8185447346698]
Other: [12615.231149682386, 540.7275143464065] [2312.6175461453877, 143.88031515938184]
MuNu: RW  =  0.969 +- 0.037
MuNu: Rtt =  0.932 +- 0.03

Using stitched W+Jets amc@NLO:

MuMu scale factor integrals:
Data: [30684.0, 175.16849031718004] [13972.0, 118.20321484629764]
Z: [27168.49135612129, 459.4996049350502] [2896.344331213748, 174.87414604075659]
TT: [502.2716599001955, 56.60977351616529] [10541.52052295364, 351.5205633210749]
Other: [540.2297947415154, 23.574299067916375] [760.8810221473057, 34.5948388361686]
MuMu: RZ  =  1.092 +- 0.02
MuMu: Rtt =  1.000 +- 0.067
Here $(N_1,N_2) = (   157843.0 , 32840.0 )$, $(N_{1,\ttbar},N_{2,\ttbar}) = (  27731.7 \pm 452.9 , 29964.4 \pm 534.8 )$,  $(N_{1,W},N_{2,W}) = (  117718.7 \pm 2796.3 , 1763.0 \pm 491.6 $, and $(N_{1,0},N_{2,0}) = (  12615.2 \pm 540.7 , 2312.6 \pm 143.9 )$.
MuNu scale factor integrals:
Data: [157843.0, 397.2946010204518] [32840.0, 181.2181006411887]
W: [117718.71523563463, 2796.3044753734202] [1763.0496558580107, 491.6414007595913]
TT: [27731.65106552238, 452.8607587506327] [29964.390330296515, 534.8185447346698]
Other: [12615.231149682386, 540.7275143464065] [2312.6175461453877, 143.88031515938184]
MuNu: RW  =  1.008 +- 0.026
MuNu: Rtt =  0.96 +- 0.025
October 21 2016
2nd round 80X ntuples, HLTMu50 OR HLTTkMu50, 52GeV muons, TTBar and ZJets and WJets amc@NLO updated to use correct weights (I hope):
This is the information for the NOTE table 6:
 Data: 16159.0
   TT: 16947.9972964
    Z: 111.557454853
 Stop: 947.359246364
    W: 30.5276192861
   VV: 181.863048763
MuMu: Rtt =  [0.8784337388296612, 0.021480589432438486]
Now calculating R_mumu,emu, the ratio of mumu to e,mu events in ttbar MC. 
Should be near 0.5
R_uu,eu =  0.59582328672  +-  0.0231524392256
October 20 2016
2nd round 80X ntuples, HLTMu50, 55GeV muons, TTBar amc@NLO, ZJets and WJets HT binned MadGraph:
This is the information for the NOTE table 6:
 Data: 14365.0
   TT: 12970.3217423
    Z: 103.163380349
 Stop: 880.163647758
    W: 88.2710654572
   VV: 167.133914661
MuMu: Rtt =  [1.0120233138826114, 0.02612919681337832]
Now calculating R_mumu,emu, the ratio of mumu to e,mu events in ttbar MC. 
Should be near 0.5
R_uu,eu =  0.587926740614  +-  0.02501364745

Using Data-driven TTbar
MuMu scale factor integrals:
Data: [27181.0, 164.8666127510358] [12652.0, 112.48110952511092]
Z: [25068.687559331353, 72.51176941855903] [3378.6679759033177, 26.90699111554296]
TT: [287.5419631335306, 39.393824742166856] [7551.8832846723635, 276.67515597810115]
Other: [508.63550912489046, 22.497327461036548] [730.5617832206548, 21.730270204623967]
MuMu: RZ  =  1.051 +- 0.007
MuMu: Rtt =  1.000 +- 0.067
Here $(N_1,N_2) = (   145690.0 , 29510.0 )$, $(N_{1,\ttbar},N_{2,\ttbar}) = (  21971.6 \pm 377.3 , 21952.8 \pm 443.3 )$,  $(N_{1,W},N_{2,W}) = (  90305.6 \pm 310.3 , 1595.9 \pm 25.5 $, and $(N_{1,0},N_{2,0}) = (  11424.9 \pm 103.6 , 1821.2 \pm 29.5 )$.
MuNu scale factor integrals:
Data: [145690.0, 381.69359439215117] [29510.0, 171.78474903203718]
W: [90305.55008535775, 310.3225380216839] [1595.9432102899307, 25.46340790391414]
TT: [21971.63327638265, 377.30988793838713] [21952.81718359664, 443.2897719264089]
Other: [11424.872171928508, 103.5552038086205] [1821.235001419823, 29.549634416542798]
MuNu: RW  =  1.201 +- 0.01
MuNu: Rtt =  1.174 +- 0.025

October 13 2016
amc@NLO sample, ICHEP16 hlt scale factors, 19.5/fb - HLT_Mu45_eta2p1 was prescaled at some point!
This is the information for the NOTE table 6:
 Data: 11998.0
   TT: 11635.7132895
    Z: 91.1773699988
 Stop: 735.443147592
    W: 82.3615770649
   VV: 114.287458998
MuMu: Rtt =  [0.9431936120505081, 0.021365617193572824]
Now calculating R_mumu,emu, the ratio of mumu to e,mu events in ttbar MC. 
Should be near 0.5
R_uu,eu =  0.622315314391  +-  0.0212144967112

Using Data-driven TTbar
MuMu scale factor integrals:
Data: [23191.0, 152.2859153040753] [15276.0, 123.596116443843]
Z: [23040.20884746971, 57.93933084445361] [2956.2756978191005, 21.026352507106054]
TT: [348.9838354419135, 38.02460776646106] [6989.650801726873, 202.56422521976924]
Other: [365.6686283248349, 20.02871146136695] [595.0207752999538, 13.304365598380405]
MuMu: RZ  =  0.965 +- 0.008
MuMu: Rtt =  1.000 +- 0.067
Here $(N_1,N_2) = (   111285.0 , 22815.0 )$, $(N_{1,\ttbar},N_{2,\ttbar}) = (  18940.4 \pm 279.6 , 21036.4 \pm 330.8 )$,  $(N_{1,W},N_{2,W}) = (  78532.9 \pm 245.3 , 1404.8 \pm 23.5 $, and $(N_{1,0},N_{2,0}) = (  9012.0 \pm 68.9 , 1539.1 \pm 20.3 )$.
MuNu scale factor integrals:
Data: [111285.0, 333.5940646954019] [22815.0, 151.04635050208927]
W: [78532.85690929879, 245.2597510869349] [1404.8106271042689, 23.493578392355985]
TT: [18940.4173213293, 279.56082043932946] [21036.354913991152, 330.78875732576194]
Other: [9011.992515457645, 68.92039560144138] [1539.064766159773, 20.264194327650195]
MuNu: RW  =  1.076 +- 0.008
MuNu: Rtt =  0.94 +- 0.016

September 30 2016
amc@NLO sample, ICHEP16 hlt scale factors, 21.8/fb
This is the information for the NOTE table 6:
 Data: 11998.0
   TT: 13014.3688024
    Z: 101.975391395
 Stop: 822.810242524
    W: 92.1836176191
   VV: 127.822072995
MuMu: Rtt =  [0.8339404576811791, 0.018943579679282792]
Now calculating R_mumu,emu, the ratio of mumu to e,mu events in ttbar MC. 
Should be near 0.5
R_uu,eu =  0.622805749175  +-  0.0212207465434

Using Data-driven TTbar
MuMu scale factor integrals:
Data: [23193.0, 152.29248175796465] [15278.0, 123.60420704814217]
Z: [25775.97881954254, 64.80353446559816] [3307.4551886935533, 23.518082096898805]
TT: [390.3126176653151, 42.527712420349545] [7824.571969287631, 226.57596202185448]
Other: [409.0506987893647, 22.400766565685746] [665.8023771862585, 14.881988504988039]
MuMu: RZ  =  0.861 +- 0.007
MuMu: Rtt =  1.000 +- 0.067
Here $(N_1,N_2) = (   111291.0 , 22816.0 )$, $(N_{1,\ttbar},N_{2,\ttbar}) = (  21186.9 \pm 312.7 , 23532.2 \pm 370.0 )$,  $(N_{1,W},N_{2,W}) = (  87846.5 \pm 274.3 , 1571.6 \pm 26.3 $, and $(N_{1,0},N_{2,0}) = (  10080.8 \pm 77.1 , 1721.6 \pm 22.7 )$.
MuNu scale factor integrals:
Data: [111291.0, 333.6030575399452] [22816.0, 151.04966070799364]
W: [87846.53461541786, 274.31280330276945] [1571.6453349985393, 26.27596367127364]
TT: [21186.862702126684, 312.6783147490907] [23532.182721931353, 369.9779137302799]
Other: [10080.838105949211, 77.08343070928942] [1721.6356118917636, 22.664413608824198]
MuNu: RW  =  0.951 +- 0.007
MuNu: Rtt =  0.833 +- 0.015

September 15 2016
TTBar comparison.

MadGraph decay-binned samples:

This is the information for the NOTE table 6:
 Data: 11998.0
   TT: 13793.0614643
    Z: 109.795255677
 Stop: 877.688613199
    W: 101.438687279
   VV: 138.924044797
MuMu: Rtt =  [0.7808384981743874, 0.01771875794644648]
Now calculating R_mumu,emu, the ratio of mumu to e,mu events in ttbar MC. 
Should be near 0.5
R_uu,eu =  0.759963426046  +-  0.0154888066629

amc@NLO samples:

This is the information for the NOTE table 6:
 Data: 11998.0
   TT: 13793.0614643
    Z: 109.795255677
 Stop: 877.688613199
    W: 101.438687279
   VV: 138.924044797
MuMu: Rtt =  [0.7808384981743874, 0.01771875794644648]
Now calculating R_mumu,emu, the ratio of mumu to e,mu events in ttbar MC. 
Should be near 0.5
R_uu,eu =  0.587645007814  +-  0.0199955256048

September 15 2016
Using amc@nlo TTBar sample, since something seems to be wrong with MadGraph sample ntuples.
This is the information for the NOTE table 6:
 Data: 11998.0
   TT: 13793.0614643
    Z: 109.795255677
 Stop: 877.688613199
    W: 101.438687279
   VV: 138.924044797
MuMu: Rtt =  [0.7808384981743874, 0.01771875794644648]
Now calculating R_mumu,emu, the ratio of mumu to e,mu events in ttbar MC. 
Should be near 0.5
R_uu,eu =  0.587645007814  +-  0.0199955256048

Using Data-driven TTbar
MuMu scale factor integrals:
Data: [23173.0, 152.22680447279973] [15182.0, 123.2152587953294]
Z: [26104.51601398704, 65.60289157125996] [3353.897465979705, 23.81073777643743]
TT: [393.64762646409656, 42.871832166724836] [7899.088873456335, 229.06602947665758]
Other: [414.27464448413264, 22.772365950215846] [673.4981322057906, 15.095234117609216]
MuMu: RZ  =  0.849 +- 0.007
MuMu: Rtt =  1.000 +- 0.067
Here $(N_1,N_2) = (   118097.0 , 17972.0 )$, $(N_{1,\ttbar},N_{2,\ttbar}) = (  25262.3 \pm 340.7 , 21413.4 \pm 370.2 )$,  $(N_{1,W},N_{2,W}) = (  91083.5 \pm 279.9 , 959.7 \pm 21.7 $, and $(N_{1,0},N_{2,0}) = (  11021.7 \pm 83.1 , 1514.4 \pm 20.0 )$.
MuNu scale factor integrals:
Data: [118097.0, 343.6524407013575] [17972.0, 134.05968819895114]
W: [91083.50173206425, 279.85956653723554] [959.708760576335, 21.735221650763037]
TT: [25262.331989409508, 340.7222566486199] [21413.367006570297, 370.1561771507585]
Other: [11021.694495918786, 83.12158144613927] [1514.3605328651397, 19.96940942011051]
MuNu: RW  =  0.974 +- 0.007
MuNu: Rtt =  0.725 +- 0.014

September 6 2016
First run at TTBar with 80X, using 69mb MinBias cross section: NTupleAnalyzer_treeMaker_Spring2016_2015PU_2016_09_08_10_52_47, NTupleAnalyzer_treeMaker_Spring2016_2015PU_EMuSwitch_2016_09_09_11_20_31
Checking TTBar E-Mu sample against E_Mu MC with selection:
21760.376*weight_central*((IsMuon_muon1*( 0.9494*(abs(Eta_muon1)<=0.9)*(Pt_muon1>50)*(Pt_muon1<60) + 0.9460*(abs(Eta_muon1)<=0.9)*(Pt_muon1>60) + 0.9030*(abs(Eta_muon1)>0.9)*(abs(Eta_muon1)<=1.2)*(Pt_muon1>50)*(Pt_muon1<60) + 0.8968*(abs(Eta_muon1)>0.9)*(abs(Eta_muon1)<=1.2)*(Pt_muon1>60) + 0.9153*(abs(Eta_muon1)>1.2)*(abs(Eta_muon1)<=2.1)*(Pt_muon1>50)*(Pt_muon1<60) + 0.9175*(abs(Eta_muon1)>1.2)*(abs(Eta_muon1)<=2.1)*(Pt_muon1>60) ))+(IsMuon_muon2*( 0.9494*(abs(Eta_muon2)<=0.9)*(Pt_muon2>50)*(Pt_muon2<60) + 0.9460*(abs(Eta_muon2)<=0.9)*(Pt_muon2>60) + 0.9030*(abs(Eta_muon2)>0.9)*(abs(Eta_muon2)<=1.2)*(Pt_muon2>50)*(Pt_muon2<60) + 0.8968*(abs(Eta_muon2)>0.9)*(abs(Eta_muon2)<=1.2)*(Pt_muon2>60) + 0.9153*(abs(Eta_muon2)>1.2)*(abs(Eta_muon2)<=2.1)*(Pt_muon2>50)*(Pt_muon2<60) + 0.9175*(abs(Eta_muon2)>1.2)*(abs(Eta_muon2)<=2.1)*(Pt_muon2>60) )))*((Pt_muon1>50)*(Pt_muon2>50)*(Pt_jet1>50)*(Pt_jet2>50)*(St_uujj>300)*(M_uu>50)*(DR_muon1muon2>0.3))*(passDataCert*passPrimaryVertex*(GoodVertexCount>=1))*(passHBHENoiseFilter)*(passBeamHalo2015)*(passBadEcalSC)
This is the information for the NOTE table 6:
 Data: 11998.0
   TT: 12447.4115751
    Z: 109.795255677
 Stop: 877.688613199
    W: 101.438687279
   VV: 138.924044797
MuMu: Rtt =  [0.865252453017835, 0.009193681454367558]
Now calculating R_mumu,emu, the ratio of mumu to e,mu events in ttbar MC. 
Should be near 0.5
R_uu,eu =  0.842120643548  +-  0.00307799255787

Using Data-driven TTbar
MuMu scale factor integrals:
Data: [23173.0, 152.22680447279973] [10282.0, 101.40019723846694]
Z: [26104.51601398704, 65.60289157125996] [3353.897465979705, 23.81073777643743]
TT: [484.2892505452158, 6.068800709796307] [10246.344498953942, 29.220459598198033]
Other: [414.27464448413264, 22.772365950215846] [673.4981322057906, 15.095234117609216]
MuMu: RZ  =  0.86 +- 0.006
MuMu: Rtt =  1.000 +- 0.067
Here $(N_1,N_2) = (   16086.0 , 10248.0 )$, $(N_{1,\ttbar},N_{2,\ttbar}) = (  3271.2 \pm 16.2 , 8389.7 \pm 26.5 )$,  $(N_{1,W},N_{2,W}) = (  13569.6 \pm 85.5 , 4587.2 \pm 39.4 $, and $(N_{1,0},N_{2,0}) = (  1635.9 \pm 22.9 , 964.9 \pm 14.6 )$.
MuNu scale factor integrals:
Data: [16086.0, 126.83059567785685] [10248.0, 101.23240587875011]
W: [13569.616905504503, 85.45409052112313] [4587.2039600963, 39.42722111482229]
TT: [3271.201332397177, 16.166849672624867] [8389.74651443936, 26.495555367429112]
Other: [1635.8525504435656, 22.948315702579794] [964.9091282859928, 14.596405095373239]
MuNu: RW  =  0.919 +- 0.013
MuNu: Rtt =  0.604 +- 0.017

March 18 2016
git checkout origin/7_6_X
Make changes
git commit -a -m"comment"
git push origin HEAD:7_6_X
March 3 2016
2.7/fb QCD study
Performing QCD Study

------ DIMUON CHANNEL -------

Number of events in QCD MC:
Q_ss: [214.66045061851975, 61.38350378635843]
Q_os: [505.9820992128978, 69.74288051965974]
Test: In normal Iso data, the number of same-sign events is [23.0, 4.795831523312719]
Test: In normal Iso MC, the number of same-sign events is
    Z: [0.3970271031570942, 0.12195750132684957]
    W: [1.0766120730013615, 0.6136471396485251]
    t: [1.907028492639451, 0.6508549697275074]
   VV: [0.8391547051041672, 0.47617023397114383]
   tt: [22.166597894263983, 0.6727073710629858]
Test: QCD Prediction in SS Isolated: [0.000748578214850651, 0.000748578214850651]

In QCD MC, the conversion factor between same-sign muon events and all events is: $ 3.9992 \pm 1.0894 $
In QCD MC, the single-muon isolation acceptance is: $ 0.1196 \pm 0.0443 $
In QCD MC, the conversion factor between non-isolated di-muon events and isolated dimuon events is: $ 0.0143 \pm 0.0106 $
Thus, in same-sign non-iso data, a factor of: $ 0.0573 \pm 0.0452 $ will give the QCD estimate.

  Preparing basic histo for uujj:TrkIso_muon1...  
Getting Final sel 
Doing Projections
SM Integral:  3162.45852843
hs_rec_Data.Integral():  2476.0 hs_rec_Data.GetEntries() 5572.0
Stacking...   Legend...   Saving...   Done.
SysError in <TFile::Flush>: error flushing file tmpbin.root (No such file or directory)
  Preparing basic histo for uujj:TrkIso_muon2...  
Getting Final sel 
Doing Projections
SM Integral:  3387.1402843
hs_rec_Data.Integral():  2678.0 hs_rec_Data.GetEntries() 5572.0
Stacking...   Legend...   Saving...   Done.
SysError in <TFile::Flush>: error flushing file tmpbin.root (No such file or directory)

For final selections, this gives estimates:

200 & $ 0.895 \pm 1.1303 $ \\
250 & $ 0.516 \pm 0.8254 $ \\
300 & $ 0.0176 \pm 0.4996 $ \\
350 & $ -0.4011 \pm -0.4362 $ \\
400 & $ -0.2512 \pm -0.2691 $ \\
450 & $ -0.1149 \pm -0.1513 $ \\
500 & $ -0.0411 \pm -0.0895 $ \\
550 & $ -0.0356 \pm -0.0663 $ \\
600 & $ -0.0053 \pm -0.0599 $ \\
650 & $ 0.0142 \pm 0.0605 $ \\
700 & $ 0.0429 \pm 0.0667 $ \\
750 & $ 0.0464 \pm 0.0681 $ \\
800 & $ 0.049 \pm 0.0692 $ \\
850 & $ 0.0501 \pm 0.0697 $ \\
900 & $ 0.0515 \pm 0.0703 $ \\
950 & $ 0.0515 \pm 0.0703 $ \\
1000 & $ 0.0562 \pm 0.0724 $ \\
1050 & $ 0.0566 \pm 0.0727 $ \\
1100 & $ 0.0567 \pm 0.0727 $ \\
1150 & $ 0.0567 \pm 0.0727 $ \\
1200 & $ 0.0567 \pm 0.0727 $ \\
1250 & $ -0.0005 \pm -0.0004 $ \\
1300 & $ -0.0005 \pm -0.0004 $ \\
1350 & $ -0.0005 \pm -0.0004 $ \\
1400 & $ -0.0005 \pm -0.0004 $ \\
1450 & $ -0.0005 \pm -0.0004 $ \\
1500 & $ -0.0005 \pm -0.0004 $ \\
1550 & $ -0.0005 \pm -0.0004 $ \\
1600 & $ -0.0005 \pm -0.0004 $ \\
1650 & $ -0.0005 \pm -0.0004 $ \\
1700 & $ -0.0005 \pm -0.0004 $ \\
1750 & $ -0.0005 \pm -0.0004 $ \\
1800 & $ -0.0005 \pm -0.0004 $ \\
1850 & $ -0.0005 \pm -0.0004 $ \\
1900 & $ -0.0005 \pm -0.0004 $ \\
1950 & $ -0.0005 \pm -0.0004 $ \\
2000 & $ -0.0005 \pm -0.0004 $ \\
February 29 2016
Brilcalc luminosity for Silver JSON
$ brilcalc lumi -u /pb --normtag /afs/cern.ch/user/l/lumipro/public/normtag_file/moriond16_normtag.json -i Cert_246908-260627_13TeV_PromptReco_Collisions15_25ns_JSON_Silver_v2.txt --hltpath "HLT_Mu45_eta2p1_v*"
#Data tag : online , Norm tag: composite
+-------------+-------------------+------+--------------------+----------------+---------------+
| run:fill    | time              | ncms | hltpath            | delivered(/pb) | recorded(/pb) |
+-------------+-------------------+------+--------------------+----------------+---------------+
| 254231:4201 | 08/13/15 05:14:40 | 24   | HLT_Mu45_eta2p1_v2 | 0.033          | 0.033         |
| 254232:4201 | 08/13/15 05:43:48 | 81   | HLT_Mu45_eta2p1_v2 | 0.110          | 0.109         |
| 254790:4243 | 08/21/15 05:24:04 | 685  | HLT_Mu45_eta2p1_v2 | 11.606         | 11.333        |
| 254852:4249 | 08/22/15 13:46:23 | 48   | HLT_Mu45_eta2p1_v2 | 0.960          | 0.899         |
| 254879:4254 | 08/23/15 03:34:41 | 88   | HLT_Mu45_eta2p1_v2 | 1.896          | 1.798         |
| 254906:4256 | 08/23/15 16:23:48 | 75   | HLT_Mu45_eta2p1_v2 | 1.598          | 1.565         |
| 254907:4256 | 08/23/15 16:55:45 | 52   | HLT_Mu45_eta2p1_v2 | 1.091          | 1.071         |
| 254914:4257 | 08/23/15 21:02:20 | 46   | HLT_Mu45_eta2p1_v2 | 0.994          | 0.923         |
| 256630:4376 | 09/16/15 12:20:57 | 22   | HLT_Mu45_eta2p1_v2 | 1.093          | 1.019         |
| 256673:4381 | 09/17/15 01:46:10 | 2    | HLT_Mu45_eta2p1_v2 | 0.100          | 0.006         |
| 256674:4381 | 09/17/15 01:47:46 | 2    | HLT_Mu45_eta2p1_v2 | 0.099          | 0.097         |
| 256675:4381 | 09/17/15 01:50:18 | 160  | HLT_Mu45_eta2p1_v2 | 7.850          | 7.631         |
| 256676:4381 | 09/17/15 02:55:57 | 207  | HLT_Mu45_eta2p1_v2 | 9.794          | 9.587         |
| 256677:4381 | 09/17/15 09:59:03 | 477  | HLT_Mu45_eta2p1_v2 | 18.367         | 16.208        |
| 256729:4384 | 09/17/15 20:25:30 | 1707 | HLT_Mu45_eta2p1_v2 | 71.654         | 69.233        |
| 256734:4384 | 09/18/15 08:06:26 | 211  | HLT_Mu45_eta2p1_v2 | 7.651          | 7.462         |
| 256801:4386 | 09/18/15 16:00:07 | 191  | HLT_Mu45_eta2p1_v2 | 9.618          | 9.289         |
| 256842:4391 | 09/19/15 06:58:19 | 2    | HLT_Mu45_eta2p1_v2 | 0.094          | 0.018         |
| 256843:4391 | 09/19/15 07:02:10 | 971  | HLT_Mu45_eta2p1_v2 | 40.362         | 39.193        |
| 256866:4393 | 09/19/15 22:02:52 | 14   | HLT_Mu45_eta2p1_v2 | 0.758          | 0.060         |
| 256867:4393 | 09/19/15 22:11:45 | 92   | HLT_Mu45_eta2p1_v2 | 4.914          | 4.778         |
| 256868:4393 | 09/19/15 22:55:07 | 486  | HLT_Mu45_eta2p1_v2 | 24.546         | 23.626        |
| 256869:4393 | 09/20/15 02:07:40 | 34   | HLT_Mu45_eta2p1_v2 | 1.652          | 1.613         |
| 256926:4397 | 09/20/15 19:09:17 | 28   | HLT_Mu45_eta2p1_v2 | 1.690          | 1.586         |
| 256941:4398 | 09/21/15 07:30:01 | 209  | HLT_Mu45_eta2p1_v2 | 9.412          | 9.153         |
| 257394:4410 | 09/24/15 02:14:13 | 32   | HLT_Mu45_eta2p1_v2 | 1.909          | 1.736         |
| 257395:4410 | 09/24/15 02:28:44 | 13   | HLT_Mu45_eta2p1_v2 | 0.772          | 0.748         |
| 257396:4410 | 09/24/15 02:38:46 | 216  | HLT_Mu45_eta2p1_v2 | 12.447         | 11.886        |
| 257397:4410 | 09/24/15 04:06:57 | 119  | HLT_Mu45_eta2p1_v2 | 6.617          | 6.372         |
| 257399:4410 | 09/24/15 05:12:49 | 271  | HLT_Mu45_eta2p1_v2 | 14.476         | 14.021        |
| 257400:4410 | 09/24/15 07:03:56 | 1224 | HLT_Mu45_eta2p1_v2 | 57.024         | 54.748        |
| 257461:4418 | 09/25/15 05:51:21 | 52   | HLT_Mu45_eta2p1_v2 | 3.427          | 3.273         |
| 257487:4420 | 09/25/15 11:49:47 | 1073 | HLT_Mu45_eta2p1_v2 | 70.072         | 67.904        |
| 257490:4420 | 09/25/15 18:55:00 | 591  | HLT_Mu45_eta2p1_v2 | 33.316         | 32.444        |
| 257531:4423 | 09/26/15 09:37:19 | 135  | HLT_Mu45_eta2p1_v2 | 9.395          | 8.953         |
| 257599:4426 | 09/26/15 21:47:23 | 77   | HLT_Mu45_eta2p1_v2 | 5.565          | 5.278         |
| 257613:4428 | 09/27/15 04:26:52 | 1294 | HLT_Mu45_eta2p1_v2 | 82.800         | 80.351        |
| 257614:4428 | 09/27/15 12:52:08 | 16   | HLT_Mu45_eta2p1_v2 | 0.919          | 0.899         |
| 257645:4432 | 09/27/15 23:26:52 | 1059 | HLT_Mu45_eta2p1_v2 | 68.160         | 66.315        |
| 257682:4434 | 09/28/15 11:59:23 | 301  | HLT_Mu45_eta2p1_v2 | 14.570         | 14.060        |
| 257722:4435 | 09/28/15 17:20:59 | 19   | HLT_Mu45_eta2p1_v2 | 0.957          | 0.874         |
| 257723:4435 | 09/28/15 17:31:51 | 142  | HLT_Mu45_eta2p1_v2 | 7.019          | 6.416         |
| 257735:4435 | 09/28/15 22:05:27 | 15   | HLT_Mu45_eta2p1_v2 | 0.588          | 0.576         |
| 257751:4437 | 09/29/15 04:53:56 | 463  | HLT_Mu45_eta2p1_v2 | 29.680         | 28.892        |
| 257804:4440 | 09/29/15 13:35:04 | 17   | HLT_Mu45_eta2p1_v2 | 1.317          | 0.226         |
| 257805:4440 | 09/29/15 13:49:01 | 249  | HLT_Mu45_eta2p1_v2 | 18.741         | 18.192        |
| 257816:4440 | 09/29/15 15:33:56 | 385  | HLT_Mu45_eta2p1_v2 | 26.638         | 25.831        |
| 257819:4440 | 09/29/15 18:11:51 | 248  | HLT_Mu45_eta2p1_v2 | 16.591         | 16.070        |
| 257822:4440 | 09/29/15 20:00:34 | 1388 | HLT_Mu45_eta2p1_v2 | 81.451         | 79.302        |
| 257823:4440 | 09/30/15 05:05:37 | 171  | HLT_Mu45_eta2p1_v2 | 9.030          | 8.785         |
| 257968:4444 | 09/30/15 23:42:22 | 258  | HLT_Mu45_eta2p1_v2 | 18.565         | 17.948        |
| 257969:4444 | 10/01/15 01:24:08 | 634  | HLT_Mu45_eta2p1_v2 | 42.819         | 41.763        |
| 258129:4448 | 10/02/15 09:56:47 | 95   | HLT_Mu45_eta2p1_v2 | 6.427          | 6.161         |
| 258136:4448 | 10/02/15 10:38:14 | 60   | HLT_Mu45_eta2p1_v2 | 3.982          | 3.834         |
| 258157:4449 | 10/02/15 14:07:10 | 56   | HLT_Mu45_eta2p1_v2 | 4.247          | 4.130         |
| 258158:4449 | 10/02/15 14:33:52 | 1784 | HLT_Mu45_eta2p1_v2 | 115.154        | 112.208       |
| 258159:4449 | 10/03/15 02:09:44 | 501  | HLT_Mu45_eta2p1_v2 | 27.649         | 27.042        |
| 258177:4452 | 10/03/15 20:21:28 | 1905 | HLT_Mu45_eta2p1_v2 | 115.286        | 112.358       |
| 258211:4455 | 10/04/15 16:54:29 | 87   | HLT_Mu45_eta2p1_v2 | 7.181          | 6.900         |
| 258213:4455 | 10/04/15 17:32:20 | 165  | HLT_Mu45_eta2p1_v2 | 12.775         | 12.448        |
| 258214:4455 | 10/04/15 18:38:59 | 217  | HLT_Mu45_eta2p1_v2 | 16.794         | 16.374        |
| 258215:4455 | 10/04/15 20:07:49 | 6    | HLT_Mu45_eta2p1_v2 | 0.455          | 0.444         |
| 258287:4462 | 10/05/15 15:44:45 | 180  | HLT_Mu45_eta2p1_v2 | 14.851         | 14.271        |
| 258403:4466 | 10/06/15 14:10:07 | 251  | HLT_Mu45_eta2p1_v2 | 16.927         | 16.555        |
| 258425:4467 | 10/06/15 18:50:09 | 134  | HLT_Mu45_eta2p1_v2 | 11.442         | 10.949        |
| 258426:4467 | 10/06/15 20:00:12 | 10   | HLT_Mu45_eta2p1_v2 | 0.831          | 0.809         |
| 258427:4467 | 10/06/15 20:06:18 | 107  | HLT_Mu45_eta2p1_v2 | 8.809          | 8.498         |
| 258428:4467 | 10/06/15 20:54:17 | 159  | HLT_Mu45_eta2p1_v2 | 12.770         | 12.441        |
| 258432:4467 | 10/06/15 23:04:32 | 4    | HLT_Mu45_eta2p1_v2 | 0.306          | 0.299         |
| 258434:4467 | 10/06/15 23:11:39 | 453  | HLT_Mu45_eta2p1_v2 | 33.448         | 32.645        |
| 258440:4467 | 10/07/15 02:10:32 | 731  | HLT_Mu45_eta2p1_v2 | 48.914         | 47.655        |
| 258443:4467 | 10/07/15 07:04:45 | 291  | HLT_Mu45_eta2p1_v2 | 18.162         | 17.718        |
| 258444:4467 | 10/07/15 09:00:44 | 37   | HLT_Mu45_eta2p1_v2 | 2.256          | 2.209         |
| 258445:4467 | 10/07/15 09:52:47 | 302  | HLT_Mu45_eta2p1_v2 | 17.747         | 17.379        |
| 258446:4467 | 10/07/15 11:52:39 | 142  | HLT_Mu45_eta2p1_v2 | 8.068          | 7.907         |
| 258448:4467 | 10/07/15 12:53:07 | 729  | HLT_Mu45_eta2p1_v2 | 38.464         | 37.636        |
| 258655:4476 | 10/09/15 11:20:05 | 9    | HLT_Mu45_eta2p1_v2 | 0.800          | 0.412         |
| 258656:4476 | 10/09/15 11:24:46 | 334  | HLT_Mu45_eta2p1_v2 | 28.462         | 27.562        |
| 258694:4477 | 10/09/15 19:55:27 | 177  | HLT_Mu45_eta2p1_v2 | 17.462         | 16.613        |
| 258702:4479 | 10/10/15 07:31:21 | 351  | HLT_Mu45_eta2p1_v2 | 32.910         | 31.593        |
| 258703:4479 | 10/10/15 09:48:30 | 389  | HLT_Mu45_eta2p1_v2 | 34.739         | 33.749        |
| 258705:4479 | 10/10/15 13:01:34 | 100  | HLT_Mu45_eta2p1_v2 | 8.451          | 8.216         |
| 258706:4479 | 10/10/15 13:44:18 | 733  | HLT_Mu45_eta2p1_v2 | 57.585         | 56.093        |
| 258712:4479 | 10/10/15 18:36:26 | 524  | HLT_Mu45_eta2p1_v2 | 37.898         | 36.912        |
| 258713:4479 | 10/10/15 22:03:19 | 161  | HLT_Mu45_eta2p1_v2 | 11.128         | 10.869        |
| 258714:4479 | 10/10/15 23:06:33 | 67   | HLT_Mu45_eta2p1_v2 | 4.571          | 4.463         |
| 258741:4485 | 10/11/15 15:12:30 | 51   | HLT_Mu45_eta2p1_v2 | 5.309          | 4.899         |
| 258742:4485 | 10/11/15 15:37:24 | 692  | HLT_Mu45_eta2p1_v2 | 67.530         | 65.373        |
| 258745:4485 | 10/11/15 20:12:22 | 260  | HLT_Mu45_eta2p1_v2 | 23.504         | 22.816        |
| 258749:4485 | 10/11/15 22:08:51 | 589  | HLT_Mu45_eta2p1_v2 | 49.179         | 48.012        |
| 258750:4485 | 10/12/15 02:08:14 | 197  | HLT_Mu45_eta2p1_v2 | 15.670         | 15.311        |
| 259626:4518 | 10/20/15 04:22:04 | 353  | HLT_Mu45_eta2p1_v2 | 11.924         | 11.712        |
| 259637:4519 | 10/20/15 11:55:23 | 219  | HLT_Mu45_eta2p1_v2 | 16.239         | 15.844        |
| 259681:4522 | 10/21/15 02:10:07 | 35   | HLT_Mu45_eta2p1_v2 | 3.522          | 2.006         |
| 259683:4522 | 10/21/15 02:51:43 | 88   | HLT_Mu45_eta2p1_v2 | 8.079          | 7.819         |
| 259685:4522 | 10/21/15 03:31:12 | 623  | HLT_Mu45_eta2p1_v2 | 57.547         | 55.840        |
| 259686:4522 | 10/21/15 07:40:55 | 336  | HLT_Mu45_eta2p1_v2 | 28.167         | 27.371        |
| 259721:4525 | 10/21/15 21:49:33 | 334  | HLT_Mu45_eta2p1_v2 | 12.767         | 12.400        |
| 259809:4528 | 10/23/15 01:19:55 | 170  | HLT_Mu45_eta2p1_v2 | 14.952         | 14.370        |
| 259810:4528 | 10/23/15 02:27:57 | 114  | HLT_Mu45_eta2p1_v2 | 10.166         | 9.903         |
| 259811:4528 | 10/23/15 03:14:40 | 89   | HLT_Mu45_eta2p1_v2 | 7.792          | 7.470         |
| 259813:4528 | 10/23/15 03:55:28 | 10   | HLT_Mu45_eta2p1_v2 | 0.866          | 0.746         |
| 259817:4528 | 10/23/15 04:12:46 | 5    | HLT_Mu45_eta2p1_v2 | 0.430          | 0.363         |
| 259818:4528 | 10/23/15 04:16:25 | 160  | HLT_Mu45_eta2p1_v2 | 13.594         | 13.212        |
| 259820:4528 | 10/23/15 05:28:06 | 158  | HLT_Mu45_eta2p1_v2 | 13.024         | 12.560        |
| 259821:4528 | 10/23/15 06:36:07 | 210  | HLT_Mu45_eta2p1_v2 | 16.688         | 16.180        |
| 259822:4528 | 10/23/15 08:06:27 | 461  | HLT_Mu45_eta2p1_v2 | 33.464         | 32.722        |
| 259861:4530 | 10/23/15 22:04:22 | 152  | HLT_Mu45_eta2p1_v2 | 14.156         | 13.729        |
| 259862:4530 | 10/23/15 23:06:58 | 530  | HLT_Mu45_eta2p1_v2 | 47.269         | 45.860        |
| 259884:4532 | 10/24/15 16:31:58 | 80   | HLT_Mu45_eta2p1_v2 | 7.143          | 6.731         |
| 259890:4532 | 10/24/15 17:20:01 | 107  | HLT_Mu45_eta2p1_v2 | 10.097         | 9.701         |
| 259891:4532 | 10/24/15 18:06:49 | 108  | HLT_Mu45_eta2p1_v2 | 10.000         | 9.603         |
| 260373:4555 | 10/30/15 10:18:37 | 360  | HLT_Mu45_eta2p1_v2 | 11.151         | 10.920        |
| 260424:4557 | 10/30/15 18:40:06 | 666  | HLT_Mu45_eta2p1_v2 | 69.025         | 66.688        |
| 260425:4557 | 10/30/15 23:06:36 | 252  | HLT_Mu45_eta2p1_v2 | 24.360         | 23.600        |
| 260426:4557 | 10/31/15 01:02:23 | 499  | HLT_Mu45_eta2p1_v2 | 45.106         | 43.931        |
| 260427:4557 | 10/31/15 04:25:46 | 285  | HLT_Mu45_eta2p1_v2 | 23.749         | 23.075        |
| 260431:4557 | 10/31/15 06:31:22 | 447  | HLT_Mu45_eta2p1_v2 | 36.098         | 35.127        |
| 260532:4560 | 11/01/15 04:26:38 | 742  | HLT_Mu45_eta2p1_v2 | 71.167         | 69.169        |
| 260533:4560 | 11/01/15 09:24:23 | 14   | HLT_Mu45_eta2p1_v2 | 1.271          | 1.195         |
| 260534:4560 | 11/01/15 09:34:18 | 375  | HLT_Mu45_eta2p1_v2 | 33.012         | 32.044        |
| 260536:4560 | 11/01/15 12:11:50 | 177  | HLT_Mu45_eta2p1_v2 | 14.854         | 14.466        |
| 260538:4560 | 11/01/15 13:29:58 | 284  | HLT_Mu45_eta2p1_v2 | 23.008         | 22.369        |
| 260541:4560 | 11/01/15 15:25:55 | 24   | HLT_Mu45_eta2p1_v2 | 1.903          | 1.830         |
| 260575:4562 | 11/01/15 21:37:56 | 20   | HLT_Mu45_eta2p1_v2 | 1.922          | 1.722         |
| 260576:4562 | 11/01/15 21:49:30 | 463  | HLT_Mu45_eta2p1_v2 | 54.697         | 51.429        |
| 260577:4562 | 11/02/15 00:53:22 | 76   | HLT_Mu45_eta2p1_v2 | 8.592          | 8.252         |
| 260593:4565 | 11/02/15 08:42:24 | 337  | HLT_Mu45_eta2p1_v2 | 38.029         | 35.893        |
| 260627:4569 | 11/02/15 19:06:16 | 1740 | HLT_Mu45_eta2p1_v2 | 186.195        | 178.937       |
+-------------+-------------------+------+--------------------+----------------+---------------+
#Summary: 
+--------------------+-------+------+-------+-------------------+------------------+
| hltpath            | nfill | nrun | ncms  | totdelivered(/pb) | totrecorded(/pb) |
+--------------------+-------+------+-------+-------------------+------------------+
| HLT_Mu45_eta2p1_v2 | 50    | 129  | 40519 | 2782.972          | 2690.707         |
+--------------------+-------+------+-------+-------------------+------------------+
February 23 2016
New data and TTBar ntuples
This is the information for the NOTE table 6:
 Data: 1694.0
   TT: 1928.77283286
    Z: 9.68489921425
 Stop: 98.7659983145
    W: 12.8993716795
   VV: 24.0163465204
MuMu: Rtt =  [0.8029112386340175, 0.021675926072772723]
Now calculating R_mumu,emu, the ratio of mumu to e,mu events in ttbar MC. 
Should be near 0.5
R_uu,eu =  0.574810841731  +-  0.00267681297798

Using Data-driven TTbar
MuMu scale factor integrals:
Data: [3032.0, 55.06359959174482] [1366.0, 36.959437225152655]
Z: [2753.2906850747645, 23.943870912358815] [341.54964786587334, 8.500103557494418]
TT: [52.756086625110015, 0.9085724822343403] [1081.954563676331, 4.18271050435686]
Other: [63.04487008243208, 3.471969255774562] [67.83068582936725, 3.996684975397917]
MuMu: RZ  =  1.061 +- 0.022
MuMu: Rtt =  1.000 +- 0.067
Here $(N_1,N_2) = (   2569.0 , 599.0 )$, $(N_{1,\ttbar},N_{2,\ttbar}) = (  245.6 \pm 1.9 , 604.4 \pm 3.1 )$,  $(N_{1,W},N_{2,W}) = (  1669.8 \pm 19.3 , 56.3 \pm 2.3 $, and $(N_{1,0},N_{2,0}) = (  157.8 \pm 5.0 , 57.0 \pm 2.8 )$.
MuNu scale factor integrals:
Data: [2569.0, 50.68530358989675] [599.0, 24.474476501040833]
W: [1669.831817991275, 19.315140383177006] [56.32503595288862, 2.2684765344786118]
TT: [245.63142132462065, 1.9305598452776023] [604.3811139747386, 3.0502978443254634]
Other: [157.7541843591922, 4.968251060487632] [56.975567720470096, 2.7997979100258075]
MuNu: RW  =  1.331 +- 0.035
MuNu: Rtt =  0.773 +- 0.041

Brilcalc luminosity for Golden JSON

$ brilcalc lumi -u /pb --normtag /afs/cern.ch/user/l/lumipro/public/normtag_file/moriond16_normtag.json -i Cert_246908-260627_13TeV_PromptReco_Collisions15_25ns_JSON_v2.txt --hltpath "HLT_Mu45_eta2p1_v*"
#Data tag : online , Norm tag: composite
+-------------+-------------------+------+--------------------+----------------+---------------+
| run:fill    | time              | ncms | hltpath            | delivered(/pb) | recorded(/pb) |
+-------------+-------------------+------+--------------------+----------------+---------------+
| 254231:4201 | 08/13/15 05:14:40 | 24   | HLT_Mu45_eta2p1_v2 | 0.033          | 0.033         |
| 254232:4201 | 08/13/15 05:43:48 | 81   | HLT_Mu45_eta2p1_v2 | 0.110          | 0.109         |
| 254790:4243 | 08/21/15 05:24:04 | 685  | HLT_Mu45_eta2p1_v2 | 11.606         | 11.333        |
| 254852:4249 | 08/22/15 13:46:23 | 48   | HLT_Mu45_eta2p1_v2 | 0.960          | 0.899         |
| 254879:4254 | 08/23/15 03:34:41 | 88   | HLT_Mu45_eta2p1_v2 | 1.896          | 1.798         |
| 254906:4256 | 08/23/15 16:23:48 | 75   | HLT_Mu45_eta2p1_v2 | 1.598          | 1.565         |
| 254907:4256 | 08/23/15 16:55:45 | 52   | HLT_Mu45_eta2p1_v2 | 1.091          | 1.071         |
| 254914:4257 | 08/23/15 21:02:20 | 46   | HLT_Mu45_eta2p1_v2 | 0.994          | 0.923         |
| 256630:4376 | 09/16/15 12:20:57 | 22   | HLT_Mu45_eta2p1_v2 | 1.093          | 1.019         |
| 256673:4381 | 09/17/15 01:46:10 | 2    | HLT_Mu45_eta2p1_v2 | 0.100          | 0.006         |
| 256674:4381 | 09/17/15 01:47:46 | 2    | HLT_Mu45_eta2p1_v2 | 0.099          | 0.097         |
| 256675:4381 | 09/17/15 01:50:18 | 160  | HLT_Mu45_eta2p1_v2 | 7.850          | 7.631         |
| 256676:4381 | 09/17/15 02:55:57 | 207  | HLT_Mu45_eta2p1_v2 | 9.794          | 9.587         |
| 256677:4381 | 09/17/15 09:59:03 | 477  | HLT_Mu45_eta2p1_v2 | 18.367         | 16.208        |
| 256801:4386 | 09/18/15 16:00:07 | 191  | HLT_Mu45_eta2p1_v2 | 9.618          | 9.289         |
| 256842:4391 | 09/19/15 06:58:19 | 2    | HLT_Mu45_eta2p1_v2 | 0.094          | 0.018         |
| 256843:4391 | 09/19/15 07:02:10 | 971  | HLT_Mu45_eta2p1_v2 | 40.362         | 39.193        |
| 256866:4393 | 09/19/15 22:02:52 | 14   | HLT_Mu45_eta2p1_v2 | 0.758          | 0.060         |
| 256867:4393 | 09/19/15 22:11:45 | 92   | HLT_Mu45_eta2p1_v2 | 4.914          | 4.778         |
| 256868:4393 | 09/19/15 22:55:07 | 486  | HLT_Mu45_eta2p1_v2 | 24.546         | 23.626        |
| 256869:4393 | 09/20/15 02:07:40 | 34   | HLT_Mu45_eta2p1_v2 | 1.652          | 1.613         |
| 256926:4397 | 09/20/15 19:09:17 | 28   | HLT_Mu45_eta2p1_v2 | 1.690          | 1.586         |
| 256941:4398 | 09/21/15 07:30:01 | 209  | HLT_Mu45_eta2p1_v2 | 9.412          | 9.153         |
| 257461:4418 | 09/25/15 05:51:21 | 52   | HLT_Mu45_eta2p1_v2 | 3.427          | 3.273         |
| 257531:4423 | 09/26/15 09:37:19 | 135  | HLT_Mu45_eta2p1_v2 | 9.395          | 8.953         |
| 257599:4426 | 09/26/15 21:47:23 | 77   | HLT_Mu45_eta2p1_v2 | 5.565          | 5.278         |
| 257613:4428 | 09/27/15 04:26:52 | 1294 | HLT_Mu45_eta2p1_v2 | 82.800         | 80.351        |
| 257614:4428 | 09/27/15 12:52:08 | 16   | HLT_Mu45_eta2p1_v2 | 0.919          | 0.899         |
| 257645:4432 | 09/27/15 23:26:52 | 1059 | HLT_Mu45_eta2p1_v2 | 68.160         | 66.315        |
| 257682:4434 | 09/28/15 11:59:23 | 301  | HLT_Mu45_eta2p1_v2 | 14.570         | 14.060        |
| 257722:4435 | 09/28/15 17:20:59 | 19   | HLT_Mu45_eta2p1_v2 | 0.957          | 0.874         |
| 257723:4435 | 09/28/15 17:31:51 | 142  | HLT_Mu45_eta2p1_v2 | 7.019          | 6.416         |
| 257735:4435 | 09/28/15 22:05:27 | 15   | HLT_Mu45_eta2p1_v2 | 0.588          | 0.576         |
| 257751:4437 | 09/29/15 04:53:56 | 463  | HLT_Mu45_eta2p1_v2 | 29.680         | 28.892        |
| 257804:4440 | 09/29/15 13:35:04 | 17   | HLT_Mu45_eta2p1_v2 | 1.317          | 0.226         |
| 257805:4440 | 09/29/15 13:49:01 | 249  | HLT_Mu45_eta2p1_v2 | 18.741         | 18.192        |
| 257816:4440 | 09/29/15 15:33:56 | 385  | HLT_Mu45_eta2p1_v2 | 26.638         | 25.831        |
| 257819:4440 | 09/29/15 18:11:51 | 248  | HLT_Mu45_eta2p1_v2 | 16.591         | 16.070        |
| 257968:4444 | 09/30/15 23:42:22 | 258  | HLT_Mu45_eta2p1_v2 | 18.565         | 17.948        |
| 257969:4444 | 10/01/15 01:24:08 | 634  | HLT_Mu45_eta2p1_v2 | 42.819         | 41.763        |
| 258129:4448 | 10/02/15 09:56:47 | 95   | HLT_Mu45_eta2p1_v2 | 6.427          | 6.161         |
| 258136:4448 | 10/02/15 10:38:14 | 60   | HLT_Mu45_eta2p1_v2 | 3.982          | 3.834         |
| 258157:4449 | 10/02/15 14:07:10 | 56   | HLT_Mu45_eta2p1_v2 | 4.247          | 4.130         |
| 258158:4449 | 10/02/15 14:33:52 | 1784 | HLT_Mu45_eta2p1_v2 | 115.154        | 112.208       |
| 258159:4449 | 10/03/15 02:09:44 | 501  | HLT_Mu45_eta2p1_v2 | 27.649         | 27.042        |
| 258177:4452 | 10/03/15 20:21:28 | 1905 | HLT_Mu45_eta2p1_v2 | 115.286        | 112.358       |
| 258211:4455 | 10/04/15 16:54:29 | 87   | HLT_Mu45_eta2p1_v2 | 7.181          | 6.900         |
| 258213:4455 | 10/04/15 17:32:20 | 165  | HLT_Mu45_eta2p1_v2 | 12.775         | 12.448        |
| 258214:4455 | 10/04/15 18:38:59 | 217  | HLT_Mu45_eta2p1_v2 | 16.794         | 16.374        |
| 258215:4455 | 10/04/15 20:07:49 | 6    | HLT_Mu45_eta2p1_v2 | 0.455          | 0.444         |
| 258287:4462 | 10/05/15 15:44:45 | 180  | HLT_Mu45_eta2p1_v2 | 14.851         | 14.271        |
| 258403:4466 | 10/06/15 14:10:07 | 251  | HLT_Mu45_eta2p1_v2 | 16.927         | 16.555        |
| 258425:4467 | 10/06/15 18:50:09 | 134  | HLT_Mu45_eta2p1_v2 | 11.442         | 10.949        |
| 258426:4467 | 10/06/15 20:00:12 | 10   | HLT_Mu45_eta2p1_v2 | 0.831          | 0.809         |
| 258427:4467 | 10/06/15 20:06:18 | 107  | HLT_Mu45_eta2p1_v2 | 8.809          | 8.498         |
| 258428:4467 | 10/06/15 20:54:17 | 159  | HLT_Mu45_eta2p1_v2 | 12.770         | 12.441        |
| 258432:4467 | 10/06/15 23:04:32 | 4    | HLT_Mu45_eta2p1_v2 | 0.306          | 0.299         |
| 258434:4467 | 10/06/15 23:11:39 | 453  | HLT_Mu45_eta2p1_v2 | 33.448         | 32.645        |
| 258440:4467 | 10/07/15 02:10:32 | 731  | HLT_Mu45_eta2p1_v2 | 48.914         | 47.655        |
| 258444:4467 | 10/07/15 09:00:44 | 37   | HLT_Mu45_eta2p1_v2 | 2.256          | 2.209         |
| 258445:4467 | 10/07/15 09:52:47 | 302  | HLT_Mu45_eta2p1_v2 | 17.747         | 17.379        |
| 258446:4467 | 10/07/15 11:52:39 | 142  | HLT_Mu45_eta2p1_v2 | 8.068          | 7.907         |
| 258448:4467 | 10/07/15 12:53:07 | 729  | HLT_Mu45_eta2p1_v2 | 38.464         | 37.636        |
| 258655:4476 | 10/09/15 11:20:05 | 9    | HLT_Mu45_eta2p1_v2 | 0.800          | 0.412         |
| 258656:4476 | 10/09/15 11:24:46 | 334  | HLT_Mu45_eta2p1_v2 | 28.462         | 27.562        |
| 258694:4477 | 10/09/15 19:55:27 | 177  | HLT_Mu45_eta2p1_v2 | 17.462         | 16.613        |
| 258702:4479 | 10/10/15 07:31:21 | 351  | HLT_Mu45_eta2p1_v2 | 32.910         | 31.593        |
| 258703:4479 | 10/10/15 09:48:30 | 389  | HLT_Mu45_eta2p1_v2 | 34.739         | 33.749        |
| 258705:4479 | 10/10/15 13:01:34 | 100  | HLT_Mu45_eta2p1_v2 | 8.451          | 8.216         |
| 258706:4479 | 10/10/15 13:44:18 | 733  | HLT_Mu45_eta2p1_v2 | 57.585         | 56.093        |
| 258712:4479 | 10/10/15 18:36:26 | 524  | HLT_Mu45_eta2p1_v2 | 37.898         | 36.912        |
| 258713:4479 | 10/10/15 22:03:19 | 161  | HLT_Mu45_eta2p1_v2 | 11.128         | 10.869        |
| 258714:4479 | 10/10/15 23:06:33 | 67   | HLT_Mu45_eta2p1_v2 | 4.571          | 4.463         |
| 258741:4485 | 10/11/15 15:12:30 | 51   | HLT_Mu45_eta2p1_v2 | 5.309          | 4.899         |
| 258742:4485 | 10/11/15 15:37:24 | 692  | HLT_Mu45_eta2p1_v2 | 67.530         | 65.373        |
| 258745:4485 | 10/11/15 20:12:22 | 260  | HLT_Mu45_eta2p1_v2 | 23.504         | 22.816        |
| 258749:4485 | 10/11/15 22:08:51 | 589  | HLT_Mu45_eta2p1_v2 | 49.179         | 48.012        |
| 258750:4485 | 10/12/15 02:08:14 | 197  | HLT_Mu45_eta2p1_v2 | 15.670         | 15.311        |
| 259626:4518 | 10/20/15 04:22:04 | 353  | HLT_Mu45_eta2p1_v2 | 11.924         | 11.712        |
| 259637:4519 | 10/20/15 11:55:23 | 219  | HLT_Mu45_eta2p1_v2 | 16.239         | 15.844        |
| 259681:4522 | 10/21/15 02:10:07 | 35   | HLT_Mu45_eta2p1_v2 | 3.522          | 2.006         |
| 259683:4522 | 10/21/15 02:51:43 | 88   | HLT_Mu45_eta2p1_v2 | 8.079          | 7.819         |
| 259685:4522 | 10/21/15 03:31:12 | 623  | HLT_Mu45_eta2p1_v2 | 57.547         | 55.840        |
| 259686:4522 | 10/21/15 07:40:55 | 336  | HLT_Mu45_eta2p1_v2 | 28.167         | 27.371        |
| 259721:4525 | 10/21/15 21:49:33 | 334  | HLT_Mu45_eta2p1_v2 | 12.767         | 12.400        |
| 259809:4528 | 10/23/15 01:19:55 | 170  | HLT_Mu45_eta2p1_v2 | 14.952         | 14.370        |
| 259810:4528 | 10/23/15 02:27:57 | 114  | HLT_Mu45_eta2p1_v2 | 10.166         | 9.903         |
| 259811:4528 | 10/23/15 03:14:40 | 89   | HLT_Mu45_eta2p1_v2 | 7.792          | 7.470         |
| 259813:4528 | 10/23/15 03:55:28 | 10   | HLT_Mu45_eta2p1_v2 | 0.866          | 0.746         |
| 259817:4528 | 10/23/15 04:12:46 | 5    | HLT_Mu45_eta2p1_v2 | 0.430          | 0.363         |
| 259818:4528 | 10/23/15 04:16:25 | 160  | HLT_Mu45_eta2p1_v2 | 13.594         | 13.212        |
| 259820:4528 | 10/23/15 05:28:06 | 158  | HLT_Mu45_eta2p1_v2 | 13.024         | 12.560        |
| 259821:4528 | 10/23/15 06:36:07 | 210  | HLT_Mu45_eta2p1_v2 | 16.688         | 16.180        |
| 259822:4528 | 10/23/15 08:06:27 | 461  | HLT_Mu45_eta2p1_v2 | 33.464         | 32.722        |
| 259861:4530 | 10/23/15 22:04:22 | 152  | HLT_Mu45_eta2p1_v2 | 14.156         | 13.729        |
| 259862:4530 | 10/23/15 23:06:58 | 530  | HLT_Mu45_eta2p1_v2 | 47.269         | 45.860        |
| 259884:4532 | 10/24/15 16:31:58 | 80   | HLT_Mu45_eta2p1_v2 | 7.143          | 6.731         |
| 259890:4532 | 10/24/15 17:20:01 | 107  | HLT_Mu45_eta2p1_v2 | 10.097         | 9.701         |
| 259891:4532 | 10/24/15 18:06:49 | 108  | HLT_Mu45_eta2p1_v2 | 10.000         | 9.603         |
| 260373:4555 | 10/30/15 10:18:37 | 360  | HLT_Mu45_eta2p1_v2 | 11.151         | 10.920        |
| 260424:4557 | 10/30/15 18:40:06 | 666  | HLT_Mu45_eta2p1_v2 | 69.025         | 66.688        |
| 260425:4557 | 10/30/15 23:06:36 | 252  | HLT_Mu45_eta2p1_v2 | 24.360         | 23.600        |
| 260426:4557 | 10/31/15 01:02:23 | 499  | HLT_Mu45_eta2p1_v2 | 45.106         | 43.931        |
| 260427:4557 | 10/31/15 04:25:46 | 285  | HLT_Mu45_eta2p1_v2 | 23.749         | 23.075        |
| 260431:4557 | 10/31/15 06:31:22 | 447  | HLT_Mu45_eta2p1_v2 | 36.098         | 35.127        |
| 260532:4560 | 11/01/15 04:26:38 | 742  | HLT_Mu45_eta2p1_v2 | 71.167         | 69.169        |
| 260533:4560 | 11/01/15 09:24:23 | 14   | HLT_Mu45_eta2p1_v2 | 1.271          | 1.195         |
| 260534:4560 | 11/01/15 09:34:18 | 375  | HLT_Mu45_eta2p1_v2 | 33.012         | 32.044        |
| 260536:4560 | 11/01/15 12:11:50 | 177  | HLT_Mu45_eta2p1_v2 | 14.854         | 14.466        |
| 260538:4560 | 11/01/15 13:29:58 | 284  | HLT_Mu45_eta2p1_v2 | 23.008         | 22.369        |
| 260541:4560 | 11/01/15 15:25:55 | 24   | HLT_Mu45_eta2p1_v2 | 1.903          | 1.830         |
| 260575:4562 | 11/01/15 21:37:56 | 20   | HLT_Mu45_eta2p1_v2 | 1.922          | 1.722         |
| 260576:4562 | 11/01/15 21:49:30 | 463  | HLT_Mu45_eta2p1_v2 | 54.697         | 51.429        |
| 260577:4562 | 11/02/15 00:53:22 | 76   | HLT_Mu45_eta2p1_v2 | 8.592          | 8.252         |
| 260593:4565 | 11/02/15 08:42:24 | 337  | HLT_Mu45_eta2p1_v2 | 38.029         | 35.893        |
| 260627:4569 | 11/02/15 19:06:16 | 1740 | HLT_Mu45_eta2p1_v2 | 186.195        | 178.937       |
+-------------+-------------------+------+--------------------+----------------+---------------+
#Summary: 
+--------------------+-------+------+-------+-------------------+------------------+
| hltpath            | nfill | nrun | ncms  | totdelivered(/pb) | totrecorded(/pb) |
+--------------------+-------+------+-------+-------------------+------------------+
| HLT_Mu45_eta2p1_v2 | 47    | 116  | 33212 | 2398.390          | 2318.348         |
+--------------------+-------+------+-------+-------------------+------------------+

February 22 2016
Everything updated to JECv7, new ntuples
This is the information for the NOTE table 6:
 Data: 1545.0
   TT: 1874.37551438
    Z: 9.68489921425
 Stop: 98.7659983145
    W: 12.8993716795
   VV: 24.0163465204
MuMu: Rtt =  [0.7467198400383271, 0.021312514617781685]
Now calculating R_mumu,emu, the ratio of mumu to e,mu events in ttbar MC. 
Should be near 0.5
R_uu,eu =  0.542798000873  +-  0.0026121171095

2262.946*weight_central*(1.0-(( 1.0 - 0.9494*(abs(Eta_muon1)<=0.9)*(Pt_muon1>50)*(Pt_muon1<60) - 0.9460*(abs(Eta_muon1)<=0.9)*(Pt_muon1>60) - 0.9030*(abs(Eta_muon1)>0.9)*(abs(Eta_muon1)<=1.2)*(Pt_muon1>50)*(Pt_muon1<60) - 0.8968*(abs(Eta_muon1)>0.9)*(abs(Eta_muon1)<=1.2)*(Pt_muon1>60) - 0.9153*(abs(Eta_muon1)>1.2)*(abs(Eta_muon1)<=2.1)*(Pt_muon1>50)*(Pt_muon1<60) - 0.9175*(abs(Eta_muon1)>1.2)*(abs(Eta_muon1)<=2.1)*(Pt_muon1>60) )*( 1.0 - 0.9494*(abs(Eta_muon2)<=0.9)*(Pt_muon2>50)*(Pt_muon2<60) - 0.9460*(abs(Eta_muon2)<=0.9)*(Pt_muon2>60) - 0.9030*(abs(Eta_muon2)>0.9)*(abs(Eta_muon2)<=1.2)*(Pt_muon2>50)*(Pt_muon2<60) - 0.8968*(abs(Eta_muon2)>0.9)*(abs(Eta_muon2)<=1.2)*(Pt_muon2>60) - 0.9153*(abs(Eta_muon2)>1.2)*(abs(Eta_muon2)<=2.1)*(Pt_muon2>50)*(Pt_muon2<60) - 0.9175*(abs(Eta_muon2)>1.2)*(abs(Eta_muon2)<=2.1)*(Pt_muon2>60) )))*((Pt_muon1>50)*(Pt_muon2>50)*(Pt_jet1>50)*(Pt_jet2>50)*(St_uujj>300)*(M_uu>50))*(DR_muon1muon2>0.3)*(passDataCert*passPrimaryVertex*(GoodVertexCount>=1))*(passHBHENoiseFilter)*(passBeamHalo2015)*(passBadEcalSC)*(passBadMuonTrackList*passBadResTrackList)*(M_uu>80)*(M_uu<100)*(pass_HLTMu40_eta2p1)
MuMu scale factor integrals:
Data: [2729.0, 52.23983154643591] [1216.0, 34.87119154832539]
Z: [2753.2906850747645, 23.943870912358815] [341.54964786587334, 8.500103557494418]
TT: [48.85659727284134, 0.8735342617085003] [992.1046381289115, 4.008362050413337]
Other: [63.04487008243208, 3.471969255774562] [67.83068582936725, 3.996684975397917]
MuMu: RZ  =  0.954 +- 0.021
MuMu: Rtt =  0.829 +- 0.038

February 4 2016
brilcalc correct usage:
brilcalc lumi -u /pb --normtag ~lumipro/public/normtag_file/OfflineNormtagV2.json -i Cert_246908-260627_13TeV_PromptReco_Collisions15_25ns_JSON_Silver_v2.txt --hltpath "HLT_Mu45_eta2p1_v*"
January 29 2016
Updates using muon id and iso scale factors.

New data-driven TTBar:

This is the information for the NOTE table 6:
 Data: 1603.0
   TT: 1522.67225472
    Z: 6.6581616076
 Stop: 80.2995619446
    W: 9.69973724096
   VV: 20.5734555394
MuMu: Rtt =  [0.9757642060257969, 0.02669555945481775]
Now calculating R_mumu,emu, the ratio of mumu to e,mu events in ttbar MC. 
Should be near 0.5
R_uu,eu =  0.589725448751  +-  0.0030039816931

Normalization scale factors:

Using Data-driven TTbar
MuMu scale factor integrals:
Data: [2859.0, 53.4696175411794] [1280.0, 35.77708763999664]
Z: [2252.6773150903327, 21.15424408115507] [279.84887212124926, 7.487798245787903]
TT: [42.53667543902711, 0.7988990063090782] [876.8655656356709, 3.6903115076396236]
Other: [50.980441939715014, 2.9956840726837557] [54.84915157351291, 3.5101516172632006]
MuMu: RZ  =  1.227 +- 0.027
MuMu: Rtt =  1.000 +- 0.067

Here $(N_1,N_2) = (   13157.0 , 2649.0 )$, $(N_{1,\ttbar},N_{2,\ttbar}) = (  2197.1 \pm 5.8 , 2596.2 \pm 6.2 )$,  $(N_{1,W},N_{2,W}) = (  6766.6 \pm 54.7 , 106.2 \pm 7.5 $, and $(N_{1,0},N_{2,0}) = (  911.5 \pm 15.2 , 211.4 \pm 6.4 )$.
MuNu scale factor integrals:
Data: [13157.0, 114.70396680150168] [2649.0, 51.468436929831086]
W: [6766.631151965871, 54.68318888978043] [106.15058041053358, 7.527544274100805]
TT: [2197.13434108751, 5.82336116275849] [2596.1739604776035, 6.218892452360229]
Other: [911.4956972210149, 15.153618059191261] [211.35835399839388, 6.360941509814566]
MuNu: RW  =  1.524 +- 0.022
MuNu: Rtt =  0.877 +- 0.021
January 15 2016
New QCD results
------ DIMUON CHANNEL -------
Number of events in QCD MC:
Q_ss: [171.882125491346, 49.150773095392]
Q_os: [405.14812310649, 55.84426244828722]
Test: In normal Iso data, the number of same-sign events is [16.0, 4.0]
Test: In normal Iso MC, the number of same-sign events is
    Z: [0.29673575995764734, 0.09480872376015821]
    W: [0.7812374813265911, 0.4912821180589424]
    t: [2.292843282173329, 0.7503753066210953]
   VV: [0.6542064627776087, 0.3680377437840264]
   tt: [17.63324226347706, 0.5399334095494794]
Test: QCD Prediction in SS Isolated: [0.0005993987914136409, 0.0005993987914136409]

In QCD MC, the conversion factor between same-sign muon events and all events is: $ 3.4565 \pm 0.7547 $
In QCD MC, the single-muon isolation acceptance is: $ 0.1161 \pm 0.0418 $
In QCD MC, the conversion factor between non-isolated di-muon events and isolated dimuon events is: $ 0.0135 \pm 0.0097 $
Thus, in Same-Sign non-iso data, a factor of: $ 0.0466 \pm 0.035 $ will give the QCD estimate.

  Preparing basic histo for uujj:TrkIso_muon1...  
Getting Final sel 
Doing Projections
SM Integral:  2532.23214653
hs_rec_Data.Integral():  2476.0 hs_rec_Data.GetEntries() 5572.0
Stacking...   Legend...   Saving...   Done.
SysError in <TFile::Flush>: error flushing file tmpbin.root (No such file or directory)
  Preparing basic histo for uujj:TrkIso_muon2...  
Getting Final sel 
Doing Projections
SM Integral:  2712.13849466
hs_rec_Data.Integral():  2678.0 hs_rec_Data.GetEntries() 5572.0
Stacking...   Legend...   Saving...   Done.

For final selections, this gives estimates:

200 & $ 2.6628 \pm 2.1255 $ \\
250 & $ 2.6628 \pm 2.1255 $ \\
300 & $ 1.8816 \pm 1.5461 $ \\
350 & $ 1.0741 \pm 0.9426 $ \\
400 & $ 0.1538 \pm 0.3409 $ \\
450 & $ 0.0259 \pm 0.2305 $ \\
500 & $ -0.154 \pm -0.1859 $ \\
550 & $ -0.0271 \pm -0.1291 $ \\
600 & $ -0.0146 \pm -0.0969 $ \\
650 & $ 0.0244 \pm 0.084 $ \\
700 & $ 0.017 \pm 0.0683 $ \\
750 & $ -0.0045 \pm -0.0481 $ \\
800 & $ 0.011 \pm 0.0485 $ \\
850 & $ 0.0188 \pm 0.0498 $ \\
900 & $ 0.0246 \pm 0.0512 $ \\
950 & $ 0.0275 \pm 0.052 $ \\
1000 & $ 0.04 \pm 0.0555 $ \\
1050 & $ 0.0422 \pm 0.0564 $ \\
1100 & $ 0.0427 \pm 0.0566 $ \\
1150 & $ 0.0428 \pm 0.0567 $ \\
1200 & $ 0.0428 \pm 0.0567 $ \\
1250 & $ 0.0459 \pm 0.058 $ \\
1300 & $ 0.0462 \pm 0.0581 $ \\
1350 & $ 0.0462 \pm 0.0581 $ \\
1400 & $ 0.0463 \pm 0.0582 $ \\
1450 & $ -0.0003 \pm -0.0002 $ \\
1500 & $ -0.0002 \pm -0.0002 $ \\
1550 & $ -0.0002 \pm -0.0002 $ \\
1600 & $ -0.0001 \pm -0.0001 $ \\
1650 & $ -0.0001 \pm -0.0001 $ \\
1700 & $ -0.0001 \pm -0.0001 $ \\
1750 & $ -0.0001 \pm -0.0001 $ \\
1800 & $ -0.0001 \pm -0.0001 $ \\
1850 & $ -0.0001 \pm -0.0001 $ \\
1900 & $ -0.0001 \pm -0.0001 $ \\
1950 & $ -0.0001 \pm -0.0001 $ \\
2000 & $ -0.0001 \pm -0.0001 $ \\

------ MUON+MET CHANNEL -------
In the non_isolated low-MET region, the global QCD rescaling is: $ 0.7763 \pm 0.0361 $

The data-driven fake-rate is: $ 0.079 \pm 0.0073 $

The MC-driven fake-rate is: $ 0.0672 \pm 0.0245 $
  Preparing basic histo for uvjj:Pt_miss...  
Getting Final sel 
Doing Projections
SM Integral:  2255.04456947
hs_rec_Data.Integral():  9356.0 hs_rec_Data.GetEntries() 9356.0
Stacking...   Legend...   Saving...   Done.
  Preparing basic histo for uvjj:Pt_miss...  
Getting Final sel 
Doing Projections
SM Integral:  2251.4844221
hs_rec_Data.Integral():  9356.0 hs_rec_Data.GetEntries() 9356.0
Stacking...   Legend...   Saving...   Done.
  Preparing basic histo for uvjj:Pt_miss...  
Getting Final sel 
Doing Projections
SM Integral:  2255.04456947
hs_rec_Data.Integral():  9356.0 hs_rec_Data.GetEntries() 9356.0
Stacking...   Legend...   Saving...   Done.
  Preparing basic histo for uvjj:Pt_miss...  
Getting Final sel 
Doing Projections
SM Integral:  2251.4844221
hs_rec_Data.Integral():  9356.0 hs_rec_Data.GetEntries() 9356.0
Stacking...   Legend...   Saving...   Done.

For final selections, this gives estimates:

200 & $ 187.8844 \pm 20.8 $ \\
250 & $ 14.537 \pm 2.2135 $ \\
300 & $ 1.2289 \pm 0.2366 $ \\
350 & $ 0.2361 \pm 0.0821 $ \\
400 & $ 0.0695 \pm 0.0256 $ \\
450 & $ 0.0355 \pm 0.0186 $ \\
500 & $ 0.0189 \pm 0.0147 $ \\
550 & $ 0.0018 \pm 0.0011 $ \\
600 & $ 0.0018 \pm 0.0011 $ \\
650 & $ 0.0003 \pm 0.0003 $ \\
700 & $ 0.0003 \pm 0.0003 $ \\
750 & $ 0.0003 \pm 0.0003 $ \\
800 & $ 0.0003 \pm 0.0003 $ \\
850 & $ 0.0003 \pm 0.0003 $ \\
900 & $ 0.0003 \pm 0.0003 $ \\
950 & $ 0.0003 \pm 0.0003 $ \\
1000 & $ 0.0003 \pm 0.0003 $ \\
1050 & $ 0.0 \pm 0.0 $ \\
1100 & $ 0.0 \pm 0.0 $ \\
1150 & $ 0.0 \pm 0.0 $ \\
1200 & $ 0.0 \pm 0.0 $ \\
1250 & $ 0.0 \pm 0.0 $ \\
1300 & $ 0.0 \pm 0.0 $ \\
1350 & $ 0.0 \pm 0.0 $ \\
1400 & $ 0.0 \pm 0.0 $ \\
1450 & $ 0.0 \pm 0.0 $ \\
1500 & $ 0.0 \pm 0.0 $ \\
1550 & $ 0.0 \pm 0.0 $ \\
1600 & $ 0.0 \pm 0.0 $ \\
1650 & $ 0.0 \pm 0.0 $ \\
1700 & $ 0.0 \pm 0.0 $ \\
1750 & $ 0.0 \pm 0.0 $ \\
1800 & $ 0.0 \pm 0.0 $ \\
1850 & $ 0.0 \pm 0.0 $ \\
1900 & $ 0.0 \pm 0.0 $ \\
1950 & $ 0.0 \pm 0.0 $ \\
2000 & $ 0.0 \pm 0.0 $ \\

New TTBar results

Checking TTBar E-Mu sample against E_Mu MC with selection:
2154.493*weight_central*((IsMuon_muon1*( 0.9494*(abs(Eta_muon1)<=0.9)*(Pt_muon1<60) + 0.9460*(abs(Eta_muon1)<=0.9)*(Pt_muon1>60) + 0.9030*(abs(Eta_muon1)>0.9)*(abs(Eta_muon1)<=1.2)*(Pt_muon1<60) + 0.8968*(abs(Eta_muon1)>0.9)*(abs(Eta_muon1)<=1.2)*(Pt_muon1>60) + 0.9153*(abs(Eta_muon1)>1.2)*(abs(Eta_muon1)<=2.1)*(Pt_muon1<60) + 0.9175*(abs(Eta_muon1)>1.2)*(abs(Eta_muon1)<=2.1)*(Pt_muon1>60) ))+(IsMuon_muon2*( 0.9494*(abs(Eta_muon2)<=0.9)*(Pt_muon2<60) + 0.9460*(abs(Eta_muon2)<=0.9)*(Pt_muon2>60) + 0.9030*(abs(Eta_muon2)>0.9)*(abs(Eta_muon2)<=1.2)*(Pt_muon2<60) + 0.8968*(abs(Eta_muon2)>0.9)*(abs(Eta_muon2)<=1.2)*(Pt_muon2>60) + 0.9153*(abs(Eta_muon2)>1.2)*(abs(Eta_muon2)<=2.1)*(Pt_muon2<60) + 0.9175*(abs(Eta_muon2)>1.2)*(abs(Eta_muon2)<=2.1)*(Pt_muon2>60) )))*((Pt_muon1>50)*(Pt_muon2>50)*(Pt_jet1>50)*(Pt_jet2>50)*(St_uujj>300)*(M_uu>50)*(DR_muon1muon2>0.3))*(passDataCert*passPrimaryVertex*(GoodVertexCount>=1))*(passHBHENoiseFilter*passBadEESuperCrystal)*(passBadEcalSC)
This is the information for the NOTE table 6:
 Data: 1603.0
   TT: 1543.94485334
    Z: 6.74837050025
 Stop: 81.5847976561
    W: 9.80947080354
   VV: 20.8982880235
MuMu: Rtt =  [0.9611477183300224, 0.02633407779715343]
Now calculating R_mumu,emu, the ratio of mumu to e,mu events in ttbar MC. 
Should be near 0.5
R_uu,eu =  0.598009156358  +-  0.00304533731718

New normalization scale factors:

Using Data-driven TTbar
MuMu scale factor integrals:
Data: [2859.0, 53.4696175411794] [1280.0, 35.77708763999664]
Z: [2315.9644261656963, 21.685106592538936] [288.3633182583568, 7.694238961011688]
TT: [43.60120878797054, 0.8189306754457354] [901.818297567722, 3.793871274123952]
Other: [52.60541771197755, 3.0908736732980815] [56.771919912093466, 3.627987258138521]
MuMu: RZ  =  1.193 +- 0.025
MuMu: Rtt =  1.000 +- 0.067
Here $(N_1,N_2) = (   8074.0 , 1071.0 )$, $(N_{1,\ttbar},N_{2,\ttbar}) = (  2179.5 \pm 6.0 , 1091.3 \pm 4.0 )$,  $(N_{1,W},N_{2,W}) = (  3048.4 \pm 35.3 , 21.0 \pm 2.1 $, and $(N_{1,0},N_{2,0}) = (  617.9 \pm 12.2 , 73.7 \pm 3.7 )$.
MuNu scale factor integrals:
Data: [8074.0, 89.85543945694106] [1071.0, 32.72613634390714]
W: [3048.3957407984085, 35.30662165538906] [20.984799354034504, 2.0646980106715054]
TT: [2179.4658066622933, 5.988844423687837] [1091.322228719191, 4.0214500363075985]
Other: [617.9373649042361, 12.17499849075764] [73.67122619139222, 3.720035884821545]
MuNu: RW  =  1.818 +- 0.042
MuNu: Rtt =  0.879 +- 0.031
January 15 2016
QCD Study with no ptHat reweighting:
------ DIMUON CHANNEL -------
[171.882125491346, 49.150773095392]
[405.14812310649, 55.84426244828722]
Test: In normal Iso data, the number of same-sign events is  [16.0, 4.0]
Test: QCD Prediction in SS Isolated: [0.0005993987914136409, 0.0005993987914136409]

In QCD MC, the conversion factor between same-sign muon events and all events is: $ 4.0752 \pm 1.1478 $
In QCD MC, the single-muon isolation acceptance is: $ 0.1276 \pm 0.0486 $
In QCD MC, the conversion factor between non-isolated di-muon events and isolated dimuon events is: $ 0.0163 \pm 0.0124 $
Thus, in Same-Sign non-iso data, a factor of : $ 0.0664 \pm 0.0539 $ will give the QCD estimate.
  Preparing basic histo for uujj:TrkIso_muon1...  
Getting Final sel 
Doing Projections
2936.91454664
2476.0 5572.0
Stacking...   Legend...   Saving...   Done.
  Preparing basic histo for uujj:TrkIso_muon2...  
Getting Final sel 
Doing Projections
3115.77281213
2678.0 5572.0
Stacking...   Legend...   Saving...   Done.

For final selections, this gives estimates:

200 & $ 0.0659 \pm 0.0853 $ \\
600 & $ 0.0725 \pm 0.1765 $ \\
1200 & $ 0.0659 \pm 0.0853 $ \\
December 16 2015
Full dataset, new ntuples
This is the information for the NOTE table 6:
 Data: 1603.0
   TT: 1543.94485334
    Z: 6.74837050025
 Stop: 81.5847976561
    W: 9.80947080354
   VV: 20.8982880235
MuMu: Rtt =  [0.9611477183300224, 0.02633407779715343]
Now calculating R_mumu,emu, the ratio of mumu to e,mu events in ttbar MC. 
Should be near 0.5
R_uu,eu =  0.598009156358  +-  0.00304533731718

Using Data-driven TTbar
MuMu scale factor integrals:
Data: [2859.0, 53.4696175411794] [1280.0, 35.77708763999664]
Z: [2315.9644261656963, 21.685106592538936] [288.3633182583568, 7.694238961011688]
TT: [43.60120878797054, 0.8189306754457354] [901.818297567722, 3.793871274123952]
Other: [52.60541771197755, 3.0908736732980815] [56.771919912093466, 3.627987258138521]
MuMu: RZ  =  1.193 +- 0.026
MuMu: Rtt =  1.000 +- 0.067
Here $(N_1,N_2) = (   7366.0 , 2706.0 )$, $(N_{1,\ttbar},N_{2,\ttbar}) = (  995.1 \pm 3.9 , 2445.7 \pm 6.1 )$,  $(N_{1,W},N_{2,W}) = (  4263.3 \pm 44.4 , 290.4 \pm 10.3 $, and $(N_{1,0},N_{2,0}) = (  473.3 \pm 11.5 , 219.3 \pm 6.6 )$.
MuNu scale factor integrals:
Data: [7366.0, 85.82540416450132] [2706.0, 52.01922721455981]
W: [4263.32306221241, 44.40833611863301] [290.3507943544257, 10.277167440429709]
TT: [995.1048119565698, 3.873082062113944] [2445.7348194272613, 6.137559244182531]
Other: [473.33417802150694, 11.45791654138735] [219.343103127392, 6.562974042448501]
MuNu: RW  =  1.419 +- 0.026
MuNu: Rtt =  0.848 +- 0.023

[315.3180525675167, 289.5156834004877]
[261.7121960308429, 71.40021649514912]
Test: In normal Iso data, the number of same-sign events is  [16.0, 4.0]
Test: In normal Iso MC, the number of same-sign events is  [0.29673575995764734, 0.09480872376015821] [0.7812374813265911, 0.4912821180589424] [2.292843282173329, 0.7503753066210953] [0.6542064627776087, 0.3680377437840264] [17.63324226347706, 0.5399334095494794]
Test: QCD Prediction in SS Isolated: [4.774139243868616e-06, 4.774139243868616e-06]


In QCD MC, the conversion factor between same-sign muon events and all events is: $ 1.6682 \pm 0.7925 $
In QCD MC, the single-muon isolation acceptance is: $ 0.0182 \pm 0.016 $
In QCD MC, the conversion factor between non-isolated di-muon events and isolated dimuon events is: $ 0.0003 \pm 0.0006 $
Thus, in Same-Sign non-iso data, a factor of : $ 0.0006 \pm 0.001 $ will give the QCD estimate.

For final selections, this gives estimates:

300 & $ 0.0072 \pm 0.0121 $ \\
350 & $ 0.0038 \pm 0.0066 $ \\
400 & $ 0.0008 \pm 0.0018 $ \\
450 & $ -0.0001 \pm -0.0009 $ \\
500 & $ -0.0003 \pm -0.0008 $ \\
550 & $ -0.0001 \pm -0.0006 $ \\
600 & $ 0.0002 \pm 0.0005 $ \\
650 & $ 0.0001 \pm 0.0004 $ \\
700 & $ 0.0002 \pm 0.0004 $ \\
750 & $ 0.0001 \pm 0.0003 $ \\
800 & $ 0.0 \pm 0.0002 $ \\


In the non_isolated low-MET region, the global QCD rescaling is: $ 0.7975 \pm 0.2057 $

The data-driven fake-rate is: $ 0.079 \pm 0.0073 $

The MC-driven fake-rate is: $ 0.3676 \pm 0.2631 $


For final selections, this gives estimates:

300 & $ 4.0203 \pm 1.4056 $ \\
350 & $ 0.5513 \pm 0.2245 $ \\
400 & $ 0.1091 \pm 0.0524 $ \\
450 & $ 0.0433 \pm 0.0156 $ \\
500 & $ 0.018 \pm 0.0083 $ \\
550 & $ 0.007 \pm 0.0032 $ \\
600 & $ 0.0035 \pm 0.0017 $ \\
650 & $ 0.0011 \pm 0.0005 $ \\
700 & $ 0.0003 \pm 0.0001 $ \\
750 & $ 0.0002 \pm 0.0001 $ \\
800 & $ 0.0001 \pm 0.0001 $ \\

December 1, 2015
Upped QCD randomization from 1,000 to 10,000 iterations
In QCD MC, the conversion factor between same-sign muon events and all events is: $ 3.647 \pm 0.7792 $
In QCD MC, the single-muon isolation acceptance is: $ 0.2372 \pm 0.0989 $
In QCD MC, the conversion factor between non-isolated di-muon events and isolated dimuon events is: $ 0.0563 \pm 0.0469 $
Thus, in Same-Sign non-iso data, a factor of : $ 0.2052 \pm 0.1766 $ will give the QCD estimate.
November 30, 2015
After re-skimming everything with updated muon isolation value, get the following:
------ DIMUON CHANNEL -------


[171.22820382566334, 44.7074681672788]
[415.2927237928484, 53.87008838017238]
Test: In normal Iso data, the number of same-sign events is  [17.0, 4.123105625617661]
Test: In normal Iso MC, the number of same-sign events is  [0.30685732901413637, 0.09427356518901972] [0.8700224302824479, 0.5154975122874997] [1.8971020449238443, 0.6480727991229217] [0.5909166994673027, 0.3260369027088047] [17.169959498430288, 0.5120124384398744]
Test: QCD Prediction in SS Isolated: [0.005531804709470454, 0.004984856451770893]


In QCD MC, the conversion factor between same-sign muon events and all events is: $ 3.6205 \pm 0.7507 $
In QCD MC, the single-muon isolation acceptance is: $ 0.2371 \pm 0.0992 $
In QCD MC, the conversion factor between non-isolated di-muon events and isolated dimuon events is: $ 0.0562 \pm 0.0471 $
Thus, in Same-Sign non-iso data, a factor of : $ 0.2035 \pm 0.1755 $ will give the QCD estimate.


For final selections, this gives estimates:

300 & $ -1.2629 \pm -3.1101 $ \\
350 & $ -3.0349 \pm -3.4415 $ \\
400 & $ -3.0132 \pm -3.1316 $ \\
450 & $ -2.0982 \pm -2.2594 $ \\
500 & $ -2.0257 \pm -2.0156 $ \\
550 & $ -1.5713 \pm -1.5682 $ \\
600 & $ -1.1775 \pm -1.1981 $ \\
650 & $ -0.4212 \pm -0.6615 $ \\
700 & $ 0.0955 \pm 0.5565 $ \\
750 & $ 0.2699 \pm 0.5593 $ \\
800 & $ 0.498 \pm 0.665 $ \\


------ MUON+MET CHANNEL -------

In the non_isolated low-MET region, the global QCD rescaling is: $ 0.5523 \pm 0.0254 $

The data-driven fake-rate is: $ -0.2829 \pm -0.0121 $

The MC-driven fake-rate is: $ 0.0638 \pm 0.0215 $
For final selections, this gives estimates:

300 & $ -105.9266 \pm 10.8461 $ \\
350 & $ -34.362 \pm 4.6281 $ \\
400 & $ -12.0104 \pm 1.6252 $ \\
450 & $ -6.2798 \pm 0.8046 $ \\
500 & $ -3.3382 \pm 0.494 $ \\
550 & $ -2.0319 \pm 0.3492 $ \\
600 & $ -1.379 \pm 0.2553 $ \\
650 & $ -0.7711 \pm 0.1231 $ \\
700 & $ -0.4411 \pm 0.0684 $ \\
750 & $ -0.3081 \pm 0.0574 $ \\
800 & $ -0.2274 \pm 0.048 $ \\

This is the information for the NOTE table 6:
 Data: 1651.0
   TT: 1647.33283585
    Z: 9.11226015805
 Stop: 88.758251022
    W: 57.7893729732
   VV: 21.7670035102
MuMu: Rtt =  [0.8945205730559369, 0.02509541774890848]
Now calculating R_mumu,emu, the ratio of mumu to e,mu events in ttbar MC. 
Should be near 0.5
R_uu,eu =  0.549654873093  +-  0.00271991943592

Using Data-driven TTbar
MuMu scale factor integrals:
Data: [2753.0, 52.46903848937962] [1228.0, 35.04283093587046]
Z: [2275.085795860495, 21.409385672723715] [285.4612935815729, 7.642588710980166]
TT: [30.30398851026256, 0.6704097439336438] [884.46190187489, 3.659588523677118]
Other: [50.32502617058606, 3.0089392260076204] [55.508258829073995, 3.516717339401181]
MuMu: RZ  =  1.176 +- 0.026
MuMu: Rtt =  1.000 +- 0.067
Here $(N_1,N_2) = (   18041.0 , 7792.0 )$, $(N_{1,\ttbar},N_{2,\ttbar}) = (  4105.5 \pm 7.9 , 5674.9 \pm 9.2 )$,  $(N_{1,W},N_{2,W}) = (  8436.2 \pm 59.4 , 1752.7 \pm 21.5 $, and $(N_{1,0},N_{2,0}) = (  1922.4 \pm 21.0 , 696.7 \pm 11.4 )$.
MuNu scale factor integrals:
Data: [18041.0, 134.31678971744373] [7792.0, 88.27230596285564]
W: [8436.239609014949, 59.40254858733002] [1752.6982272823946, 21.53326845083059]
TT: [4105.545727559358, 7.87446151230045] [5674.9313830567735, 9.183191393602215]
Other: [1922.399531801362, 20.963507627325065] [696.7355774781967, 11.41035411574612]
MuNu: RW  =  1.532 +- 0.024
MuNu: Rtt =  0.777 +- 0.021
November 26, 2015
QCd Study output:
unisolated QCD:
SameSign: [171.22820382566334, 44.70746816727879]
OppositeSign:[415.29272379284834, 53.87008838017238]
Test: In normal Iso data, the number of same-sign events is  [70.0, 8.366600265340756]
Test: In normal Iso MC, the number of same-sign events is  [1.3014534704976357, 0.4178798525365725] [4.140624024589024, 1.05210121166253] [7.164947138948985, 1.205299890105408] [0.5907899946382476, 0.3274137300545217] [64.03911206293336, 1.614513720948033]
Test: QCD Prediction in SS Isolated: [0.005531804709470454, 0.004984856451770893]

In QCD MC, the conversion factor between same-sign muon events and all events is: $ 3.6368 \pm 0.7718 $
In QCD MC, the single-muon isolation acceptance is: $ 0.236 \pm 0.0985 $
In QCD MC, the conversion factor between non-isolated di-muon events and isolated dimuon events is: $ 0.0557 \pm 0.0465 $
Thus, in Same-Sign non-iso data, a factor of : $ 0.2025 \pm 0.1745 $ will give the QCD estimate.
 
For final selections, this gives estimates:

300 & $ 8.3979 \pm 7.828 $ \\
350 & $ 4.1162 \pm 4.2293 $ \\
400 & $ 2.0031 \pm 2.4864 $ \\
450 & $ 0.9078 \pm 1.5735 $ \\
500 & $ 0.1776 \pm 1.0337 $ \\
550 & $ 0.2278 \pm 0.8325 $ \\
600 & $ 0.2257 \pm 0.6888 $ \\
650 & $ 0.3871 \pm 0.642 $ \\
700 & $ 0.7124 \pm 0.8213 $ \\
750 & $ 0.6938 \pm 0.7823 $ \\
800 & $ 0.8059 \pm 0.858 $ \\

------ MUON+MET CHANNEL -------
In the non_isolated low-MET region, the global QCD rescaling is: $ 0.8057 \pm 0.0354 $

The data-driven fake-rate is: $ 0.0911 \pm 0.0069 $

The MC-driven fake-rate is: $ 0.0638 \pm 0.0215 $
 
For final selections, this gives estimates:

300 & $ 49.7504 \pm 5.912 $ \\
350 & $ 16.1387 \pm 2.3816 $ \\
400 & $ 5.6409 \pm 0.8357 $ \\
450 & $ 2.9494 \pm 0.4177 $ \\
500 & $ 1.5678 \pm 0.2505 $ \\
550 & $ 0.9543 \pm 0.1738 $ \\
600 & $ 0.6477 \pm 0.1261 $ \\
650 & $ 0.3622 \pm 0.0618 $ \\
700 & $ 0.2072 \pm 0.0345 $ \\
750 & $ 0.1447 \pm 0.0283 $ \\
800 & $ 0.1068 \pm 0.0234 $ \\
November 23, 2015
Changed ST cut to 300
This is the information for the NOTE table 6:
 Data: 1733.0
   TT: 1740.89758956
    Z: 11.452105009
 Stop: 96.3872384235
    W: 21.0038553115
   VV: 22.0293782543
MuMu: Rtt =  [0.9087998240060537, 0.024304788749433714]
Now calculating R_mumu,emu, the ratio of mumu to e,mu events in ttbar MC. 
Should be near 0.5
R_uu,eu =  0.546400971094  +-  0.00280817178326

November 20, 2015
After update to 2046/pb, TTbar datadriven study gives this now:
This is the information for the NOTE table 6:
 Data: 2114.0
   TT: 2111.43381276
    Z: 13.0491197642
 Stop: 111.89950951
    W: 21.5049539565
   VV: 23.9840828998
MuMu: Rtt =  [0.9204940842195002, 0.022119275202186914]
Now calculating R_mumu,emu, the ratio of mumu to e,mu events in ttbar MC. 
Should be near 0.5
R_uu,eu =  0.547117432412  +-  0.00255252829277

November 18, 2015
After new PU reweghting, TTbar datadriven study gives this now:
This is the information for the NOTE table 6:
 Data: 1511.0
   TT: 1474.58835446
    Z: 8.95817194813
 Stop: 78.2409125034
    W: 14.7887682366
   VV: 16.6050513254
MuMu: Rtt =  [0.9442683388736318, 0.026651144751864676]
Now calculating R_mumu,emu, the ratio of mumu to e,mu events in ttbar MC. 
Should be near 0.5
R_uu,eu =  0.547538641851  +-  0.00255679819155
And here are scale factors:
Using Data-driven TTbar
MuMu scale factor integrals:
Data: [2559.0, 50.586559479766954] [1152.0, 33.94112549695428]
Z: [1959.37507862165, 17.538706690264256] [243.79278246583726, 6.235794177707038]
TT: [57.539873488932116, 0.9589001018729101] [783.9934571706369, 3.0634303437502077]
Other: [47.29860228321148, 2.5014927444332797] [57.77296616775018, 2.9645977250956292]
MuMu: RZ  =  1.252 +- 0.028
MuMu: Rtt =  1.000 +- 0.067
Here $(N_1,N_2) = (   25846.0 , 8689.0 )$, $(N_{1,\ttbar},N_{2,\ttbar}) = (  4760.7 \pm 11.2 , 5334.5 \pm 12.6 )$,  $(N_{1,W},N_{2,W}) = (  10392.2 \pm 60.8 , 1639.7 \pm 18.7 $, and $(N_{1,0},N_{2,0}) = (  2348.2 \pm 19.5 , 645.7 \pm 9.4 )$.
MuNu scale factor integrals:
Data: [25846.0, 160.76691201861158] [8689.0, 93.2148056909416]
W: [10392.173393576959, 60.79736467245896] [1639.7268239649566, 18.683935150606228]
TT: [4760.723724596229, 11.201413115070027] [5334.523370765959, 12.589907479474526]
Other: [2348.2039486626986, 19.494793389463563] [645.6667229861478, 9.448025315385221]
MuNu: RW  =  1.828 +- 0.024
MuNu: Rtt =  0.946 +- 0.023

November 12, 2015
TTbar datadriven study gives this now:
This is the information for the NOTE table 6:
 Data: 1104.0
   TT: 1314.96507163
    Z: 7.18219215586
 Stop: 69.1023978282
    W: 10.7428098711
   VV: 7.76743877746
MuMu: Rtt =  [0.7674767818103545, 0.025430789827465355]
Now calculating R_mumu,emu, the ratio of mumu to e,mu events in ttbar MC. 
Should be near 0.5
R_uu,eu =  0.575400204669  +-  0.00235072107898
And here are scale factors:
MuMu scale factor integrals:
Data: [2418.0, 49.17316341257699] [1089.0, 33.0]
Z: [1174.4420568701405, 9.160087247602752] [147.86083550931627, 3.3006027308597736]
TT: [42.567590727763125, 0.6050724946139363] [578.3471427744225, 1.9709126074434966]
Other: [19.477600731650995, 0.9077915445925427] [37.6846502851495, 1.672421416989637]
MuMu: RZ  =  1.995 +- 0.044
MuMu: Rtt =  1.308 +- 0.06
Here $(N_1,N_2) = (   24435.0 , 8119.0 )$, $(N_{1,\ttbar},N_{2,\ttbar}) = (  4335.2 \pm 9.0 , 4866.5 \pm 10.2 )$,  $(N_{1,W},N_{2,W}) = (  7781.9 \pm 40.3 , 1224.8 \pm 12.4 $, and $(N_{1,0},N_{2,0}) = (  2036.2 \pm 14.3 , 566.0 \pm 7.1 )$.
MuNu scale factor integrals:
Data: [24435.0, 156.31698564135633] [8119.0, 90.10549372818508]
W: [7781.94780174649, 40.323960787221786] [1224.844011911639, 12.371984076248735]
TT: [4335.227515818788, 8.97148832116407] [4866.478754956513, 10.156247546148549]
Other: [2036.2313209451204, 14.305505579617243] [565.9621718332468, 7.122002079900489]
MuNu: RW  =  2.342 +- 0.03
MuNu: Rtt =  0.963 +- 0.024

November 9, 2015
Scale factors using eff1*eff2 for hlt eff instead of 1-(1-eff1)*(1-eff2)
MuMu: RZ  =  6.064 +- 0.088
MuMu: Rtt =  4.031 +- 0.113
Here $(N_1,N_2) = (   67257.0 , 22746.0 )$, $(N_{1,\ttbar},N_{2,\ttbar}) = (  4422.9 \pm 9.2 , 4975.5 \pm 10.4 )$,  $(N_{1,W},N_{2,W}) = (  7955.1 \pm 41.3 , 1250.1 \pm 12.6 $, and $(N_{1,0},N_{2,0}) = (  1926.7 \pm 13.8 , 547.0 \pm 7.0 )$.
MuNu: RW  =  6.663 +- 0.059
MuNu: Rtt =  2.788 +- 0.043
November 8, 2015
This uses 13TeV SingleTop TTbar datadriven study gives this now:
This is the information for the NOTE table 6:
 Data: 1162.0
   TT: 1254.89989306
    Z: 6.06701753423
 Stop: 66.0188322848
    W: 8.14229196462
   VV: 7.74743708494
MuMu: Rtt =  [0.8558646208120927, 0.027337096492014355]
Now calculating R_mumu,emu, the ratio of mumu to e,mu events in ttbar MC. 
Should be near 0.5
R_uu,eu =  0.559382846097  +-  0.00228158760187
And here are the scale factors:
MuMu: RZ  =  4.443 +- 0.081
MuMu: Rtt =  2.896 +- 0.122
Here $(N_1,N_2) = (   24012.0 , 10695.0 )$, $(N_{1,\ttbar},N_{2,\ttbar}) = (  1324.6 \pm 5.0 , 2249.6 \pm 6.8 )$,  $(N_{1,W},N_{2,W}) = (  3072.0 \pm 21.0 , 725.8 \pm 7.9 $, and $(N_{1,0},N_{2,0}) = (  682.4 \pm 7.9 , 283.2 \pm 4.8 )$.
MuNu: RW  =  6.503 +- 0.082
MuNu: Rtt =  2.531 +- 0.065

November 4, 2015
This uses 8TeV SingleTop TTbar datadriven study gives this now:
 Data: 1162.0
   TT: 1040.22681139
    Z: 4.9603558624
 Stop: 10.186031832
    W: 6.65708735012
   VV: 6.33425645237
MuMu: Rtt =  [1.09001446231836, 0.0329021451382866]
Now calculating R_mumu,emu, the ratio of mumu to e,mu events in ttbar MC. 
Should be near 0.5
R_uu,eu =  0.551731484444  +-  0.00225223740871
After that, scale factors are:
MuMu: RZ  =  3.2 +- 0.058
MuMu: Rtt =  1.000 +- 0.067
Here $(N_1,N_2) = (   37556.0 , 12646.0 )$, $(N_{1,\ttbar},N_{2,\ttbar}) = (  3616.1 \pm 7.5 , 4067.9 \pm 8.5 )$,
$(N_{1,W},N_{2,W}) = (  6504.1 \pm 33.7 , 1022.1 \pm 10.3 $, and $(N_{1,0},N_{2,0}) = (  1575.4 \pm 11.3 , 447.2 \pm 5.7 )$.
MuNu: RW  =  4.493 +- 0.048
MuNu: Rtt =  1.87 +- 0.037
October 21, 2015
TTbar datadriven study gives this now:
This is the information for the NOTE table 6:
 Data: 3192.0
   TT: 92.7407292558
    Z: 1.77412981584
 Stop: 4.98120010044
    W: 0.544415011298
   VV: 1.43455679625
MuMu: Rtt =  [34.324354831162964, 0.6464367902027175]
Now calculating R_mumu,emu, the ratio of mumu to e,mu events in ttbar MC. 
Should be near 0.5
R_uu,eu =  4.44671760689  +-  0.0303133951359
September 24, 2015
TTbar datadriven study gives this:
This is the information for the NOTE table 6:
 Data: 3118.0
   TT: 7.92530232307
    Z: 0.172749348286
 Stop: 0.420515556106
    W: 0.0429418750033
   VV: 0.11665281412
MuMu: Rtt =  [393.32848304487385, 7.481215083303401]
Now calculating R_mumu,emu, the ratio of mumu to e,mu events in ttbar MC. 
Should be near 0.5
R_uu,eu =  3.27008137572  +-  0.022589943206
February 12, 2015
  • SW changes for OTMB registers * TMB.h - create variable and functions to set, read etc. cfeb0123_rxd_int_delay, cfeb456_rxd_int_delay, also posneg

November 24
  • to restart daq drivers on csc-daq: ./usr/local/bin/load_daq_drivers.sh

November 5 : STEP test on cms904usr
  • Abandoned previous method, now using STEP.xml
  • Test 13 doesn't work
    • no data
    • WARN - DDUEvt#32022: DDU#1 Desynched L1A: 3008
  • Test 14 doesn't work
    • no data
    • WARN - DDUEvt#70278: DDU#1 Desynched L1A: 4668
  • Test 15 works after changing alct_rx_clock_delay from 0 to 23
  • Test 16 doesn't work
  • Test 17 doesn't work
    • WARN - ME-1.1.08F- CRC check failed for central strip time sample 1 and 2
    • pipeline depth?
  • Test 17b works sort of
    • CFEB 1 looks dead
    • Timing is bad
      • WARN - ME-1.1.08F- CRC check failed for time sample 1 and 2
      • DEBUG - ME-1.1.08F-:6:16 Error> dac=17 , sample=1, cnt=0
  • Test 19 doesn't work
    • WARN - ME-1.1.08F-: Layer 6 strip 80 has threshold = -1.00 and noise = -1.00 par0 0.000000, mean 76.000000, rms 0.000000, chisq -1.000000
  • Test 21 doesn't work, and doesn't write to webpage correctly

October 21 : STEP test on cms904usr
  1. Changed /cms904nfshome0/nfshome0/cscdev/config/fm/Commissioning/startPCrate.duck to a soft link, created startPCrate_noSTEP.duck and startPCrate_withSTEP.duck in same directory for development
  2. Added STEP manager section to startPCrate_withSTEP.duck based on similar section in emume11 duck file, changing port addresses, BUILD_HOME etc. as necessary.
  3. Added DAQ manager to startPCrate_withSTEP.duck based on similar section in emume11 duck file, changing port addresses, BUILD_HOME etc. as necessary.
  4. Added /nfshome0/cscdev/config/fm/Commissioning/STEP.xml , based on emume11:/home/cscme11/config/step/startNewSTEP.xml . Changed addresses, and paths to xml files.
  5. Added /nfshome0/cscdev/config/fm/Commissioning/VME_B904Development.xml , based on emume11:/home/cscme11/config/step/VME_B904Develeopment.xml
  6. make && make install in /nfshome0/cscdev/TriDAS/emu/step

Get error "Failed to set the FED system to normal mode."

September 30 : LHE To Do
  1. find Twikis for Ben on MC production
  2. email Francesco, Ben, Ela about UFO production

September 29 : CLCT To Do

  1. Revert to setting parameters only on DCFEB being pulsed
  2. Compare 1st DCFEB to 2nd DCFEB to investigate 0th halfstrip (edge of chamber) errors. Repeat on 3rd,4th,7th DCFEB. If always get errors on edge of chamber strips, put in logic to pulse only halfstrips 1-31
  3. Time how long it takes to run full scan

August CSC DOC Shifts
CSC DOC

WEDNESDAY:

THURSDAY:

x-ray campaign 8pm turn off me4 before 8pm thursday evening

morning run meeting:

Tried joining global yesterday evening

problem with 1 mpc, will investigate but have turned it off for now

still lots of crc errrors reserved bits in the fed trailer, not fixed by ddu fw, informed expert (has event dumps from DAQ)

could run with crc errors, but had timing issues in me11, related to csctf key. would like to join global with tf key and do timing scans (~5/10 minutes). Then go back to local, refine configuration, hopefully come back to global

15:14 2 mpc reseated +1/10, +4/1, fixed the problem

16:30

New CSCTF configuration

entered global run, crc errors were causing event dumps, limiting our bandwidth, so scans find no L1As

elog 821016 We are in global run for the night with CSCTF key 3107141 which has 4bx reduction in alignment fifo delay for all stations and in CSCs we have added 4bx to mpc_tx_delay on all TMBs except for ME1/1s. From first sight things look good. ME1/1 trigger timing is now centered at the same place as other stations although the distribution is still quite wide, but we'll work on that next.

FRIDAY:

morning run meeting:

fed 861 back in without problems (s-link replaced)

changed me1/1 timing with new trigger key

entered global run yesterday afternoon, crc errors were causing event dumps, limiting our bandwidth. Remy removed these event dumps we were able to run timing scans and things looked good

switched to triggering on ME2/ME3 and were in global run all night, today would like to stay in global with maybe some local runs in between

At trigger interface it looked like we lost QPLL lock for CSCTF for last night but it actually it was not lost, there is a mismatch between us and interface

~13:00 running Synchronize ALCT BC0 on all ME1/1

Wednesday Aug 6 load ALCT fw ME+3/2/15, ME-2/2/31, ME-4/1/12 load CFEB fw ME+4/2/13, ME+4/2/23, ME-1/2/28 load DMB fw ME+4/2/9, ME-1/2/28

ME-4/1/12 fails ALCT firmware loading check

Thursday Aug 7 10:00 am turn on ME-4/2 low and high voltage so jesse and armando can use endoscope on ME-4/2/

LEDs on mpc flashing every time sending a trigger on csctf, synchronization values for fibers look reasonable optical links look fine (can’t tell if tf receives it)

  1. connect TCDS, configure set up and run
  2. measure L1A latency, make sure its what it should be
  3. increase trigger rate to maximum daq can take —> backpressure —> warning —> tcds kill triggers, start over
  4. SEU recovery by faking FMM error state, see if we get hard reset back from TCDS

turbines: inspection ok, if they will touch anything they will come upstairs and coordinate with us

July 4 2014
Good notes on eos storage:

July 1 2014
b904 Twikis that may need to be cleaned up / combined:

May 14 2014
Testing DMB firmware

To load firmware, need to move dmb from fed crate to test stand crate slot 5, for some reason can not load firmware on fed crate.

[emume11] ls /home/cscme11/firmware/dmb
lrwxrwxrwx 1 cscme11 csc      17 Jan 26 16:31 dmb6cntl_pro.svf -> dmb5bx_v3_r1a.svf
[emume11] /home/cscme11/firmware/dmb > rm dmb6cntl_pro.svf
[emume11] /home/cscme11/firmware/dmb > ln -s dmb5bx_v3_r2a.svf dmb6cntl_pro.svf
remove
hardware_version="2"
from /home/cscme11/config/pc/cscme11_YellowPageCrateConfig_autoloading_May7LocalRun.xml from after
xLatency="1"

make sure to set these back!

update - was not able to load firmware, sent email to Ben Bylsma and Stan Durkin cc Indara, then set things back to original settings.

April 11 2014
Check sigma deviation
int data =    ;
double bg =   , bgerr =     ;
TRandom3 rr;
TH1F *hh = new TH1F("hh","mu +- sigma",(data+1)*3,0,(data+1)*3);
for (int i=0; i<100000; ++i) hh->Fill(rr.Poisson(rr.Gaus(bg,bgerr)));
hh->Draw();
double chi = hh->Integral((data+1),(data+1)*3) / hh->Integral(0,-1);
cout<<chi<<endl;

In Mathematica:

chi=
Reduce[Solve[Erf[x/Sqrt[2]] == 1-chi, x]]

Update for root:

Double_t erf( Double_t *x, Double_t *par){   
  Double_t f1=(1.0+TMath::Erf((x[0]-par[1])/par[0]))/2.0; 
  return  f1;
}
November 1 2013
EWKino to-do list
  1. Finalize selection
    • d0/dz?
    • b-jet eta < 2.0, 2.4?
  2. Run limits
  3. Check gg+2 OS leptons vs SS

July 31 2012
  • Analysis To-Do List
    • met corrections?
    • diempt vs dijetpt
      • nJet?
    • R9 cut
    • invariant mass
    • fake definition
    • photon id
    • ?
    • ?

March 13 2012
Need to keep track of changes to analysis
  • Making jet requirement case a strict subset of no jet req case
    • Need to apply d$\phi$ cut to jet req case

March 13 2012

Laser Corrections Validation/Monitoring WorkFlow

  • Get RAW file
  • Run favorite HLT menu on RAW file twice
    • With no Laser Corrections --> HLT
    • With Laser Corrections --> HLT_LC
    • hltGetConfiguration run:XXXXXX --output full --full --offline --data --unprescale --globaltag auto:hltonline --process TEST >! cfg.py
      • Using Run 180250 gets /cdaq/physics/Run2011/5e33/v2.2/HLT/V4 menu
  • RECO both HLT and HLT_LC samples
    • cmsDriver.py fullOutput.root --data -s RAW2DIGI,L1Reco,RECO -n -1 --conditions GR_R_42_V22::All --datatier RAW-RECO --eventcontent FEVT --no_exec --python_filename Reco.py
      • change input and output file name as necessary
      • change outputCommands = cms.untracked.vstring( 'keep *'),
  • Run both RECO-ed files through DQMOffline and compare

March 5 2012

RA3 To-Do List:

  • SideBand subtraction
    • Try to use opposite flavor sample to subtract non-Z component
      • I also would like to suggest here an alternative correction method to subtract out the real MET backgrounds from the ee sample, using a control sample of e mu events (this is what we do for example in SUS-11-021 BSM search in Z+MET). This will subtract any backgrounds where the two lepton flavors are uncorrelated, eg ttbar, WW, DrellYan->tautau, single top. The procedure is:
        • Select a sample satisfying exactly the same requirements as the ee sample including the dilepton mass requirement, but instead of e e require e mu
        • Derive a correction factor R=efficiency(mu)/efficiency(e) which can easily be evaluated using the observed Z->ee and Z->mm events in data as R = sqrt(N(Z->mm) / N(Z->ee) ).
        • Estimate the flavor-symmetric background in the e e final state as N(e e) = N(e mu) / (2 R).
  • Revisit re-weighting
    • nJet binning
  • Try multi-variate photon ID
    • TMVA, BDT?
  • Introduce new discriminating variables besides MET

June 28 2011
Using xargs to pass in arguments example:

pass in argument as single value from text, whether separated by spaces or carriage returns:

hadd outFile.root | xargs ListOfInputFiles.txt

pass in argument as separate values:

nsfind /castor/cern.ch/cms/store/data/Run2011A/SingleElectron/RECO/PromptReco-v4/000/166/462 | xargs -i stager_get -M {}

June 27 2011

DQMOffline
Built off V00-05-68 to include many changes:
  • New T&P algorithms to correctly do single e/g trigger path efficiencies
    • added photon efficiencies
  • Sorted all plots into folders
    • Source_Histos
      • each filter gets its own directory here with all the source histograms
    • Client_Histos
      • each filter gets its own directory here with all efficiencies
  • increased number of possible filters from 64 to 128

Still need to finish automation, but will probably update filters and tag as is
Need to check memory usage, adding some new plots



RA3
Running over ~950/pb in sections

Changed selection to Et>40/35, sigmaIetaIeta<0.011

June 15 2011

DQMOffline
Took a step back from total revamp to provide a tag for a 4_2 patch. From my email to Marco, Ben, Conor and Jason:
I removed some histograms completely and moved the plots to path-specific folders, should solve the GUI problems. Only minor changes made, it required changing very slightly a few functions, nothing that should cause problems. I removed some prescaled paths that are not very useful anymore and replaced them with useful ones. To ameliorate issue of unused bins I removed some variables which were not necessary and adjusted what was being used. These are not changes to the underlying structure of the code and there are failsafes built in anyway (i.e. not finding a pathname invalidates it, not finding a source plot to make a e.g. a client eff will just not make the plot)

patches V00-05-67 and dmorse15June2011 describe DQMOffline/Trigger and DQMOffline/Trigger/*/*gH* respectively

Will build on this to try and get in 4_4 tag by Monday that has new paths and T&P efficiency algos

RA3
Calculated nvertex and rho collections for May10ReReco (~200/pb), now running over ~450/pb to get event counts and plots for not corrected, NVertex corrected, and Rho corrected Ecal and Hcal isolations. Need to check that the corrected versions don't introduce large j->g fake rate.

May 25 2011

DQMOffline
May24_Test has first test Jeff advised, May26 has second.

Dump of all Paths, modules that pass my selection
Path Name: HLT_Photon20_CaloIdVL_IsoL_v3

  • Module Name: hltPhoton20CaloIdVLIsoLTrackIsoFilter
Path Name: HLT_Photon20_R9Id_Photon18_R9Id_v4
  • Module Name: hltPhoton20R9IdPhoton18R9IdEgammaR9IDFilter
  • Module Name: hltPhoton20R9IdPhoton18R9IdEgammaR9IDDoubleFilter
Path Name: HLT_Photon20_CaloIdVT_IsoT_Ele8_CaloIdL_CaloIsoVL_v4
  • Module Name: hltPhoton20CaloIdVTIsoTTrackIsoFilter
  • Module Name: hltEle8CaloIdLCaloIsoVLNoL1SeedPixelMatchFilter
Path Name: HLT_Photon26_Photon18_v4
  • Module Name: hltPhoton26Photon18EgammaLHEFilter
  • Module Name: hltDoubleIsoEG18HELastFilter
Path Name: HLT_Photon26_IsoVL_Photon18_v4
  • Module Name: hltPhoton26IsoVLTrackIsoFilter
  • Module Name: hltDoubleIsoEG18HELastFilter
  • Module Name: hltPhoton26IsoVLHcalIsoLastFilter
  • Module Name: hltPhoton26IsoVLPhoton18IsoVLEgammaTrackIsolDoubleFilter
Path Name: HLT_Photon26_CaloIdL_IsoVL_Photon18_v4
  • Module Name: hltEG26CaloIdLIsoVLTrackIsoFilter
  • Module Name: hltDoubleIsoEG18HELastFilter
Path Name: HLT_Photon26_CaloIdL_IsoVL_Photon18_R9Id_v3
  • Module Name: hltEG26CaloIdLIsoVLTrackIsoFilter
Path Name: HLT_Photon26_CaloIdL_IsoVL_Photon18_CaloIdL_IsoVL_v4
  • Module Name: hltEG26CaloIdLIsoVLHcalIsoLastFilter
  • Module Name: hltPhoton26CaloIdLIsoVLPhoton18CaloIdLIsoVLEgammaTrackIsolDoubleFilter
Path Name: HLT_Photon26_R9Id_Photon18_CaloIdL_IsoVL_v3
  • Module Name: hltEG26R9IdFilter
Path Name: HLT_Photon26_R9Id_Photon18_R9Id_v1
  • Module Name: hltPhoton26R9IdPhoton18R9IdEgammaR9IDFilter
  • Module Name: hltPhoton26R9IdPhoton18R9IdEgammaR9IDDoubleFilter
Path Name: HLT_Photon30_CaloIdVL_v4
  • Module Name: hltEG30CaloIdVLHEFilter
  • Module Name: hltPhoton30CaloIdVLIsoLTrackIsoFilter
Path Name: HLT_Photon32_CaloIdL_Photon26_CaloIdL_v4
  • Module Name: hltEG32CaloIdLClusterShapeFilter
  • Module Name: hltPhoton32CaloIdLPhoton26CaloIdLEgammaClusterShapeDoubleFilter
Path Name: HLT_Photon36_IsoVL_Photon22_v1
  • Module Name: hltPhoton36IsoVLTrackIsoFilter
  • Module Name: hltDoubleIsoEG22HELastFilter
Path Name: HLT_Photon36_CaloIdL_Photon22_CaloIdL_v3
  • Module Name: hltEG36CaloIdLClusterShapeLastFilter
  • Module Name: hltPhoton36CaloIdLPhoton22CaloIdLEgammaClusterShapeDoubleFilter
Path Name: HLT_Photon36_CaloIdL_IsoVL_Photon22_v1
  • Module Name: hltEG36CaloIdLIsoVLTrackIsoFilter
  • Module Name: hltDoubleIsoEG22HELastFilter
Path Name: HLT_Photon40_CaloIdL_Photon28_CaloIdL_v1
  • Module Name: hltEG40CaloIdLHEFilter
  • Module Name: hltPhoton40CaloIdLPhoton28CaloIdLEgammaClusterShapeDoubleFilter
Path Name: HLT_Photon50_CaloIdVL_v1
  • Module Name: hltPhoton50CaloIdVLHEFilter
Path Name: HLT_Photon50_CaloIdVL_IsoL_v3
  • Module Name: hltPhoton50CaloIdVLIsoLTrackIsoFilter
Path Name: HLT_Photon75_CaloIdVL_v4
  • Module Name: hltPhoton75CaloIdVLHEFilter
Path Name: HLT_Photon75_CaloIdVL_IsoL_v4
  • Module Name: hltPhoton75CaloIdVLIsoLTrackIsoFilter
Path Name: HLT_Photon90_CaloIdVL_v1
  • Module Name: hltPhoton90CaloIdVLHEFilter
Path Name: HLT_Photon90_CaloIdVL_IsoL_v1
  • Module Name: hltPhoton90CaloIdVLIsoLTrackIsoFilter
Path Name: HLT_Photon125_v1
  • Module Name: hltPhoton125HEFilter
Path Name: HLT_Photon200_NoHE_v1
  • Module Name: hltEG200EtFilter
Path Name: HLT_Ele8_v4
  • Module Name: hltEle8PixelMatchFilter
Path Name: HLT_Ele8_CaloIdL_CaloIsoVL_v4
  • Module Name: hltEle8CaloIdLCaloIsoVLPixelMatchFilter
Path Name: HLT_Ele8_CaloIdL_TrkIdVL_v4
  • Module Name: hltEle8CaloIdLTrkIdVLDphiFilter
Path Name: HLT_Ele8_CaloIdT_TrkIdVL_CaloIsoVL_TrkIsoVL_v3
  • Module Name: hltEle8TightIdLooseIsoPixelMatchFilter
  • Module Name: hltEle8TightIdLooseIsoTrackIsolFilter
Path Name: HLT_Ele15_CaloIdVT_CaloIsoT_TrkIdT_TrkIsoT_v4
  • Module Name: hltEle15CaloIdVTCaloIsoTTrkIdTTrkIsoTTrackIsoFilter
Path Name: HLT_Ele17_CaloIdL_CaloIsoVL_v4
  • Module Name: hltEle17CaloIdLCaloIsoVLPixelMatchFilter
Path Name: HLT_Ele17_CaloIdL_CaloIsoVL_Ele8_CaloIdL_CaloIsoVL_v4
  • Module Name: hltEle17CaloIdLCaloIsoVLPixelMatchFilter
  • Module Name: hltEle17CaloIdIsoEle8CaloIdIsoPixelMatchDoubleFilter
Path Name: HLT_Ele17_CaloIdVT_CaloIsoVT_TrkIdT_TrkIsoVT_SC8_Mass30_v4
  • Module Name: hltEle17CaloIdVTCaloIsoVTTrkIdTTrkIsoVTSC8PixelMatchFilter
  • Module Name: hltEle17CaloIdVTCaloIsoVTTrkIdTTrkIsoVTSC8TrackIsolFilter
  • Module Name: hltEle17CaloIdVTCaloIsoVTTrkIdTTrkIsoVTSC8PMMassFilter
Path Name: HLT_Ele17_CaloIdT_TrkIdVL_CaloIsoVL_TrkIsoVL_Ele8_CaloIdT_TrkIdVL_CaloIsoVL_TrkIsoVL_v4
  • Module Name: hltEle17TightIdLooseIsoEle8TightIdLooseIsoPixelMatchFilter
  • Module Name: hltEle17TightIdLooseIsoEle8TightIdLooseIsoTrackIsolFilter
  • Module Name: hltEle17TightIdLooseIsoEle8TightIdLooseIsoPixelMatchDoubleFilter
  • Module Name: hltEle17TightIdLooseIsoEle8TightIdLooseIsoTrackIsolDoubleFilter
Path Name: HLT_Ele17_CaloIdVT_CaloIsoVT_TrkIdT_TrkIsoVT_Ele8_Mass30_v2
  • Module Name: hltEle17CaloIdVTCaloIsoVTTrkIdTTrkIsoVTEle8PixelMatchFilter
  • Module Name: hltEle17CaloIdVTCaloIsoVTTrkIdTTrkIsoVTEle8TrackIsolFilter
  • Module Name: hltEle17CaloIdVTCaloIsoVTTrkIdTTrkIsoVTEle8PMMassFilter
Path Name: HLT_Ele17_CaloIdL_CaloIsoVL_Ele15_HFL_v5
  • Module Name: hltEle17CaloIdLCaloIsoVLPixelMatchFilter
  • Module Name: hltHFEMFilter
Path Name: HLT_Ele32_CaloIdVL_CaloIsoVL_TrkIdVL_TrkIsoVL_v1
  • Module Name: hltEle32CaloIdVLCaloIsoVLTrkIdVLTrkIsoVLTrackIsoFilter
Path Name: HLT_Ele32_CaloIdVT_CaloIsoT_TrkIdT_TrkIsoT_v3
  • Module Name: hltEle32CaloIdVTCaloIsoTTrkIdTTrkIsoTTrackIsoFilter
Path Name: HLT_Ele32_CaloIdT_CaloIsoT_TrkIdT_TrkIsoT_SC17_v1
  • Module Name: hltEle32CaloIdTCaloIsoTTrkIdTTrkIsoTSC17PixelMatchFilter
  • Module Name: hltEle32CaloIdTCaloIsoTTrkIdTTrkIsoTSC17TrackIsolFilter
Path Name: HLT_Ele52_CaloIdVT_TrkIdT_v1
  • Module Name: hltEle52CaloIdVTTrkIdTDphiFilter

May 25 2011

RA3 Analysis
Thinking about RA3 selection
  • What happens if you have 3 pho_Cands in an event? Let Pho1=g and Pho2=g, but dR>0.8. If Pho3=e, does this become an eg event, or does it get thrown out? What if Pho3=g and dR>0.8. Does this get kept as gg?
    • Looking into how many events have >=3 pho_Cands or fake_Cands
  • Rachel tells me that f can fail both TrackIso and SigmaIetaIeta.
    • changed in code, but might be worth checking into after summer conferences

Higgs->γγ has many of the same problems as us

May 23 2011

RA3 Analysis
Lingering Question from May 6:
  • Is it ok to throw out all but top two pT photon candidates?
    • NO! e.g. photon 1 passes all cuts, becomes g. Photon 2 fails cuts and event is thrown out. What if there is a photon 3 which passes cuts and becomes e or g?
    • Need to completely restructure analysis code to keep all photons in event that pass cuts, then select two highest pT ones.

May 23 2011

Working on adding new Tag and Probe efficiency histograms to the Egamma HLT OfflineDQM.

Summary of where code lives for future reference:

For my purposes this needs to be changed. General strategy:
  • Take T&P triggers
    • HLT_Ele17_CaloIdVT_CaloIsoVT_TrkIdT_TrkIsoVT_Ele8_Mass30_v3
    • HLT_Ele17_CaloIdVT_CaloIsoVT_TrkIdT_TrkIsoVT_SC8_Mass30_v3 (prescaled)
  • Require one WP80 electron to pass the Ele17 leg (tag), one WP80 electron to pass Ele8 (probe)
    • Check if probe leg passes another trigger, e.g. Ele8 portion of HLT_Ele17_CaloIdT_TrkIdVT_CaloIsoVL_TrkIsoVL_Ele8_CaloIdT_TrkIdVT_CaloIsoVL_TrkIsoVL

To that effect I have built EgTrigTagProbeCut_New which Require one WP80 electron to pass the Ele17 leg (tag), one WP80 electron to pass Ele8 (probe)
  • Should be able to pass the two filters that I want in, then test probe vs. tested trigger in initTrigTagProbeHists()

As of end of day today, t&p efficiency hist is set up as described directly above. I need to figure out if this works for all the triggers, and how to incorporate multiple types of efficiencies/only apply them to relevant triggers
  • Maybe take hint from groupings already used in the DQMOffline to make multiple eff hists?

May 17 2011

Need to learn about FastJet corrections.

Basic Idea - From Philipp Schieferdecker's talk https://indico.cern.ch/conferenceDisplay.py?confId=128328 and more Egamma specific talk https://indico.cern.ch/conferenceDisplay.py?confId=128669
“It is based on two novel ingredients:

  • i) the jet area arXiv:0802.1188v2 measurement of each jet’s susceptibility to contamination from diffuse noise and
  • ii) an essentially parameter-free technique to measure the level, ρ, of this diffuse noise in any given event, where by noise (or also ‘background’), we refer to any form of diffuse contamination in the event, usually due to minimum-bias pileup and to some extent the underlying event.”

Need to apply this idea to e/g objects.
For leptons:

  • ρ measures the UE&PU contamination of each event per unit area
  • lepton isolation is based on a fixed cone which corresponds to an area as well

Isofastjet(l) = Iso(l) + ρ · πR2

This should be applicable to photons as well.
While originally intended for the correction of jets, it promises to also improve lepton isolation significantly

  • And possibly photon isolation (e.g. H->γγ)? PFnoPu not applicable!!

Note that fastjet subtraction subtracts pileup(PU) and underlying event(UE). UE may need to be added back in for consistency, also UE may depend on the process.
So we will maybe need something more of the form

Isofastjet(l) = Iso(l) + (ρ - <ρUE>) · πR2 Need to find out where this code lives.

Outstanding questions:

  • How to calculate ρ?
  • How to apply correction?
  • How to save new collection?

Other useful talks:
https://indico.cern.ch/conferenceDisplay.py?confId=128673

May 6 2011

DQMOffline
Prepared slide of single electron tag&probe efficiencies, need to send along to Jeff.

RA3 Analysis
Worked on building my analysis in ~/scratch0/RA3/April/CMSSW_4_1_4/ Now get reasonable gg, eg, ee, ff numbers. Just got new JSON with 153/pb. Want to study effect of changing SigmaIetaIeta in the analysis

  • SigmaIetaIeta distributions themselves, both for total sample and for di-photon candidate sample and for gg, eg, ee, ff
  • Event counts with SigmaIetaIeta < 0.013 , 0.011 , 0.010 , others?
Longer term:
  • Need to build final MET plot
  • Need to work on background estimations
Lingering Questions:
  • Is it ok to throw out all but top two pT photon candidates?
  • Am I 100% sure I am getting all the photons categorized correctly? (gg, ee, eg, ff)
  • Is there any use for single fakes? e.g. gf , ef ?

April 29 2011

Working on developing RA3 analysis code in ~/scratch0/RA3/Apr272011/CMSSW_4_1_4, using Dongwook's ntuple and starting from the analysis framework code he provided.
Notes:

  • Photon dataset tends to range from 0-3 photon candidates in event
  • nPixelSeeds copies from the photon process electronPixelSeeds().size(). There are usually 0-3, sometimes more. Rarely very much more, as high as 254!
    • nPixelSeeds==0 are photon; 1<=nPixelSeeds<=3 are electron; 3<nPixelSeeds are ? Must be jets with high multiplicity?
  • Next Steps:
    • sort photons in event by size
    • split into gg, eg, ee, ff samples
    • produce simple distributions of pT, MET

April 28 2011

Need to prepare for Trigger Performance Meeting next Monday.

"Our immediate goals are just to familiarize ourselves with which are the key plots you use to validate your triggers, and find out if there is anything you would like to change. It would be good if one of you could show a few slides showing how the EGamma triggers are performing."
They want to know:

  • which triggers you are monitoring
  • strategy for monitoring & validating
  • any plans for improvement ?
  • feedback for Conor and Ben
Running DQMOffline/Trigger/test/egHLTOffDQMTest_cfg.py on all data in 2011A run 163301 (large statistics and good percentage of them in json)

Run Delivered LS Delivered (μb) Selected LS Recorded (μb)
163301 197 1350763.381 [1-192] 1299299.162
'163301': [[89, 91], [98, 98], [106, 109], [130, 133], [135, 140], [156, 157], [164, 165]]

Also realize that I have not well documented the Egamma HLT DQMOffline for myself. Needs to be remedied so I do not forget what I am working on.

April 27 2011

Could not get CRAB to work, but part of the dataset was moved to FNAL, can run on that.

genMET of both in time and out of time pileup MC

genMET.png

Clearly nothing is wrong with the sample. Case closed, moved entire area to /data/ndpc3/c/dmorse/CRABjobForMike/CMSSW_4_1_3

April 26 2011

Working on getting genMET plot for Mike.

  • Built EDAnalyzer ( /afs/cern.ch/user/d/dmorse/scratch0/CRABjobForMike/CMSSW_4_1_3/src ) to be able to access the dataset with CRAB.
  • Dataset is both inTime and OOT PU, CMSSW_4_1_3: /QCD_Pt_15to3000_TuneZ2_Flat_7TeV_pythia6/Spring11-PU_S2_START311_V2-v2/GEN-SIM-RECODEBUG
    • Files are at T1_TW_ASGC : srm2.grid.sinica.edu.tw (9408200 events) and T3_US_FNALLPC : cmsdca2.fnal.gov (793580 events)
    • According to Jeff: "you can't run jobs at a T1. You would have to phedex the dataset to the ND_T3 or, if it's at the CAF, get access to run there. If it's raw or reco data that you need to run over, and you're doing service work with it, then use the CAF. That's what it's designed for."
  • at both lxplus and lpc crab -create stalls, at lxplus never gets past
    • crab: Requested dataset: /QCD_Pt_15to3000_TuneZ2_Flat_7TeV_pythia6/Spring11-PU_S2_START311_V2-v2/GEN-SIM-RECODEBUG has 9408200 events in 107 blocks.
  • At lpc not getting past
  • Get error: crab: Problems parsing file of allowed CMSSW releases.
    • doesn't crash, don't think this is critical
  • I have caf permissions at CERN, maybe not at FNAL?

Motivation

I am starting an online work notes page to remind myself of what I am/was working on at any given time, to track useful information and hints, and possibly to help others who are encountering problems I have already solved.

Edit permission

-- DavidMorse - 26-Apr-2011

Topic attachments
I Attachment History Action Size Date Who Comment
PNGpng genMET.png r1 manage 7.0 K 2011-04-28 - 14:01 DavidMorse  
Edit | Attach | Watch | Print version | History: r246 < r245 < r244 < r243 < r242 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r246 - 2019-11-20 - DavidMorse
 
    • Cern Search Icon Cern Search
    • TWiki Search Icon TWiki Search
    • Google Search Icon Google Search

    Main All webs login

This site is powered by the TWiki collaboration platform Powered by PerlCopyright &© 2008-2019 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback