[ROOT] How to print only x=?

From: Prafulla Kumar Behera (behera@slac.stanford.edu)
Date: Mon Feb 09 2004 - 19:58:29 MET


  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){
       for(Int_t j=0;j<=indiv->GetBinContent(i);j++){
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.


This archive was generated by hypermail 2b29 : Sun Jan 02 2005 - 05:50:05 MET