[ROOT] Question about THelix

From: Toshinori Abe (toshi@SLAC.stanford.edu)
Date: Sat Mar 10 2001 - 08:57:38 MET


Dear Rooters,

I have a question about THelix.
When I try to run the following macro, it works for root version 3.00/04
but it does not work for 3.00/05.

  c1 = new TCanvas("c1");
  TView *view1 = new TView(1);
  view1->SetRange(-1,-1,-1,1,1,1);
  Double_t xyz[3]={0.0,0.0,0.0};
  Double_t v[3]={1.0,0.0,0.3};
  Double_t range[2]={0.0,1.0};
  THelix* helix1=new THelix(xyz,v,10.0,range,3,0);
  helix1->Draw();
  xyz[0]=0.5;
  xyz[1]=0.0;
  THelix* helix2=new THelix(xyz,v,10.0,range,3,0);
  helix2->SetHelix(xyz,v,10.0,0,3,0);
  helix2->Draw();

It looks that when I make second THelix (i.e. helix2), root 3.00/05 program
is crushed.
Would you suggest me if any idea?

Thanks very much in advance, - Toshi


 Name	: Toshinori Abe
 Add.	: SLAC M/S 96, 2575 SandHill Road, Menlo Park, CA 94025, USA
 E-mail	: toshi@SLAC.Stanford.EDU



This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:50:39 MET