Skip to content
Snippets Groups Projects
Commit 18af52e2 authored by Rene Brun's avatar Rene Brun
Browse files

Suggested by Michael Duehrssen

TLorentzVector operator*(Double_t a)
changed to
TLorentzVector operator*(Double_t a) const


git-svn-id: http://root.cern.ch/svn/root/trunk@4661 27541ba8-7e3a-0410-8455-c3a389f83636
parent c02013bf
Branches
Tags
No related merge requests found
// @(#)root/physics:$Name: $:$Id: TLorentzVector.h,v 1.7 2002/01/19 13:18:38 brun Exp $
// @(#)root/physics:$Name: $:$Id: TLorentzVector.h,v 1.8 2002/01/21 16:29:20 brun Exp $
// Author: Pasha Murat , Peter Malzacher 12/02/99
/*************************************************************************
......@@ -153,7 +153,7 @@ public:
inline TLorentzVector operator - () const;
// Unary minus.
inline TLorentzVector operator * (Double_t a);
inline TLorentzVector operator * (Double_t a) const;
inline TLorentzVector & operator *= (Double_t a);
// Scaling with real numbers.
......@@ -402,7 +402,7 @@ inline TLorentzVector& TLorentzVector::operator *= (Double_t a) {
return *this;
}
inline TLorentzVector TLorentzVector::operator * (Double_t a) {
inline TLorentzVector TLorentzVector::operator * (Double_t a) const {
return TLorentzVector(a*X(), a*Y(), a*Z(), a*T());
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment