Thanks Valeri. It worked like a charm.
However, I still get the information I don't need in the
file; like underflow and things like that.
Fernando
Valeri Fine wrote:
>>Hello Rooters,
>>
>>I would like to know whether there
>>is a convenient way to write a 2D sinogram (just the entry values)
>>as a raw file.
>>
>>
>
> Try:
>
> void writeRaw(TArtrayF *h) {
> FILE *f= fopen("myfile","w");
> fwrite(h->GetArray(),sizeof(float),h->GetSize(),f);
> fclose(f);
> }
>
>The you can use it for any 1/2D histogram;
>
> TH1F *h1;
> writeRaw(h1);
>
> TH2F *h2;
> writeRaw(h2);
>
>
> Hope it helps
> Valeri
>
>
>>Thanks
>>Fernando
>>
>>
This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:11 MET