[ROOT] TTRAP and TGTRA

From: GENTIT Francois-Xavier DAPNIA (GENTIT@DAPNIA.CEA.FR)
Date: Thu Jun 22 2000 - 15:44:43 MEST


  Dear authors of ROOT,
  I feel uncomfortable when I compare the code of TTRAP::SetPointss() with
the one of TGTRA::SetPoints(). As I understand, a TGTRA must become a TTRAP
when the angle "twist" is set to 0. A first look at the code of the 2
routines show that it is not the case. A second look indicates that may be
it is not wrong, because the author of TTRAP::Setpoints() look at the angle
theta from the middle in z of the shape, but the author of
TGTRA::SetPoints() look at the angle theta from the bottom of the shape.
Hence the appearance of factors 2 in the code of TGTRA::SetPoints(). 
  But what really worries me is the fact that in TTRAP::SetPoints()
Tan(theta) appears everywhere, and in the code of TGTRA::SetPoints()
Sin(theta) appears everywhere.
  I do not see how this difference in the views of the presumably different
authors of the 2 methods could change a Tan into a Sin ?
  Could a specialist of this part of ROOT have a look at it ?
  Thanks very much.

          F.X. Gentit
          DAPNIA/SPP CEN Saclay
          tel : 01 69 08 30 38     fax : 01 69 08 64 28
          web : http://home.cern.ch/~gentit/



This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:28 MET