]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Bogdan: fix calculation of squared momentum.
authormtadel <mtadel@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 17 Apr 2007 09:45:11 +0000 (09:45 +0000)
committermtadel <mtadel@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 17 Apr 2007 09:45:11 +0000 (09:45 +0000)
EVE/Reve/Track.cxx

index 3dc82440d490a8038f9f906b0475643662784926..da700d9c9bc94d2609c2ec9969357786959ec05a 100644 (file)
@@ -629,7 +629,8 @@ void TrackList::SelectByP(Float_t min_p, Float_t max_p)
   Float_t psq;
 
   for(List_i i=fChildren.begin(); i!=fChildren.end(); ++i) {
-    psq = ((Track*)(*i))->fP.Mag();
+    psq  = ((Track*)(*i))->fP.Mag();
+    psq *= psq;
     (*i)->SetRnrSelf(psq >= minpsq && psq <= maxpsq);
   }
 }