]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
remove unnecesary delete, rename some methods, remove prints
authorgconesab <gconesab@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 2 Jun 2011 03:13:17 +0000 (03:13 +0000)
committergconesab <gconesab@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 2 Jun 2011 03:13:17 +0000 (03:13 +0000)
ANALYSIS/TenderSupplies/AliEMCALTenderSupply.cxx
ANALYSIS/TenderSupplies/AliEMCALTenderSupply.h

index f25455981c4f042cf2a8951bd890e39cd224183f..412ce1219e6704f8dc61da438a648b1aa2a8a28b 100644 (file)
@@ -172,8 +172,8 @@ void AliEMCALTenderSupply::ProcessEvent()
        if(fTender->RunChanged()){ 
                //Initialising parameters once per run number
                if (!InitBadChannels()) return;
-               if (fReCalibCluster || fReCalibCell){ if (!InitRecalibCluster()) return;}
                if (fRecalClusPos){ if (!InitMisalignMatrix()) return;}
+               if (fReCalibCluster || fReCalibCell){ if (!InitRecalib()) return;}
        }
 
        AliESDCaloCells *cells= event->GetEMCALCells();
@@ -234,6 +234,7 @@ void AliEMCALTenderSupply::ProcessEvent()
                SetClusterMatchedToTrack(event);
                SetTracksMatchedToCluster(event);
        }
+       
 }
 
 //_____________________________________________________
@@ -371,6 +372,8 @@ Bool_t AliEMCALTenderSupply::InitMisalignMatrix()
                }
        }
 
+       else AliInfo("MISALLIGNMENT NOT APPLIED");
+
        return kTRUE;
 }
 
@@ -436,7 +439,7 @@ Bool_t AliEMCALTenderSupply::InitBadChannels()
 }
 
 //_____________________________________________________
-Bool_t AliEMCALTenderSupply::InitRecalibCluster()
+Bool_t AliEMCALTenderSupply::InitRecalib()
 {
        //Initialising Recalibration Factors
 
@@ -499,8 +502,8 @@ Bool_t AliEMCALTenderSupply::InitRecalibCluster()
                                fRecalib = TFile::Open("alien:///alice/cern.ch/user/g/gconesab/RecalDB/summer2010/RecalibrationFactors.root");
                        }
                        else {
-                               AliError("Run number not found");
-                               return kFALSE;
+                               AliError("Run number or pass number not found; RECALIBRATION NOT APPLIED");
+                               return kTRUE;
                        }
 
                }
@@ -550,7 +553,6 @@ Bool_t AliEMCALTenderSupply::InitRecalibCluster()
 
        }
 
-       delete fRecalib;
        return kTRUE;
 }
 
index 6911d5ea5eaf94ef8801851437921c363012498e..4cb37d935f9e6e5d778f40356d91befadbac5faf 100644 (file)
@@ -75,7 +75,7 @@ public:
 private:
 
   Bool_t  InitBadChannels();
-  Bool_t  InitRecalibCluster();
+  Bool_t  InitRecalib();
   Bool_t  InitMisalignMatrix();
   
   void SetClusterMatchedToTrack(AliESDEvent *event);