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); |
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"); |