Move SetHighwaterMark() after last possible SetTrack()
authormorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 21 Feb 2002 16:09:45 +0000 (16:09 +0000)
committermorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 21 Feb 2002 16:09:45 +0000 (16:09 +0000)
EVGEN/AliGenHaloProtvino.cxx

index c287244..cbea1a0 100644 (file)
@@ -15,6 +15,9 @@
 
 /*
 $Log$
+Revision 1.6  2002/02/01 15:28:22  morsch
+Fastidious print statements removed.
+
 Revision 1.5  2002/02/01 14:12:28  morsch
 Include new gas pressure estimates (LHC Pproject Note 273)
 
@@ -244,8 +247,6 @@ void AliGenHaloProtvino::Generate()
       KeepTrack(ntP);
       fParentWeight=wgt*GassPressureWeight(zPrimary);
       SetTrack(fTrackIt,ntP,ipart,p,origin,polar,0,kPNoProcess,nt,fParentWeight);
-      SetHighWaterMark(nt);
-      
       //
       // Assume particles come from two directions with same probability
 
@@ -256,7 +257,7 @@ void AliGenHaloProtvino::Generate()
           fParentWeight=wgt*GassPressureWeight(-zPrimary);
           SetTrack(fTrackIt,ntP,ipart,p,origin,polar,0,kPNoProcess,nt,fParentWeight);
       }
-      
+      SetHighWaterMark(nt);
   }
 }