]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PHOS/AliPHOSv1.cxx
Unecessary copy of AliPHOSHit object has been removed from AddHit member function...
[u/mrichter/AliRoot.git] / PHOS / AliPHOSv1.cxx
index c5a1d98343410d7cb9f92a7e21dab082da3b575e..8ed90e9b2c4af3e71e5f8c339c2c5556066e0663 100644 (file)
@@ -127,6 +127,7 @@ AliPHOSv1::AliPHOSv1(const char *name, const char *title):
     ((AliPHOSQAIntCheckable*)(*fQAHitsMulB)[i])->AddChecker(bhmc) ;
     ((AliPHOSQAFloatCheckable*)(*fQATotEnerB)[i])->AddChecker(bemc) ; 
   }
+
 }
 
 //____________________________________________________________________________
@@ -139,6 +140,8 @@ AliPHOSv1::~AliPHOSv1()
     delete fHits ;
     fHits = 0 ; 
   }
+  if (fTreeQA) 
+    delete fTreeQA ; 
 }
 
 //____________________________________________________________________________
@@ -160,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 ;
     }
   }
@@ -236,6 +239,7 @@ void AliPHOSv1::FinishEvent()
 //____________________________________________________________________________
 void AliPHOSv1::StepManager(void)
 {
+
   // Accumulates hits as long as the track stays in a single crystal or PPSD gas Cell
 
   Int_t          relid[4] ;           // (box, layer, row, column) indices