GSI Forum
GSI Helmholtzzentrum für Schwerionenforschung

Home » PANDA » PandaRoot » Bugs, Fixes, Releases » [FIXED] Possible bug in PndEmcClusterMoments.cxx
[FIXED] Possible bug in PndEmcClusterMoments.cxx [message #17131] Tue, 05 August 2014 10:59 Go to next message
Dariusch Deermann is currently offline  Dariusch Deermann
Messages: 2
Registered: August 2014
Location: Germany
occasional visitor
From: *ext.kfa-juelich.de
I tried installing Pandaroot with the newest external packages and received an error in PndEmcClusterMoments.cxx at line 340.
I was told to use the external packages from apr13 and now its compiling without any error or warning regarding this line, but when looking into it it really seems not correct:

aVector += displacement * displacement * digi->GetEnergy();

Here we have a TVector3 += TVector3^2 (=scalar) * scalar. So basically TVector3 += scalar, which doesn't make sense to me.
Since Pandaroot is now compiling without an error or warning for this, i'm not sure whether this is relevant, but it looks strange to me.

[Updated on: Wed, 10 September 2014 12:00] by Moderator

Report message to a moderator

Re: Possible bug in PndEmcClusterMoments.cxx [message #17132 is a reply to message #17131] Tue, 05 August 2014 11:08 Go to previous messageGo to next message
Tobias Stockmanns is currently offline  Tobias Stockmanns
Messages: 489
Registered: May 2007
first-grade participant
From: *dip0.t-ipconnect.de
Dear Dariusch,

I agree with your comment that this line looks very strange.
In newer Root versions this line of code causes an error because the constructor of TVector3 has changed. In the older versions (of apr13) one could still initialize a TVector3 with just one scalar. In the newer versions this if forbidden and you need three scalars.

Cheers,

Tobias
Re: Possible bug in PndEmcClusterMoments.cxx [message #17265 is a reply to message #17132] Wed, 10 September 2014 11:59 Go to previous message
StefanoSpataro is currently offline  StefanoSpataro
Messages: 2736
Registered: June 2005
Location: Torino
first-grade participant

From: *lnf.infn.it
This was fixed in the trunk.

[Updated on: Wed, 10 September 2014 12:00]

Report message to a moderator

Previous Topic: [FIXED] Possible bug in scrut14 release?
Next Topic: [FIXED] dec13p1 fairsoft and evt-gen incompatible
Goto Forum:
  


Current Time: Fri Nov 22 20:09:55 CET 2024

Total time taken to generate the page: 0.00689 seconds