// --- Standard library ---
-#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <strstream.h>
// create checkables
fQAHitsMul = new AliPHOSQAIntCheckable("HitsM") ;
fQATotEner = new AliPHOSQAFloatCheckable("TotEn") ;
- fQAHitsMulB = new TClonesArray("AliPHOSQAIntCheckable",nb) ;
+ fQAHitsMulB = new TClonesArray("AliPHOSQAIntCheckable",nb) ;
+ fQAHitsMulB->SetOwner() ;
fQATotEnerB = new TClonesArray("AliPHOSQAFloatCheckable", nb);
+ fQATotEnerB->SetOwner() ;
char tempo[20] ;
Int_t i ;
for ( i = 0 ; i < nb ; i++ ) {
delete fHits ;
fHits = 0 ;
}
- if (fTreeQA)
- delete fTreeQA ;
+
+ if ( fQAHitsMulB ) {
+ fQAHitsMulB->Delete() ;
+ delete fQAHitsMulB ;
+ }
+
+ if ( fQATotEnerB ) {
+ fQATotEnerB->Delete() ;
+ delete fQATotEnerB ;
+ }
+
}
//____________________________________________________________________________
for (i=0; i<3; i++) xyzm[i] = pos[i];
gMC -> Gmtod (xyzm, xyzd, 1); // transform coordinate from master to daughter system
- Float_t xyd[3]={0,0,0} ; //local positon of the entering
+ Float_t xyd[3]={0,0,0} ; //local position of the entering
xyd[0] = xyzd[0];
xyd[1] =-xyzd[2];
xyd[2] =-xyzd[1];