message: Add trigger matching for PHOS LHC16 analysis task
diff: @@ -131,25 +131,26 @@ void AliAnalysisTaskPP13::UserExec(Option_t *)
  //
  Int_t nTriggered = 0;
  TObjArray clusArray;
  - // clusArray.SetOwner(kTRUE);
  + clusArray.SetOwner(kTRUE);
  for (Int_t i = 0; i < event->GetNumberOfCaloClusters(); i++)
  {
  - AliVCluster * clus = event->GetCaloCluster(i);
  - // AliAODCaloCluster * c = dynamic_cast<AliAODCaloCluster *> (event->GetCaloCluster(i));
  - if (!clus)
  + // AliVCluster * clus = event->GetCaloCluster(i);
  + AliAODCaloCluster * c = dynamic_cast<AliAODCaloCluster *> (event->GetCaloCluster(i));
  + if (!c)
  {
  AliWarning("Can't get cluster");
  return;
  }
  - // AliPP13AnalysisCluster * clus = new AliPP13AnalysisCluster(*c);
  + AliPP13AnalysisCluster * clus = new AliPP13AnalysisCluster(*c);
  if (!clus->IsPHOS())
  continue;
  - // triggerProperties.FillTriggerInformation(clus);
  + triggerProperties.FillTriggerInformation(clus);
  + // Use only with triggerUtils
  // clus->SetTrigger(triggerUtils->IsFiredTrigger(c));
  - // nTriggered += clus->IsTrigger();
  + nTriggered += clus->IsTrigger();
  clusArray.Add(clus);
  }
  