]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
fix handling of bad channels map
authorgconesab <gconesab@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 7 Apr 2010 11:38:36 +0000 (11:38 +0000)
committergconesab <gconesab@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 7 Apr 2010 11:38:36 +0000 (11:38 +0000)
PWG4/PartCorrBase/AliCaloTrackReader.cxx

index 62773b1e75859d515ddcb7bca4fd8f76878d55bc..0dd131c8dec544e1beed66deef5e1853cf2a8872 100755 (executable)
@@ -220,6 +220,9 @@ AliCaloTrackReader::~AliCaloTrackReader() {
   if(fPHOSGeo)  delete fPHOSGeo  ;
   if(fEMCALGeo) delete fEMCALGeo ;
        
+  fEMCALBadChannelMap.Delete();
+  fPHOSBadChannelMap. Delete();
+       
 }
 
 //_________________________________________________________________________________________________________
@@ -443,8 +446,10 @@ void AliCaloTrackReader::InitParameters()
   for (int i = 0; i < 5; i++) 
        fPHOSBadChannelMap.Add(new TH2I(Form("PHOSBadChannelMap_Mod%d",i),Form("PHOSBadChannelMap_Mod%d",i), 
                                                                         56, 0, 56, 64, 0, 64));
+       fEMCALBadChannelMap.SetOwner(kTRUE);
+       fPHOSBadChannelMap. SetOwner(kTRUE);
        fEMCALBadChannelMap.Compress();
-       fPHOSBadChannelMap.Compress();
+       fPHOSBadChannelMap. Compress();
        
 }
 
@@ -509,7 +514,7 @@ Bool_t AliCaloTrackReader::FillInputEvent(const Int_t iEntry, const char * curre
   fEventNumber = iEntry;
   fCurrentFileName = TString(currentFileName);
   if(!fInputEvent) {
-         if(fDebug >= 0) printf("AliCaloTrackReader::FillInputEvent() - Input event not available, skip event analisys\n");
+         if(fDebug >= 0) printf("AliCaloTrackReader::FillInputEvent() - Input event not available, skip event analysis\n");
          return kFALSE;
   }
   //Select events only fired by a certain trigger configuration if it is provided