example added to set MCTune detector mask
authorantoniol <antoniol@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 5 Apr 2013 11:06:23 +0000 (11:06 +0000)
committerantoniol <antoniol@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 5 Apr 2013 11:06:23 +0000 (11:06 +0000)
ANALYSIS/macros/AddTaskPIDResponse.C

index e0a9cb3..a8fb7a9 100644 (file)
@@ -43,7 +43,12 @@ AliAnalysisTask *AddTaskPIDResponse(Bool_t isMC=kFALSE, Bool_t autoMCesd=kTRUE,
   AliAnalysisTaskPIDResponse *pidTask = new AliAnalysisTaskPIDResponse("PIDResponseTask");
 //   pidTask->SelectCollisionCandidates(AliVEvent::kMB);
   pidTask->SetIsMC(isMC);
-  if(isMC&&tuneOnData) pidTask->SetTuneOnData(kTRUE,recoPass);
+  if(isMC&&tuneOnData) {
+    pidTask->SetTuneOnData(kTRUE,recoPass);
+    // tuning on MC is by default active on TPC and TOF, to enable it only on one of them use:
+    // pidTask->SetTuneOnDataMask(AliPIDResponse::kDetTPC);   
+    // pidTask->SetTuneOnDataMask(AliPIDResponse::kDetTOF);   
+  }
   pidTask->SetCachePID(cachePID);
   pidTask->SetSpecialDetectorResponse(detResponse);
   pidTask->SetUseTPCEtaCorrection(useTPCEtaCorrection);