diff. behaviour ROOT command line - macro

Horst Goeringer (H.Goeringer@clri6a.gsi.de)
Tue, 23 Jun 1998 17:36:26 +0200


--------------1278B3B4BB2E6C0B0157A73C
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Hi ROOTers,

what's wrong with the following macro:
( pads pad1 and pad2 exist,
ntuple MW21 with the parameters exists)

{
pad1->cd();
MW21->Draw("dMW21r>>hdMW21", "dMW21r > 0");
// draw coordinate with cut, save in (not yet existing) histogram
hdMW21
pad2->cd();
MW21->Draw("dMW21u>>+hdMW21", "dMW21u > 0");
// draw other coordinate with cut, add to histogram hdMW21
}

histogram hdMW21 is correctly filled after macro execution,
and the graph in pad2 is okay, but pad1 contains the same as pad2!
If I enter these commands at the ROOT command line,
pad1 is also okay!

This behaviour is the same on Linux V2.0 (ROOT 2.00/08) and
AIX V4.1 (ROOT 2.00/07)!

Best Regards,
Horst Goeringer

--
-----------------------------------------------------------------
Dr. Horst Goeringer                    email: H.Goeringer@gsi.de
GSI Computing Center                     Tel: +49-6159-71-2553
Planckstr. 1                             Fax: +49-6159-71-2986
D-64291 Darmstadt, Germany
-----------------------------------------------------------------

--------------1278B3B4BB2E6C0B0157A73C Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit

Hi ROOTers,

what's wrong with the following macro:
( pads pad1 and pad2 exist,
  ntuple MW21 with the parameters exists)

{
   pad1->cd();
   MW21->Draw("dMW21r>>hdMW21", "dMW21r > 0");
      // draw coordinate with cut, save in (not yet existing) histogram hdMW21
   pad2->cd();
   MW21->Draw("dMW21u>>+hdMW21", "dMW21u > 0");
      // draw other coordinate with cut, add to histogram hdMW21
}

histogram hdMW21 is correctly filled  after macro execution,
and the graph in pad2 is okay, but pad1 contains the same as pad2!
If I enter these commands at the ROOT command line,
pad1 is also okay!

This behaviour is the same on Linux V2.0 (ROOT 2.00/08) and
AIX V4.1 (ROOT 2.00/07)!

Best Regards,
Horst Goeringer



-- 
-----------------------------------------------------------------
Dr. Horst Goeringer                    email: H.Goeringer@gsi.de
GSI Computing Center                     Tel: +49-6159-71-2553
Planckstr. 1                             Fax: +49-6159-71-2986
D-64291 Darmstadt, Germany
-----------------------------------------------------------------
  --------------1278B3B4BB2E6C0B0157A73C--