Index: trunk/MagicSoft/Mars/mtemp/mifae/macros/computeCoeff.C
===================================================================
--- trunk/MagicSoft/Mars/mtemp/mifae/macros/computeCoeff.C	(revision 6359)
+++ trunk/MagicSoft/Mars/mtemp/mifae/macros/computeCoeff.C	(revision 6368)
@@ -34,5 +34,5 @@
   const Int_t esubbins = 20;           // number of subbins per big bin
   const Double_t emin=10;
-  const Double_t emax=10000;
+  const Double_t emax=1000;
   const Double_t logemin = TMath::Log10(emin);
   const Double_t logemax = TMath::Log10(emax);
@@ -79,6 +79,6 @@
       UInt_t coefbin = UInt_t((TMath::Log10(estim)-logemin)/de);
       
-      Float_t effa  =  calc.GetEffectiveArea(effabin);
-      Float_t unfold = calc.GetCoefficient(coefbin);
+      Float_t effa  =  calc.GetEffectiveAreaHisto()->GetBinContent(effabin+1,1);
+      Float_t unfold = calc.GetCoefficientHisto()->GetBinContent(coefbin+1,1);
       
       if(effa)
@@ -89,5 +89,6 @@
   TFile file("prueba.root","RECREATE");
   hspec->Write();
-
+  calc.GetEffectiveAreaHisto()->Write();
+  calc.GetCoefficientHisto()->Write();
   return;
 }
