373 |
|
tEmf[iemf]->Branch("relrsp",&relrsp,"relrsp/F"); |
374 |
|
tEmf[iemf]->Branch("weight",&weight,"weight/F"); |
375 |
|
} |
376 |
< |
for (int ieta=0;ieta<netabins;ieta++) { |
377 |
< |
tEtEtaEt[ieta] = new TTree*[netbins]; |
378 |
< |
for (int iet=0;iet<netbins;iet++) { |
379 |
< |
tEtEtaEt[ieta][iet] = new TTree("tEtEtaEt","tEtEtaEt"); |
380 |
< |
tEtEtaEt[ieta][iet]->Branch("val", &et, "val/F"); |
381 |
< |
tEtEtaEt[ieta][iet]->Branch("etcorr",&etcorr,"etcorr/F"); |
382 |
< |
tEtEtaEt[ieta][iet]->Branch("absrsp",&absrsp,"absrsp/F"); |
383 |
< |
tEtEtaEt[ieta][iet]->Branch("relrsp",&relrsp,"relrsp/F"); |
384 |
< |
tEtEtaEt[ieta][iet]->Branch("weight",&weight,"weight/F"); |
385 |
< |
} |
386 |
< |
} |
387 |
< |
for (int iemf=0;iemf<nemfbins;iemf++) { |
388 |
< |
tEtEmfEt[iemf] = new TTree*[netbins]; |
389 |
< |
for (int iet=0;iet<netbins;iet++) { |
390 |
< |
tEtEmfEt[iemf][iet] = new TTree("tEtEmfEt","tEtEmfEt"); |
391 |
< |
tEtEmfEt[iemf][iet]->Branch("val", &et, "val/F"); |
392 |
< |
tEtEmfEt[iemf][iet]->Branch("etcorr",&etcorr,"etcorr/F"); |
393 |
< |
tEtEmfEt[iemf][iet]->Branch("absrsp",&absrsp,"absrsp/F"); |
394 |
< |
tEtEmfEt[iemf][iet]->Branch("relrsp",&relrsp,"relrsp/F"); |
395 |
< |
tEtEmfEt[iemf][iet]->Branch("weight",&weight,"weight/F"); |
396 |
< |
} |
397 |
< |
} |
398 |
< |
for (int iemf=0;iemf<nemfbins;iemf++) { |
399 |
< |
tEtEmfEtaEt[iemf] = new TTree**[netabins]; |
376 |
> |
|
377 |
> |
if (netbins>0) { |
378 |
|
for (int ieta=0;ieta<netabins;ieta++) { |
379 |
< |
tEtEmfEtaEt[iemf][ieta] = new TTree*[netbins]; |
379 |
> |
tEtEtaEt[ieta] = new TTree*[netbins]; |
380 |
|
for (int iet=0;iet<netbins;iet++) { |
381 |
< |
tEtEmfEtaEt[iemf][ieta][iet] = new TTree("tEtEmfEtaEt","tEtEmfEtaEt"); |
382 |
< |
tEtEmfEtaEt[iemf][ieta][iet]->Branch("val", &et, "val/F"); |
383 |
< |
tEtEmfEtaEt[iemf][ieta][iet]->Branch("etcorr",&etcorr,"etcorr/F"); |
384 |
< |
tEtEmfEtaEt[iemf][ieta][iet]->Branch("absrsp",&absrsp,"absrsp/F"); |
385 |
< |
tEtEmfEtaEt[iemf][ieta][iet]->Branch("relrsp",&relrsp,"relrsp/F"); |
386 |
< |
tEtEmfEtaEt[iemf][ieta][iet]->Branch("weight",&weight,"weight/F"); |
381 |
> |
tEtEtaEt[ieta][iet] = new TTree("tEtEtaEt","tEtEtaEt"); |
382 |
> |
tEtEtaEt[ieta][iet]->Branch("val", &et, "val/F"); |
383 |
> |
tEtEtaEt[ieta][iet]->Branch("etcorr",&etcorr,"etcorr/F"); |
384 |
> |
tEtEtaEt[ieta][iet]->Branch("absrsp",&absrsp,"absrsp/F"); |
385 |
> |
tEtEtaEt[ieta][iet]->Branch("relrsp",&relrsp,"relrsp/F"); |
386 |
> |
tEtEtaEt[ieta][iet]->Branch("weight",&weight,"weight/F"); |
387 |
> |
} |
388 |
> |
} |
389 |
> |
for (int iemf=0;iemf<nemfbins;iemf++) { |
390 |
> |
tEtEmfEt[iemf] = new TTree*[netbins]; |
391 |
> |
for (int iet=0;iet<netbins;iet++) { |
392 |
> |
tEtEmfEt[iemf][iet] = new TTree("tEtEmfEt","tEtEmfEt"); |
393 |
> |
tEtEmfEt[iemf][iet]->Branch("val", &et, "val/F"); |
394 |
> |
tEtEmfEt[iemf][iet]->Branch("etcorr",&etcorr,"etcorr/F"); |
395 |
> |
tEtEmfEt[iemf][iet]->Branch("absrsp",&absrsp,"absrsp/F"); |
396 |
> |
tEtEmfEt[iemf][iet]->Branch("relrsp",&relrsp,"relrsp/F"); |
397 |
> |
tEtEmfEt[iemf][iet]->Branch("weight",&weight,"weight/F"); |
398 |
> |
} |
399 |
> |
} |
400 |
> |
if (netabins>0) { |
401 |
> |
for (int iemf=0;iemf<nemfbins;iemf++) { |
402 |
> |
tEtEmfEtaEt[iemf] = new TTree**[netabins]; |
403 |
> |
for (int ieta=0;ieta<netabins;ieta++) { |
404 |
> |
tEtEmfEtaEt[iemf][ieta] = new TTree*[netbins]; |
405 |
> |
for (int iet=0;iet<netbins;iet++) { |
406 |
> |
tEtEmfEtaEt[iemf][ieta][iet] = new TTree("tEtEmfEtaEt", |
407 |
> |
"tEtEmfEtaEt"); |
408 |
> |
tEtEmfEtaEt[iemf][ieta][iet]->Branch("val", &et, "val/F"); |
409 |
> |
tEtEmfEtaEt[iemf][ieta][iet]->Branch("etcorr",&etcorr,"etcorr/F"); |
410 |
> |
tEtEmfEtaEt[iemf][ieta][iet]->Branch("absrsp",&absrsp,"absrsp/F"); |
411 |
> |
tEtEmfEtaEt[iemf][ieta][iet]->Branch("relrsp",&relrsp,"relrsp/F"); |
412 |
> |
tEtEmfEtaEt[iemf][ieta][iet]->Branch("weight",&weight,"weight/F"); |
413 |
> |
} |
414 |
> |
} |
415 |
|
} |
416 |
|
} |
417 |
|
} |