After last changes in the reader default setting for filling input of detectors is...
[u/mrichter/AliRoot.git] / PWG4 / macros / AddTaskPartCorr.C
index 688c28dd2221a9c988b5518b31367d4f9a720e51..6a7416ef1c094a815bca53521f9fff489699a696 100644 (file)
@@ -30,8 +30,15 @@ AliAnalysisTaskParticleCorrelation *AddTaskPartCorr(TString data, TString calori
   else if(data=="ESD") reader = new AliCaloTrackESDReader();
   else if(data=="MC" && dataType == "ESD") reader = new AliCaloTrackMCReader();
   reader->SetDebug(-1);//10 for lots of messages
-  if(calorimeter == "EMCAL") reader->SwitchOnEMCALCells();
-  if(calorimeter == "PHOS")  reader->SwitchOnPHOSCells();
+  reader->SwitchOnCTS();
+  if(calorimeter == "EMCAL") {
+         reader->SwitchOnEMCALCells();  
+         reader->SwitchOnEMCAL();
+  }
+  if(calorimeter == "PHOS") { 
+         reader->SwitchOnPHOSCells();  
+         reader->SwitchOnPHOS();
+  }
   if(kUseKinematics){
        if(inputDataType == "ESD"){
                reader->SwitchOnStack();