ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/cbrown/AnalysisFramework/Plotting/Modules/Systematics.C
(Generate patch)

Comparing UserCode/cbrown/AnalysisFramework/Plotting/Modules/Systematics.C (file contents):
Revision 1.53 by fronga, Tue Nov 22 13:02:09 2011 UTC vs.
Revision 1.54 by pablom, Wed Nov 23 16:39:56 2011 UTC

# Line 309 | Line 309 | void  MCPartialefficiency(TTree *events,
309     }
310    
311     char jzbSelStr[256]; sprintf(jzbSelStr,"%f",jzbSel);
312 +   char metSel[256]; sprintf(metSel, "met[4] > %f", jzbSel);
313 +   string metSelection(metSel);
314     // All acceptance cuts at gen. level
315     //TCut kbase("abs(genMll-91.2)<20&&genNjets>2&&genZPt>0&&genJZB"+geq_or_leq()+TString(jzbSelStr)+"&&genId1==-genId2");
316     TCut kbase("");
# Line 321 | Line 323 | void  MCPartialefficiency(TTree *events,
323     TCut njets(cutnJets);
324     TCut jzbp;
325     TCut jzbn;
326 +   TCut met(("pfJetGoodNum > 1 && abs(mll-91.2) < 10.0 && id1 == id2 &&" + metSelection).c_str());
327     if(flipped==0) {
328          jzbp=TCut((TString(mcjzb)+geq_or_leq()+TString(jzbSelStr)));
329          jzbn=TCut((TString(mcjzb)+ngeq_or_leq()+TString("-")+TString(jzbSelStr)));
# Line 328 | Line 331 | void  MCPartialefficiency(TTree *events,
331          jzbp=TCut(TString(mcjzb)+ngeq_or_leq()+TString("-")+TString(jzbSelStr));
332          jzbn=TCut(TString(mcjzb)+geq_or_leq()+TString(jzbSelStr));
333     }
334 <   float ntotal = events->Draw("pt1", kbase, "goff");
334 >   float ntotal = events->Draw("pt1", addcut.c_str(), "goff");
335     TCut theCut;
336     switch(type) {
337       case 1:
# Line 343 | Line 346 | void  MCPartialefficiency(TTree *events,
346       case 4:
347         theCut = kbase+massId+njets+jzbn;
348         break;
349 +     case 5:
350 +       theCut = kbase + met;
351 +       break;
352       default:
353         theCut = kbase+massId+njets+jzbn;
354         break;
355     }  
356 <      
356 >  
357     string stheCut(theCut);
358     char var[20];
359     sprintf(var, "pdfW[%d]", k);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines