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.24 by buchmann, Wed Aug 31 11:34:16 2011 UTC vs.
Revision 1.25 by buchmann, Wed Aug 31 13:04:10 2011 UTC

# Line 190 | Line 190 | void master_formula(std::vector<float> e
190   // Get normalization factor for the PDFs
191   float get_norm_pdf_factor(TTree *events, int k) {
192  
193 <  TH1F *haux = new TH1F("haux", "", 1, 0, 20);
193 >  TH1F *haux = new TH1F("haux", "", 10000, 0, 5);
194    char nameVar[20];
195    sprintf(nameVar, "pdfW[%d]", k);
196    events->Project("haux", nameVar);
# Line 324 | Line 324 | void MCefficiency(TTree *events,float &r
324          if(!automatized) dout << "  MC efficiency: " << result << "+-" << resulterr << "  ( JZB>" << jzbSel << " : " << sel << " , JZB<-" << jzbSel << " : " << nsel << " and nevents=" << tot << ") with normFact=" << normFactor << std::endl;
325          delete effh;
326   }
327 //Pablo:  MC efficiency: 6.90539e-08+-6.73798e-06  ( JZB>100 : 0.000105031 , JZB<-100 : 0 and nevents=1521)
328 //corre:  MC efficiency: 0.000657462+-0.000657678  ( JZB>100 : 1 , JZB<-100 : 0 and nevents=1521)
329
327  
328   void JZBefficiency(TTree *events, string informalname, float &jzbeff, float &jzbefferr, bool requireZ, string addcut="") {
329          TCut kbase("abs(genMll-91.2)<20&&genNjets>2&&genZPt>0&&abs(mll-91.2)<20&&((id1+1)*(id2+1)*ch1*ch2)!=-2");

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines