]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Unecessary copy of AliPHOSHit object has been removed from AddHit member function...
authormartinez <martinez@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 12 Jul 2001 11:56:32 +0000 (11:56 +0000)
committermartinez <martinez@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 12 Jul 2001 11:56:32 +0000 (11:56 +0000)
PHOS/AliPHOSv1.cxx

index a7e6e69caec4e4ea543bfcc0f794b91004c5c286..8ed90e9b2c4af3e71e5f8c339c2c5556066e0663 100644 (file)
@@ -163,7 +163,7 @@ void AliPHOSv1::AddHit(Int_t shunt, Int_t primary, Int_t tracknumber, Int_t Id,
     curHit = (AliPHOSHit*) (*fHits)[hitCounter] ;
     if(curHit->GetPrimary() != primary) break ; // We add hits with the same primary, while GEANT treats primaries succesively 
     if( *curHit == *newHit ) {
-      *curHit = *curHit + *newHit ;
+      *curHit + *newHit ;
       deja = kTRUE ;
     }
   }