Hi, I have a simple question. I want to get ascii file containing only x=?. Here I am telling you what I am doing. *indiv = (TH1F*)temp->Clone( "indiv" ); Int_t nbins = indiv->GetNbinsX(); for(Int_t i=0;i<nbins;i++){ if(indiv->GetBinContent(i) > 0){ printf("bin[%d]=%g\n",i,indiv->GetBinContent(i));} for(Int_t j=0;j<=indiv->GetBinContent(i);j++){ indiv->Print("all"); } } Hrer I am getting like this output. fSumw[4]=1, x=5.2105 fSumw[5]=0, x=5.2135 fSumw[6]=0, x=5.2165 fSumw[7]=0, x=5.2195 fSumw[8]=0, x=5.2225 fSumw[9]=0, x=5.2255 But I want only x=??? when I have only non zero bin content. Is there any simple way to do? Thanks in advance. -Prafulla
This archive was generated by hypermail 2b29 : Sun Jan 02 2005 - 05:50:05 MET