]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
fix passing of calorimeter name to function
authorgconesab <gustavo.conesa.balbastre@cern.ch>
Thu, 12 Jun 2014 11:39:29 +0000 (13:39 +0200)
committergconesab <gustavo.conesa.balbastre@cern.ch>
Thu, 12 Jun 2014 11:40:26 +0000 (13:40 +0200)
PWGGA/CaloTrackCorrelations/macros/QA/AddTaskPi0IMGammaCorrQA.C

index bd77dd128ce9d52baf021b17db0b9596c8fe1c37..6d6032ae3f33f67cdc3592a3ecff5201c820ba67 100644 (file)
@@ -17,7 +17,7 @@ AliAnalysisTaskCaloTrackCorrelation *AddTaskPi0IMGammaCorrQA(const TString  calo
   {
     printf("AddTaskPi0IMGammaCorrQA - CAREFUL : Triggered events not checked in simulation!! \n");
     TString ssuffix = suffix;
-    if(!ssuffix.Contains("default")) return;
+    if(!ssuffix.Contains("default")) return 0x0;
   }
 
   // Get the pointer to the existing analysis manager via the static access method.
@@ -53,7 +53,7 @@ AliAnalysisTaskCaloTrackCorrelation *AddTaskPi0IMGammaCorrQA(const TString  calo
 
   // General frame setting and configuration
   maker->SetReader   ( ConfigureReader   (inputDataType,minCen,maxCen,simulation,debugLevel) );
-  maker->SetCaloUtils( ConfigureCaloUtils(simulation,debugLevel) );
+  maker->SetCaloUtils( ConfigureCaloUtils(calorimeter,simulation,debugLevel) );
   
   // Analysis tasks setting and configuration
   Int_t n = 0;//Analysis number, order is important
@@ -235,8 +235,8 @@ AliCaloTrackReader * ConfigureReader(TString inputDataType,
   
 }
 
-//__________________________________________________________________________
-AliCalorimeterUtils* ConfigureCaloUtils(Bool_t simulation, Int_t debugLevel)
+//_______________________________________________________________________________________________
+AliCalorimeterUtils* ConfigureCaloUtils(TString calorimeter, Bool_t simulation, Int_t debugLevel)
 {
   
   AliCalorimeterUtils *cu = new AliCalorimeterUtils;
@@ -276,7 +276,7 @@ AliCalorimeterUtils* ConfigureCaloUtils(Bool_t simulation, Int_t debugLevel)
 
   cu->SwitchOnCorrectClusterLinearity();
 
-  if(kCalorimeter=="PHOS")
+  if(calorimeter=="PHOS")
     cu->SetNumberOfSuperModulesUsed(3);
   else
     cu->SetNumberOfSuperModulesUsed(10);