Re: Urgent fixes in FairGeanePro.cxx needed [message #8163 is a reply to message #8162] |
Wed, 01 April 2009 00:25 |
Anonymous Poster
|
|
From: *pool.einsundeins.de
|
|
Hi,
there is another place I dont like in FairGeanePro which I forgot earlier. Please someone apply the following diff:
hoeppi@hoeppi-MacBook:~/pandaroot/geane$ svn diff FairGeanePro.cxx
Index: FairGeanePro.cxx
===================================================================
--- FairGeanePro.cxx (revision 5184)
+++ FairGeanePro.cxx (working copy)
@@ -66,7 +66,7 @@
Init(TParam);
Double_t Q = TParam->GetQ();
- if (Q!=0)ch= Q/TMath::Abs(Q);
+ if (fabs(Q)<1.E-8)ch= Q/TMath::Abs(Q);
if (ProMode==1){ //Propagate to Volume
//***** We have the right representation go further
for(Int_t i=0;i<15;i++) {
Q is a double, so we dont want to use == or != on it.
Cheers, Christian
|
|
|