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 3dc8244..da700d9 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);
   }
 }