[ROOT] const-ness and vector classes

From: Dave Casper (dcasper@uci.edu)
Date: Fri Jan 12 2001 - 09:55:28 MET


	Hi,

The vector classes (TLorentzVector and TVector3, aka "the bane of my
existence") have some member functions which lack what one would expect to
be the proper const-ness:

Using TLorentzVector as an example:

TLorentzVector(Double_t* carray)
TLorentzVector(Float_t* carray)

[the argument of the constructor should be "const Double_t*", etc.]

GetXYZT(Double_t* carray)
GetXYZT(Float_t* carray)

[member function should be declared const]


Dave
dcasper@uci.edu



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