From: martinez Date: Thu, 12 Jul 2001 11:56:32 +0000 (+0000) Subject: Unecessary copy of AliPHOSHit object has been removed from AddHit member function... X-Git-Url: http://git.uio.no/git/?p=u%2Fmrichter%2FAliRoot.git;a=commitdiff_plain;h=f15a01eb14f253b029e04641fa69c9fabbf7daaf;hp=43bfa5beb500c06a4bef4630683793887b872b0f Unecessary copy of AliPHOSHit object has been removed from AddHit member function. Indeed the operator + should be redefined as +=. To be done --- diff --git a/PHOS/AliPHOSv1.cxx b/PHOS/AliPHOSv1.cxx index a7e6e69caec..8ed90e9b2c4 100644 --- a/PHOS/AliPHOSv1.cxx +++ b/PHOS/AliPHOSv1.cxx @@ -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 ; } }