From 5aff192377d38047091c9b728a55952d13328bc2 Mon Sep 17 00:00:00 2001 From: mverweij Date: Fri, 28 Feb 2014 17:21:14 +0100 Subject: [PATCH] split setters of exotic cells and clusters --- PWG/EMCAL/macros/AddTaskEMCALTender.C | 5 +++-- PWG/EMCAL/macros/ConfigEmcalTenderSupply.C | 11 ++++++++--- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/PWG/EMCAL/macros/AddTaskEMCALTender.C b/PWG/EMCAL/macros/AddTaskEMCALTender.C index 732068b2287..8591dd500ca 100644 --- a/PWG/EMCAL/macros/AddTaskEMCALTender.C +++ b/PWG/EMCAL/macros/AddTaskEMCALTender.C @@ -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); diff --git a/PWG/EMCAL/macros/ConfigEmcalTenderSupply.C b/PWG/EMCAL/macros/ConfigEmcalTenderSupply.C index cc123fbd7b9..ec594e609e5 100644 --- a/PWG/EMCAL/macros/ConfigEmcalTenderSupply.C +++ b/PWG/EMCAL/macros/ConfigEmcalTenderSupply.C @@ -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(); } -- 2.43.0