I suppose you want to do the inverse:
strcat(ht1,stanb);
Rene Brun
> TH2F *minevt_tot = new TH2F(ht1,"Minimum expected events (left+right)",
> 71,19.5,90.5,71,19.5,90.5);
> TH2F *minevt_rr = new TH2F(ht2,"Minimum expected events (right only)",
> 71,19.5,90.5,71,19.5,90.5);
> TH2F *lim_tot = new TH2F(ht3,"Excluded region(left+right)",
> 71,19.5,90.5,71,19.5,90.5);
> TH2F *lim_rr = new TH2F(ht4,"Excluded region (right only)",
> 71,19.5,90.5,71,19.5,90.5);
> TH2F *lim_tot172 = new TH2F(ht5,"Excluded region(left+right) at 172 GeV",
> 71,19.5,90.5,71,19.5,90.5);
> TH2F *lim_rr172 = new TH2F(ht6,"Excluded region (right only) at 172 GeV",
> 71,19.5,90.5,71,19.5,90.5);
>
> (filling blurb) ..
>
> TFile *combout = new TFile("combout.root","UPDATE");
>
> if ( ! combout->IsOpen() ) {
> printf("File does not appear to exist. Trying to create ...\n");
> TFile *combout = new TFile("combout.root","NEW");
> if ( ! combout->IsOpen() ) {
> printf("Still unable to open output file. Exiting with problems.\n");
> exit(127);
> } else { printf("File opened successfully.\n"); }
> }
> minevt_tot->Write(ht1);
> minevt_rr->Write(ht2);
> lim_tot->Write(ht3);
> lim_rr->Write(ht4);
> lim_tot172->Write(ht5);
> lim_rr172->Write(ht6);
>
> combout->Close();
>
> When I open the file in ROOT, however, all I get is updated cycles of the
> same histogram (haven't had chance to try the same thing with 1.0beta
> yet). Help?
>
> Thanks,
> Chris.
>
> ---
> Chris Green. HEP, University of Liverpool
> MAIL Chris.Green@cern.ch, WWW http://hep.ph.liv.ac.uk/~chris/
> +41 22 767 8075. On LTA at CERN.
> ---
> "Woof. In tones of low menace." -- Gaspode the wonder dog (Terry Pratchett, Moving Pictures)