]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
split setters of exotic cells and clusters
authormverweij <marta.verweij@cern.ch>
Fri, 28 Feb 2014 16:21:14 +0000 (17:21 +0100)
committerhristov <Peter.Hristov@cern.ch>
Thu, 27 Mar 2014 15:25:05 +0000 (16:25 +0100)
PWG/EMCAL/macros/AddTaskEMCALTender.C
PWG/EMCAL/macros/ConfigEmcalTenderSupply.C

index 732068b228778bc98b6e82d7b43fe6e41fe971c3..8591dd500cab1973bec53d048bb0b04d762bb6e1 100644 (file)
@@ -5,7 +5,8 @@ AliAnalysisTaskSE *AddTaskEMCALTender(
   Bool_t recalibClus    = kTRUE,   //recalibrate cluster energy
   Bool_t recalcClusPos  = kTRUE,   //recalculate cluster position
   Bool_t nonLinearCorr  = kTRUE,   //apply non-linearity
-  Bool_t remExotic      = kTRUE,   //remove exotic cells
+  Bool_t remExoticCell  = kTRUE,   //remove exotic cells
+  Bool_t remExoticClus  = kTRUE,   //remove exotic clusters
   Bool_t fidRegion      = kFALSE,  //apply fiducial cuts
   Bool_t calibEnergy    = kTRUE,   //calibrate energy
   Bool_t calibTime      = kTRUE,   //calibrate timing
@@ -42,7 +43,7 @@ AliAnalysisTaskSE *AddTaskEMCALTender(
 
   gROOT->LoadMacro("$ALICE_ROOT/PWG/EMCAL/macros/ConfigEmcalTenderSupply.C");
 
-  AliEMCALTenderSupply *EMCALSupply = ConfigEmcalTenderSupply(distBC, recalibClus, recalcClusPos, nonLinearCorr, remExotic, 
+  AliEMCALTenderSupply *EMCALSupply = ConfigEmcalTenderSupply(distBC, recalibClus, recalcClusPos, nonLinearCorr, remExoticCell, remExoticClus
                                                              fidRegion, calibEnergy, calibTime, remBC, nonLinFunct, reclusterize, seedthresh, 
                                                              cellthresh, clusterizer, trackMatch, updateCellOnly, timeMin, timeMax, timeCut);
 
index cc123fbd7b98f69a36911cce550e99509737e9a2..ec594e609e57b4d3c41ff524eb4875fa9255a934 100644 (file)
@@ -5,7 +5,8 @@ AliEMCALTenderSupply* ConfigEmcalTenderSupply(
   const Bool_t recalibClus    = kFALSE,  //recalibrate cluster energy
   const Bool_t recalcClusPos  = kFALSE,  //recalculate cluster position
   const Bool_t nonLinearCorr  = kFALSE,  //apply non-linearity
-  const Bool_t remExotic      = kFALSE,  //remove exotic cells
+  const Bool_t remExoticCell  = kFALSE,  //remove exotic cells
+  const Bool_t remExoticClus  = kTRUE,   //remove exotic clusters
   const Bool_t fidRegion      = kFALSE,  //apply fiducial cuts
   const Bool_t calibEnergy    = kFALSE,  //calibrate energy
   const Bool_t calibTime      = kFALSE,  //calibrate timing
@@ -82,11 +83,15 @@ AliEMCALTenderSupply* ConfigEmcalTenderSupply(
     EMCALSupply->SwitchOffNonLinearityCorrection();
   }
   
-  if (remExotic) {
+  if (remExoticCell) {
     EMCALSupply->SwitchOnExoticCellRemove();
-    EMCALSupply->SwitchOnClusterExoticChannelCheck();
   } else {
     EMCALSupply->SwitchOffExoticCellRemove();
+  }
+
+  if (remExoticClus) {
+    EMCALSupply->SwitchOnClusterExoticChannelCheck();
+  } else {
     EMCALSupply->SwitchOffClusterExoticChannelCheck();
   }