Use only one function to set the trigger classes: patterns and trigger combinations...
authorscompar <scompar@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sun, 17 Feb 2013 20:26:18 +0000 (20:26 +0000)
committerscompar <scompar@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sun, 17 Feb 2013 20:26:18 +0000 (20:26 +0000)
PWGPP/macros/AddTaskMTRchamberEfficiency.C

index 1c9f1df..99e1499 100644 (file)
@@ -43,7 +43,8 @@ AliAnalysisTaskTrigChEff* AddTaskMTRchamberEfficiency(Bool_t useGhosts = kFALSE,
   if ( isMC ) taskTrigChEff->SetTrigClassPatterns("ANY");
   else {
     TString trigClassPatterns = taskTrigChEff->GetDefaultTrigClassPatterns();
-    trigClassPatterns.Prepend("ANY,!CMUP,");
+    trigClassPatterns.Prepend("ANY,");
+    if ( ! trigClassPatterns.Contains("!CMUP") ) trigClassPatterns.Append(",!CMUP*");
     taskTrigChEff->SetTrigClassPatterns(trigClassPatterns);
   }
   taskTrigChEff->GetMuonEventCuts()->SetFilterMask(AliMuonEventCuts::kSelectedTrig);