Updates in the setting of the colliding system
authorfprino <fprino@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 11 Nov 2013 09:08:18 +0000 (09:08 +0000)
committerfprino <fprino@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 11 Nov 2013 09:08:18 +0000 (09:08 +0000)
PWGHF/vertexingHF/macros/AddHFMCCheck.C

index 8b10475..76e844e 100644 (file)
@@ -1,4 +1,4 @@
-AliAnalysisTaskCheckHFMCProd *AddHFMCCheck(Bool_t isPbPb=kTRUE, Bool_t readMC=kTRUE){
+AliAnalysisTaskCheckHFMCProd *AddHFMCCheck(Int_t system=0, Bool_t readMC=kTRUE){
 
   // Creates, configures and attaches to the train the task for QA of ITS standalone tracks
   // Get the pointer to the existing analysis manager via the static access method.
@@ -33,7 +33,8 @@ AliAnalysisTaskCheckHFMCProd *AddHFMCCheck(Bool_t isPbPb=kTRUE, Bool_t readMC=kT
   }
   // Create and configure the task
   AliAnalysisTaskCheckHFMCProd *task = new AliAnalysisTaskCheckHFMCProd();
-  if(isPbPb) task->SetPbPb();
+  if(system==1) task->SetPbPb();
+  if(system==2) task->SetpPb();
   task->SetReadMC(readMC);
   mgr->AddTask(task);